Jump to:

23376 Posts in 18214 Topics by 2867 members

General Questions

SilverStripe Forums » General Questions » is there a way to set non relative paths when using "insert image" in the WYSIWYG?

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

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

Page: 1
Go to End
Author Topic: 685 Views
  • Chris J
    Avatar
    Community Member
    10 Posts

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

    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

  • Chris J
    Avatar
    Community Member
    10 Posts

    Re: is there a way to set non relative paths when using "insert image" in the WYSIWYG? Link to this post

    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...

    685 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.