I am trying to register a custom URL basepath. The sole purpose of this is to be able to enter the name of an image without having to type the full path everytime, for example:
I want this:
<img src="assets/content/blog/images/myimage.jpg">
To turn into something like this:
<img src="[[!customBasepath]]myimage.jpg">
I realize I could create a chunk with this in it: "assets/content/blog/images/" and use it like this:
<img src="[[$customBasepath]]myimage.jpg">
But almost certain this is not the best way to go about accomplishing this..
Any insight is always appreciated. Thank in advance..