Forums / Developer / template + variable $module_result

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