On the PageBase doctype we have a SEO, Generic tab with properties And on the 2col and 3col we have widget tabs handling 2 or 3 columns of content.
The other pages only have the properties that are specific for them, now the problem.
This would be great to have mixins like SEO, Generic, Widget and flatten the structure of our doctypes, but how can I convert this without loosing data on the pages and then also move the doctypes from their parents?
That is a tricky one. I did write a package for swapping doc types around (Doc Type Extensions) which you could try http://our.umbraco.org/projects/developer-tools/doc-type-extensions though some people have reported issues that I've not had chance to look at yet. My best advice would be to take a backup before trying it.
Other than that, there isn't a great deal you can do with an existing structure, as documents aren't meant to allow swapping of their doc types. That said, there is nothing to stop you using DocType mixins in combination with inherited doc types.
Convert from a parent style doctype?
Hi,
First thanx for a very nice lite package, should realy be in the next version of Umbraco.
One question, I have today a site where we have a structure like this on our doctypes.
PageBase
- 2col
-- NewsPage
-3col
--HomePage
--GenericPage
On the PageBase doctype we have a SEO, Generic tab with properties
And on the 2col and 3col we have widget tabs handling 2 or 3 columns of content.
The other pages only have the properties that are specific for them, now the problem.
This would be great to have mixins like SEO, Generic, Widget and flatten the structure of our doctypes, but how can I convert this without loosing data on the pages and then also move the doctypes from their parents?
Then new structure would be much nicer, only:
--NewsPage
--HomePage
--GenericPage
Any ideas?
Thanks in advance
Jonathan
Hi Jonathan,
That is a tricky one. I did write a package for swapping doc types around (Doc Type Extensions) which you could try http://our.umbraco.org/projects/developer-tools/doc-type-extensions though some people have reported issues that I've not had chance to look at yet. My best advice would be to take a backup before trying it.
Other than that, there isn't a great deal you can do with an existing structure, as documents aren't meant to allow swapping of their doc types. That said, there is nothing to stop you using DocType mixins in combination with inherited doc types.
Many thanks
Matt
is working on a reply...