$userinfo on welcome.tpl
I need to display a message on the customer/main/welcome.tpl page. I need to access a couple of user specific fields typically in the $userinfo.additional_fields array. But $userinfo is not defined in home.php and hence is empty in welcome.php.
I can add to home.php $smarty->assign("currentUser",func_userinfo($login,'C')) ; And it works great. But: 1) I only need this for welcome.php but it will load this info for all pages driven by home.php (I could write more php to get around this). 2) I have to modify the core file home.php to do this. I would rather only modify the template files. Can I do this completely in welcome.tpl? I tried: {php} $userinfo = func_userinfo($login,'C'); {/php} But that didn't work. Any suggestions ? Thanks, Jed |
Re: $userinfo on welcome.tpl
I wouldn't suggest doing this in template files but you could try:
Code:
{php} In home.php FIND: # Assign the current location line BEFORE ADD: Code:
if (empty($cat)) |
All times are GMT -8. The time now is 04:16 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.