#15528Make all page elements accessible separately (using one SELECT)
Description
The idea is to be able to place page elements in whatever part of HTML template, mapping them to different fields using TemplaVoila.
To make all elements easily accessible like that, it is necessary to render all of them separately.
The problem with TS code below is that we to access database every time without need, since one SELECT is enough.
Example TS:
- Render text (content)
tt_content_text < tt_content.text
lib.content < styles.content.get
lib.content.renderObj =< tt_content_text
- Render image
tt_content_image < tt_content.image.20
lib.image < styles.content.get
lib.image.renderObj =< tt_content_image
- Render title
lib.title = TEXT
lib.title.data = page:subtitle//page:title
etc…
(issue imported from #M2425)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.