Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Romesh Nongthombam
Page type in navigation.vm
April 22, 2010 6:08 AM
Answer

Romesh Nongthombam

Rank: New Member

Posts: 13

Join Date: May 5, 2009

Recent Posts

I am creating a liferay site.

In the template "navigation.vm", the menu links are created. I want to create a custom menu. What i want to know is during the menu creation, i want to know what is the page type(portlet, embeded,url...) for all the links.

Can anyone suggest how can i identify in navigation.vm?

Thanks in advanced
Sandeep Nair
RE: Page type in navigation.vm
April 22, 2010 8:43 PM
Answer

Sandeep Nair

Rank: Liferay Legend

Posts: 1693

Join Date: November 5, 2008

Recent Posts

Hi,

Try this

1$nav_item.getLayout().getType()


Regards,
Sandeep
Romesh Nongthombam
RE: Page type in navigation.vm
April 23, 2010 12:33 AM
Answer

Romesh Nongthombam

Rank: New Member

Posts: 13

Join Date: May 5, 2009

Recent Posts

Thanks, it works.

I will come back with more questions... emoticon