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)
Preview from DCR editor != Webdesk Pro view
laj1
Not sure if this is a question or a rant, but here's my deal.
I'm using 5.5.2 on win2000.
Lets say I have a work area S with a subdirectory S/SM.
I have a template which generates S/SM/TOC.htm which is a tabel of contents (a page full of links)
for the bunch of PDFs which live in S/SM.
When I edit the DCR to modify the links in TOC, and I hit preview, the DCR Editor previews from S,
causing all my links (relative URLs, all assume that the PDFs live in CWD, since TOC lives in the same directory
with them) to break. But when I view TOC.htm from S/SM, the links are fine.
So, WHAT GIVES?!?!?!?!
Is preview not supposed to be a "Live" page?
maybe it shoudl ask for a reference directory.
Thanks for listening.
Len.
Len Jaffe
My Heart Is A Flower
Update your DevNet profile - let us know who you are!
Find more posts tagged with
Comments
Migrateduser
All previewing pages for a given template type are generated to the previewing directory for that template defined in templating.cfg. This is a major problem for relative links. One hack is to have the template detect that it is in preview mode and call itself to generate the correct output file, then return a redirect to the browser to that output file.
MattP
A preview is a temporary version of the file written in a directory that you specified in templating.cfg. So when you preview, it is the generated code, in a temporary location. What I do, is make all of the links relative to the root of the WA (ie /SubDirectory/myfile.html) then, I set all my previews to happen from /temp. This gets a little tricky when you deploy to a web server becuse the directory structure and root MUST be equal.
When you preview the file in s/sm you are seeing the same code, just from a different directory.
IF, the template you are using is only used in the s/sm/ subdirecotry, then change the preview dir in templating.cfg.
Does this help?
Matt
Matthew Petitjean
BOC Group
Murray Hill, NJ 07974 USA
Label barcode 20131010_131740.jpg
laj1
IF, the template you are using is only used in the s/sm/ subdirecotry, then change the preview dir in templating.cfg.
Does this help?
Superlatively!
Thanks.
Matthew Petitjean
BOC Group
Murray Hill, NJ 07974 USA
BOC group?
Buck Dharma Rules!
Len Jaffe
My Heart Is A Flower
Update your DevNet profile - let us know who you are!
SimHei56.dcpackage.zip
output.pdf
laj1
Just a quick follow up to note that templating.cfg and the preview-dir attribute were the exact thing I needed.
Thanks to you and to MattP too, for the pointer. Now, I'm going to read a few more pages of the manual, so I can
preempt my next screed.
Len.
Len Jaffe
My Heart Is A Flower
Update your DevNet profile - let us know who you are!