Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Rich snippets - microdata View modes: 
User avatar
Member
Member
Peter - 11/24/2013 3:59:38 PM
   
Rich snippets - microdata
Hi,
We are displaying personal data on our website where we add microdata for better display on google.

Currently we use webpart placed in transformation to display individual data. In the start
we use
<div itemscope itemtype="http://data-vocabulary.org/Person">

which is rendedred by Kentico engine
<div itemscope="" itemtype="http://data-vocabulary.org/Person">

Is there a way to overwite the rendering of a particular html code so it doesn't try to correct it?

Thanks
Peter

User avatar
Member
Member
eagleag - 11/25/2013 3:04:32 AM
   
RE:Rich snippets - microdata
webpart placed in transformation

You mean you have a transformation that has a repeaer in tis code?

Can you please show us the code. That way can see where the issue is coming from.

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 11/25/2013 3:32:20 AM
   
RE:Rich snippets - microdata
Hello Peter,

You can try to set the xHTML output to "/" via Site Manager -> Settings.
Or you can also add this page to excluded.

But the reason why this is happening is that every parameter has to have the value to be valid according to W3C standars.

Best regards,
Martin Danko

User avatar
Member
Member
Peter - 11/25/2013 3:06:36 PM
   
RE:Rich snippets - microdata
Thanks Martin,

The pages describing a person are generated dynamically so it would be hard to exclude them.

Also google uses microdata where the "itemscope" doesn't have a value.

<div itemscope itemtype="http://data-vocabulary.org/Person">

Ref: https://support.google.com/webmasters/answer/176035?hl=en

So basically there is no way to do this in Kentico without turning the whole validation off?
I was after some function which would dynamically exclude part of the html code.

Regards
Peter