Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > links under menu items View modes: 
User avatar
Member
Member
dcollins-marketwired - 2/13/2014 10:19:25 AM
   
links under menu items
Not exactly sure how to go about this. I've looked at css list menu, dropdown menu and tree menu, but this may have more to do with my doctypes.

I've got a side menu "Departments" (currently a csslist, but I'm trying the others), which points at my Departments node, so all Depts are represented in the menu. Clicking on "Sales" will take you to its landing page.

The depts will have subitems - some are pages, but some are external links.
Depts
Sales (landing page)
Sales Figures (an internal subpage)
Best Practices (a link an external website)

I'm trying to figure out how to add the external links to the menu alongside the internal links, but without having landing pages for them.

I've got a Sales Figures doctype: Page, which works fine, but now I'm experimenting with adding a Best Practices doctype: Simple Article (contains only link name and URL). Clicking on Best Practices should not take you to a page within the site, it should launch the external site in a new tab. Kind of stumped here.

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 2/13/2014 3:04:44 PM
   
RE:links under menu items
In the Properties>Navigation for the page you want to redirect when clicked, check Javascript command and enter
window.open('http://www.yourdomain.com/','',''); return false;

User avatar
Member
Member
dcollins-marketwired - 2/13/2014 3:33:08 PM
   
RE:links under menu items
Right. That works. Hard to tell where Kentico leaves off and I gotta start hacking in custom stuff.

Thanks.

So, that leaves me with a sort of dummy page that serves no purpose but to ensure the item is there in the menu. In order for it to show up, I needed to add a document into that page. (I added a simple article, but I guess it doesn't matter - mighty as well be a document of type Page). Does that sound right to you?

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 2/14/2014 3:08:48 PM
   
RE:links under menu items
By all means it isn't a hack in my opinion. You can setup many different options on what to do with the menu items.

Yes I guess you could call it a dummy page, I'd call it a placeholder for a link. This way you can use the built-in tools to create your menu structure and such and just have that particular item navigate to a different place. You're correct, doesn't really matter the doc type (But make sure your viewer is picking those up to display).