Avoiding repetition

20 April 2009 by Bob North

I really hate having to do the same thing over and over again, and I know I'm not alone. All too often on sites you need to make a change to lots of different pages maybe changing the font or the background color, and you really don't want to have to do each one individually.

The solution to this is a property called 'inheritance'. In neatComponents all the styles, settings and permissions (ie everything set in a page's Behavior Editor) can be inherited. This means that if you set the value for one of these settings at the top level of the site tree, they will cascade down and be applied to all the child pages in the site.

Naturally, there are occasions when you want a page to be different, and setting the value on the behaviour Editor for a specific page will override any value it would have inherit from above.

So, when styling a site, or setting permissions for pages, always think about how many pages will be affected, and try to work as high up the site tree as you can. That way you'll avoid repetition. What's more should you need to change the site later on, you'll only need to make the change in that one place.

You can learn more about inheritance in neatComponents.

 

 

Comments:

 

Categories:

 

Tags:

 

Archive:

July 2016
March 2016
May 2012
March 2012
February 2012
January 2012
December 2011
November 2011
September 2011
August 2011
July 2011
June 2011
May 2011
March 2011
October 2010
September 2010
August 2010
March 2010
February 2010
January 2010

 

Twitter:

 

Facebook:

 

 

 Website copyright and all rights reserved. - A blog made using clearString.

Admin