I had found the instructions on how to add a region (for example one under the Title of each page and above the main content) in a book I returned. I was wondering if anyone knows the link of an instruction (step by step) page or is willing to write how to do it.

I think its very useful and many can benefit from it. I couldnt find it when I did a search on /How to Add a Region/

tnx in advance,

if no replies, Ill have to go get the book back next week and will write it here myself :)

Comments

See Assigning content to

...

thank you Nevets.

Its very similar to what I was looking for. however, Im not looking for how to manually add content to regions but actually how to define a new region.

I remember the book saying to add line to the default .info file of your theme (i.e. Marinelli.info) :
regions[left] = Left sidebar
regions[right] = Right sidebar
regions[content] = Content
regions[header] = Header
regions[footer] = Footer

for example:
regions[title] = title

and then a new region should show up in the Block page called Title.

p.s.> my Marinelli.info looks a bit different from what I remember the book had said! I think its cause the book was a bit old and maybe isnt up to date with the new themes!

Then you would use the 'print Title block' code somewhere in the theme depending on location. (in my case I would like to add a new block for advertisement purposes to under the Title of each page)

I noticed my new marinelli theme doesnt list the default regions and when I add them myself (including the new Title one I define) it still doesnt show up on the admin block page.

any other links? or step by step instructions on how to ADD a New Region in your Theme?

In short im trying to add a new region for the admin block section!

...

_

Afaik, that's the only page that addresses this for d6. It may not be very clear, but the info is buried in the page. Since marinelli only uses the default regions you need to add all the regions to add a custom one (and yes, that was mentioned on the page somewhere, lol):

regions[left] = Left sidebar
regions[right] = Right sidebar
regions[content] = Content
regions[header] = Header
regions[footer] = Footer
regions[title] = Title

Then just open up the page.tpl.php file and print the $title region variable where you want it to appear (see the other regions in the file for the syntax). I'm not sure about naming your region "$title" though-- I believe there's already a variable in page.tpl.php named that. To be safe, I would name it something else.

_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.

thank you guys! Im all set

thank you guys! Im all set and finally fixed it with your help! :)

p.s.> Yes, I think I have heard of Google! ;) I followed the steps but it never worked but now it does thanks to the posts. the problem I was facing was updating the .info of the wrong folder.

I am using a template which is a subfolder of Marinelli but I was changing the .info of Marinelli root folder and noticed nothing changed!
But when I changed the .info in the Giordani folder it worked!

Nice post. Helped me on this

Nice post. Helped me on this subject.

STOP TELLING PEOPLE TO JUST GOOGLE IT

I am SO DAMN SICK of spending 30 minutes Googling something that should take 5, just because some lazy asshole feels the need to say "go Google it". With the sole exception of the original poster, nearly everyone reading your post GOT HERE FROM GOOGLE. So if you're not going to be helpful, let someone who is answer.

_

uh you might want to take a deep breath before posting tripe like this. The answer is indeed above-- as evidenced by the user posting that it worked for them. You also might want to consider everyone here is a volunteer, no one owes you anything, and those of us that do help out in the forums are equally 'damn sick' of those who post forum threads they could easily answer themselves with just a smidgen of effort on their part.

Frustration is understandable but yelling at volunteers is not and doesn't solve anything.

_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.

Yes I know the answer is

Yes I know the answer is there, but I was responding to others. They are not "volunteers" they are "trolls" unless they actually provide help.

It looks to me like he didn't

It looks to me like he didn't say "just google it." He googled it himself and linked the results, problem solved. By the way, just reading through the posts on this topic if I had to label a "troll"....

Definitely not a troll, just

Definitely not a troll, just a web designer who is tired of the collective wasted hours over the course of 12 years of googling and coming up with a "just google it" answer 75% of the time.

nobody click here