Jump to content


Photo
- - - - -

Rating


Best Answer Kess , 01 March 2014 - 11:54

Hello,

 

You can edit the media/zoo/elements/rating/tmpl/rating.php file and add conditions there. $this->identifier contains the Element ID, so you can compare those and render microdata only for those elements that you need.

Go to the full post


  • This topic is locked This topic is locked
4 replies to this topic

#1 P.K

P.K
  • JBZoo User
  • User rate: 0
  • posts: 155
  • topics: 35

Posted 01 March 2014 - 09:03

Hi

The rating used generates its own microdata snippets for the search engines whereas i use many ratings for the same product for different purposes and hence for a single product many rating microdata is generated which makes data non structured . How can i change this redundancy so that microdata is generated only for one rating?

thanks


  • 0

#2 Kess

Kess
  • JBZoo User (rus)
  • User rate: 11.9
  • posts: 406
  • topics: 40

Posted 01 March 2014 - 11:54   Best Answer

Hello,

 

You can edit the media/zoo/elements/rating/tmpl/rating.php file and add conditions there. $this->identifier contains the Element ID, so you can compare those and render microdata only for those elements that you need.


  • 0

#3 P.K

P.K
  • Topic Starter
  • JBZoo User
  • User rate: 0
  • posts: 155
  • topics: 35

Posted 02 March 2014 - 06:20

Hi

Worked perfectly. Another issue that remains is that i use the same element twice so this is still generated twice. Some solution?

thanks


  • 0

#4 P.K

P.K
  • Topic Starter
  • JBZoo User
  • User rate: 0
  • posts: 155
  • topics: 35

Posted 04 March 2014 - 16:11

Could something be done using the position of elements. So that only one displays the metadata. Or i think we could replicate one instead of rendering it


  • 0

#5 Kess

Kess
  • JBZoo User (rus)
  • User rate: 11.9
  • posts: 406
  • topics: 40

Posted 05 March 2014 - 16:59

Could you, please, send me a link to the page where it is still duplicated?


  • 0




Click to return to top of page in style!