Thursday 08 December 2005 11:49:25 am
I have 2 pieces of code on the same page which use the $current_user variable. In top.tpl (at the top of the page) I check to see if a user is logged in with the following code:
{if eq($current_user.contentobject_id,$anonymous_user_id)}
This check always behaves correctly and if I output the two id's I can see they are correct. Further down on the same page, included in another file I do a similar check in product.tpl. However this check always fails and if I output the ids they have no value.
I tried adding # in front of the variable names in case of a scope issue. There is no mention of when these variables will NOT be available on the doc page: http://ez.no/doc/ez_publish/technical_manual/3_6/templates/the_pagelayout/variables_in_pagelayout Any thoughts on why these variables cease to exist?
working at www.wardnet.com
blogging at www.jamesward.ca
|