Francois wrote:
> Hi there
> I explore Exhibit to display items that are related: each item has an
> id string which is used in a parent property. Given items a, b, c,
> (with id= ida, idb idc respectively) c has parent=["ida", "idb"], a
> and b has no parent.
>
> I would build anchor in my web page so that one can navigates form
> children to parent(s). I first thought to use the id to have named
> anchors, but have to create an integer property display, unique to
> each item, to backed it:
> <a ex:name-content=".display"></a> (since strangely <a ex:name-
> content=".id"></a> was not working
>
> Now I'm stuck with the links :
> <a ex:href-subcontent="#{{.parent.display}}"
> ex:content=".parent.label"></a> is ok when there is just one parent,
> but does not work when there are many.
> <span ex:content=".parent"></span> display the parent labels
> correctly and open the window of each parent, but this is not the
> behaviour I want...
> How can I just have url(s) to the parent's named anchor ?
>
> Thanks for any help
>
Try
<span ex:content=".parent"> • <a
ex:href-subcontent="#{{.display}}" ex:content=".label"></a></span>
Basically the elements inside <span ex:content=".parent"> act as the
template for each parent. The • part is just for separating the
parents. Alternatively, you can generate a list
<ul ex:content=".parent"><li><a ex:href-subcontent="#{{.display}}"
ex:content=".label"></a></li></ul>
David
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"SIMILE Widgets" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/simile-widgets?hl=en
-~----------~----~----~----~------~----~------~--~---