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)
setting extended attributes on category/type
conmgmt
We are importing XML content and storing them as DCRs. For DCT to recognize this non-native DCR we are applying category/type EA to these non-native DCR's. This seems to work well....
We will have multiple types under a category. I want to write a perl script that does this EA setting in one go for all category/type.
The question is....
Is there a way to get all category/types in perl so I can loop thru each one and set EA for all dcrs within that category/type ?
Find more posts tagged with
Comments
james1
Assuming that you have set up the directories in your workarea correctly (according to what is defined in templating.cfg), you could just traverse your /templatdata directory, and assume that any directory named "data" three levels below /templatedata contains DCR's that need to have EA's set. And the category/type can be obtained by taking the directories between "/templatedata" and "data".
Hope this helps.
-- James
RIM_Insfrastructure.pptx
Migrateduser
another possible way could be to read in templating.cfg and use an xml parser module (like XMLnode.pm) to read in the types under each category.