Foren

Submenu in top navigation

thumbnail
Tobias Amon, geändert vor 16 Jahren.

Submenu in top navigation

Liferay Master Beiträge: 546 Beitrittsdatum: 08.08.07 Neueste Beiträge
Hi@all

is there a way to show all subpages of a page in the top navigation bar?
I tried to edit "navigation.vm" in my new theme, but it doesn't seem that it is loaded

Thanks
thumbnail
Jonathan Alexander Diosa, geändert vor 16 Jahren.

RE: Submenu in top navigation

Regular Member Beiträge: 189 Beitrittsdatum: 26.02.07 Neueste Beiträge
HI.

I have elaborated a menu javascript in liferay, with the pages and the children (only the first generation) of these pages. I used a Jquery's plugin that is called Super Fish, it is very useful because it adapts easily to liferay.
Then You can modify the navigation.vm (in liferay v 4.3). the code is not very difficult and easy to deal.

#foreach ( $nav_item in $nav_items )
<ul class="nav">

    #if ( $nav_item.isSelected() )
        #set ( $nav_item_class = "selected" )
    #else
        #set ( $nav_item_class = "" )
    #end
    <li class="$nav_item_class">
    <a href="$nav_item.getURL()" $nav_item.gettarget()><span>$nav_item.getName()</span></a>
                      
	    #if ( $nav_item.hasChildren() )
	        <ul>            
	            #foreach ( $nav_child in $nav_item.getChildren() )
	                <li><a href="$nav_child.getURL()">$nav_child.getName()</a></li>                  
	            #end
	                </ul>
	        #end
	    </li>
</ul>
#end


I have made a vertical menu




I hope that this help you and excuse me for my bad english
PD: looks also this http://www.liferay.com/web/guest/community/forums/message_boards/message/125738

Greets
Jonathan
thumbnail
Jonathan Hayward, geändert vor 16 Jahren.

RE: Submenu in top navigation

Regular Member Beiträge: 209 Beitrittsdatum: 20.09.07 Neueste Beiträge
Jonathan Alexander Diosa:
I hope that this help you and exuseme for mi bad english


(Pero escribías muy claramente!)

I've noticed on some forums that some people have worked hard to learn English, and are very concerned that their English might not be as good as they would like.

In every case that I can remember, these people (you included) have written clearly and have made the point they meant to make. Even if they want to speak English better, their English was at very least good enough to write clearly and make a valuable contribution. Making useful posts doesn't begin when your English is perfect. Making useful posts happens when you write useful information that people can understand, and you've done that.

A post like the one you gave is helpful, and I hope you won't feel that your posting is less worthwhile because you might want your English to be even better. By all means, continue working on English, but your posting was a good and helpful post whether or not it was as good English as you wanted, and if you write a post like that for a question I'm working on, I will be grateful. I wouldn't feel bad about "Maybe I could have done it better."

Gracias de escribirnos!

Jonathan Hayward
Jonathan's Corner: A Glimpse into Eastern Orthodox Christianity
thumbnail
Jonathan Hayward, geändert vor 16 Jahren.

RE: Submenu in top navigation

Regular Member Beiträge: 209 Beitrittsdatum: 20.09.07 Neueste Beiträge
There was one other thing I was thinking about...

I know a few musicians, and every musician I've talked about with about music is much more sensitive to mistakes they've made than people in the audience. I think there's something about being a good musician that requires people to try to improve on faults. It's almost proverbial how a good musician can give a really good performance and feel really bad because of mistakes that the audience probably didn't notice.

It's been my experience that people who are learning English--and have got good at it--are like this. But however much you may know about your imperfect English, I consider posters who have worked hard to learn English just as much people who belong and can contribute as people like me who grew up speaking English and wish we spoke better Spanish.

With respect,
Jonathan Hayward
Jonathan's Corner: A Glimpse into Eastern Orthodox Christianity
thumbnail
Jonathan Alexander Diosa, geändert vor 16 Jahren.

RE: Submenu in top navigation

Regular Member Beiträge: 189 Beitrittsdatum: 26.02.07 Neueste Beiträge
Thanks !!!
I hope to continue contributing to the community

Greetings from Colombia !!!

Jonathan Diosa
thumbnail
Jonathan Hayward, geändert vor 16 Jahren.

RE: Submenu in top navigation

Regular Member Beiträge: 209 Beitrittsdatum: 20.09.07 Neueste Beiträge
Jonathan Alexander Diosa:
Thanks !!!
I hope to continue contributing to the community

Greetings from Colombia !!!

Jonathan Diosa


You're welcome! (Greetings from the USA!)

Jonathan Hayward
Jonathan's Corner: A Glimpse into Eastern Orthodox Christianity
thumbnail
Tobias Amon, geändert vor 16 Jahren.

RE: Submenu in top navigation

Liferay Master Beiträge: 546 Beitrittsdatum: 08.08.07 Neueste Beiträge
Thanks...
that was exactly what I needed...
thumbnail
Jonathan Hayward, geändert vor 16 Jahren.

RE: Submenu in top navigation

Regular Member Beiträge: 209 Beitrittsdatum: 20.09.07 Neueste Beiträge
Vin k k, geändert vor 16 Jahren.

RE: Submenu in top navigation

Regular Member Beiträge: 138 Beitrittsdatum: 04.12.07 Neueste Beiträge
Hi jonathan,

Iam trying to include a left menu insted of tepmenu,
i want a left menu like this

Aout us
events
photogallery
contactus

can you please tell me for this i have to create a portlet or have to modify some files
i tried with navigation.vm but i couldnt understand, can u tell me where i have to mdify

thanks
vin
thumbnail
Roman Hoyenko, geändert vor 16 Jahren.

RE: Submenu in top navigation

Liferay Master Beiträge: 878 Beitrittsdatum: 08.10.07 Neueste Beiträge
You can try using navigation portlet for that. Just add it and try different modes.
Vin k k, geändert vor 16 Jahren.

RE: Submenu in top navigation

Regular Member Beiträge: 138 Beitrittsdatum: 04.12.07 Neueste Beiträge
hi roman ,

i couldnt locate the navigation portlet yet , can you please tell me where i can find this

thanks
vin
thumbnail
Roman Hoyenko, geändert vor 16 Jahren.

RE: Submenu in top navigation

Liferay Master Beiträge: 878 Beitrittsdatum: 08.10.07 Neueste Beiträge
Add Content -> CMS -> Navigation
Vin k k, geändert vor 16 Jahren.

RE: Submenu in top navigation

Regular Member Beiträge: 138 Beitrittsdatum: 04.12.07 Neueste Beiträge
Hi roman,

if i want to modify the navigation portlet, i have to modify modify the jsp file under this directory C:\Portal\webapps\ROOT\html\portlet\navigation , or i have to modify some java files under source ??? please write me which directory i have to modify.

thanks
vin
thumbnail
Roman Hoyenko, geändert vor 16 Jahren.

RE: Submenu in top navigation

Liferay Master Beiträge: 878 Beitrittsdatum: 08.10.07 Neueste Beiträge
Yes, you can modify the portlet in the path you mentioned. But I think all the logic is in the tag, so you might as well modify

ROOT.war\html\taglib\ui\navigation\page.jsp

And I would suggest working in Ext environment in this case, it will make it easier to upgrade, etc.
Vin k k, geändert vor 16 Jahren.

RE: Submenu in top navigation

Regular Member Beiträge: 138 Beitrittsdatum: 04.12.07 Neueste Beiträge
thanks roman, its working fine.

thanks
vin
thumbnail
Luke McLean, geändert vor 16 Jahren.

RE: Submenu in top navigation

Junior Member Beiträge: 46 Beitrittsdatum: 16.08.07 Neueste Beiträge
Hi Jonathan,

I am trying to implement the superfish menu in liferay. I downloaded the js and added it to the ROOT/html/js/jquery directory and added the javascript.files variable to the portal-ext.properties file so that the superfish.js file is included in all pages.

eg.
javascript.files=\
\
#
# JQuery scripts
#
\
jquery/jquery.js,\
jquery/cookie.js,\
jquery/dimensions.js,\
jquery/hover_intent.js,\
jquery/superfish.js,\
jquery/interface.js,\
jquery/interface.patch.js,\
jquery/j2browse.js,\
jquery/jeditable.js,\
jquery/json.js,\
jquery/media.js,\
jquery/tabs.js,\

...
etc

I then added the superfish css to the pages navigation.css file and the menu displays correctly in Firefox, however in IE I only get the top level and dropdowns will not operate. Did your example work OK in both browsers (IE6/FF2)? If it did could you give steps for implementation. Thanks
thumbnail
Chitra Thambirajan, geändert vor 10 Jahren.

RE: Submenu in top navigation

Junior Member Beiträge: 67 Beitrittsdatum: 17.10.13 Neueste Beiträge
Hello friends,

Am very new to Liferay portal.Even I do not know which on (CE/EE) is best for my task.

My requirement is I need to create a pull down menu for normal users instead of dockbar.Pls refer the attached image

I do not know from where to start.I did some code changes in portal_normal.vm to add some menu navigations and some jsfiddle menu examples to implement different menu for my site page.

But I got only the bullet list menu.I have no idea about what are all the files I need to change for creating a new menu style.

Please advice me.

Thanks in advance
Chitra
thumbnail
Chitra Thambirajan, geändert vor 10 Jahren.

RE: Submenu in top navigation

Junior Member Beiträge: 67 Beitrittsdatum: 17.10.13 Neueste Beiträge
Problem solved.Find this link for more details.

Thanks
Chitra