PHPackages                             friendsofsilverstripe/inheritage-by-sitetree - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. friendsofsilverstripe/inheritage-by-sitetree

Abandoned → [https://github.com/bringyourownideas/inheritage-by-sitetree](/?search=https%3A%2F%2Fgithub.com%2Fbringyourownideas%2Finheritage-by-sitetree)Silverstripe-module[Utility &amp; Helpers](/categories/utility)

friendsofsilverstripe/inheritage-by-sitetree
============================================

Allows you to inheritage information from the parent pages

0.2.5(8y ago)12612[2 issues](https://github.com/bringyourownideas/inheritage-by-sitetree/issues)1BSD-3-ClausePHPCI failing

Since Apr 16Pushed 5y ago1 watchersCompare

[ Source](https://github.com/bringyourownideas/inheritage-by-sitetree)[ Packagist](https://packagist.org/packages/friendsofsilverstripe/inheritage-by-sitetree)[ Docs](https://github.com/bringyourownideas/inheritage-by-sitetree)[ RSS](/packages/friendsofsilverstripe-inheritage-by-sitetree/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)Dependencies (2)Versions (10)Used By (1)

SilverStripe Inheritage by SiteTree
[![Build Status](https://camo.githubusercontent.com/fa7b103a9e46e5a389bb1525df3329f83a1cc7fd4fd2f4ff00a6e14fe82a2076/68747470733a2f2f6170692e7472617669732d63692e6f72672f6272696e67796f75726f776e69646561732f696e68657269746167652d62792d73697465747265652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/bringyourownideas/inheritage-by-sitetree) [![Latest Stable Version](https://camo.githubusercontent.com/c54b71273761ed9a20c4985254f48ddcde72b4ac22e737a52bfecd4e92ae1c36/68747470733a2f2f706f7365722e707567782e6f72672f6272696e67796f75726f776e69646561732f696e68657269746167652d62792d73697465747265652f76657273696f6e2e737667)](https://github.com/bringyourownideas/inheritage-by-sitetree/releases) [![Latest Unstable Version](https://camo.githubusercontent.com/7ba945b6343b95a0e708a5ff6360b46a130269037587d7d73d4eb18ac1b443c6/68747470733a2f2f706f7365722e707567782e6f72672f6272696e67796f75726f776e69646561732f696e68657269746167652d62792d73697465747265652f762f756e737461626c652e737667)](https://packagist.org/packages/bringyourownideas/inheritage-by-sitetree) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/9eb7dd8593ae640f0ef8319f7fcf80c8e529f5e937faa880062274295dc52570/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6272696e67796f75726f776e69646561732f696e68657269746167652d62792d73697465747265652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/bringyourownideas/inheritage-by-sitetree/?branch=master) [![Total Downloads](https://camo.githubusercontent.com/571be20feae9899d5206341fbc11af576ea29dd9787d94e905ac0077d4f941f2/68747470733a2f2f706f7365722e707567782e6f72672f6272696e67796f75726f776e69646561732f696e68657269746167652d62792d73697465747265652f646f776e6c6f6164732e737667)](https://packagist.org/packages/bringyourownideas/inheritage-by-sitetree) [![License](https://camo.githubusercontent.com/dab475d1f03d38e9aac6c7331b1360971361a6b2df644df5568c849d6e7170f9/68747470733a2f2f706f7365722e707567782e6f72672f6272696e67796f75726f776e69646561732f696e68657269746167652d62792d73697465747265652f6c6963656e73652e737667)](https://github.com/bringyourownideas/inheritage-by-sitetree/blob/master/license.md)
============================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#silverstripe-inheritage-by-sitetree------)

Allows you to [inherit any property from parent pages](https://github.com/bringyourownideas/inheritage-by-sitetree) (any level). Check out the [usage example](https://github.com/bringyourownideas/inheritage-by-sitetree#usage) to see how it works.

### Features

[](#features)

- Loading information from direct or indirect parent page.
- This is only tested for db-fields. Has\_one or has\_many hasn't be confirmed.\*

### Usage

[](#usage)

The following example shows a possible use case of two page types which have a fixed position in the information architecture and using inheritage to get the "color" field to the sublanding page.

```
