Unavailable Forum Notifications Button

Author Message

Mariusz Ściseł

Friday 26 June 2009 8:19:47 am

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

Paul Wilson

Wednesday 15 July 2009 6:58:09 am

Hi Mariusz,

I've added a new issue. Clearly the button should work.

See http://issues.ez.no/IssueView.php?Id=15165

Regards

- Paul

Max Keil

Wednesday 15 July 2009 10:14:53 am

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.

Mit freundlichen Grüßen
Best regards

Max Keil

____________________________________________________________
eZ Publish Gold Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh

Łukasz Serwatka

Thursday 10 September 2009 3:43:18 am

Hi,

That issue has been resolved in ezwebin:
trunk (1.5) rev. 4158
stable/1.4 (1.4-3) rev. 4159

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.