Fetching current VIEW?[solved]

Author Message

Clemens T

Tuesday 22 November 2005 5:47:45 am

Is there a standard ezpublish function to get the current view inside a module?

I made my own set of modules, and now I'd like to know what the view is of the current user in my templates (so I can make the view-link bold in the menu... (so the user can see where he's at))

Greets,
Clemens
ps: off course I can construct my own system for this, but I'd like to use ezpublish standards.

Clemens T

Tuesday 22 November 2005 2:59:54 pm

anyone?

Felipe Jaramillo

Tuesday 22 November 2005 3:21:36 pm

Hi Clemens,

I asked about something similar here:
http://ez.no/community/forum/general/getting_module_name_in_pagelayout#msg87781

Kristof replied:
You can use $module_result.path or $uri_string.

Hope it helps.

Regards,
Felipe

Felipe Jaramillo
eZ Certified Extension Developer
http://www.aplyca.com | Bogotá, Colombia

Clemens T

Wednesday 23 November 2005 3:21:09 pm

OK, thanks. I wanted to do it inside my own module, and the way to do it (I think) is:

{module_params()|attribute(show)}

//I'm unsure on the module_result variable OUTSIDE the pagelayout.. that's why I've chosen this way (not sure if it works with module_result or not)

Greets & thanks!
Clemens

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