H
Harry
Hi,
i'm using Amrita to generate static website pages, and having fun with
it! Now I'd like to have a navigationlist, a list where the items are
urls; all fine, but I'd like to designate one particular list-item as
"active", which is defined as id selector in the css-stylesheet for
the pages.
So the generated html-code should look something like this:
<div id="navigation">
<ul id="navlist">
<li><a href="home.html">home</a></li>
<li id="active"><a href="photos.html">photos</a></li>
<li><a href="info.html">info</a></li>
</ul>
</div>
However, I cannot find a way to have Amrita generate the value
"active" for the id attribute in a list-item. I did manage, as a
side-test, to use a css class instead of an id selector, and had it
generated by Amrita, but cannot get it working with the id-selector.
In my template, I set amrita_id to 'amrita_id'.
So my question is, how to generate a '<<some_tag> id="<some_value>"
....>' with Amrita?
thxia,
Harry
i'm using Amrita to generate static website pages, and having fun with
it! Now I'd like to have a navigationlist, a list where the items are
urls; all fine, but I'd like to designate one particular list-item as
"active", which is defined as id selector in the css-stylesheet for
the pages.
So the generated html-code should look something like this:
<div id="navigation">
<ul id="navlist">
<li><a href="home.html">home</a></li>
<li id="active"><a href="photos.html">photos</a></li>
<li><a href="info.html">info</a></li>
</ul>
</div>
However, I cannot find a way to have Amrita generate the value
"active" for the id attribute in a list-item. I did manage, as a
side-test, to use a css class instead of an id selector, and had it
generated by Amrita, but cannot get it working with the id-selector.
In my template, I set amrita_id to 'amrita_id'.
So my question is, how to generate a '<<some_tag> id="<some_value>"
....>' with Amrita?
thxia,
Harry