Hi All,
I am new to drupal. but know about PHP development. my problem is i want to add new custom region for some blocks but i am unable to do that i have searched around and read post but nothing happens.
What i am doing is :
Step 1 - Defined new region in mythemename.info
regions[upcomingcourses] = Upcoming Courses
regions[trainers] = Trainers
Step 2 - Cleared cachet
i did not have button in my admin for clearing cache though i have deleted from cache tables.
Step 3 - defined a css class
.trainers{ width: height: ....}
Step 4 :
print $trainers
AND also tried:
if (!empty($trainers)):
print $trainers
endif;
after these all steps i can not see my defined regions in region drop down and in page.tpl.php.
where i am making mistake i don't know :(
Thanks in advance.
drupdev
Comments
...
The cache clearing button is at /admin/settings/performance
~silverwing
that is where i can not find
that is where i can not find any button.. so i deleted it from dabtabase. i tried all options.
..
did you actually include the block in your page.tpl.php file? (for your template?)
maybe the block has to exist before it is an option...i dunno, i'm new. ha
Yes, that's true. The step
Yes, that's true. The step you seem to be missing is adding the call to the new region in your page.tpl.php. It will look like:
<?php print $new_region ?>Then make sure to clear your cache (admin/settings/performance - at the very bottom of page, a button called Clear Cached Data), and it should now appear as an option for block placement on your admin/build/block page.
I found this great tutorial
I found this great tutorial http://mydrupalblog.lhmdesign.com/creating-custom-regions-drupal-6-themes yesterday which helped me a lot so maybe it also can help you getting further.
i think my new region will be
i think my new region will be trainer and i have post a call in the page.tpl.php
print $trainers;I think there is cache problem
Well, i have created with new installation and build regions in it.. everything went well. I think there is problem with some modules installed by the coder who worked on the application before.. i am implementing some new features and theme on the site.
the version they have worked is drupal 6.x and modules they had installed are for drupal 5.x when ever i try to upgrade some modules it crashes the site. Well i am giving it go head..
Thanks all for help.