Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Change Values in DCR from TPL
Tanuj
Guys
This problem may be disscussed many times earlier but I cannot find anything for it so here it is again.
What is the best way to update values in DCR from TPL? The use case is I add files in DCT and copy them to different folder through my TPL and then attach to the workflow and deploy them, Now I don't want to copy and deploy these files unless users changes them again in the DCR.
To achieve this only option I can think is to change the path of the files in the dcr and in my copy function i check if templatedata is not present in filepath then just ignore.
What are your suggestions.
Thanks in advance
Tanuj
Find more posts tagged with
Comments
nipper
Well you *can* open regex and save the DCR. Whether that is really what you want to do I am uncertain.
If I were you I would open the current DCR, open the equivalent DCR in Staging and compare the appropriate fields, if one has changed do what you need to do.
Tanuj
Ok so that was my understanding too that I open the DCR as XML make changes and save it back.
But I thought maybe teamsite has some built in function in some module which can do openning and saving the dcr implicitly and you just set the value.
Thanks for your help
Tanuj
nipper
there are, you can use the Perl modules that are provided (if you use XML style DCRs) to change the value, however I find regex is much faster and easier to use.
That being said, I still think this is the wrong approach.