Using the 'media'-section

Author Message

Marcus Ilgner

Monday 08 December 2003 9:42:55 am

Hi folks,

I fear that this is some kind of newbie-question but I'm currently stuck with this one:
I want to provide a number of media-files (mp3, mpg etc) on the page and so I guessed that this is what the "media"-module is for. So I created some file-objects in this section and they are displayed with a fancy icon in the admin interface.
Now there was the question on how to show them on the actual site. I intuitively did the following:
1) create a "Media-Section" with "media" not "content" as its module
2) assign this section to a folder in the root of the content module.
3) try to access this folder
But nothing is displayed in this folder (it's called 'Medien').
So I tried to access the module directly (via the url 'index.php/media') instead of through the folder (via url 'index.php/gerig/medien').
This somehow (I don't understand why) resolves into 'index.php/media/media/media' and then tells me 'object not available'.

The obligatory and ceremonial cache-clearing ;) didn't help either.

I wondered if I could fetch() some objects from the media-section by specifying 'media' as the first parameter for fetch(). But then I (as I already had anticipated) I received an error about a missing media/function_definition.php.

I'd really appreciate if someone could give me a hint on what I did wrong or where to find information on how to use the media-section properly.

Greetings
Marcus

Dominik Pich

Thursday 11 December 2003 1:45:05 am

Ok, so the media module is no module but a section of the content module.

I realized that but cant use the media TAB in the admin interface.

The tab points at node 43 but is always empty and shows a completely wrong path.
The media folder under content links to node 184 but belongs to the media-SECTION and therefore activates the media TAB...

The problem I have is that I dont think I'm doing it correctly.
I shouldn't have to have that folder under content.

Any help is greatly appreciated,
Dominik

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 03:42:53
Script start
Timing: Jan 31 2025 03:42:54
Module start 'layout'
Timing: Jan 31 2025 03:42:54
Module start 'content'
Timing: Jan 31 2025 03:42:54
Module end 'content'
Timing: Jan 31 2025 03:42:54
Script end

Main resources:

Total runtime0.0243 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.0050 588.1250151.2109
Module start 'layout' 0.00500.0039 739.3359220.6875
Module start 'content' 0.00890.0138 960.0234997.6797
Module end 'content' 0.02270.0015 1,957.703129.9922
Script end 0.0242  1,987.6953 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002610.5661140.0002
Check MTime0.00114.3771140.0001
Mysql Total
Database connection0.00072.944610.0007
Mysqli_queries0.00229.055030.0007
Looping result0.00000.090510.0000
Template Total0.00114.610.0011
Template load0.00093.707510.0009
Template processing0.00020.874010.0002
Override
Cache load0.00062.615210.0006
General
dbfile0.00208.063080.0002
String conversion0.00000.033440.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.0002 secs