Tuesday 27 January 2004 9:40:28 am
I'm using version 3.3-2 I want to display the notification button in nodes only to logged-in users (it has no sense displaying it in a page to anonymous) I put this code in my node template:
{let thisuser=fetch('user','current_user')}
{section show=$thisuser.is_logged_in}
<input class="button" type="submit" name="ActionAddToNotification" value="{"Notify me about updates"|i18n("design/shop/layout")}{*to {$node.name|wash}*}" />
{/section} {/let} It diplays correctly the button only to logged in users, but when you click it, it does not add the element to the notification settings, even if you have the rights. I also tried:
{section show=$current_user.is_logged_in}
<input class="button" type="submit" name="ActionAddToNotification" value="{"Notify me about updates"|i18n("design/shop/layout")}{*to {$node.name|wash}*}" /> {/section} But it does not display any button, even if you are logged in.
Any idea? Thanks. Sandra
Sandra Parente
www.netbliss.it
|