Forum
Full URLs for images
I was wondering if there's a setting to have perch include the entire URL of an image asset?
For example. currently in the HTML the img src would be:
<img src="/perch/resources/my_pic.jpg">
What I would like is an image source of:
<img src="https://www.mysite.com/perch/resources/my_pic.jpg">
Is this currently possible? If so, how? If not, I guess I try something else.
Thanks,
Chris
You can change the Website URL in Perch settings, which should make that possible. The way Perch is already handling it (which is root relative) however, is really the best way to have it if you're going to be moving your site around from local/staging/production environments at any time.
You should be able to add the domain to the
PERCH_RESPATH
setting inconfig.php
.Is there are particular reason why? Under most circumstances you wouldn't want that.
Thanks Drew and Phillip. I'll give that a try.
The reason I need to do that is we have a few pages that we want the marketing person to be able to make changes on and then send out as an eblast. We don't trust them with actual HTML edits. Eblasts require the full path for the image, and marketing wanted to be able to use a different image, so I was looking at Perch as a solution for them.
I'll let you know how it works out. Thanks!