Is there a way to pass in the actual name of a folder name from the Media section?
For instance, I have some Javascript that I may need to pass in the the actual Folder name then get the images in there. I see that images get put into "folders" but I see each image not matter if in the Media seciton get put into a media/uniqueNumberGivenByUmbraco/imageName.jpg but the path does not necessarily reflect the Folder we put the images in the media section. Such as /FolderWeNamedInMediaSection/imageName.jpg, /FolderWeNamedInMediaSection/imageName2.jpg, /FolderWeNamedInMediaSection/imageName3.jpg.
On the server I see the /media/ folder URLs look like this media/uniqueNumberGivenByUmbraco/imageName.jpg. But each image is put into a unique folder number. Is there a way to have Umbraco make the URLs for all the images look like /FolderWeNamedInMediaSection/imageName.jpg?
Media folder names
Is there a way to pass in the actual name of a folder name from the Media section?
For instance, I have some Javascript that I may need to pass in the the actual Folder name then get the images in there. I see that images get put into "folders" but I see each image not matter if in the Media seciton get put into a media/uniqueNumberGivenByUmbraco/imageName.jpg but the path does not necessarily reflect the Folder we put the images in the media section.
Such as /FolderWeNamedInMediaSection/imageName.jpg, /FolderWeNamedInMediaSection/imageName2.jpg,
/FolderWeNamedInMediaSection/imageName3.jpg.
On the server I see the /media/ folder URLs look like this media/uniqueNumberGivenByUmbraco/imageName.jpg. But each image is put into a unique folder number. Is there a way to have Umbraco make the URLs for all the images look like /FolderWeNamedInMediaSection/imageName.jpg?
Thanks in advance.
That probably won't be possible with the media section. The folder names in Umbraco and the folder names on the server are not related to each other and it will probably be pretty hard to to this. The folder is created in the upload datatype. It uses the property id to create a folder. Have a look here for the source: http://umbraco.codeplex.com/SourceControl/changeset/view/751c9aa11bbd#components%2feditorControls%2fuploadfield%2fuploadField.cs
Maybe this topic can help: http://our.umbraco.org/forum/templating/templates-and-document-types/27927-Media-Upload-into-same-directory
Jeroen
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.