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.

eZ debug

Timing: Jan 30 2025 21:42:11
Script start
Timing: Jan 30 2025 21:42:11
Module start 'layout'
Timing: Jan 30 2025 21:42:11
Module start 'content'
Timing: Jan 30 2025 21:42:12
Module end 'content'
Timing: Jan 30 2025 21:42:12
Script end

Main resources:

Total runtime1.2872 sec
Peak memory usage8,192.0000 KB
Database Queries64

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 588.2500151.2266
Module start 'layout' 0.00500.0040 739.4766220.7031
Module start 'content' 0.00901.2772 960.17974,545.5391
Module end 'content' 1.28620.0010 5,505.718811.8438
Script end 1.2871  5,517.5625 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.3019160.0002
Check MTime0.00130.1009160.0001
Mysql Total
Database connection0.00070.057710.0007
Mysqli_queries1.185492.0936640.0185
Looping result0.00070.0565620.0000
Template Total1.234895.920.6174
Template load0.00240.189620.0012
Template processing1.232495.743620.6162
Template load and register function0.00170.134210.0017
states
state_id_array0.00130.098810.0013
state_identifier_array0.00100.073920.0005
Override
Cache load0.00200.1576320.0001
Sytem overhead
Fetch class attribute can translate value0.00170.131240.0004
Fetch class attribute name0.00250.196070.0004
XML
Image XML parsing0.00600.468740.0015
class_abstraction
Instantiating content class attribute0.00000.001670.0000
General
dbfile0.00500.3892300.0002
String conversion0.00000.000640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 22
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs