I've looked at forum reply you linked to earlier to day. Unfortunately this doesn't solve my problem. I don't want to pass any variables in the URL. I've tried setting a <input type="hidden value="myvar"> field, but this variable isn't passed along if you don't have a submit button in the form.
I guess if I don't find any solution, I'll just merge my top.tpl with pagelayout.tpl and don't bother with passing variables.
Hi,
if you want to show username on every page, you may place this piece with fetch on the top of pagelayout.pl.
Next, use cache-block with apriopriate key around this to properly cache.
This should be enough. Konrad
Thank you for your suggestions :) We went the easy way and just merged our top.tpl template into pagelayout.tpl. But I never knew a cache-block could be used to pass variables. I'll have this in mind for a later occasion.
Hi:
the solution is a little difficult,
you have to fetch the current user in php file(index.php)and then put it in session variable that is available all the time i wish that help