Fórum

Submenu in top navigation

thumbnail
Tobias Amon, modificado 16 Anos atrás.

Submenu in top navigation

Liferay Master Postagens: 546 Data de Entrada: 08/08/07 Postagens Recentes
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, modificado 16 Anos atrás.

RE: Submenu in top navigation

Regular Member Postagens: 189 Data de Entrada: 26/02/07 Postagens Recentes
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, modificado 16 Anos atrás.

RE: Submenu in top navigation

Regular Member Postagens: 209 Data de Entrada: 20/09/07 Postagens Recentes
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, modificado 16 Anos atrás.

RE: Submenu in top navigation

Regular Member Postagens: 209 Data de Entrada: 20/09/07 Postagens Recentes
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, modificado 16 Anos atrás.

RE: Submenu in top navigation

Regular Member Postagens: 189 Data de Entrada: 26/02/07 Postagens Recentes
Thanks !!!
I hope to continue contributing to the community

Greetings from Colombia !!!

Jonathan Diosa
thumbnail
Jonathan Hayward, modificado 16 Anos atrás.

RE: Submenu in top navigation

Regular Member Postagens: 209 Data de Entrada: 20/09/07 Postagens Recentes
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, modificado 16 Anos atrás.

RE: Submenu in top navigation

Liferay Master Postagens: 546 Data de Entrada: 08/08/07 Postagens Recentes
Thanks...
that was exactly what I needed...
thumbnail
Jonathan Hayward, modificado 16 Anos atrás.

RE: Submenu in top navigation

Regular Member Postagens: 209 Data de Entrada: 20/09/07 Postagens Recentes
Vin k k, modificado 16 Anos atrás.

RE: Submenu in top navigation

Regular Member Postagens: 138 Data de Entrada: 04/12/07 Postagens Recentes
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, modificado 16 Anos atrás.

RE: Submenu in top navigation

Liferay Master Postagens: 878 Data de Entrada: 08/10/07 Postagens Recentes
You can try using navigation portlet for that. Just add it and try different modes.
Vin k k, modificado 16 Anos atrás.

RE: Submenu in top navigation

Regular Member Postagens: 138 Data de Entrada: 04/12/07 Postagens Recentes
hi roman ,

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

thanks
vin
thumbnail
Roman Hoyenko, modificado 16 Anos atrás.

RE: Submenu in top navigation

Liferay Master Postagens: 878 Data de Entrada: 08/10/07 Postagens Recentes
Add Content -> CMS -> Navigation
Vin k k, modificado 16 Anos atrás.

RE: Submenu in top navigation

Regular Member Postagens: 138 Data de Entrada: 04/12/07 Postagens Recentes
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, modificado 16 Anos atrás.

RE: Submenu in top navigation

Liferay Master Postagens: 878 Data de Entrada: 08/10/07 Postagens Recentes
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, modificado 16 Anos atrás.

RE: Submenu in top navigation

Regular Member Postagens: 138 Data de Entrada: 04/12/07 Postagens Recentes
thanks roman, its working fine.

thanks
vin
thumbnail
Luke McLean, modificado 16 Anos atrás.

RE: Submenu in top navigation

Junior Member Postagens: 46 Data de Entrada: 16/08/07 Postagens Recentes
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, modificado 10 Anos atrás.

RE: Submenu in top navigation

Junior Member Postagens: 67 Data de Entrada: 17/10/13 Postagens Recentes
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, modificado 10 Anos atrás.

RE: Submenu in top navigation

Junior Member Postagens: 67 Data de Entrada: 17/10/13 Postagens Recentes
Problem solved.Find this link for more details.

Thanks
Chitra