If I add a link to an internal url I get a href="/{locallink:1557}" ie the link is to the document id=1557 so any changes to the page name, sitemap location mean the link isn't broken.
however, adding a local image from media gives src="/media/1812/message-impression-medium.gif"
Seems a bit strange that this isn't "/{localMedia:1812}"
As the scenario goes, I;ve added an image... create all my pages with a link to that media.
I then realise it was the wrong image, so go to the media section and locate my item and change the image... the link is then something completely different (if I say remove the previous image then the id remains the same but the image name doesn't, if I don't say remove the previous image then I have an orphaned image (eg in the media folder as a file but no longer in the media section of umbraco))
So for instance the url becomes
.. "/media/1557/newimage.gif" and all my pages have broken image links.
I thought the idea of the media area was so that the content has a reference to a media item, and not a static url to a point in time url of a media item...
I agree on that. I was almost certain I would find a issue on Codeplex for this, but I didnt. Someone? For a modern great cms like Umbraco media in TinyMce really should be handled gracefully
imho. Will require some attention both in the Html rendering functions as in TinyMce-code I'm sure.
I guess that the working alternative most people use is using a media picker instead. Uploading an image with the exact same filename wont work either as the new upload will create a new id-subfolder aswell.
Tokenised local links, but not local media?
If I add a link to an internal url I get a href="/{locallink:1557}" ie the link is to the document id=1557 so any changes to the page name, sitemap location mean the link isn't broken.
however, adding a local image from media gives src="/media/1812/message-impression-medium.gif"
Seems a bit strange that this isn't "/{localMedia:1812}"
As the scenario goes, I;ve added an image... create all my pages with a link to that media.
I then realise it was the wrong image, so go to the media section and locate my item and change the image... the link is then something completely different (if I say remove the previous image then the id remains the same but the image name doesn't, if I don't say remove the previous image then I have an orphaned image (eg in the media folder as a file but no longer in the media section of umbraco))
So for instance the url becomes
.. "/media/1557/newimage.gif" and all my pages have broken image links.
I thought the idea of the media area was so that the content has a reference to a media item, and not a static url to a point in time url of a media item...
Have I got this completely wrong?????
forgot again... (umb: 4.5.2, iis7, .net3.5sp1, iis7) -- and edit in the forum doesn't appear to work
Hi Mike,
I agree on that. I was almost certain I would find a issue on Codeplex for this, but I didnt. Someone? For a modern great cms like Umbraco media in TinyMce really should be handled gracefully imho. Will require some attention both in the Html rendering functions as in TinyMce-code I'm sure.
I guess that the working alternative most people use is using a media picker instead. Uploading an image with the exact same filename wont work either as the new upload will create a new id-subfolder aswell.
Regards
Jonas
I founf that if you check the remove previous image then it reuses the id-subfolder.
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.