Forums

Home » Liferay Portal » English » 2. Using Liferay » General

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Joshua Asbury
Structure Inheritance
February 27, 2009 11:52 AM
Answer

Joshua Asbury

LIFERAY STAFF

Rank: Expert

Posts: 497

Join Date: September 8, 2006

Recent Posts

Hi all -

I am hoping that someone can help me understand this new feature. I am getting an error, and I am thinking it's just because I don't understand the proper way to use structure inheritance.

I have built a fairly robust structure, and I would like to add a child structure to it thinking that I would add another element or two. When I select the parent structure in the UI and click save, I receive this message: This structure is already within the inheritance path of the selected parent. Please select another parent structure.

Even if I start off with a very simple structure, I get the same message. Any ideas what I am doing wrong or mis-thinking?
Amos Fong
RE: Structure Inheritance
February 27, 2009 6:22 PM
Answer

Amos Fong

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1954

Join Date: October 7, 2008

Recent Posts

Unfortunately...It is a bug....it only happens when:
1. You create a new structure
2. Choose autogenerateId
3. Inherit a structure with no parents.

The validation error is only supposed to happen when you try to create a circular loop of structure inheritance.
Work arounds:
1. Create structure first without inheritance, then edit and add it afterward.
2. Specify an ID

Created a ticket and working on a fix...thanks.
http://issues.liferay.com/browse/LPS-2266

At least your understanding and thinking was correct =P
Joshua Asbury
RE: Structure Inheritance
March 3, 2009 11:27 AM
Answer

Joshua Asbury

LIFERAY STAFF

Rank: Expert

Posts: 497

Join Date: September 8, 2006

Recent Posts

Thanks, Amos! At least I got that right!
Max M
RE: Structure Inheritance
May 18, 2009 3:21 PM
Answer

Max M

Rank: New Member

Posts: 5

Join Date: December 19, 2008

Recent Posts

Hi!
This new feature sounds really good!
However, I couldn't find it yet!
Where do I access "Structure Inheritance"?
Under "Manage Pages"?

Please help.

Thanks!
Amos Fong
RE: Structure Inheritance
May 18, 2009 3:55 PM
Answer

Amos Fong

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1954

Join Date: October 7, 2008

Recent Posts

Hey Max,

This feature is located in control panel > web content > structures. When you create a new structure, you can choose a parent structure for it to inherit from.
Max M
RE: Structure Inheritance
May 21, 2009 1:24 PM
Answer

Max M

Rank: New Member

Posts: 5

Join Date: December 19, 2008

Recent Posts

Thank you very much, Amos!
To be honest, I expected something slightly different!
I'm not sure if I can achive what I need with it ...

Can I add a navigation portlet in that structure, as well?
And how would I do that? Is that feature appropriate to
set up a "content layout" (similar to a layout template) once
and use it for all sup pages of a navigation structure?

Or would it be a better way to create a custom layout template
for this purpose?

Are there any tutorials about the Structure Inheritance feature?

Your help is highly appreciated!

Participate in the State of Liferay Community 2017. Help the community and even win some prizes!