eZ Community » Forums » General » eZTemplate @...
expandshrink

eZTemplate @ design/dffestival/templates/page_footer.tpl:8[6]: Unknown template variable 'view_parameters' in namespace ''

eZTemplate @ design/dffestival/templates/page_footer.tpl:8[6]: Unknown template variable 'view_parameters' in namespace ''

Tuesday 12 January 2016 2:14:02 pm - 1 reply

Hello Everyone,

We have received below errors when browsing the site's home page:

 eZTemplate @ design/dffestival/templates/page_footer.tpl:8[6]:
Unknown template variable 'view_parameters' in namespace ''

In our 'pagefooter.tpl' file have below code:

<div class="attribute-layout">
  {attribute_view_gui attribute=$footerNode.data_map.layout view_parameters=$view_parameters}
</div>

We are using 'eZ Publish Community Project 2012.6' version.

Could anyone explain why I can't retrieve the view_parameters variable and how to do retrieve it?

 

Thanks

Sunil

Modified on Tuesday 12 January 2016 2:16:03 pm by A Sunil

Thursday 14 January 2016 10:07:06 am

Hi

In pagelayout you have to retrieve the view_parameters from $module_result variable.

See https://doc.ez.no/eZ-Publish/Tech...e-pagelayout/Variables-in-pagelayout

Something like this:

{def $view_parameters = array()}
{if is_set( $module_result.view_parameters )}
    {set $view_parameters = $module_result.view_parameters}
{/if}
expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from