InterJinn

Development Framework For PHP

Tag: <jinn:accFlush/>

Abstract

Alias: <jinn:accumulatorFlush/>

If you have set up an accumulator then you will want to use this tag to have the contents inserted at a given point in the compilation. The prepend and append types of the <jinn:accumulate/> tag do not require an explicit flush and will be handled automatically.

Attribute - name

The name of the accumulator whose data you would like inserted at the location of this tag. If no data has been accumulated or no such accumulator exists then nothing will be output.

Attribute - dynamic

If this attribute is set to true then rather than flush an existing accumulator, that has been set up by a <jinn:accumulate/> tag, a dynamic accumulator will be set up with the given name which can be used to target content produced in a dynamic module. The content will be accumulated on every page load and flushed at the correct location when the module logic completes. You must still make an explicit static flush for any non dynamic accumualtors.

I have used the following type of accumulator to contextually include secondary navigation buttons while at the same time leaving the posibility for buttons to be added dynamically by any dynamic modules.

Example:
<jinn:accumulatorFlush name="secondaryNavigation"/>
<jinn:accumulatorFlush name="secondaryNavigation" dynamic="true"/>