Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
image path
rodigz
Hi,
Will it be possible to have differen image patht in preview and generate page??
scenario..
/0501/images/
path to be generated during the Generate button should be <img src="images/gif.gif">. To preview it should be <img src=/0501/images/gif.gif">
regards,
Find more posts tagged with
Comments
gzevin
yes, you could determine whether it's preview or generation, so you will be able to do an if statement
Greg Zevin, Ph.D. Comp. Sc.
Independent Interwoven Consultant/Architect
Sydney, AU
rodigz
Hu Greg,
How will I know?? Please advise.
thanks!
sample reports.zip
gzevin
RTFM.
see -iw_pt-preview in the FLAGS documentation of TeamSite:
T::iw_pt,
and also get_flag_param
the current documentation is always on your teamsite server: server/iw/help/tst/pt/
Greg Zevin, Ph.D. Comp. Sc.
Independent Interwoven Consultant/Architect
Sydney, AU
rodigz
Hi,
I can' find the iw_pt-preview .. My teamsite version is 5.5.2.
thanks n regards,
Rod
rodigz
Hi,
Got it thanks..
my $outputName = iwpt_get_ofile_name();
my $dcrName = iwpt_get_dcr_name();
my $param = iwpt_get_flag_param('-oprefix');
if($param eq ''){
#Its a Generate
iwpt_output("you pressed the Generate Button");
}
else{
#A preview
iwpt_output("you pressed the Preview Button");
}
gzevin
it IS there.
the paths for the articles (put your real server name, though)
server/iw/help/tst/pt/TeamSite__PT__iw_pt.html
server/iw/help/tst/pt/TeamSite__PT__iw_xml.html
Greg Zevin, Ph.D. Comp. Sc.
Independent Interwoven Consultant/Architect
Sydney, AU
gzevin
this also one of the ways to do it
Greg Zevin, Ph.D. Comp. Sc.
Independent Interwoven Consultant/Architect
Sydney, AU