Home
TeamSite
TeamSite, LiveSite and OpenDeploy
Ostream, Preview zz_files etc
Andy Knipp
OK, so problem:
out home page is a dev (not CMS) controlled page. So the Content team changes a bunch of include files that are read by the code. I have written a template that collects the information from user and creates the 11 different files via iw_ostream.
Easy enough, the TPL then redirects to the main page to view.
The issue comes down to using Preview or Generate and there is a non-trivial risk on Generate.
So on preview they can click edit on any of the 11 files, the DCR pops up. But since it is preview the ostream outputs, instead of the defined file.ascx, zz_andy_1_file.ascx, there is no way to tell the homepage to look for these files instead. The issue is can I tell preview to change the file name ? I cannot find anything in the templating doc that helps.
Using the generate option, I create a dummy HTML file that the user edits. The DCR pops up and the dummy file is the redirect and it creates the includes. The destination pops up and this works great. The problem is that this is a one off for all of the other DCRs in the system, it can lead to:
A user edits the file.ascx, the DCR pops up. However when the generate page pops up, it either errors out or the redirect statement overwrites the iw_ostream. Either is bad.
So my choices are to see if I can tell ostream to not output zz_ on preview, OR rewrite my TPL to a Perl TPL and bag using ostream and use Perl IO instead.
Any idea if #1 is possible ? Other options ?
TIA
Andy
Find more posts tagged with
Comments
There are no comments yet