Forums / Developer / How to get the current Module and View

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

How to get the current Module and View

Author Message

Hakim Bouras

Thursday 01 July 2010 11:51:54 pm

Hi,

From the pagelayout.tpl is there a way to get the current module and view ?

This information is not available in $module_result.

I am looking for a way to get it from a template, but if there is a way to get it from the API I can build an operator for this (I tried eZModule::currentModule but unfortunaltely it works only in the module context not out of the module).

Thanks,

Hakim