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)
creating dcr's outside of TeamSite
khan
In an attempt to put all of our html pages into dcr's, I've written a script to automate the process whereby content is extracted from the html pages and then put into the correct item fields in the dcr code (or dct code, rather). I've emulated the exact dcr code, but outside of TeamSite. Therefore, the code for a dcr created in TeamSite and the code for the dcr I created with my script are the same. Then, I've saved the new dcr into the data folder in TeamSite. Ideally, I should be able to go into the data folder, checkmark my new dcr, and view it with the dct wrapped around it, the same as I would if I viewed a dcr created within TeamSite. Unfortunately, this is not the case, yet. Is there some association that I'm missing, or is there some TeamSite configuration I need to change? Or, is there a whole other answer?
Find more posts tagged with
Comments
JamJamT
Sounds like the Extended Attributes need to be set on the DCR that you created outside of TeamSite. Check the EA on a DCR that you created within TeamSite (File | File Properties), then apply those attributes to your new DCR. To apply the EA you will have to run the command line tool "iwextattr" with the appropriate parameters (see your CLT manual for the syntax).
--Jeff
khan
You're right. That's exactly what I had to do. Thanks so much for your help, Jeff!
khan
I've got a new problem now. When I compare the codes for the TeamSite-generated dcr and my dcr created outside of TeamSite, everything is exactly the same except for content that is inside of the textarea. For example, in my code, a <p> tag looks like this: </p>, but in the TeamSite dcr code, a <p> looks like this: </p>. Therefore, when in TeamSite and I try to view my dcr, I get the error: An exception was thrown: com.interwoven.templating100.dcredit.throwable.TParseException: Error parsing Data Content Record changingdone: The element type "value" must be terminated by the matching end-tag ""., line 3, character 1265. But if I replace, in my dcr, "<p>" with "</p>", I am able to view my dcr fine. In the TeamSite-generated dcr, in the textarea, all quotes are represented by """, all open brackets are represented by "<", and all close brackets are represented by ">". I see that the conflict is with the dcr's <value> tag and the first <p> tag of the content since <value> is followed by <. Remember that I've extracted data from an existing html file to put into the dcr code format. Does anyone know of a workaround?
khan
Never mind. I just did simple substitutions in my data extract code for those three things.