Quick Nav:  Online Store   |   Login | Register

pageicons again

Rate this topic:

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
AuthorMessages
peter schotman
<20 Posts
Posts:17


08/14/2008 8:24 AM  

Hi John,

I am struggling with a template yet again. How do I reference the pageicon path in a template?

It is a bit of a catch right now: if I upload a page icon to the root of the website, AND THEN copy that page icon to the skin folder it works fine.

However, if I upload the page icon to the skin folder directly, it does not work.

The following code gets rendered: < img title="" alt="" src="/dnn482/Portals/1/Skins/ce-mast/Skins/ce-mast/c2.jpg"/ >As you can see, the relative skin path gets added twice

Conclusion: I need to have to copies of the page icon in the portal (which my client will not understand...)

 

Please help me.

Peter

now my anchor tag looks like this: < a href="{Tab.Url}" title="{Tab.Title}" >< img src="{Tab.IconFile}" alt="" title="" / >< /a >


Peter Schotman
DotNetNuke professional
Cestus Websites
Arnhem, Gelderland, The Netherlands
John Mitchell
Posts:3478


08/21/2008 10:27 AM  
What happens if you do it with a leading slash like this:
src="/{Tab.IconFile}"
peter schotman
<20 Posts
Posts:17


08/21/2008 2:21 PM  

John,

Just the slash does not work.

The following works on my local machine: /dnn485/portals/1/{Tab.IconFile}

So on production the following would work: /portals/"n"/{Tab.IconFile}

This is less than optimal, because of the hardcoded path. So a token for that would be great.

Peter


Peter Schotman
DotNetNuke professional
Cestus Websites
Arnhem, Gelderland, The Netherlands
John Mitchell
Posts:3478


08/22/2008 7:23 AM  
Ok, I'll add that token today and send you the new DLL.
Host Account
<250Posts
Posts:104


08/25/2008 12:03 PM  
Hi Peter,
I just sent you the new DLL.
peter schotman
<20 Posts
Posts:17


08/26/2008 9:56 AM  
can you tell me what the token is ;)

Peter Schotman
DotNetNuke professional
Cestus Websites
Arnhem, Gelderland, The Netherlands
John Mitchell
Posts:3478


08/26/2008 10:13 AM  
I guess that might help. :)

{Page.PortalId}
John Mitchell
Posts:3478


08/26/2008 10:13 AM  

Or {Tab.PortalId}

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.



ActiveForums 3.7
Powered by: Snapsis Software