Перейти к содержимому


Фотография
- - - - -

Rating


Лучший Ответ 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.

Перейти к сообщению


  • Закрытая тема Тема закрыта
Сообщений в теме: 4

#1 P.K

P.K

Отправлено 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

Отправлено 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.


  • 0

#3 P.K

P.K

Отправлено 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

Отправлено 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

Отправлено 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!