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)
pointing to a CSS file in vpath from VisualFormat config file ?
Mohamed
Hello,
I have a CSS file inside a WORKAREA inside a branch. I want my VisualFormatConfig.xml to point to this css file in this branch for some settings. How do I do that ?.
Please note that the VisualFormatConfig.xml file is in the (IWHOME)/httpd/iw directory and the css file is in "external" store "branch1" branch "Content" workarea and inside "css" folder.
Currently the VisualFormatConfig.xml has the element as given below.<br><style publishstyles="false" href="/iw/abc.css" preservewordstyles="true"/><br><br>I want the above element's href attribute to point to the css file in the branch1's css folder something like below.<br><style publishstyles="false" href="/branch1/Content/css/abc.css" preservewordstyles="true"/><br>I am not sure whether the above will work. <br><br><br>Thanks for your help.<br><br>Thanks & Regards,<br>Mohamed<br>Mohamed
Find more posts tagged with
Comments
santosh013
Your requirement is not clear.
Kindly be bit elaborative.
Thanks,
santosh013
Your requirement is not clear.
Kindly elaborate so that we can understand.
Thanks,
Mohamed
Sorry Guys. I am reposting the question again as the style element broke my entire message and did not find a way to edit my original message.
Question:
I have a CSS file inside a WORKAREA inside a branch. I want my VisualFormatConfig.xml to point to this css file in this branch for some settings. How do I do that ?.
Please note that the VisualFormatConfig.xml file is in the (IWHOME)/httpd/iw directory and the css file is in "external" store "branch1" branch "Content" workarea and inside "css" folder.
Currently the VisualFormatConfig.xml has the style element which points to /iw/httpd/iw/css/ folder. But I want this to point to the css in the branch branch1.
How do I do that.
Thanks & Regads,
Mohamed
abiondo
This is what I am doing to make this work
[PHP]
var workarea = top._dcWin.gWorkarea;
workarea = workarea.replace("//servername/", "")
var workarea_path = "/iw/cci/meta/no-injection/iw-mount/" + workarea;
var strCss = workarea_path + "/css/" + getSelectValue("/Root/Section").toLowerCase() + ".css"
var eWebEditPro = top._dcWin.eWebEditPro;
eWebEditPro.parameters.styleSheet = String(strCss);
// File is located in the \httpd\iw\ directory
eWebEditPro.parameters.config = "myconfigfile.xml";
[/PHP]