eZTeamRoom : Event URL bug

You need to be logged in to post messages in the forums. New users may register here.

Ronan Guilloux

Member since:
09 January 2008

Posts: 4

Thursday 08 April 2010 4:42:07 am

Hi everybody, eZ Team Room is a great extension.

I don't know where to post this issue, since there is no issues.ez.no project opened yet for ezteamroom.

I have a little fix to suggest, see below.

This bug seems to remain already in the current "trunk" svn repo of ezteamroom (seen on april, 8th of 2010)

Environnement : eZ 4.2.0 + eZTeamRoom 1.0.0 on PHP 5 + MySQL 5

File : design/ezteamroom/override/templates/module_widget/event_calendar.tpl

In lines 291 and 317,

href={$event.url_alias|ezurl}

This doesn't work, since url_alias isn't available for ezcontentobject, when fetched from a tpl, in eZ 4.2.0 (and 4.3.0 ?).

You can add main_node :

href={$event.main_node.url_alias|ezurl}

...but this is brickwork and maybe there's a better way to fix that : the $event ezcontentobject come from $events array which is defined in line 74 : it's a fetch( 'event', 'list') result, but this seems to be a not yet documented fetch function.

Any suggestion better than my little brickwork ?

--
Ronan Guilloux
www.mazedia.fr
www.coolforest.net

Up

You need to be logged in to post messages in the forums. New users may register here.