Forums / Developer / scope="global" not respected??

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

scope="global" not respected??

Author Message

Gabriel Ambuehl

Monday 18 July 2005 11:35:05 am

I need to run a certain javascript (TinyMCE if anyone cares ;) the first time the ezxmltext.tpl template is being parsed.

So I figured I'll take a global variable and check if it's already run:

{if is_set($tinymce_active)|not} 

{def $tinymce_active="true" scope="global"}

DOODAAH
{/if}

That will, however, output DOODAAH for every xml field as it seems the scope="global" isn't being honored...

Visit http://triligon.org