简体   繁体   中英

CQ5 page Inheritance

I want to inherit the styles of Page A to its child page B. Can any one help me on this.

Ex.

Suppose I have added an xtype of selection Colors in the page properties dialog of page A. and the author selects any color( lets say Red) from the drop down it is changing the color but it is not applying to the child page of A.

Thanks

It would seem as though you are referring to a custom property, and making that an inherited property, correct?

I would take a look at the Inheritance section of this page on CQ5 code samples . That will show you how you can read an inherited property from the page properties object. You may also want to have a look at the InheritanceValueMap javadocs .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM