Changes in template.php
bcobin - April 9, 2008 - 21:59
| Project: | Advanced Theme Construction Kit (ATCK) |
| Version: | 5.x-4.0 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
Caleb,
ATCK rocks my world - take a look here to see it in action. One question: the method for adding additional blocks in version 3 of template.php was very straightforward; I haven't been able to figure it out in later versions. Would it be possible to add instructions similar to those in version 3 to the later 5.x version of template.php? No biggie - I'll just use version 3 for now, but I'm sure you've made some worthwhile updates.
Thanks for the excellent, excellent work, Caleb - really great stuff.

#1
Hi bcobin - thanks for the link to that good looking site you've made with atck. :-)
By 'adding blocks' do you mean adding new regions within
function atck_regions()that exists within template.php?#2
Yup. I see no corresponding code in the later version of template.php. I'm running into an additional problem with v3 where when a comment or forum post is submitted, the output "jumps" to the top of the page - behind the header, in my case.
This is only when a post is actually submitted - otherwise things display fine.
Using "tidy" and bypassing the following code eliminates the problem:
.tidy .gr,
.untidy .tidy .gr {
margin-bottom: -1000em !important;
padding-bottom: 1000em !important;
But you may try looking at what happens. Of course it could also be that I'm in over my head, which is pretty indisputable.
Thank you for the compliment, BTW - no small praise coming from you. ATCK has been invaluable for me in allowing me to start with a real blank slate as to design. Keep up the great work!
#3
Hi bcobin,
Look for this code inside template.php for the 5.x-4.0 version atck to add a region:
// New regions for blocks are easy to add. Just put it in here so you have a// new place for extra blocks. The first part is the name of the variable to
// place into your page.tpl.php and the second part is the human readable
// name that will show up in your blocks administration.
function atck_regions() {
return array(
'left' => t('left sidebar'),
'right' => t('right sidebar'),
'content_top' => t('content top'),
'content_bottom' => t('content bottom'),
'footer' => t('footer')
);
}
That's a funny issue you're having with the tidy class. I'm not sure exactly what give there.
Cheers
#4
Automatically closed -- issue fixed for two weeks with no activity.