$pagedata with «plain site»

Author Message

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:

  1. I created the sub-folder extension/ezwebin/
  2. Next, I copied the sub-folder (and its content) extension/ezwebin/autoload/ (from a local eZP 4.3 installation with ezwebin) in my new sub-folder extension/ezwebin/
  3. I activated the new extension ezwebin from my admin interface
  4. I reloaded the autoloa array

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

Pascal France

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 ;-)

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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.