Adding to page type default

Permalink
I have read that this block uses cID of the page, if I add this to a default for a page type am I going to have issues?

What exactly happens if that page is duplicated? I'm fine with the reviews being shared between the multiple pages (add a comment/rating on one page, it appears on all duplicates of that page) but I don't want it to break;-)

Thanks.
stevegibbings
View Replies: View Best Answer
ryan replied on at Permalink Reply
ryan
It doesn't break, and the reviews themselves are added and displayed in the appropriate place, but the bug that shows it'self in this situation is the average rating is essentially shared across all of the instances of the block that share it's bID.
stevegibbings replied on at Permalink Reply
stevegibbings
Ah do blocks added on a page type default have the same bID? Or were you taking just about duplicated pages?
ryan replied on at Permalink Best Answer Reply
ryan
blocks added from a page defaults page would share the same bID until you edit the block on the page, then it'd break it's tie to the default.
stevegibbings replied on at Permalink Reply
stevegibbings
I see yeah that is worrying. Any idea on a fix? I can code something and share it back with the team.

So I totally understand. Is it just average rates that would end up shared or comments too unless the block was edited?

I appreciate your time in replying Ryan.

Thanks, steve
rmayhue replied on at Permalink Reply
I see in the version history for version 1.4:

"1.4 - Fixed star rating calculation when block is added from page defaults, global areas and stacks"

Is that a fix for this issue or something that sounds similar?

I upgraded to the 1.4 version and testing shows that the average rating is still shared. I'm using this add-on inside eCommerce for product reviews on a site built for a client, so adding it to the page defaults is something that makes sense in this case to avoid them having to edit each new product page to fix/add the Reviews add-on.

Thanks

Edit: This is mainly directed @ryan... I posted here to avoid starting a new thread.
EvanCooper replied on at Permalink Reply
EvanCooper
Hi rmayhue,

It would probably be best to start a new thread for this one. Thanks.