If you want to keep your skin images or any other type of file that is related to your skin into skin directory, you need to get the path of that skin directory. To resolve the path of your skin directory DotNetNuke provides a property named “SkinPath” which belongs to DotNetNuke.UI.Skins.Skin class. You need to use <%= SkinPath %> to get the path of skin directory.
If you stored an image named “nav_back.jpg” in your skin directory and you want to set it as a background of a <td>, your code should be like -
<td style="background-image: url(<%= SkinPath %>nav_back.jpg);">
No comments:
Post a Comment