Home
TeamSite
Preview zz files
cvel2
Is there any way to modify preview so that it does not generate a file with the zz_ prefix?
Christina
Find more posts tagged with
Comments
Adam Stoller
If you replace the OOTB preview options with your own - yes.
Why do you care though?
(I ask, because there may be room for a more detailed response depending on your answer)
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com
cvel2
I'm creating an XML file that is to be used in the left navigation bar of a main page that's being previewed (being done by iw_ostream/iw_include in the main page's TPL). The application that pulls the page together is looking for the file based on the type of main page. (Meaning, there are multiple subject areas - the correct XML file is pulled based on Subject Area name. So if the subject area is ProjectDelivery, the XML file the application is looking for is ProjectDelivery.xml). Does this make sense?
Christina
Dwayne
The intent of preview is to see what your content looks like, without having it impact any existing generated content on the site. It sounds like you want preview to actually write the "real" files that the system is going to use to control your navigation. If so, then that's a job for "generate" not "preview." Or is there something I'm misunderstanding here?
--
Current project: TS 5.5.2/6.1 W2K
cvel2
No, I want to "preview" the XML files too. I'm creating them in the preview directory under a sub-directory so that we don't overwrite the real XML files. I would just like them to be the same name as the real files so that the application doesn't have to hold any special logic for preview.
Christina
Dwayne
I don't know that you can prevent the creation of the zz_* files, but maybe you could do something with an <iw_ostream> tag. You can detect in the PT if it's a preview or a generate, and vary the logic there. You'd still get the zz_ file, but your application could ignore it.
But what happens if two people attempt to preview at or near the same time? The zz_ file mechanism handles that for you.
--
Current project: TS 5.5.2/6.1 W2K
cvel2
I am already checking whether or not the file is being previewed and creating the file in the correct directory based on this. I can check with our application developer to see if they would ignore the zz_ prefix, but it would have been nice to not have to.
As far a two people previewing, it's pretty unlikely in this case.
Christina