Forums / General / URL of Media Folder in Content
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 ?
TIABruce
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