Forums / General / URL of Media Folder in Content

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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