when writing image links (the 'img' tag), can Cascade use absolute URLs instead of relative?
Cascade v6.76 (upgraded on 2011-03-16).
For many reasons (not the least of which is compatibility with Facebook link thumbnails) we need our image links to use absolute URLs. Cascade publishes an "img" tag with a "src" attribute like this:
src="images/logo.gif"
where the image URL is relative to the HTML page that it's on. Instead, I need the "src" attribute to be like this:
src="/it/images/logo.gif"
so that the "img" tag would work no matter what page it's on. I recall inquiring about this several years ago and it was not possible. Is there a way to do this today?
Discussions are closed to public comments.
If you need help with Cascade CMS please
start a new discussion.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
1 Posted by Penny on 15 Mar, 2012 02:02 PM
Hi Scott,
I know this response has been a long time coming but I can think of two ways of accomplishing this.
1) Default the page to Maintain Absolute Links on the System tab. This may have other unwanted implications though b/c all links will be rewritten as absolute, not just src.
2) My other suggestion is to put your images in a separate site. When you do this, all links will have the Site URL prepended to them to make them absolute and even fully qualified.
Above said, I would recommend adding this to the Idea Exchange as a possible new preference.
I hope this helps!
Charlie Holder closed this discussion on 30 Mar, 2012 11:44 AM.