Adding to page defaults
Permalink Browser Info Environment
Hi I want to add this to page defaults, is there a way for it to recognise what page it is on in the 'reports' section?
Or can you advise another way to add it to all the ecom products as suggested in your description?
Thanks
Or can you advise another way to add it to all the ecom products as suggested in your description?
Thanks
Type: | Discussion |
---|---|
Status: | New |
OK, so I added this using:
but its doesn't show up styled, and when you click a button it just opens up the cart?
Any ideas?
Thanks in advance
<?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?
Any ideas?
Thanks in advance
Hi
May I know the url where you have this on?
JZ
May I know the url where you have this on?
JZ
HI JZ
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.
Thanks
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.
Thanks
Hi
Can you send me the path of the file where you had the hard-coded block added? You can send it via PM.
JZ
Can you send me the path of the file where you had the hard-coded block added? You can send it via PM.
JZ
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.
JZ