This project is read-only.

IconFile property/token

May 7, 2011 at 3:03 PM

And one more item while I'm busy working with this...

I've added the page icon to the menu items by using this code:

<img border="0" align="absmiddle" src="/Portals/[#PortalID]/[#IconFile]">

That's great and works.. but when a page doesn't have an icon, it renders a broken image path in the source like this:

<img border="0" align="absmiddle" src="/Portals/[#PortalID]/">

 
So the question or suggestion is..
 
Is there any way you can make a test, perhaps like: [hasTabInfoPropertyName][/TabInfoPropertyName]

Or alternatively, can you perhaps provide a new token that renders the IconFile code as written above, when an icon is present and renders nothing when it isn't?

RegardsRob

May 8, 2011 at 10:17 PM

Hello Rob,

we have discussed this already and we might have a solution for this in the future!


Thanks again for you suggestion and helping us to make the DNN Menu better!


Greetings,

Alex