Friday 26 June 2009 5:19:47 pm - 3 replies
Hi
After installing a new website on eZ Publish 4.1.3 I had an "Add to notifications" button disappeared.
Maybe is this issue because of addtonotification new function in forum.tpl?
I want to use It but it doesn't work like in eZ P 4.1.1. Any idea how to fix this?
{def $notification_access=fetch( 'user', 'has_access_to', hash( 'module', 'notification', 'function', 'addtonotification' ) )}
It appear after changed <b>addtonotification</b> to <b>use</b>. Is this right solution?
{def $notification_access=fetch( 'user', 'has_access_to', hash( 'module', 'notification', 'function', 'use' ) )}
Mariusz
Wednesday 15 July 2009 3:58:09 pm
Hi Mariusz,
I've added a new issue. Clearly the button should work.
See http://issues.ez.no/IssueView.php?Id=15165
Regards
- Paul
Wednesday 15 July 2009 7:14:53 pm
Hi Mariusz,
{def $notification_access=fetch( 'user', 'has_access_to', hash( 'module', 'notification', 'function', 'use' ) )}
Is the right solution! The function value should be the name of the function like it defined in:
kernel/notification/module.php -> $FunctionList['use'] = array( );
This is the same name that you see when set up the policies.
In previous versions there was a possibility to use $ViewList["addtonotification"] name for the function. It seems to be fixed in newer versions.
You must be logged in to post messages in this topic!