New pagelayout for article view ?

Author Message

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}">
or
in 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

André Deschamps

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é

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 19 2025 03:31:50
Script start
Timing: Jan 19 2025 03:31:50
Module start 'layout'
Timing: Jan 19 2025 03:31:50
Module start 'content'
Timing: Jan 19 2025 03:31:52
Module end 'content'
Timing: Jan 19 2025 03:31:52
Script end

Main resources:

Total runtime1.5820 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0078 589.1563152.6250
Module start 'layout' 0.00780.0045 741.781339.4609
Module start 'content' 0.01231.5683 781.2422539.7266
Module end 'content' 1.58060.0014 1,320.968812.1563
Script end 1.5820  1,333.1250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00440.2786160.0003
Check MTime0.00150.0950160.0001
Mysql Total
Database connection0.00190.119510.0019
Mysqli_queries1.526196.4621620.0246
Looping result0.00060.0395600.0000
Template Total1.540597.420.7703
Template load0.00230.144320.0011
Template processing1.538297.230020.7691
Template load and register function0.00020.010710.0002
states
state_id_array0.00180.113110.0018
state_identifier_array0.00120.077620.0006
Override
Cache load0.00190.1174300.0001
Sytem overhead
Fetch class attribute can translate value0.00140.086030.0005
Fetch class attribute name0.00120.073640.0003
XML
Image XML parsing0.00030.018830.0001
class_abstraction
Instantiating content class attribute0.00000.000540.0000
General
dbfile0.00360.2259100.0004
String conversion0.00000.000640.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
4content/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
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/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: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs