Jump to content

Absolute URLs for image Paths


Recommended Posts

The current use of relative urls (in my opinion) is great. However, I have a project that requires image paths to be absolute (using the source code module so the code can be dropped in different pages outside of processwire), ie: http://example.com/files/1024/fileName.jpg . Is this possible to do in processwire? I had searched around but couldn't find anything regarding the topic.

Sorry, I forgot to post this. I am currently calling images like so:

<?php echo $page->headerImg->url; ?>

which produces: 

<img src="/testing/site/assets/files/1035/header.jpg" >
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...