The short answer to your question is that you will use $rxs_navbase to refer to the CSS file like this:
<link rel="stylesheet" href="${rxs_navbase}/css/mystyles.css" >
The value of $rxs_navbase will be replaced by the value of the selected variable name (in the dropdown on the Navon) for all content in that section.
However, there’s a little more background needed to understand what’s going on here. There are several steps needed to get this right. The documentation is correct as far as it goes.
BTW, the Fast Forward implementation is somewhat incorrect in this area: it uses rxs_navbase, but it doesn’t show how to substitute other variables.
In the big picture, what you are trying to do is implement multiple “style schemes” across different sections of your site. This is exactly the problem that variable selectors were added to address.
A “style scheme” can be as simple as a single CSS file, or it can be a directory tree with multiple CSS, JavaScript and Image files in it. In the simplest case, there will be only one section per style scheme, but it’s also possible to re-use a single scheme across multiple sections.
Your first step is to design your style schemes, bearing in mind that
-
Rhythmyx only gives you the option to select 1 style scheme per section, so all of your style elements (that can change) need to go into the style scheme.
-
All files (images, scripts, CSS, etc) and CSS elements must have the same names across different schemes. You’re going to refer to each CSS class (or image) by the same name in all of your different style schemes.
You will need a copies of the files that make up your style schemes in two places: in the web_resources folder of the Rhythmyx server and on your web server (and any staging servers). These files are not managed by Rhythmyx: they are “site furniture”.
Once you have the files, you must create a publishing variable for each different scheme. The values of this variable point to the “root” of the directory fragment that holds the style scheme. In the simple case of 1 CSS fiile, this is simply the name of the CSS file. Each variable will have at least 2 values : one for Preview and one for the Publishing context. If you publish more than one context you will need more values.
In the Navon at the top of each section, select the Variable that holds the styles for that section. All pages and subsections from that point downwards in the site tree will inherit this value.
In the templates (both Global and Local) the variable $rxs_navbase will inherit the value of the selected variable. Your templates should never refer to the other style variables, only to rxs_navbase.
Let me know if this helps or if you have further questions
Dave