Fórum

how to use child pages ?

kashif . iftikhar, modificado 15 Anos atrás.

how to use child pages ?

New Member Postagens: 9 Data de Entrada: 23/02/09 Postagens Recentes
Hi Everyone!

im wondering how can a use child pages. please could anyone tell me how can i use them. did anyone have a theme that can show child pages.please help.
thumbnail
Victor Zorin, modificado 15 Anos atrás.

RE: how to use child pages ?

Liferay Legend Postagens: 1228 Data de Entrada: 14/04/08 Postagens Recentes
Play with Navigation portlet, you may also visit this thread.
thumbnail
Auditya manikanta Vadrevu, modificado 15 Anos atrás.

RE: how to use child pages ?

Liferay Master Postagens: 621 Data de Entrada: 06/05/08 Postagens Recentes
hi victor,

i am facing a problem in displaying dropdown menu with liferay jedi theme. Observe the below two images. In menu1.png , Collaboration is the main page and sub pages are calendar, technical documents, discussion forum,wiki and mail. now it is displaying correctly. But when more main pages are added in the portal, see menu2.png the second row effects the dropdown menu of collaboration. U can see from the image that the Calendar page is missing. How to overcome this problem to display the dropdown menu correctly.

Thanks in Advance,
V.Auditya
thumbnail
Victor Zorin, modificado 15 Anos atrás.

RE: how to use child pages ?

Liferay Legend Postagens: 1228 Data de Entrada: 14/04/08 Postagens Recentes
am facing a problem in displaying dropdown menu with liferay jedi theme

Auditya, do you have the same problem for IE and Firefox? Also, which LR version?
thumbnail
Auditya manikanta Vadrevu, modificado 15 Anos atrás.

RE: how to use child pages ?

Liferay Master Postagens: 621 Data de Entrada: 06/05/08 Postagens Recentes
hi victor,

yes , i have the same problem for IE and Firefox. ( in any browser)

Iam using LR 5.1.1


With Regards,
V.Auditya
thumbnail
Victor Zorin, modificado 15 Anos atrás.

RE: how to use child pages ?

Liferay Legend Postagens: 1228 Data de Entrada: 14/04/08 Postagens Recentes
am facing a problem in displaying dropdown menu with liferay jedi theme

Auditya, there are at least two areas to look at:
1. within navigation.vm, limit your exposure to child page levels, (may be to one?). You would not want to display more than 2 levels and 10+ child/subchild links from the top menu anyway.
2. look at css classes, defined for menu items. It is very likely that this is the style that produces all the mess.
thumbnail
Michael Saechang, modificado 15 Anos atrás.

RE: how to use child pages ?

Liferay Master Postagens: 576 Data de Entrada: 19/11/07 Postagens Recentes
Liferay Jedi and Classic should support Child Pages.

-mike
Richard Becher, modificado 15 Anos atrás.

RE: how to use child pages ?

Junior Member Postagens: 55 Data de Entrada: 20/06/08 Postagens Recentes
Is there some example code where I can change my existing Theme to show child pages?

All I want to do is have a simple 2 level structure for help pages.

Parent1
- Child 1
Parent 2
- Child 2
etc,etc,

I just need the ability to view and manage child pages in the Manage pages portlet (not sure what that portlet is actually called).

ANY help and guidance to enable this would be VERY much appreciated.

Thanks!!

Richard
thumbnail
Supreme T, modificado 15 Anos atrás.

RE: how to use child pages ?

New Member Postagens: 2 Data de Entrada: 04/12/08 Postagens Recentes
here is a sample, you need to modify navigation.vm file in your theme.


<div
#if ($page_group.isOrganization() || $page_group.isUser())
class="profile"
#else
class="sort-pages modify-pages"
#end

id="navigation"
>
<ul>


#foreach ($nav_item in $nav_items)
#if ($nav_item.isSelected())
#set ($nav_item_class = "selected parent-nav-item")
#else
#set ($nav_item_class = "parent-nav-item")
#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 class="child-menu">

#foreach ($nav_child in $nav_item.getChildren())
<li>
<a href="$nav_child.getURL()" $nav_child.getTarget()> $nav_child.icon() $nav_child.getName()</a>
</li>
#end
</ul>
#end
</li>
#end
</ul>
</div>
Richard Becher, modificado 15 Anos atrás.

RE: how to use child pages ?

Junior Member Postagens: 55 Data de Entrada: 20/06/08 Postagens Recentes
Hi Supreme T

Thanks for the code.

But I already have this in my navigation.vm - at least something similar that deals with children.

And if I put on a Navigation Portlet - it reads all levels fine.

What I am unable to do is to manage those child pages. Once I create a child page it is not possible to go back and change or manage them.

I believe this is in the layout_management portlet - but I don't really see any source code for that...so not sure where I can make any changes.

But it is the spot where we select "Manage Pages".

Any thoughts?

Thanks!

Richard
thumbnail
Victor Zorin, modificado 15 Anos atrás.

RE: how to use child pages ?

Liferay Legend Postagens: 1228 Data de Entrada: 14/04/08 Postagens Recentes
What I am unable to do is to manage those child pages.

But it is the spot where we select "Manage Pages".


Richard, some themes behave extremely bad for 'Manage Pages' portlet, to the extent that you are not able to proceed to a page which you need to manage.

The temporary workaround is:
- go directly to the child page and only after that select 'Manage Pages'
- change to a different browser type, go to 'Manage Pages' and see whether those little arrows will allow you to drill-down to child pages, or
- change to another base theme, at least one of them will work for you in 'Manage Pages'

The permanent solution, create and maintain own theme.
thumbnail
khomeini syahril, modificado 14 Anos atrás.

RE: how to use child pages ?

Junior Member Postagens: 56 Data de Entrada: 16/10/08 Postagens Recentes
hai
what about, how to set the display order automatically
rather than go to control panel> portlet> communities>public pages>pages>etc to do it manually?so if i create a new instance the order would be automatically the same


Best Regards.
Khomeini