Force section (pagelayout) on viewing other section's nodes?

Author Message

Paul Borgermans

Friday 23 May 2003 4:31:17 am

Hello,

Naive question: Is it possible to display content that belongs to section A (which uses normally pagelayout_section_A.tpl) to display with another pagelayout (which uses pagelayout_section_B), possibly with a parameter in the URL?

Looking at kernel/content/view.php it is not possible without changing the code, but I hope someone proves me wrong.

Something similar is possible with siteaccess (as you can do with the preview function in the admin interface), but uses a form element.

The why:
In developing a section and template where a user has defined his own structure (a configurabel "my site") we would need this feature. The basic strategy followed is that we define a node tree in a dedicated section which has nodes corresponding to individual users or groups of users (the user node has one related obect which is one if these nodes). These user-related nodes have then a series of related objects which are pointers to the elements a user wants in his page + some "my site" specifics like collaboration messages and style sheets to use. Currently this works OK as some kind of a dynamic "bookmark" page, but we would like to display the content also in the "my site" layout.

Any thoughts or solutions?

Tx

Paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Bruce Morrison

Friday 23 May 2003 6:34:09 pm

Hi Paul

I believe that the features you describe will be in the next release.

However in the meantime is it possible to use the layout/set feature (used for print friently pages) e.g.
/layout/set/{$layout_name}/content/full/1234
to achieve what you want to do?

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Paul Borgermans

Saturday 24 May 2003 3:57:08 am

Thanks for your input Bruce,

I thought about it, and will use that approach for the time being. I'm not sure the concept for "My Site" and dedicated pagelayout should remain beyond the "first click". If it does, then all content/view/ templates should check which layout they are in and adjust the build-up of links to reflect the /set/pagelayout part.

Next week we should see with the first 3.1 beta if the nextrelease will make this easier.

Regards

Paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

StoneFly Techonology

Monday 02 June 2003 4:29:34 pm

Paul,

How has the print-layout workaround being working for you?

-Rusty

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 11:33:19
Script start
Timing: Jan 18 2025 11:33:19
Module start 'layout'
Timing: Jan 18 2025 11:33:19
Module start 'content'
Timing: Jan 18 2025 11:33:20
Module end 'content'
Timing: Jan 18 2025 11:33:20
Script end

Main resources:

Total runtime1.0612 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.0052 589.3047152.6563
Module start 'layout' 0.00520.0103 741.960939.5078
Module start 'content' 0.01551.0441 781.4688592.2344
Module end 'content' 1.05950.0016 1,373.703112.0938
Script end 1.0611  1,385.7969 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.3786160.0003
Check MTime0.00160.1525160.0001
Mysql Total
Database connection0.00090.084310.0009
Mysqli_queries0.997293.9696620.0161
Looping result0.00080.0786600.0000
Template Total1.012795.420.5063
Template load0.00220.207220.0011
Template processing1.010495.219720.5052
Template load and register function0.00010.010210.0001
states
state_id_array0.00170.161510.0017
state_identifier_array0.00140.133120.0007
Override
Cache load0.00190.1761330.0001
Sytem overhead
Fetch class attribute can translate value0.00120.113230.0004
Fetch class attribute name0.00110.103660.0002
XML
Image XML parsing0.00110.103230.0004
class_abstraction
Instantiating content class attribute0.00000.001270.0000
General
dbfile0.00090.0854230.0000
String conversion0.00000.000840.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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 19
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs