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)
Rewrite Visual Format Hyperlink Path
Anip
Windows 2000/ Teamsite 6.1 SP2
Hi everyone,
If this is a RTFM question could someone be kind enough to point me in the right direction as I'm not sure if I'm searching for the right thing.
My question is this - how do I re-write the paths created by the "New Hyperlink" pop-up in Visual Format. In our Teamsite directory set-up "web" and "templatedata" are at the root, when the files are deployed to the live server only everything under "web" goes and IIS is set to point to the "web" directory for the site home. Therefore "/web" does not exist in the live site and so any references to it should be removed within content produced in teamsite.
Teamsite remapping is configured to see "web" as the docroot so all paths without reference to this directory preview and virtualize fine.
We have some fields that are browsers and we've used form api to strip out "/web". How do we do the same in Visual Format?
thanks
Ani
ps. the most annoying thing is we have a 4.5 version of Teamsite running and the previous developers had done exactly the same thing, I just can't see where or how they did it :-)
Find more posts tagged with
Comments
gzevin
I don't understand how come you have VF in 4.5.... maybe it's just me ..
as far as /web is concerned, you can use regexes in your TPLs...
however, I also don't quite understans as to why would you have a web directory if you don't need one...
Greg Zevin, Ph.D. Comp. Sc.
Independent Interwoven Consultant/Architect
Sydney, AU
nipper
>I don't understand how come you have VF in 4.5.... maybe it's just me ..
There were customers who purchased eWebEditPro and incorporated it into
templates in the 4.5 range. That was the predecessor to VF.
gzevin
not the predecessor, simply it was not OEM'ed then.. Yes, once you refreshed my memory, I do recall something...
Greg Zevin, Ph.D. Comp. Sc.
Independent Interwoven Consultant/Architect
Sydney, AU
Anip
Sorry - I got the version number muddled with other software we have. Our old installation is actually 5.01 - oops!
Anyway back to the question, where would I put these regex's - in visualformatconfig.xml or can I specifally access the hyperlink pop-up code and add a javascript function?
Anip
Sorry again - I really should have a cup of coffee before I sit down and reply to forums.
I just spotted you already suggested putting the regex's in the tpls - my bad.
Assia
Can you, by any chance, provide a sample of how you are doing this in your tpl? Thanks!
jbonifaci
As the previous poster sugged, they are doing it with a regular expressions. It's a fairly simple and straight forward solution. Please try it out on your own and if you have problems with the code, post the code that you can't get working and someone might be able to point you in the right direction.