Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
TeamSite
TeamSite, LiveSite and OpenDeploy
Call another DCR inside PT and generate 2 files
System
Is it possible to open and process another DCR inside a PT and have it output two files instead of just one for the current DCR? What I would like to do is have a DCT for a sidebar index in a web site that will allow users to adjust the order in which items appear and have the PT for the web page that uses that sidebar to generate the sidebar as a separate file (that will be included into the final web page using SSI). I've already written some Perl to do this manually in an index.txt file but I was thinking that maybe it would be better to keep them all as DCRs.
At the moment I have a component template that reads and writes to the index.txt file whenever a page is previewed to add the new file to the index (if it isn't already there). The main reason for wanting to see if I can do it with pure DCRs/PTs is so that the user could just open the index DCR and adjust the order using TeamSite's built-in ability to move replicants up and down. Otherwise, I'd be writing my own callout to achieve the same result (which I'm going to do if TeamSite can't open DCRs within PTs and apply the necessary PT to the "included" DCR and output two results).
I hope I haven't confused anybody (I had to read this post a few times myself to make sure I got it right :-)
PS. the whole reason for keeping the sidebar separate is so that several pages in one directory can share the index and highlight the current web page as necessary.
Find more posts tagged with
Comments
There are no comments yet