Dashboard > RIFE > ... > Web engine > Embedded element priorities
RIFE Log In | Sign Up   View a printable version of the current page.
Embedded element priorities


Added by Geert Bevin, last edited by Geert Bevin on Apr 17, 2006  (view change)
Labels: 
(None)

Normally, embedded elements are processed when the template that contains them is instantiated. In most situations this is exactly what you want, however sometimes it's important to be able to defer the processing to the end of your view handling, ie. when the template is printed. So instead of being processed early, those embedded elements will then be processed late.

You simply do this by prefixing the ID of the embedded element in the value tag with a + (for late processing) or - (for early processing).

For example, these embedded elements:

<!--V 'ELEMENT:+PRIORITIES_EMBEDDED_LATE1'/-->
<!--V 'ELEMENT:PRIORITIES_EMBEDDED_NORMAL1'/-->
<!--V 'ELEMENT:+PRIORITIES_EMBEDDED_LATE2'/-->
<!--V 'ELEMENT:PRIORITIES_EMBEDDED_NORMAL2'/-->
<!--V 'ELEMENT:-PRIORITIES_EMBEDDED_EARLY'/-->

Will be processed in the following order:

PRIORITIES_EMBEDDED_EARLY
PRIORITIES_EMBEDDED_NORMAL1
PRIORITIES_EMBEDDED_NORMAL2
PRIORITIES_EMBEDDED_LATE1
PRIORITIES_EMBEDDED_LATE2

Note that you can of course still process embedded elements explicitly with the processEmbeddedElement method. The embedded elements that have already been processed like that will not be automatically re-processed later.



Are you enjoying Confluence? Please consider purchasing it today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.1a Build:#515 May 19, 2006) - Bug/feature request - Contact Administrators