Forums / Setup & design / New pagelayout for article view ?
André Deschamps
Thursday 25 May 2006 6:23:08 am
Hello !
Finally I go on with ezPublish. (Could solve the url redirection problem - thanks for support - and can now fully appreciate to work with it. Great program.)
Would like to have a little help to customize the pagelayout. I want to show a left menu by defautl, but not in article view. How to manage this.
I guess that the pagelayout.tpl has to be modified to achieve this, but how ?
Unfortunately I can't write the code myself to switch in article view in "no left menu mode" and to keep it when not in article view.
Any help would be appreciated
Andre
Pascal France
Thursday 25 May 2006 12:43:59 pm
Hi André,
I think you are French, so I would suggest you to read the eZ publish doc that you can find in french (not all the doc, but enough to know what you need to begin with eZP):
http://www.linuxorable.net/ez_publish/index.php/linuxorable/documentation_ez_publish
Related to your override problem, you can read:
http://www.linuxorable.net/ez_publish/index.php/linuxorable/documentation_ez_publish/templates_modeles/the_template_override_system_systeme_de_surcharge_de_template
Regards
Pascal
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
Marcin Drozd
Friday 26 May 2006 1:44:08 am
Hi André
You can override pagelayout.tpl for class 'article' and remove a part of template code (with {menu name=LeftMenu} and change {$maincontentstyle} in <div id="maincontent" class="{$maincontentstyle}"> orin your original pagelayout.tpl add code
{if $module_result.content_info.class_identifier|eq('article')} do without leftmenu {else} with leftmenu {/if}
http://ez-publish.pl
Saturday 27 May 2006 6:19:20 am
Hello Pascal !
Thank you for the doclink. Excellent work.
Hello Marcin !
Thanks for your generosity. Very helpful.
André