Related nodes (or something like that)

Author Message

Roy Bøhmer

Thursday 15 July 2004 4:13:42 am

Hi!

Any suggestions on how to select an abitrary number of topstories to be displayed in a folder, ordered in a spesific way and connected to nodes rather than objects?

I've made my own folder-class which main purpose is to list topstories, much like a newspaper. I want the user to be able to choose which articles to show on the frontpage (the folder), so I decided to use a Objectrelationlist-attribute. This will allow me to select as many articles as I want, and order them the way I want. Perfect!

But...
When doing so I'm forced to link to the main_node. Or am I wrong? As far as I know, when choosing an object for the ORL only the object_id is stored. In that way I loose the option to control which node (design) the user will see when he/she clicks the topstory.

I've made my own datatype which stores the node-id, but it is more a paralell to Objectrelation (not ORList). Additional my hack is way to user-hostile when it comes to choose the node. (No browsing allowed)

Any suggestions?

Roy

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 20 2025 02:29:41
Script start
Timing: Jan 20 2025 02:29:41
Module start 'layout'
Timing: Jan 20 2025 02:29:41
Module start 'content'
Timing: Jan 20 2025 02:29:42
Module end 'content'
Timing: Jan 20 2025 02:29:42
Script end

Main resources:

Total runtime0.8979 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 589.2734152.6406
Module start 'layout' 0.00630.0034 741.914139.4766
Module start 'content' 0.00970.8870 781.3906401.2891
Module end 'content' 0.89670.0012 1,182.67978.1406
Script end 0.8979  1,190.8203 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3635160.0002
Check MTime0.00140.1525160.0001
Mysql Total
Database connection0.00120.130510.0012
Mysqli_queries0.862496.0445460.0187
Looping result0.00040.0441440.0000
Template Total0.867696.620.4338
Template load0.00220.240920.0011
Template processing0.865496.374520.4327
Template load and register function0.00020.025310.0002
states
state_id_array0.00090.101210.0009
state_identifier_array0.00060.067520.0003
Override
Cache load0.00180.1970110.0002
Sytem overhead
Fetch class attribute can translate value0.00070.079910.0007
Fetch class attribute name0.00080.092710.0008
XML
Image XML parsing0.00010.011810.0001
class_abstraction
Instantiating content class attribute0.00000.000810.0000
General
dbfile0.00060.0673100.0001
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
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 6
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs