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)
Add Component by CSSDK
Constantin
Hi All,
Is there any way to add component to multiple pages by using a script or CSSDK, or maybe Interwoven already has some components or tools to do such thing.
So for example i want to add the same component on particular folder that contains 10 pages, it will be easier than to manually add it one by one.
Any insight ?
Thanks,
Constantin
Find more posts tagged with
Comments
Adam Stoller
This would seem an illogical thing to do IMO since it's not just a question of
addiing
a component, but
placing
that component on the page as well.
I suppose if you look carefully at the .page XML of a file on which you have manually added the component you could find the desired XML snippet to then try inserting [carefully] on the other .page files - and it might work - but I'd suggest checking your results very carefully. This presupposes that all the pages are using the exact same template / layout and that nobody has manually added other components to any of them.
Since there are only 10 pages in your [current] set - you should be able to verify every one of them. Of course if you only have 10 page files to update (now and in the foreseeable future) you have to weigh the amount of time it will take you to do this and verify everything against the time it would take to just manually modify the 10 pages. However, it's an interesting sounding experiment...
Bowker
I have actually done something like this - it is NOT FOR THE FAINT AT HEART. I wrote a one-time, use-only-once Perl script that did exactly what Ghoti suggested. I opened the .page file and inserted the the component where I needed it.
If that component refers to any DCRs I'm pretty sure the system won't cross reference them as related files.
It was definitely code that I hope to never use again.
A better suggestion, but unfortunately the horse has left the barn, use templates to build the pages. That way you can add the new component to the template and update all the pages at once (under Site Publisher select "get Latest Components".
Constantin
Hi Ghoti & Bowker,
Thanks for the information,
Is there any relation ID or anything else that we need to put an attention while we add it manually on the xml page file?
Previously i try to add it manually, but it seems the pages return an error, but i'll try it again based on your suggestion...
Thank you very much