pagelatout.tpl

Author Message

justin kazadi

Tuesday 08 April 2008 1:45:29 am

Hello all,

I want to know how to publish ( from my pagelayout.tpl ) an instance of article ,

frontpage , image ,.... since $module_result. When a write {$module_result.content} all

the contents (by default of ez publish) are displayed.

There is samebody who can help me.

Thanks in advance.

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

Xavier Gouley

Tuesday 08 April 2008 5:25:10 am

Hello,

By "how to publish", do you mean you want to insert a new article in the database ? Or you want to "show" an existing article (or just one attribute) in the pagelayout ?

The $module_result.content is the result given by a full view, computed with the appropriated template (often in the override/templates/full/ folder). So you must know that the $module_result.content (the full view) is computed BEFORE the pagelayout.
The content you requested by your URL is computed, inserted in the $module_result.content, and then pagelayout use it.

If you want to use a different content in your pagelayout (for example another content than the requested content in the URL), you must use a fetch('content', 'node', ...) function.

Please explains more precisely what you want to do.

Thanks,

Good luck !

Xavier Gouley
http://www.gxapplications.com/eng_blog/GX-Admin-s-Blog/

justin kazadi

Wednesday 09 April 2008 6:46:45 am

Hi , thanks Xavier Gouley

i have found the answer in what you have said.

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

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