How fun is it when you realize that you have to add a property to 20 different page types?
Been there done that. So today when I realized that I had to do it again I wrote an admin plugin instead.
With this plugin you can create a new property just like you do in EPiServer, and then you select wich PageTypes the property should be saved to.

If a Property with the same name already exists it will leave the old one.

This Plugin has only been tested with EPiServer CMS R2, but I think it’ll work with any CMS5 releases.
If you are interested in a plugin like this to EPiServer 4, then you should check out PageTypeUtil on EPiCode.
Tags: episerver cms 5, PageType properties, Plugin
-
Sounds like a plugin I would have needed a week back. =^)
-
LOL, I created my own yesterday!
-
And we started migrating pagetypeutil yesterday
/Steve
-
Many – too many – months of leaving this aside have finally got around to implementing this. It’s excellent. One thing I’ve found is that when importing pagetypes through devel, test and live systems, new properties do not import over – or in addition to – the existing pagetype’s properties. This tool helps with some instances.
I’ve also come across http://blogs.interakting.co.uk/brad/archive/2008/08/21/making-an-episerver-plug-in-copying-episerver-page-type-properties.aspx and implemented it as a plugin. Now, when I have many new properties across multiple pagetypes I make a temporary pagetype – duplicate all the properties I want in to it, then export that pagetype in to my test, then live environments. Again I can then use the temp pagetype to duplicate the required properties to whichever ‘real’ pagetypes require them.
Between both these tools, it saves a lot of mundane work.
Thanks.


8 comments
Comments feed for this article
Trackback link: http://antecknat.se/blog/2008/10/14/add-property-to-multiple-page-types/trackback/