PDA


View Full Version : How can I use variables in other templates?


suryoyena
12-08-2005, 01:07 PM
I want to use e.g. the variables from the welcome block in
another template.

For example $lastvisitdate

When I write it down in another template it happens nothing..

What must I change that this will work?


Best wishes, Chris :)

Brian
12-08-2005, 04:24 PM
If you're trying to use the variable in another module that is displayed after the welcome block module then you should have no problems. Otherwise though you would need to add the same code from the welcomeblock.php file to your new module (or wherever you're trying to add the variable).