Adding to page defaultsBrowser Info Environment
Or can you advise another way to add it to all the ecom products as suggested in your description?
Good question. Unfortunately the block passed on as Page Type default is considered as one block meaning there are no unique instances of this block created so basically the page that will be recognised is the Page Type Parent and not the child pages of this page type. Does that make sense?
Regarding the eCom product page what you can do is add the block by hard code here's an example to do thathttp://www.concrete5.org/documentation/how-tos/developers/hardcode-...
Hope that helps.
<?php $thumbs = BlockType::getByHandle('jb_thumbs_up'); $thumbs->controller->mode = 'plain'; $thumbs->controller->itemHandle = $c->getCollectionName(); $thumbs->controller->restriction = '2'; $thumbs->controller->restrictionLength = '604800'; $thumbs->controller->voteStyle = 'mini_thumbs'; $thumbs->render('view'); ?>
but its doesn't show up styled, and when you click a button it just opens up the cart?
Thanks in advance
May I know the url where you have this on?
Any of the product pages on the Doodles site have this at the bottom as they are in the product page templates now, i'd prefer not to paste the URL.
Can you send me the path of the file where you had the hard-coded block added? You can send it via PM.