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)
regenerate HTML
vinylrecord
Hi Everyone
I wish to regenerate my HTML files(which r already generated in interwoven) in bulk.... that could be a script which takes HTML file as parameter and regenerates it with its (updated) tpl and (updated) dcr.
To explain the scenario in detail.....
i have 10 templates n using these i have generated 1000 HTML files. i have done sum modification in the tpl of all 10 templates. now to have these changes in all 1000 HTML files , i will have to open all dcrs and click on generate.
inspite of above mentioned tedious method ..can i have sum command which i can put in a loop in a script .........that wud be very helpful
Thanks
Find more posts tagged with
Comments
Migrateduser
Try this out:
http://devnet.interwoven.com/site.fcgi/techlib/048941
I have not used that script, but the description looks like it is what you need. If that does not work for you, you can do something like this:
-built a list of templated files using the vpath to the file
/default/main/WORKAREA/jed/file_1.html
/default/main/WORKAREA/jed/file_2.html
/default/main/WORKAREA/jed/file_n.html
Hint: To find the templated files, run iwexattr on a file and look for the special templating EA's. I do not know what they are off the top of my head, but do a File > Properties on a templating generated file and look at the "TeamSite/Tempalting/*" EAs toward the bottom
-After the file list is built, run the following command to regen with the most recent template:
$iwhome/bin/iwregen $file
--
Jed Michnowicz
Interwoven Technical Consultant
vinylrecord
Hi
i have found one script regen.ipl which can recursively go inside a workarea and regenerate all HTML files.
i have copied this regen.ipl into /softwares/interwoven/iw-home/bin.
and executing it as follows
regen.ipl /.iwmnt/default/main/branch/WORKAREA/mywork
it is giving following error:
Can't locate TeamSite/Config.pm in
@INC
(
@INC
contains: /usr/perl5/5.00503/sun4-
solaris /usr/perl5/5.00503 /usr/perl5/site_perl/5.005/sun4-solaris /usr/perl5/si
te_perl/5.005 .) at regen.ipl line 16.
BEGIN failed--compilation aborted at regen.ipl line 16.
can anyone help me with this
tvaughan
Sounds like your IPL needs to be forced to understand the TeamSite environment you're in.
I'm not familiar with this regen.ipl, but you'll probably want to add a line like this in the script before the first reference to a TeamSite perl module:
use lib qw(/teamsite/iw-home/iw-perl/site_perl/5.005);
Of course, you have to change my "/teamsite/iw-home" to be your $IWHOME.
Or, just start manipulating your
@INC
and
@ENV
arrays directly.
Tom
Adam Stoller
Did you make sure the #! line at the beginning of the regen.ipl script references iwperl from the correct location for your site?
Also - I don't believe you should be using /.iwmnt/ as the leading path - though perhaps the script cleans that up for you? The paths should be *vpaths* - like /default/main/... not /iwmnt/default/main/... nor /.iwmnt/default/main/...
--fish
(Interwoven Senior Technical Consultant)
dc.zip