Media Section

Author Message

rhodri davies

Friday 31 October 2003 6:01:43 am

Hi,

This maybe a really dumb question but I don't care - How do I access images that are stored under the media section in the admin section from the templates?

Regards

Rhodri Davies

Mark Overduin

Friday 16 January 2004 7:02:44 am

Yes, I'd like to know this too........

The media section is used to store images, flash files and stuff like that, right? And it actually is a part of the content section.

Hans Melis

Friday 16 January 2004 7:52:00 am

I'd guess it works the same as a regular fetch, just with a different node id.

{let imageRoot=fetch('content', 'list', hash(parent_node_id, <node_id_of_media_node>))}

That should fetch all top-level stuff under the Media node. Note the "should", I've never tried it myself.

--
Hans

Hans
http://blog.hansmelis.be

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 31 2025 01:30:14
Script start
Timing: Jan 31 2025 01:30:14
Module start 'layout'
Timing: Jan 31 2025 01:30:14
Module start 'content'
Timing: Jan 31 2025 01:30:14
Module end 'content'
Timing: Jan 31 2025 01:30:14
Script end

Main resources:

Total runtime0.0292 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 588.0078151.1953
Module start 'layout' 0.00690.0050 739.2031220.6406
Module start 'content' 0.01190.0150 959.8438997.7266
Module end 'content' 0.02690.0022 1,957.570329.9922
Script end 0.0291  1,987.5625 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002910.1006140.0002
Check MTime0.00113.8424140.0001
Mysql Total
Database connection0.00144.694310.0014
Mysqli_queries0.00289.576630.0009
Looping result0.00000.112810.0000
Template Total0.00165.610.0016
Template load0.00113.733710.0011
Template processing0.00051.803510.0005
Override
Cache load0.00072.339010.0007
General
dbfile0.00031.008880.0000
String conversion0.00000.043340.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