We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum

Forum

Thread tagged as: Question, Configuration

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="http://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

Christopher Whissen

Christopher Whissen 0 points

  • 4 years ago

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.

Drew McLellan

Drew McLellan 2638 points
Perch Support

You should be able to add the domain to the PERCH_RESPATH setting in config.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!