Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Mike Harrington
Way to change $nav_items and $nav_child in navigation.vm?
April 30, 2008 9:52 AM
Answer

Mike Harrington

Rank: Junior Member

Posts: 91

Join Date: February 15, 2008

Recent Posts

I want to change the $nav_items and $nav_child in navigation.vm. Is this possible?
Wilson Man
RE: Way to change $nav_items and $nav_child in navigation.vm?
April 30, 2008 3:47 PM
Answer

Wilson Man

LIFERAY STAFF

Rank: Liferay Master

Posts: 580

Join Date: June 21, 2006

Recent Posts

how do you want to change this? can you briefly describe your requirement?
Mike Harrington
RE: Way to change $nav_items and $nav_child in navigation.vm?
May 1, 2008 1:01 AM
Answer

Mike Harrington

Rank: Junior Member

Posts: 91

Join Date: February 15, 2008

Recent Posts

I was customizing the Jedi theme and I wanted to change the items in the Navigation.

For instance instead of Home Products Services Partners . . . I wanted different elements such as Home Interests Skills . . .
Wilson Man
RE: Way to change $nav_items and $nav_child in navigation.vm?
May 1, 2008 10:31 AM
Answer

Wilson Man

LIFERAY STAFF

Rank: Liferay Master

Posts: 580

Join Date: June 21, 2006

Recent Posts

oh ... you don't need to do that in the theme, just login as admin, go to "manage pages" in the dropdown (dock) and rename the Home page, or the Services page, etc. and add, remove, or rename their child pages.
Sharath Babu A
RE: Way to change $nav_items and $nav_child in navigation.vm?
February 21, 2010 10:39 PM
Answer

Sharath Babu A

Rank: Regular Member

Posts: 146

Join Date: May 18, 2009

Recent Posts

hi wilson man,

could you please assist me..?i want to compare with the userid and after that i want to some edit page privilages..i know how to get userid but after that?
Nidhi Singh
RE: Way to change $nav_items and $nav_child in navigation.vm?
February 23, 2010 3:18 AM
Answer

Nidhi Singh

Rank: Regular Member

Posts: 155

Join Date: October 7, 2009

Recent Posts

simon tuffle:
hi wilson man,

could you please assist me..?i want to compare with the userid and after that i want to some edit page privilages..i know how to get userid but after that?


Hi,

In theme you can use $user_id.

Thanks
Nidhi Singh
Sharath Babu A
RE: Way to change $nav_items and $nav_child in navigation.vm?
February 23, 2010 5:11 AM
Answer

Sharath Babu A

Rank: Regular Member

Posts: 146

Join Date: May 18, 2009

Recent Posts

Thanks Nidhi for your prompt response,

Now i am able to get user id,the thing is in one jsp i have kept a value in portletsession i am not able to retieve it.


Rgds
Simon
Dinesh Balaji
RE: Way to change $nav_items and $nav_child in navigation.vm?
April 13, 2011 6:17 AM
Answer

Dinesh Balaji

Rank: Junior Member

Posts: 52

Join Date: October 6, 2010

Recent Posts

Hi Wilson,

I have created a second level navigation and instead of vertical drop down I have made it to appear as horizontal.
Now my question is, if I click on the main navigation menu the first page of the horizontal child menu should be selected automatically.

Any help would be greatly appreciated. Thank you.
Thanks in advance!!!

Rehgards,
Dinesh Balaji V
Sharath Babu A
RE: Way to change $nav_items and $nav_child in navigation.vm?
April 21, 2011 12:21 AM
Answer

Sharath Babu A

Rank: Regular Member

Posts: 146

Join Date: May 18, 2009

Recent Posts

Hi Dinesh Balaji,

While creating the parent page(main menu)For Ex:"Test" in the navigation bar, select the Type as "Link to Page" in the drop down and then save as usually..Then create the child page(For Ex:c1) normally.

And now go to the main page,just above "meta-tags" bar observe "Link to Page" dropdown. In that you can select the page what ever you want to redirect either childpage(c1) or any other page in the main navigation bar.

Let me know any more concerns after this.


Thanks&regards
Dinesh Balaji
RE: Way to change $nav_items and $nav_child in navigation.vm?
April 21, 2011 1:51 AM
Answer

Dinesh Balaji

Rank: Junior Member

Posts: 52

Join Date: October 6, 2010

Recent Posts

Hi Simon,

I tried your way, but I am not getting it.
Instead there is one option such as COPY PARENT, where you can define the child menu to be loaded up on the click of parent menu.

But in that also I find the child menu not getting selected. Finally I modified the VM files to get things done.

Regards,
Dinesh Balaji V
Sharath Babu A
RE: Way to change $nav_items and $nav_child in navigation.vm?
April 25, 2011 2:26 AM
Answer

Sharath Babu A

Rank: Regular Member

Posts: 146

Join Date: May 18, 2009

Recent Posts

Hi Dinesh Balaji,

I have done this with the main navigation bar & its child page.And no idea of second level navigation. Any way if you want clear idea of what i have done in liferay5.2.3 is as follows.


1. Create a main menu in Navigation bar from "Manage Pages".And in Type dropdown select as "Link to Page".
2. Now Create a child Page for the created Main menu(normally).
3. Go to Main Menu(Step 1)from Manage Page,Bottom "Link to Page" dropdown & select the desired page & save.

As per the screenshot,by clicking on mypay in the main navigation, it will redirect to t222 page.


Thanks & Regards
Attachments: sample.bmp (156.4k), sample1.bmp (925.9k)