URL of Media Folder in Content

Author Message

Bruce Morrison

Friday 03 February 2006 12:26:10 am

Howdy all

I got a client that wants to add a media folder to their eZ site. The problem is that the Media tab get the /media url and the media folder under the content gets /media__1

While this works for me - the client is very keen to get rid of the __1 in the URL.. Anyone have some pointers that will not upset all the content under the media tab ?

TIA
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

Ɓukasz Serwatka

Thursday 09 February 2006 12:40:13 am

Hi Bruce,

Have you tried rename original media folder e.g to "Media folder" (media_folder in url) then update configuration in upload.ini and content.ini?

upload.ini

# Which root node to fetch locations from
# Either use a node ID or a node path (e.g. media )
# - content - The content structure
# - users   - The user tree
# - media   - Media tree for images, files and media
RootNode=43

content.ini

ClassSpecificAssignment[]=image;media_folder/images
ClassSpecificAssignment[]=video;media_folder/multimedia
ClassSpecificAssignment[]=file;media_folder/files

Now upload will be handle correct, and you can have clean media in url in content. This should work.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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

Main resources:

Total runtime0.0147 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.0048 589.0234152.6250
Module start 'layout' 0.00480.0021 741.648439.4453
Module start 'content' 0.00690.0050 781.093889.4141
Module end 'content' 0.01190.0028 870.507834.3047
Script end 0.0147  904.8125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002516.8124140.0002
Check MTime0.00127.9909140.0001
Mysql Total
Database connection0.00075.065610.0007
Mysqli_queries0.001913.050030.0006
Looping result0.00000.068010.0000
Template Total0.002617.610.0026
Template load0.001611.142910.0016
Template processing0.00096.423810.0009
Override
Cache load0.00074.793610.0007
General
dbfile0.00085.525380.0001
String conversion0.00000.038940.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