Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

is there a way to set non relative paths when using "insert image" in the WYSIWYG?


Go to End


2 Posts   1276 Views

Avatar
Chris J

Community Member, 10 Posts

9 March 2011 at 2:03pm

I'm not using <% base_tag %> in my templates.

In the WYSIWYG an image inserted from the assests folder for example does so like: src="asseets/... where if viewed in a page like examplesite.com/product/ will be looking for the image in the product/assets folder which does not exist.

the image shows fine in the WYSIWYG because the admin interface uses a base tag.

Is there a simple way to have a preceding slash in the image's src value as default?

Or even a dirty hack to just make it work until I can figure out a neater way?

Thanks in advance

Avatar
Chris J

Community Member, 10 Posts

10 March 2011 at 12:41pm

Nevermind about this post...

I have realised that Silverstripe needs the base tag for other things (like the admin login page) and uses it in the admin section anyway, so it's probably better to keep it.

I would like to see this base tag thing as optional rather than forced but it's not all bad...