Related objects: displaying a tree or list

Author Message

Bruce Morrison

Wednesday 08 January 2003 10:36:39 pm

In an XML edit item (e.g. article body) you can embed or link to existing objects dependant on the view attribute of the object tag.

This works for all types of object including folders. However with folders it will only display the selected folder.

Is it (or willl it be) possible to display the selected folder and it's children (tree) etc.

This feature would be very handy.

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

Bård Farstad

Wednesday 15 January 2003 1:39:38 am

> In an XML edit item (e.g. article body) you can embed or
> link to existing objects dependant on the view attribute of
> the object tag.
>
> This works for all types of object including folders.
> However with folders it will only display the selected
> folder.
>
> Is it (or willl it be) possible to display the selected
> folder and it's children (tree) etc.
>
> This feature would be very handy.
You can easily make folders list n number of children. All you need to do is to create a custom template for folder classes.

Have a look in the folder:
/design/standard/override/templates/content/view/

embed_class_5.tpl is the custom template for the image class. You need to create an override template for the folder class ( 1? ) embed_class_1.tpl and just make the template do whatever you like.

--bård

Documentation: http://ez.no/doc

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

Main resources:

Total runtime0.0185 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 588.1484152.6406
Module start 'layout' 0.00690.0039 740.789139.4766
Module start 'content' 0.01080.0054 780.265689.3984
Module end 'content' 0.01620.0022 869.664134.3047
Script end 0.0184  903.9688 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002714.8531140.0002
Check MTime0.00116.2224140.0001
Mysql Total
Database connection0.00147.533810.0014
Mysqli_queries0.003418.229230.0011
Looping result0.00000.161510.0000
Template Total0.00189.510.0018
Template load0.00095.055710.0009
Template processing0.00084.422610.0008
Override
Cache load0.00063.457510.0006
General
dbfile0.00031.475580.0000
String conversion0.00000.065940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs