Quote:
Originally Posted by kh99
It *is* possible to register an array then use loop tags in the template, but I'm going to assume that's not what you're trying to do.
|
I don't want to do it, but in that case, could I do...?
Code:
<vb:each from="my_attr" value="entry">
{vb:raw entry}
</vb:each>
--------------- Added [DATE]1373218964[/DATE] at [TIME]1373218964[/TIME] ---------------
Okay. there must be something wrong. I have edited {vb:raw header}and added somwhere:
{vb:raw yellow}a
Notice that there is a letter a.
I have hooked the plugin to global_start, then I turned on the debug mode and I checked that global_start is executed.
My plugin code is:
Code:
$my_attr = array(
'apple' => 'red',
'banana' => 'yellow'
);
vB_Template::preRegister('FORUMHOME', $my_attr);
vB_Template::preRegister('header', $my_attr);
Why is not showing anything? It is showing only the letter a, as If {vb:raw yellow} is void.
What am I doing wrong?