Is it possible to drop a pre-made block in this thing? If so can you explain it to me like I'm a drunken hillbilly?

I want to do this:

//<div class="my_cool_ajaxy_div">
 // <?php print $whatever_this_god_damned_block_is_called; ?>
//</div>

and then get on with my life.

If you can explain how to do that in detail you'll be the hero of drupalville.

You should write a book like this gal, call it "Drupal Custom Pages for Shitheads" and sell it for $7 to all of us out here who don't want to wait another 6 years for Panels to get out of Alpha. Fill it up with possible code snippets, I'd buy it.

CommentFileSizeAuthor
#5 1125.jpg54.3 KBjthomasbailey
#4 1125.jpg54.3 KBjthomasbailey
1121.jpg48.42 KBjthomasbailey

Comments

irakli’s picture

Blocks are overrated :) Nobody needs a fixed block.

Create a new region (in your theme's themename.info file) and include region wherever you need it with print custompage_region_tile(); then you can assign whatever block you need to it. You can turn it on or off conditionally, allow certain roles to see it, or any other thing block management screen allows you to do.

Cooler than a silly custompage_block_tile(), no?

jthomasbailey’s picture

So if the name of the region is "east", I'd write:

<?php
print custompage_east_tile(); 
?>

?

irakli’s picture

Status: Active » Fixed

you'd write:

print custompage_regio_tile('east');

This has also been added to the Custompage doc, now: http://drupal.org/node/286219

thank you

jthomasbailey’s picture

StatusFileSize
new54.3 KB

this bud's for you

jthomasbailey’s picture

StatusFileSize
new54.3 KB

this bud's for you

irakli’s picture

Heh :) cheers. glad to hear it worked out for you

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.