exhibit3: turning of the "and"

11 views
Skip to first unread message

ido

unread,
Apr 3, 2012, 10:50:45 AM4/3/12
to simile-...@googlegroups.com
Hi,

How do I turn of the  "and" that exhibit3 inserts after an html element.

I have "link": "<a href=xy>xy</a>" in my json and exhibit generates:

<span><a href=xy>xy</a></span>and<span></span> from this.

thank you very much,
ido

David Karger

unread,
Apr 3, 2012, 12:02:09 PM4/3/12
to simile-...@googlegroups.com, ido
The "and" is being generated because exhibit thinks you have multiple
values for the property you are showing.
e.g. if your exhibit contains {label: "example", name: ["David",
"Joe"]} so that the name property has multiple values, then if you put
<span ex:content=".name"></span> you will get "<span>David</span> and
<span>Joe</span>" in your output html.

If the second span is empty, it suggests your data is setting a second,
empty value for your field.

> --
> You received this message because you are subscribed to the Google
> Groups "SIMILE Widgets" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/simile-widgets/-/6i3NMz-KV9cJ.
> To post to this group, send email to simile-...@googlegroups.com.
> To unsubscribe from this group, send email to
> simile-widget...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/simile-widgets?hl=en.

ido

unread,
Apr 4, 2012, 7:28:37 AM4/4/12
to simile-...@googlegroups.com, ido
On Tuesday, April 3, 2012 6:02:09 PM UTC+2, DavidK wrote:
The "and" is being generated because exhibit thinks you have multiple
values for the property you are showing.

Yes. I see now, that this is because the records were duplicated. I did not have
any arrays in my json. exhibit3 was smarter than me.

best,
ido
Reply all
Reply to author
Forward
0 new messages