Hi Experts,
Version: 7.4.1 (Solaris)
Rolling out an entirely new site using sitepublisher. The HTML that comes from the designer contains javascript codes that contain links to other page in the site.
I understand that in order for TeamSite preview to work, we have to replace all this with $PAGE_LINK[pagename] and let the XSL transformation do the work of transforming the token.
For those javascripts that require changes to use $PAGE_LINK, we have to either 'include inline in the component' OR 'include as an external XSL'. These are the only ways that I know of so that the XSL transformation takes place.
We prefer the external XSL approach as the javascripts are shared by many pages in the site.
This means that we cannot use the page settings on the page editor to include Javascript file, in the normal way that we include JS in a page. And another downside is that if we use the external XSL approach, it does not get attached automatically via workflow for deployment.
Has anyone faced similar problem like this? Appreciate if anyone can share some pointers if we have missed out any other approach. Thanks.