Base.tpl: oxidBlock_pageScript? What is this?

The base.tpl template includes the following code:


    [{foreach from=$oxidBlock_pageScript item="_block"}]
        [{$_block}]
    [{/foreach}]

But unless my grep skills are broken today, I don’t see $oxidBlock_pageScript defined anywhere!

Anybody know the idea behind this variable? Maybe it’s planned for future use?

Yo,
imma not sure if oxidBlock_pageScript is used somewhere in template, but oxidBlock_pageBody is used almost everywhere.

You can do this


[{capture append="oxidBlock_pageScript"}]
.... code ...
[{/code}]

and it will be appended to the other scripts .
Its almost the same thing like [{oxscript}] but you have more possibilities like using conditions to genereate some code dynmically based on user id, active class or whatever. And ofcouse you can appent whatever you want and not only javascript.

Yes, familiar with that.

Just worried that if it has no purpose and I start using it (in the same manner you suggested) it could one day just ‘disappear’ in the code in a future release. A typical inside decision: if it’s not used why keep it.

[QUOTE=spurvis;107061]
A typical inside decision: if it’s not used why keep it.[/QUOTE]

maybe a typical insight decision - if it does not hurt anyone / anything, we keep it… :smiley: