Hard code the block into a page type?

Permalink Browser Info Environment
Hi all

I've been trying to hardcode this block into a page type so that I don't have to manually add it to my pages, but it doesn't work - the form's action isn't filled in properly.

I've tried embedding it both by adding a scrapbook instance of the block and by embedding it each time like this:

<?php  
         $savepdf = BlockType::getByHandle('save_area_to_pdf');
         $savepdf->render('templates/slc');
         ?>


but the form action isn't populated so the page just reloads.

Is there a solution to this? It's a great block!

Type: Discussion
Status: New
melat0nin
View Replies:
jstrong replied on at Permalink Reply
jstrong
Hello apologies first off for the late response - I haven't been receiving notifications of activity here! I'm pretty inundated right now but I will look at this in two weeks. Take care - I am really glad you find this to be useful! -J
melat0nin replied on at Permalink Reply
melat0nin
Thanks J!
melat0nin replied on at Permalink Reply
melat0nin
It's working now under 5.4.2.2!
jstrong replied on at Permalink Reply
jstrong
Great! -J

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.