another tweak to the 4.1 cores

Fusebox Add comments

So fingers crossed the 4.1 cores will be gold very very soon, but just in the nick of time another tweak has been made before they go final.

I ran into a situation the other day where i’ve got a couple of preprocess fuseactions running globally dumping into a CCV (to produce my blog sidebar) so they always appear in my layouts. So far so good - but i then needed to add an item to the sidebar ABOVE the global FAs. Ahh…well you could do it with FuseQ but with the native grammar you needed to go via an additional variable, eg

<fuseaction name=“test”>
   <include template=“dsp_test” contentvariable=“MainCCV” />
   <do action=“sidebar3″ contentvariable=“RightCCV2append” />
   <set name=“RightCCV” value=“#RightCCV2append##RightCCV#” />
   <do action=“layout.apply” />
</fuseaction>

RightCCV is the name of the CCV in my layout with the global FAs already in it, so i then set the value of RightCCV to be the result of the FA i want prepended and add the orginal content behind it, kinda clunky huh?

Well, now in addition to the append=”true” attribute you can do prepend=”true”, so the above simply becomes;

<fuseaction name=“test”>
   <include template=“dsp_test” contentvariable=“MainCCV” />
   <do action=“sidebar3″ contentvariable=“RightCCV” prepend=“true” />
   <do action=“layout.apply” />
</fuseaction>

Hopefully i’m not the only one that will benefit from that little tweak…

One Response to “another tweak to the 4.1 cores”

  1. Jamie Says:

    John,

    Is there going to be another beta release with this tweak?

Leave a Reply

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in