Foren

How to hide the parent page by showing the sub pages of it

thumbnail
Raju oukanti, geändert vor 11 Jahren.

How to hide the parent page by showing the sub pages of it

Regular Member Beiträge: 143 Beitrittsdatum: 21.02.12 Neueste Beiträge
Hi Guys,


How to hide the page of parent by showing its child pages in the navigation part. Please replay ASAp.

Thanks,
Raju Oukanti
thumbnail
Bart Simpson, geändert vor 11 Jahren.

RE: How to hide the parent page by showing the sub pages of it

Liferay Master Beiträge: 522 Beitrittsdatum: 29.08.11 Neueste Beiträge
Not sure if this fulfills your requirement, but as I know, navigation portlet has configuration to hide the parent.
Also checkout if these properties help:

    # Set the name of the display style which will be used by default.
    #
    navigation.display.style.default=relative-with-breadcrumb

    #
    # Specify the options that will be provided to the user in the edit
    # configuration mode of the portlet.
    #
    navigation.display.style.options=relative-with-breadcrumb,from-level-2-with-title,from-level-1-with-title,from-level-1,from-level-1-to-all-sublevels,from-level-0

    #
    # Define each mode with 4 comma delimited strings that represent the form:
    # headerType, rootLayoutType, rootLayoutLevel, includedLayouts, and
    # nestedChildren.
    #
    navigation.display.style[relative-with-breadcrumb]=breadcrumb,relative,0,auto,true
    navigation.display.style[from-level-2-with-title]=root-layout,absolute,2,auto,true
    navigation.display.style[from-level-1-with-title]=root-layout,absolute,1,auto,true
    navigation.display.style[from-level-1]=none,absolute,1,auto,true
    navigation.display.style[from-level-1-to-all-sublevels]=none,absolute,1,all,true
    navigation.display.style[from-level-0]=none,absolute,0,auto,true
thumbnail
Raju oukanti, geändert vor 11 Jahren.

RE: How to hide the parent page by showing the sub pages of it

Regular Member Beiträge: 143 Beitrittsdatum: 21.02.12 Neueste Beiträge
Hi Simpson,

Thanks a lot. I will try with your code

Regards,
Raju
Hiral Barot, geändert vor 11 Jahren.

RE: How to hide the parent page by showing the sub pages of it

New Member Beiträge: 17 Beitrittsdatum: 03.01.12 Neueste Beiträge
Hi Raju,

You can achieve this by following steps :

1) Go to Navigation Portlet configuration
2) Select Desplay style --> From level 1

Hope this helps.

Regards,
Hiral Barot
thumbnail
Anil Sunkari, geändert vor 11 Jahren.

RE: How to hide the parent page by showing the sub pages of it

Expert Beiträge: 427 Beitrittsdatum: 12.08.09 Neueste Beiträge
Hi Raju,
Not sure about specific property. If it really required to customize theme.You can simple check with the current layout id with parent layoutid hence..you can write rest of the logic to behave as per your requirement.

Regards,
Anil Sunkari
thumbnail
Raju oukanti, geändert vor 11 Jahren.

RE: How to hide the parent page by showing the sub pages of it

Regular Member Beiträge: 143 Beitrittsdatum: 21.02.12 Neueste Beiträge
Hi Anil,

Thanks a lot. I will try with your idea

Regards,
Raju