@sabugen
I just visited Editor-X-Community 5min ago (boring forum by the way), and i saw that Editor-X has released —> MULTI-STATE-BOXES! Wow! Soon Editor-X will become better then the normal one → we’ll see us in 2050 again
Ok, all right aside. I do often little jokes time by time .
Important statements in your description are —>
-
For example, I have a FAQ Database full of questions and answers .
Ok, i see the DB now on your provided Screenshot!
-
I have 26 questions listed on the page.
Question! How they are listed on the PAGE ? Why you do not provide this important info?
As i know → EDITOR-X do not have TABLES, so i asume you have them inside a REPEATER ? Another version ?
- I want all the answers to be displayed In an embedded element container, one at a time…
How you can select each item (each row in DB) ? → My assumtion was right? → You use a REPEATER to display your DB-Items?
As i already mentioned, you then would have two options…(or even more)…
a) —> a second REPEATER
b) —> MULTISTATE-BOX
d) —> Custom-element/Html-Component (iFrame) + more CODE
d) —> If anybody knows other possibilities → let me know
- …one at a time, depending on the question that was selected, beside or below the list of questions and on the same page.
If you have all your questions inside a REPEATER → Then this last one should not be a big problem. A REPEATER has an ITEM-INDEX → the same as a DB has.
item-index in REPEATER = row-index in DB (sometimes this index is inverted).
- can I read from a data collection in similar fashion as I would read from a JS object or an array?
Take a look onto the DATA, what a REPEATER normaly would expect, to be feeded with…
An Array —> full of Objects! Exactly what your FIRST-REPEATER would be filled with.
[
{
"_id": "1",
"firstName": "John",
"lastName": "Doe",
"image": "http://someImageUrl/john.jpg"
},
{
"_id": "2",
"firstName": "Jane",
"lastName": "Doe",
"image": "http://someImageUrl/jane.jpg"
}
]
Your SECOND-REPEATER would always get JUST-ONE-SINGLE DATA-OBJECT.
More about how to generate this, which PROBLEMS you can get and how to resolve them, you will find in the following post…
After i have break your description into peaces, it made sense to me what you want to achieve, i hope i understood it the right way.
Anyway → you do not have a lot of possibilities in EDITOR-X.
Your BEST-FRIEND in EDITOR-X is a REPEATER (PERHAPS also the CUSTOM-ELEMENT) and since some days/weeks also the MULTI-SATE-BOX, which by the way, also could be used for your purposes!
I hope this post gave you some new insights and ideas.
Good luck!