Re: [schema.org] Can I use itemprop="image" inside <g:image/> ?

206 views
Skip to first unread message

Thomas Broyer

unread,
Aug 23, 2012, 6:10:19 PM8/23/12
to google-we...@googlegroups.com


On Thursday, August 23, 2012 11:08:59 PM UTC+2, regnoult axel wrote:
Hello,

I have just discovered Microformat and http://schema.org/

This is an example  : 
<img itemprop="image" src="catcher-in-the-rye-book-cover.jpg" /> 

But I am using <g:image /> inside UI binder, so do you know if it will works ?

No.
 
Otherwise, do you know the solution ?


You could use getElement().setPropertyString("itemprop", "image") in your Java code.

Or you could use a <link/> element next to the <g:Image/>, see "canonical reference" in http://schema.org/docs/gs.html#advanced_enum 

That being said, do you know any real use of that data besides SEO? (which wouldn't look at your dynamic elements, unless you use #! and serve the data by "running" the GWT app on the server)

Thomas Broyer

unread,
Aug 24, 2012, 5:11:58 AM8/24/12
to google-we...@googlegroups.com


On Friday, August 24, 2012 3:21:33 AM UTC+2, regnoult axel wrote:
Thanks you Thomas for your helpfull answer !

It should be great to have this feature inside UI BINDER I think :)


(I suspect we'll end up closing it as AsDesigned though: if you want new features in widgets, then extend them, but the general idea is that widgets have control of their elements, otherwise it'd be too easy to break them)
Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
0 new messages