组合视图 统一视图 树状图
讨论主题 [ 上一个 | 下一个 ]
toggle
gordon daniels
Bradley Wood - Zoe tech theme
2013年2月12日 上午11:31
答复

gordon daniels

等级: Liferay Master

帖子: 724

加入日期: 2008年8月23日

最近的帖子

I have been successful in modifying the zoe-tech and have learned some nice techniques from Bradley. The one thing I can't seem to get right is adding multiple levels. Bradley provided code to get drop down container, but when I modify navigation.vm for grandchildren it does not show multi-levels. I've tried also modifying the custom.css and no luck.

Can someone show how mulit-levels is accomplished? Sure would appreciate it.

thanks
Ryan Schuhler
RE: Bradley Wood - Zoe tech theme
2013年2月12日 下午3:14
答复

Ryan Schuhler

LIFERAY STAFF

等级: Junior Member

帖子: 77

加入日期: 2012年7月5日

最近的帖子

Assuming you have the code for navigation.vm from Brad, it looks like in custom.css on line 13 '#navigation .child-menu' is hidden using a clip and position. Just remove '#navigation .child-menu' from that block and it should display the child navigation.
gordon daniels
RE: Bradley Wood - Zoe tech theme
2013年2月12日 下午4:44
答复

gordon daniels

等级: Liferay Master

帖子: 724

加入日期: 2008年8月23日

最近的帖子

Ryan: thanks for taking the time to reply. Yes, I had already done that. The menu drops down for second level, but when I try different ways of getting levels 3,4,5, it does not work. So, I was hoping someone could say add this line and it will work :-). I've tried putting in grandchildren in navigation.vm and tried css in custom.css. But nothing is working for me.

thanks again
匿名
RE: Bradley Wood - Zoe tech theme
2013年2月12日 下午4:49
答复

匿名

you have to copy the logic of childnavigation



<ul>
#foreach ($child in $navItems.getChildren()
<li><a href="$child.getUrk()">$child.getName()</a>
#if ($child.hasChildren())
<ul>
#foreach ($grand-child in $child.getChildren)
<li><a href="$grand-child.getUrl()">$grand-child.getName()</a>
#end
</ul>
</li>
#end
#end
</ul>


this is the basic idea of navigation.vm
gordon daniels
RE: Bradley Wood - Zoe tech theme
2013年2月12日 下午4:59
答复

gordon daniels

等级: Liferay Master

帖子: 724

加入日期: 2008年8月23日

最近的帖子

Bradley: thanks for the reply: I actually tried that, but so far no luck. I will continue to play with it.

thanks

BTW: I really like some of the features in this theme.
Ryan Schuhler
RE: Bradley Wood - Zoe tech theme
2013年2月12日 下午5:02
答复

Ryan Schuhler

LIFERAY STAFF

等级: Junior Member

帖子: 77

加入日期: 2012年7月5日

最近的帖子

http://www.liferay.com/community/forums/-/message_boards/message/14143350 my last reply on this thread has a navigation.vm file with code for 3rd level navigation, have you already done something like this?
gordon daniels
RE: Bradley Wood - Zoe tech theme
2013年2月12日 下午5:10
答复

gordon daniels

等级: Liferay Master

帖子: 724

加入日期: 2008年8月23日

最近的帖子

Ryan: thanks for the link! That is a great thread. I don't understand why search did not find it. I've been searching all day on the forum but did not find this one. Thank you so much.
David H Nebinger
RE: Bradley Wood - Zoe tech theme
2013年2月12日 下午6:42
答复

David H Nebinger

Community Moderator

等级: Liferay Legend

帖子: 11511

加入日期: 2006年9月1日

最近的帖子

Stick with google search. Liferay search - not so hot...
gordon daniels
RE: Bradley Wood - Zoe tech theme
2013年2月12日 下午7:32
答复

gordon daniels

等级: Liferay Master

帖子: 724

加入日期: 2008年8月23日

最近的帖子

David: It does seem to be lacking.

see ya
gordon daniels
RE: Bradley Wood - Zoe tech theme
2013年2月13日 上午7:43
答复

gordon daniels

等级: Liferay Master

帖子: 724

加入日期: 2008年8月23日

最近的帖子

Bradley: thank you for the input. I still can not get it to work right. The drop down and other levels are appearing but they appear on the right side of the browser - almost off the page. I have yet to figure out why.

thanks
gordon daniels
RE: Bradley Wood - Zoe tech theme
2013年2月13日 上午7:47
答复

gordon daniels

等级: Liferay Master

帖子: 724

加入日期: 2008年8月23日

最近的帖子

Ryan: I have had some success with your 3 level menu. It shows second level and arrow to right for 3rd level, but 3rd level does not display. Not sure why that is happening.

thanks for the link and suggestions
Ryan Schuhler
RE: Bradley Wood - Zoe tech theme
2013年2月13日 上午8:25
答复

Ryan Schuhler

LIFERAY STAFF

等级: Junior Member

帖子: 77

加入日期: 2012年7月5日

最近的帖子

Have you tried using developer tools to see if the ul grandchild-menu exists in the respective li? That will tell us if there is styling which is hiding the grandchild menu or if it is not being created.
gordon daniels
RE: Bradley Wood - Zoe tech theme
2013年2月13日 上午8:29
答复

gordon daniels

等级: Liferay Master

帖子: 724

加入日期: 2008年8月23日

最近的帖子

I have been using firebug but not getting a clear picture yet. I really appreciate you taking the time to get back to me. I will continue on with debugging :-)

thanks again