掲示板

Submenu in top navigation

thumbnail
16年前 に Tobias Amon によって更新されました。

Submenu in top navigation

Liferay Master 投稿: 546 参加年月日: 07/08/08 最新の投稿
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
16年前 に Jonathan Alexander Diosa によって更新されました。

RE: Submenu in top navigation

Regular Member 投稿: 189 参加年月日: 07/02/26 最新の投稿
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
16年前 に Jonathan Hayward によって更新されました。

RE: Submenu in top navigation

Regular Member 投稿: 209 参加年月日: 07/09/20 最新の投稿
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
16年前 に Jonathan Hayward によって更新されました。

RE: Submenu in top navigation

Regular Member 投稿: 209 参加年月日: 07/09/20 最新の投稿
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
16年前 に Jonathan Alexander Diosa によって更新されました。

RE: Submenu in top navigation

Regular Member 投稿: 189 参加年月日: 07/02/26 最新の投稿
Thanks !!!
I hope to continue contributing to the community

Greetings from Colombia !!!

Jonathan Diosa
thumbnail
16年前 に Jonathan Hayward によって更新されました。

RE: Submenu in top navigation

Regular Member 投稿: 209 参加年月日: 07/09/20 最新の投稿
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
16年前 に Tobias Amon によって更新されました。

RE: Submenu in top navigation

Liferay Master 投稿: 546 参加年月日: 07/08/08 最新の投稿
Thanks...
that was exactly what I needed...
thumbnail
16年前 に Jonathan Hayward によって更新されました。

RE: Submenu in top navigation

Regular Member 投稿: 209 参加年月日: 07/09/20 最新の投稿
16年前 に Vin k k によって更新されました。

RE: Submenu in top navigation

Regular Member 投稿: 138 参加年月日: 07/12/04 最新の投稿
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
16年前 に Roman Hoyenko によって更新されました。

RE: Submenu in top navigation

Liferay Master 投稿: 878 参加年月日: 07/10/08 最新の投稿
You can try using navigation portlet for that. Just add it and try different modes.
16年前 に Vin k k によって更新されました。

RE: Submenu in top navigation

Regular Member 投稿: 138 参加年月日: 07/12/04 最新の投稿
hi roman ,

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

thanks
vin
thumbnail
16年前 に Roman Hoyenko によって更新されました。

RE: Submenu in top navigation

Liferay Master 投稿: 878 参加年月日: 07/10/08 最新の投稿
Add Content -> CMS -> Navigation
16年前 に Vin k k によって更新されました。

RE: Submenu in top navigation

Regular Member 投稿: 138 参加年月日: 07/12/04 最新の投稿
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
16年前 に Roman Hoyenko によって更新されました。

RE: Submenu in top navigation

Liferay Master 投稿: 878 参加年月日: 07/10/08 最新の投稿
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.
16年前 に Vin k k によって更新されました。

RE: Submenu in top navigation

Regular Member 投稿: 138 参加年月日: 07/12/04 最新の投稿
thanks roman, its working fine.

thanks
vin
thumbnail
16年前 に Luke McLean によって更新されました。

RE: Submenu in top navigation

Junior Member 投稿: 46 参加年月日: 07/08/16 最新の投稿
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
10年前 に Chitra Thambirajan によって更新されました。

RE: Submenu in top navigation

Junior Member 投稿: 67 参加年月日: 13/10/17 最新の投稿
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
10年前 に Chitra Thambirajan によって更新されました。

RE: Submenu in top navigation

Junior Member 投稿: 67 参加年月日: 13/10/17 最新の投稿
Problem solved.Find this link for more details.

Thanks
Chitra