Forums / Install & configuration / $pagedata with «plain site»
Pascal France
Friday 15 April 2011 4:47:59 am
Hi,
I'm using eZP 4.3 but it is an upgrade from an old eZP 3.8. Therefor my site is «plain site» type based.
I would like to use the variable $pagedata which comes with the extension ezwebin (this extension does not exists on my installation). So, I did the following:
But this does not work. $pagedata is empty in pagelayout.tpl even I add this code in the head section:
{def $pagedata = ezpagedata() $pagestyle = $pagedata.css_classes $locales = fetch( 'content', 'translation_list' ) $pagedesign = $pagedata.template_look $current_node_id = $pagedata.node_id}
Is there a way to make it working ?
Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish
Friday 15 April 2011 5:31:27 am
It is necessary to create the extension/ezwebin/settings/site.ini.append.php file with this code
[TemplateSettings] ExtensionAutoloadPath[]=ezwebin
Now, $pagedat works fine with my plain site ;-)