Hi Jeff,

What does the "related" property contain? A URL? If so, then you 
probably want something like this:

    <div><span ex:if-exists=".related">See
       <span ex:content=".related">
          <a ex:href-content="value"><b ex:content="value"></b></a>
       </span>
    </span></div>

But if the "related" property contains a reference to a related item 
inside the same exhibit, then you would want this

    <div><span ex:if-exists=".related">See
       <b ex:content=".related"></a>
    </span></div>

But you would also need to change the "properties" section of your data 
file:

    {
       items: [
          ...
       ],
       properties: {
          "related": {
             valueType: "item"
          }
       },
       types: {
          ...
       }
    }

Cheers,

David

Jeff Spitzer wrote:
> Hi,
>
> I use the following code inside a tile view to display information 
> about related items.
> <div> <span ex:if-exists=".related">See
>                     <a ex:href-content=".related"> <b 
> ex:content=".related"></b></a></span></div>
>                     <div>
> If I have *two elements* under the property "related", this displays as
> See _*related1* *and* *related2
> *_clicking on related1 or related2 correctly displays the tile-view 
> for those items, but the "and" is also clickable, and it produces an 
> error.
> What should I do to prevent this?
>
> Thanks,
> Jeffrey Spitzer
> _________________________________________________
> ** Unanswered questions are far less dangerous than unquestioned answers**
>
> Jeffrey Spitzer            "Take risks to learn, take time to teach" 
>      This message may
> Chair, Dept. of Talmud and Rabbinics 
>                                               be forwarded
> Gann Academy, The New Jewish High School 
>                                   without seeking
> 333 Forest St 
>                                                                               
>    permission.
> Waltham, MA 02452
> 781-642-6800
> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> www.gannacademy.org <http://www.gannacademy.org>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> General mailing list
> [email protected]
> http://simile.mit.edu/mailman/listinfo/general
>   

_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general

Reply via email to