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

Type: Discussion
Status: New
in2orbit
View Replies:
jb1 replied on at Permalink Reply
jb1
Hi

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
BHWW replied on at Permalink Reply
BHWW
OK, so I added this using:

<?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
jb1 replied on at Permalink Reply
jb1
Hi

May I know the url where you have this on?

JZ
in2orbit replied on at Permalink Reply
in2orbit
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
jb1 replied on at Permalink Reply
jb1
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

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.