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)
How to include a js file only to specific directories
jpm
In my development area , there are 3 branches under directory //server/default/main/business_com as follows /en /es /hisp I have a js code snippet to be included for all DCR only inside two directories /en and /es excluding /hisp branch. Is there any way to avoid inserting < script > code in all DCRs while achieving the required JS functionality inside all DCRs within two branhes?
Find more posts tagged with
Comments
JoshProx
Are you using some kind of a master slave templating approach where you code is residing in some admin branch. In that case you can write a case structure in your master DCT to only have this included depending upon the branch from where the slave DCT is invoking the template.