metatagger.cfg
Options
We wrote a perl script to clean-up all the <TAGS> from our DCR content. How do we implement this in our metatagger.cfg file
We would like to run the script before metatagger picks the file for tagging
Our Metetagger.cfg file:
<fileType>
<label>DCR input</label>
<extension></extension>
<htmlMode>true</htmlMode>
</fileType>
please note our DCR doesn’t have an extension value because that is how we save it from Visual Formatter. Even thought the DCR file is an xhtml
thanks in advance
We would like to run the script before metatagger picks the file for tagging
Our Metetagger.cfg file:
<fileType>
<label>DCR input</label>
<extension></extension>
<htmlMode>true</htmlMode>
</fileType>
please note our DCR doesn’t have an extension value because that is how we save it from Visual Formatter. Even thought the DCR file is an xhtml
thanks in advance
0
Comments
-
Thanks for your response;
Yes we are running metatagger from a workflow.
And Yes we could run the custom task before running mtmetaproxy.cgi.
But what happens if we strip all tags from our DCR and then re-safe the file, will that not screw-up our DCR. how could be cleanup the tags with out compromising the output display0 -
I do not understand the need to make physical changes to the file. Why do you want to change your DCR permanently? That way it won't remain re-useable.
I understand that all you wanted was to run some custom script before running metatagger. If your intention is to have metatagger pick the content of your dcr without tags then I don't think you need to even run your custom script. MetaTagger should take care of it.
What exactly is your requirement?
I suggested just a way to run your custom script but it will be best if you could specify the steps you are trying to accomplish.
Hope this helps!
Akshat Pramod Sharma
Interwoven Inc.0 -
Use the <converter> tag to run the file through your script. Then the output of your script (whatever gets written to stdout) will get sent to metatagger for processing.
<fileType>
<label>DCR input</label>
<extension></extension>
<htmlMode>true</htmlMode>
<converter>/full/path/to/perl.exe yourscript.pl "%FILE%"</converter>
</fileType>
Yourscript.pl should take the first command line argument as the filename, open it, process it and print the text to stdout. If the output of your script will be plain text as opposed to HTML set the <htmlMode> to false or omit that tag.0 -
We’ve tried the following <converter tag > in many variations, but we are still experience a runtime error:
<fileType>
<label>DCR input</label>
<extension></extension>
<htmlMode>false</htmlMode>
<converter>d:/iw-home/iw-perl/bin/perl.exe d:/iw-home/iw-perl/bin/mtpreprocess.pl "%FILE%"</converter>
</fileType>
we also tried the following:
<fileType>
<label>DCR input</label>
<extension></extension>
<htmlMode>false</htmlMode>
<converter>d:/iw-home/iw-perl/bin/perl.exe mtpreprocess.pl "%FILE%"</converter>
</fileType>
we’ve also used the a different perl engine iwperl.exe instead off the perl.exe; this didn’t help either.
Your solution is exactly what we want to do. Clean the DCR before metatagger reads it with out effecting the DCR’s original content, but we can’t get it to work. What’re we doing wrong?Edited by Developer on 12/20/02 02:04 PM (server time).
0 -
I think we're close!
Two things to try:
* Use windows style slashes "\" instead of unix
* Add the directory containing iwperl.exe (or whatever perl you want to use) to your system PATH0
Categories
- All Categories
- 111 Developer Announcements
- 49 Articles
- 103 General Questions
- 123 IM Services
- 40 OpenText Hackathon
- 31 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 897 Cloud Fax and Notifications
- 77 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 123 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 1 XM Fax
TeamSite Developer Resources
If you are interested in gaining full access to the content, you can register for a My Support account here.
- Docker Automation
- LiveSite Content Services (LSCS) REST API
- Single Page Application (SPA) Modules
- TeamSite Add-ons
If you are interested in gaining full access to the content, you can register for a My Support account here.