template + variable $module_result

Author Message

anne martinet

Monday 09 June 2008 9:11:28 am

hello world!

I create two siteaccess (one public and another admin). They are the same var folder, and the same database.
The public has folders with descriptions.

I create this pagelayout.tpl in /var/www/ezpublish/design/my_siteaccess_admin/templates/ :

<html>
  <head/>
    
  <body>
          Le contenu : {$module_result.content}

  <body>
</html>

Of course I have folder with description for the public siteaccess.
I obtain this result :

Le contenu :

I don't understand why $module_content haven't content.

Suggestions?

Thanks

justin kazadi

Tuesday 10 June 2008 6:45:56 am

hi,
why did you create the admin et public siteaccess whereas after the installation of ez the siteaccess public and admin are created.
check how you have created your siteaccess. i think you can put your pagelayout.tpl in the default design/templates folder of the current siteaccess.

The theory is when we know everything and nothing works.
The practice is when everything works and nobody knows why.
If the practice and theory are met, nothing works and we do not know why.

Albert Einstein

anne martinet

Tuesday 10 June 2008 7:47:52 am

Thank you for your help.

I create these siteaccess because I find exercice for understood how create siteaccess.

And I find my error. It's in the onfiguration of my siteaccess. In the file /settings/siteaccess/my_siteaccess/site.ini.append.php, I forgot this line:

[DesignSettings]
SiteDesign=nom_mon_siteaccess
AdditionalSiteDesignList[]=ezwebin     {*it's this line*}
AdditionalSiteDesignList[]=base

Thanks again

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 20 2025 17:30:39
Script start
Timing: Jan 20 2025 17:30:39
Module start 'layout'
Timing: Jan 20 2025 17:30:39
Module start 'content'
Timing: Jan 20 2025 17:30:39
Module end 'content'
Timing: Jan 20 2025 17:30:39
Script end

Main resources:

Total runtime0.0162 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 587.9141151.2109
Module start 'layout' 0.00520.0031 739.125036.6484
Module start 'content' 0.00830.0064 775.773490.2813
Module end 'content' 0.01470.0015 866.054733.9922
Script end 0.0162  900.0469 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002515.3008140.0002
Check MTime0.00116.6674140.0001
Mysql Total
Database connection0.00074.557210.0007
Mysqli_queries0.002716.609630.0009
Looping result0.00000.135310.0000
Template Total0.00117.010.0011
Template load0.00095.352710.0009
Template processing0.00031.664610.0003
Override
Cache load0.00063.873410.0006
General
dbfile0.001710.664280.0002
String conversion0.00000.041240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs