Dual main different pagelayouts

Author Message

Softriva .com

Thursday 24 June 2010 1:44:39 am

Hello,

What is best practice to do the following:

One website that has two totally different pagelayouts. When first ezp starts it should show one layout with its own menus, graphics, structure, content, etc. When the user clicks on a specific button, a new layout with its own menus, graphics, structure, content, etc. should appear.

How should I go about doing this?

Thank you

OOzy

Gaetano Giunta

Thursday 24 June 2010 2:49:16 am

You could use an {if} inside the main pagelayout, or some more advanced/convoluted techniques.

Depending on your scneario one might be better than the other:

- could the address of pages after the switch be different? (ie. use another siteaccess)

- after the user 'clicke the button', shall he stay forever with the new layout? shall this persist after he logs out and comes back?

- the new layout shall affect also non-content pages such as user/login, content/serach etc?

Principal Consultant International Business
Member of the Community Project Board

Softriva .com

Thursday 24 June 2010 6:31:44 am

Thank you Gaetano

There is no login activities.

Both layouts are magazine type sites.

The each layout has it is own menu and there is one common menu between both. Therefore, each layout has two menu with one common menu between them.

Thx

OOzy

Gaetano Giunta

Thursday 24 June 2010 7:29:58 am

Then you might use two different siteaccesses, each with a different main design and a common design set up as first one in AdditionalSiteDesignList. Place your pagelayouts in your different designs.

Principal Consultant International Business
Member of the Community Project Board

Softriva .com

Friday 25 June 2010 12:33:20 am

Hello,

How about languages? The site is bilingual. Will this confuse the issue?

Any ideas?

Gaetano Giunta

Friday 25 June 2010 12:47:57 am

Assuming you are using one siteaccess per language, yes that will have an impact. It means you will have to create 4 siteaccesses in the end

Principal Consultant International Business
Member of the Community Project Board

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 18 2025 04:26:36
Script start
Timing: Jan 18 2025 04:26:36
Module start 'layout'
Timing: Jan 18 2025 04:26:36
Module start 'content'
Timing: Jan 18 2025 04:26:37
Module end 'content'
Timing: Jan 18 2025 04:26:37
Script end

Main resources:

Total runtime0.6259 sec
Peak memory usage4,096.0000 KB
Database Queries66

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0046 591.0938152.6250
Module start 'layout' 0.00460.0019 743.718839.4453
Module start 'content' 0.00650.6178 783.1641562.5000
Module end 'content' 0.62430.0015 1,345.664116.4766
Script end 0.6258  1,362.1406 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.4798160.0002
Check MTime0.00120.1967160.0001
Mysql Total
Database connection0.00050.076210.0005
Mysqli_queries0.574091.7174660.0087
Looping result0.00060.0890640.0000
Template Total0.597695.520.2988
Template load0.00230.359820.0011
Template processing0.595495.130220.2977
Template load and register function0.00010.016210.0001
states
state_id_array0.00190.301710.0019
state_identifier_array0.00140.224020.0007
Override
Cache load0.00190.3019330.0001
Sytem overhead
Fetch class attribute can translate value0.00060.088320.0003
Fetch class attribute name0.00120.185870.0002
XML
Image XML parsing0.00060.092720.0003
class_abstraction
Instantiating content class attribute0.00000.002790.0000
General
dbfile0.00080.1218160.0000
String conversion0.00000.001040.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
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 17
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs