Intechnic
Users Developers
Home / Forums / In-Portal CMS / Customizing In-Portal / Custom Menu Icon / Topic Posts

In-Portal Forum

This is a place for users of In-Portal to ask questions, discuss various topics, and interact with other members of the In-Portal Community. Please report bugs through the Bugs Team (not the Forum). If you are interested in contributing or joining one of the many Teams for In-Portal, please check out the Contribute section of the website.
 

In-Portal Forum

Custom Menu Icon (3)


Posted: 04/26/2012 3:18:15 PM

Reply Quoted  


I showing all the categories (for in-link) on my front page. Is it possible to show the custom menu icon on all categories if there is one and the directory_icon if not. My categories (almost all) are countries so I want to show there flag.

Thanks
Jimmy
www.indoor.net

Posted: 04/30/2012 2:14:06 AM

Reply Quoted  


What In-Portal version and what theme are you using.

If it is 5.0.0+, then following can be done:
1. add a custom field to a category called "ISOCode"
2. for each category place corresponding country ISO code (3 letters) into that field
3. create folder /platform/imgs/flags under theme
4. place all flags, that you have there (each flag name should be in iso-code.gif/iso-code.jpg format)
5. add this into category element, used to print categories:

<img src="<inp2:m_TemplatesBase module='in-portal'/>imgs/flags/<inp2:Field name='cust_ISOCode'/>.gif" ... />


Posted: 05/03/2012 5:21:14 AM

Reply Quoted  


Thanks