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)
Is there temp current DCT file
ninickname
TS 5.5.2 on Window...
When TeamSite "compiles/interprets" a DCT, is there a file somewhere in TeamSite's temp files where i can see the final result of the calculated instance of a current DCT?
Regards
Find more posts tagged with
Comments
Migrateduser
I assume you mean "DCR" instead of "DCT"?
TS will typically create a file whose name start with "zz_..." located in the root of the workarea whose template is creating the preview. This file is usually deleted once the preview is compiled/composed.
You could write something in your PT that will execute ONLY when someone is previewing (as opposed to generating). You can set up this code to write to a file... basically duplicating the functionality of a generate. Curious, why wouldn't you want to generate? Or, am I totally off base and you want to do something complete different than what I thought?
Dave
Current Environment(s):
(1) TS 6.1 SP1 on W2K3
(2) TS 6.1 SP2 on W2K
(3) TS 6.1 on W2K
AchievementTrackingReport.rptdesign
jbonifaci
Actually Dave, I think he's talking about a DCT when a user opens it. In which case, to the best of my knowledge, the answer is no. If so, what exactly are you trying to see? What your inlines are outputting? Just run them from the command line?
Adam Stoller
What does
final result of the calculated instance of a current DCT
mean?
Can you elaborate on what you're looking for / looking to do ?
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com
ninickname
For example, when I use ipl-callouts some TeamSite engine needs to interpret/compile all the PERL in there and generate a "finished" DCT that includes all the substitutions...
dafe, thanks - I meant DCTs though ;-)
jbonifaci, I think you know what I meant; well reason is, I would just like to see the result of some ipl-callout substitutions...
Thanks guys for your help.
Adam Stoller
You're talking about *inline* [not ipl] callouts in the DCT - and you'd like to see the resultant XML of the base DCT + the processed inline callouts?
Hmm - well you might be able to do a view source of the Edit DCR window - but that's probably not what you're looking for.
Try this:
near the top of your DCT - put an inline that dumps information to a known file (perhaps using one of the pieces of environment information to formulate the filename?) -- the information it will dump will be the contents of the DCT being processed (perhaps removing the one inline call that you are processing right now).
adjust your other inline scripts to find this file, read it in, and replace their own respective inline call with the same output they're going to print to STDOUT (minus the XML headers and substitution tags) and then write this data back out to the temporary file
At the end of the run - you should have what you're looking for.
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com
ninickname
Thanks ghoti, we were thinking of an approach like this, but were actually hoping TeamSite might already save some sort of temp file like those zzzs for presentation templates...
Thanks again
Regards