$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.

eZ debug

Timing: Jan 18 2025 02:15:14
Script start
Timing: Jan 18 2025 02:15:14
Module start 'layout'
Timing: Jan 18 2025 02:15:14
Module start 'content'
Timing: Jan 18 2025 02:15:15
Module end 'content'
Timing: Jan 18 2025 02:15:15
Script end

Main resources:

Total runtime0.8071 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0045 589.0547152.6250
Module start 'layout' 0.00450.0028 741.679739.4531
Module start 'content' 0.00730.7980 781.1328457.8828
Module end 'content' 0.80530.0017 1,239.01568.1641
Script end 0.8071  1,247.1797 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.3895160.0002
Check MTime0.00130.1668160.0001
Mysql Total
Database connection0.00070.088610.0007
Mysqli_queries0.763394.5748520.0147
Looping result0.00050.0619500.0000
Template Total0.772995.820.3864
Template load0.00200.242320.0010
Template processing0.770995.512620.3854
Template load and register function0.00020.028510.0002
states
state_id_array0.00120.145510.0012
state_identifier_array0.00080.100220.0004
Override
Cache load0.00160.1968210.0001
Sytem overhead
Fetch class attribute can translate value0.00050.062710.0005
Fetch class attribute name0.00080.096620.0004
XML
Image XML parsing0.00010.011910.0001
class_abstraction
Instantiating content class attribute0.00000.000520.0000
General
dbfile0.00110.1341100.0001
String conversion0.00000.001040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/emphasize.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/emphasize.tplEdit templateOverride template
2content/datatype/view/ezxmltags/li.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/li.tplEdit templateOverride template
1content/datatype/view/ezxmltags/ol.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/ol.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 8

Time used to render debug report: 0.0001 secs