I am using [portal:url] for generating the path to my images, like :
The output contains the localiztion and obviusly the path is wrong:
What is the best way to working with images in a Html module ?
You should use relative URLs by omitting the http://[portal:url]/ completely, i.e. by typing /portals/0/Images/Carousel/50fc4d56-c5ec-4907-a0e3-9f40af82dcc9.jpg as the src attribute for an image.
If you are talking about SKIN then you can use <%=SkinPath%> it will return you the path up till your skin folder in DNN.
These Forums are dedicated to discussion of DNN Platform.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.