When editing the content for a bunch of HTML/Text modules, I would like to use the token replacement [Portal:homedirectory] in a src path for an image instead of hard-coding the path to the image for my portal and it's subdirectory.
BUT, DNN outputs the path of the portal AND the token tag [Portal:homedirectory] in plaintext in the src path which breaks the URL for the image.
HTML content starts like this: <img src="[Portal:homedirectory]Images/image.jpg" />
Output looks like this: <img src="/mysite/portals/0/[Portal:homedirectory]Images/image.jpg" />, which clearly won't work.
It should be like this: <img src="/mysite/portals/0/Images/image.jpg" />, which works as planned with an href.
I would like to do this so that portals can share some of the same HTML code and it's easy to paste-in, instead of actually typing out the entire path, or worse, having to use the file insert dialogue box which is time consuming if you have a lot of pages or images.