The N2 documentation on inheritance mentioned about putting common content into the start page definition then within the masterpage retrieving that part of the content from the StartPage rather than the CurrentPage. Is this considered to be best practice or is there another way to inherit content from the ancestor pages?
1
There are 1 answers
Related Questions in N2CMS
- N2 CMS: Implementing Owin with OpenId connect authentication method. (FAILED)
- N2CMS host transfer...worth it or use different CMS?
- Why am I getting 404 /N2/Api/Context.ashx
- Can I render an N2 CMS page as part of another normal MVC Razor view?
- System.StackOverflowException when adding list item
- How to get the url of another content item with N2CMS?
- Add a new language in N2CMS
- n2cms Asp.net give error on Files menu (File Manager)
- Using EditableChildren in N2CMS
- How I can add N time item using n2cms
- How to set different permissions on parts in N2 CMS admin?
- N2CMS : Using Server.Transfer with contentItem page
- N2CMS Issues creating template first parts
- N2 CMS Is it possible to add a part to non-cms Page
- Css/JS issues with N2CMS 2.5.9 and Dinamico templates
Related Questions in N2
- N2 CMS: Implementing Owin with OpenId connect authentication method. (FAILED)
- N2CMS host transfer...worth it or use different CMS?
- System.StackOverflowException when adding list item
- How I can add N time item using n2cms
- N2CMS - Firefox 30 : Part selector drag&drop broken
- N2CMS : Using Server.Transfer with contentItem page
- N2CMS Issues creating template first parts
- N2 CMS Is it possible to add a part to non-cms Page
- N2CMS collection editor in mvc
- N2CMS Publish button is missing
- implement a N2.Engine.IServiceContainer for Ninject
- Role Management in N2
- In N2CMS, can you disable the prompt to 'Update links leading to' the item you just edited?
- N2CMS: restricting the number of ContentItems of a certain type below another ContentItem
- How can I make N2CMS show edit page in admin interface by default?
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
There are three aspects to this
If you have some content that appears on more than one page, e.g. company contact phone that appears on site footer on every page, best practice would be to add this as a property to start page, probably on a separate tab (e.g. "Footer"), populate its value, and then reuse property value on all pages by reading from start page. Benefit of this is centralized editing of such reused property
If you have some property that is the same on groups of pages - like when you have "theme color" same for all children of certain 1st level menu item - then you can use same approach on the level of children of start page - you would define property on child of start page (e.g. color), then reuse it on all of its children. Once editor sets "theme color" on 1st level page, it will automatically affects all its children.
If you have property with some kind of user-defined default value but you want editor to be able to override it, like header image, you would use combined approach. Define HeaderImage property on start page and on all other pages. Then, in your code, if HeaderImage property is empty, use one from start page. This is a good practice since people tend to make mistakes and forget things. In this case, if Header image is not specified, it will be automatically replaced by value from StartPage
All three scenarios are used in real life conditions and proved over and over again to be good solutions.