LoginSignup
0
0

More than 5 years have passed since last update.

eZ Publish のテンプレート上でモジュール名またはファンクション名を取得する

Last updated at Posted at 2017-04-01

eZ Publish のテンプレート上でモジュール名やファンクション名を参照したい場合は module_params() テンプレートオペレーターで取得できる。

{def $module_params = module_params()}
モジュール名: {$module_params.module_name}<br />
ファンクション名: {$module_params.function_name}<br />
ビューモード: {$module_params.parameters.ViewMode}<br />
ノードID: {$module_params.parameters.NodeID}
出力例
モジュール名: content
ファンクション名: view
ビューモード: full
ノードID: 65

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0