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.

eZ debug

Timing: Jan 18 2025 19:34:34
Script start
Timing: Jan 18 2025 19:34:34
Module start 'layout'
Timing: Jan 18 2025 19:34:34
Module start 'content'
Timing: Jan 18 2025 19:34:34
Module end 'content'
Timing: Jan 18 2025 19:34:34
Script end

Main resources:

Total runtime0.0175 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0067 589.0313152.6250
Module start 'layout' 0.00670.0039 741.656339.4453
Module start 'content' 0.01070.0045 781.101689.3359
Module end 'content' 0.01520.0022 870.437534.3047
Script end 0.0174  904.7422 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002916.4677140.0002
Check MTime0.00116.5576140.0001
Mysql Total
Database connection0.00073.734910.0007
Mysqli_queries0.005129.290730.0017
Looping result0.00000.084710.0000
Template Total0.001910.710.0019
Template load0.00127.136610.0012
Template processing0.00063.562810.0006
Override
Cache load0.00105.476010.0010
General
dbfile0.00031.664780.0000
String conversion0.00000.041040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs