Mr. Imrich,
Thanks for your reply. In other CMS implementations, I’ve always managed css, js, etc. in the CMS because it made the configuration management very clean, as opposed to having to manage two seperate systems to modify and deploy these. The second aspect is that in the past few years, CSS has advanced to be used for not only just basic look & feel, which is usually pretty static, but also layout as we’ve moved away from table-based layout in the web design world. Layout is something that can and usually does change, i.e. where you might add or move around a particular widget on a home or landing page or change or adjust margins, z-indexes on images, etc.
Anyhow, as for my particular problem, I think my understanding of what “related” means in a Percussion context is a little dodgy as I’m new to the product. I think the link genaration piece is Ok, I used an FF templates as a model (the rffSnImageLink or somesuch). In my snippet template (called nhlbiSnStyleSheet), I have the following binding:
$cssLoc= $rx.location.generate($sys.assemblyItem, “rffBnBinary”)
And in the template I have:
<link rel=“stylesheet” type=“text/css” href=“$cssLoc”/>
This works fine when I preview the snippet template (i.e. the proper link tag is generated)
I have an auto-slot called nhlbiAutoHeader with Active Assembly relationship type and I bring in the CSS file itself with an AutoSlotContentFinder with the following query:
SELECT rx:sys_contentid, rx:sys_contentstartdate FROM rx:rffgeneric where rx:sys_contentid=:myContentId
Finally, in my global template, I call the slot macro in my head tag, as follows:
#slot(“nhlbiAutoHeader” “” “” “” “” “template=nhlbiSnStyleSheet&myContentId=763”)
When I preview a page which uses this global template, the slot is not rendered as I expect. I suspect that Active Assembly maybe doesn’t take place in the Global Template, so this isn’t getting “assembled” for lack of a better term?