Issue Feature Closed

#15528Make all page elements accessible separately (using one SELECT)

John Angel 01/28/06, 17:22 updated 11/11/13, 16:58

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:

  1. Render text (content)
    tt_content_text < tt_content.text
    lib.content < styles.content.get
    lib.content.renderObj =< tt_content_text
  1. Render image
    tt_content_image < tt_content.image.20
    lib.image < styles.content.get
    lib.image.renderObj =< tt_content_image
  1. 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.