I have a bit of a dilemna,
I am creating my menu using the mysource matrix code in the design file. I want to assign a unique ID to each top level list element so I am using the following piece of code:
<li class="isFolder" id="<MySource_PRINT var='asset_name' />"><a href="<MySource_PRINT var='asset_link' />" title="<MySource_PRINT var='asset_name' />"><MySource_PRINT var='asset_short_name' /></a>
The issue is that it is quite common for the folders that the li pulls the name data from are named/titled with more than one word, and in css this just won't work because of the inheritance principle. Is there another way to give a Squiz Matrix an alternate name where i can insert dashes/underscores to close up the spaces but still use the 'common name' for presentation at the front end of the website?
I.e. just like standard pages can have A Page Name and a Page Short Name
The reason I want to assign unique ID's to the elements is that I have a Javascript file that will perform some algorithms to target the specific IDs if certain conditions are met.