For images in my blog entries, I am using an img src like this:
src="http://localhost/LiquorAndDrink_DotNetNuke6/Portals/0/images/article16_Brinleys.jpg"
When I moved to a production test domain, these src's stayed the same and are still pointing back to localhost. If I insert an image using the insert media function in the HTML editor, I get a src like this:
src="/liquoranddrink_dotnetnuke6/Portals/0/images/article16_Brinleys.jpg"
That doesn't look like it would work that much better as I can't assume the Portal ID will be 0 in production. For all other images I have used the DNN Token [Portal:HomeDirectory] which I am thinking will work in all cases whether in dev or production no matter the Portal ID. Is this a good way to define the image src?
If it is a good way, how can I access this token from within a blog entry? I tried the token and it doesn't get replaced.
Currently there is no way to deal with the similar issue and you have to manually modify those relative 'src' when you moving them. The SQL script way will be a better solution. And tokens not supported in the HTML editor. If you need any help about SQL script, you can contact us via email. Hope it helps.
For the benefit of the community and to keep information here helpful to everyone who visits, please observe the following posting guidelines: