Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Editor Customizable List View modes: 
User avatar
Member
Member
Armysniper89 - 2/12/2014 11:05:28 AM
   
Editor Customizable List
I have small sub navigation element stored as an unordered list of items. Each list item is a section of our site. Here is the HTML code:
<ul class="quick-nav">
<li><a href="#" class="active">Getting Started</a></li>
<li><a href="#">Setting Strategy</a></li>
<li><a href="#">Measuring Success</a></li>
<li><a href="#">Working with Grantees</a></li>
<li><a href="#">Nonprofit Due Diligence</a></li>
<li><a href="#">Philanthropist Spotlights</a></li>
</ul>

As editors create pages using templates that have this sub navigation element, I need to give them the ability to easily assign one of these items the class as "active" so it is highlighted as you can see above. First thought was to have them use a Widget, but that would require my editors to copy and paste in HTML similar to above and edit. Any one have a better idea?

User avatar
Member
Member
kentico_sandroj - 2/13/2014 4:46:43 PM
   
RE:Editor Customizable List
Hello,

Would it be possible to give us more details about the scenario? What qualifies a page as active - is it the currently selected page? Or does it depend on something else?

Without more details I could suggest using the built-in functionality under CMS Desk > Content > YourPage > Properties > Navigation > Menu design which is what the CSS List Menu uses by default.

Please let me know if you have any questions or additional information.

Best Regards,
Sandro

User avatar
Member
Member
Armysniper89 - 2/14/2014 1:04:22 PM
   
RE:Editor Customizable List
You are not far off with the use of the menu. Didn't think of that. Basically I need to be able to assign a class="selected" to the active menu item. So I am sure that the menu could work. Let me see how that goes. :)

User avatar
Member
Member
Armysniper89 - 2/14/2014 1:41:18 PM
   
RE:Editor Customizable List
Actually I have one question. In our submenu design they have a class assigned to the unordered list of "quick-nav" how can I set this class in the CSS List Menu web part? I see ones for the items, which I only need a style of "active" if it is active menu item...but I don't see one for the <uL> element.

User avatar
Member
Member
kentico_sandroj - 2/18/2014 5:56:48 PM
   
RE:Editor Customizable List
Hello,

That may be a bit difficult with the standard Web part but one of our active members created an extended version which seems to be able to accomplish exactly what you need. Would this Web part work better for you?

Please let me know if I can be of further assistance.

Best Regards,
Sandro