If page_id=10 display this

Hello,



I’m trying to create a page that welcomes the user by name and then displays a bunch of content. I tried editing the customer/views/pages/view.tpl with the following code:



{if $config.current_url == ‘index.php?dispatch=pages.view&page_id=10’}

Welcome back {$user_info.firstname}!



{/if}



However this displays on every page. Is there a way to check for the page id? Or is there a way to use this variable {$user_info.firstname} in the wysiwyg editor? Thanks in advanced!

[quote name=‘msfarrel’]Hello,



I’m trying to create a page that welcomes the user by name and then displays a bunch of content. I tried editing the customer/views/pages/view.tpl with the following code:



{if $config.current_url == ‘index.php?dispatch=pages.view&page_id=10’}

Welcome back {$user_info.firstname}!



{/if}



However this displays on every page. Is there a way to check for the page id? Or is there a way to use this variable {$user_info.firstname} in the wysiwyg editor? Thanks in advanced![/QUOTE]



Try this and see if it works:



{if $page.page_id=='10'}

Welcome back {$user_info.firstname}!


{/if}




:slight_smile:

Yeah that works. Thanks a bunch!