system tag as HTML body attribute
Is there a way to set up a system region tag that would act as a template's id attribute? And if so, what kind of block should that system region tag reference XHTML, text, etc.?
Thanks.
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Tim on 10 May, 2010 08:52 PM
There aren't any system region tags that will enable you to do this, but you could potentially add or modify the
id
attribute of the<body>
tag by attaching a Format at the Template, Configuration Set, or Page level.For example, try something like this:
* Create a new XSLT Format with code like this:
<body>
tag.The sample XSLT Format I included above will change
<body>
to<body id="idGoesHere">
. For now, this is a static id that is hard-coded into the XSLT Format. You could, however, have something set up to where this Format would look for a specific element on the page and change the id depending on the value of that element.Hope this helps!
Tim closed this discussion on 10 May, 2010 08:52 PM.
stulk re-opened this discussion on 11 May, 2010 07:37 PM
2 Posted by stulk on 11 May, 2010 07:37 PM
Thank you very much!
Support Staff 3 Posted by Tim on 11 May, 2010 07:55 PM
No problem!
Tim closed this discussion on 11 May, 2010 07:55 PM.