|
Home > Archive > Microsoft Content Management Server > February 2005 > change template
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Göran Tänzer 2005-02-23, 7:50 am |
| Hello,
i want to do a massive reorganisation of my templates.
I want to replace 6-8 templates by one template. All=20
templates have different placeholderdefinitions (names)=20
and are no connected templates or something like that=20
(just plain templates with templatefiles).
Idea 1:
The new Template holds a copy of all=20
Placeholderdefinitions of the 6-8 old Templates and i=20
change the templates for all affected postings to the new=20
template in some way. After this i tidy up the new=20
template and delete the old ones. Can this be done?
Idea 2:
I create a new posting based on the new template for all=20
affected postings (6-8 old templates). I copy the name,=20
displayname, hidden, important, etc. For customproperties=20
and placeholder i make a explicit conversion from=20
oldtemplate1.placeholder["1"] to newtemplate.placeholders
["A"] and so on. Finally i delete the old postings based=20
on the deprecated templates and delete the old templates
I will get a problem with the Guid, which could be used=20
in some way (Link to a Posting in HTML Placeholder)
Idea 3:
sombody knows a better solution?!
Thanks
G=F6ran
| |
| Stefan [MSFT] 2005-02-23, 7:50 am |
| Hi Göran,
1) does not work if this are no connected templates.
2) is the way to go.
Cheers,
Stefan.
--
This posting is provided "AS IS" with no warranties, and confers no rights
Book: Building Websites Using MCMS: http://tinyurl.com/3lh8s
----------------------
"Göran Tänzer" <anonymous@discussions.microsoft.com> wrote in message
news:155601c51986$f47f1b50$a501280a@phx.gbl...
Hello,
i want to do a massive reorganisation of my templates.
I want to replace 6-8 templates by one template. All
templates have different placeholderdefinitions (names)
and are no connected templates or something like that
(just plain templates with templatefiles).
Idea 1:
The new Template holds a copy of all
Placeholderdefinitions of the 6-8 old Templates and i
change the templates for all affected postings to the new
template in some way. After this i tidy up the new
template and delete the old ones. Can this be done?
Idea 2:
I create a new posting based on the new template for all
affected postings (6-8 old templates). I copy the name,
displayname, hidden, important, etc. For customproperties
and placeholder i make a explicit conversion from
oldtemplate1.placeholder["1"] to newtemplate.placeholders
["A"] and so on. Finally i delete the old postings based
on the deprecated templates and delete the old templates
I will get a problem with the Guid, which could be used
in some way (Link to a Posting in HTML Placeholder)
Idea 3:
sombody knows a better solution?!
Thanks
Göran
| |
| Kyong Kwak 2005-02-23, 5:59 pm |
| I have a general solution you can build on top of.. I posted on gotdotnet,
but it's not showing for some reason.. if you can't find it email me..
I'll send you the source.
kyong.
"Göran Tänzer" <anonymous@discussions.microsoft.com> wrote in message
news:155601c51986$f47f1b50$a501280a@phx.gbl...
Hello,
i want to do a massive reorganisation of my templates.
I want to replace 6-8 templates by one template. All
templates have different placeholderdefinitions (names)
and are no connected templates or something like that
(just plain templates with templatefiles).
Idea 1:
The new Template holds a copy of all
Placeholderdefinitions of the 6-8 old Templates and i
change the templates for all affected postings to the new
template in some way. After this i tidy up the new
template and delete the old ones. Can this be done?
Idea 2:
I create a new posting based on the new template for all
affected postings (6-8 old templates). I copy the name,
displayname, hidden, important, etc. For customproperties
and placeholder i make a explicit conversion from
oldtemplate1.placeholder["1"] to newtemplate.placeholders
["A"] and so on. Finally i delete the old postings based
on the deprecated templates and delete the old templates
I will get a problem with the Guid, which could be used
in some way (Link to a Posting in HTML Placeholder)
Idea 3:
sombody knows a better solution?!
Thanks
Göran
|
|
|
|
|