I have a feeling there will be a very simple answer to this question, but I've searched and searched in the documentation and I just can't seem to hit on the right information to guide me.
I'm setting up a new site in Drupal (5.2). I managed to get it installed and configured with very little problem, and I've created a new theme and added some content. What I need to do now is set up the home page for the site, which, instead of having one big area for content, will have that area divided into four sections, like this ----------------- | | | | ----------------- | | | | | | | --------- | | | | | | ----------------- each of which needs to be editable by the site owner. I've created regions by defining them in my template.php file, and added the regions to my theme so the are now appearing correctly on the home page. I believe what I need to do next is create some new blocks to place in those regions, and then the site owner can simply edit those blocks as needed. So my questions are:
1) Do I have the right idea with creating regions and placing editable blocks inside those regions?
2) How do I create a new block and ensure that it is editable by the site owner? I've seen mention a few times that I should to to "administer > blocks > add block" but I don't see this option in my site admin; the closest thing to it is "administer > site building > blocks", but this page does not include an "add block" function.
I have a feeling that either I'm missing some crucial piece of information, or the documentation I've been reading is not for the version I'm using, or something in my site config is preventing me from seeing all the options/functions I should see in my site admin - or some combination of the above :) Hopefully some kind soul will be able to point me in the right direction!
TIA,
Sarah
- How do I create a new block and ensure that it is editable by the
site owner? I've seen mention a few times that I should to to "administer > blocks > add block" but I don't see this option in my site admin; the closest thing to it is "administer > site building > blocks", but this page does not include an "add block" function.
It really should have an add block function. There should be two options at the top - "List" and "Add block". What theme is your backend admin area using? If you are using a custom theme, it is possible that it isn't printing out $tabs as it should.
William
Also consider using the Panels modules to create the front page, and any other page that may have a similar rendering to the below. Can be found at http://drupal.org/projects/panels. A very versatile module.
-G
________________________________
From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of William Smith Sent: Friday, August 10, 2007 10:47 AM To: support@drupal.org Subject: Re: [support] how to add blocks to place in regions on my home page
2) How do I create a new block and ensure that it is editable by the site owner? I've seen mention a few times that I should to to "administer > blocks > add block" but I don't see this option in my site admin; the closest thing to it is "administer > site building > blocks", but this page does not include an "add block" function.
It really should have an add block function. There should be two options at the top - "List" and "Add block". What theme is your backend admin area using? If you are using a custom theme, it is possible that it isn't printing out $tabs as it should.
William
2) How do I create a new block and ensure that it is editable by the site owner? I've seen mention a few times that I should to to "administer > blocks > add block" but I don't see this option in my site admin; the closest thing to it is "administer > site building > blocks", but this page does not include an "add block" function.It really should have an add block function. There should be two options at the top - "List" and "Add block". What theme is your backend admin area using? If you are using a custom theme, it is possible that it isn't printing out $tabs as it should.
I think that is definitely the problem. I'm using the garland theme for the admin, but the blocks admin page shows up using the custom theme (as does the add content page). Unless there is a way to force these pages to also use the admin theme, I guess I'll have to add the $tabs to my custom theme...
OK, so I edited my theme to output $tabs, and that helps a lot! Now I see the "Add block" tab :) Seems weird that it keeps jumping back and forth between using the admin theme and my custom theme - when I click "Add block" it switches back to the admin theme.
Yeah, I've noticed that on D5 as well .. there are a couple of admin pages (the blocks page included) that don't seem to use the specified admin theme. It's never been a big problem for me, so I haven't looked into it, but I imagine that there is some information regarding this on drupal.org if you were to poke around. Or maybe someone else on the list can explain why this is the case.
Anyways, I'm glad that adding $tabs helped you out!
William
On 8/10/07, Sarah Adams mr.sanders@geekjock.ca wrote:
2) How do I create a new block and ensure that it is editable by the site owner? I've seen mention a few times that I should to to "administer > blocks > add block" but I don't see this option in mysite
admin; the closest thing to it is "administer > site building >blocks",
but this page does not include an "add block" function.It really should have an add block function. There should be two options at the top - "List" and "Add block". What theme is your backend admin area using? If you are using a custom theme, it is possible that it isn't printing out $tabs as it should.
I think that is definitely the problem. I'm using the garland theme for the admin, but the blocks admin page shows up using the custom theme (as does the add content page). Unless there is a way to force these pages to also use the admin theme, I guess I'll have to add the $tabs to my custom theme...
OK, so I edited my theme to output $tabs, and that helps a lot! Now I see the "Add block" tab :) Seems weird that it keeps jumping back and forth between using the admin theme and my custom theme - when I click "Add block" it switches back to the admin theme.
-- sarah adams web developer & programmer portfolio: http://sarah.designshift.com blog: http://hardedge.ca -- [ Drupal support list | http://lists.drupal.org/ ]
I believe this is the case on the blocks page because you have to be rendering the selected theme to correctly display where the blocks would show up in the theme (ie. the yellow parts that have the block region name in them). They wouldn't render at all if still showing the garland theme.
Greg
________________________________
From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of William Smith Sent: Friday, August 10, 2007 11:02 AM To: support@drupal.org Subject: Re: [support] how to add blocks to place in regions on my home page
Yeah, I've noticed that on D5 as well .. there are a couple of admin pages (the blocks page included) that don't seem to use the specified admin theme. It's never been a big problem for me, so I haven't looked into it, but I imagine that there is some information regarding this on drupal.org if you were to poke around. Or maybe someone else on the list can explain why this is the case.
Anyways, I'm glad that adding $tabs helped you out!
William
On 8/10/07, Sarah Adams mr.sanders@geekjock.ca wrote:
2) How do I create a new block and ensure that it is editable by
the
site owner? I've seen mention a few times that I should to to "administer > blocks > add block" but I don't see this option in
my site
admin; the closest thing to it is "administer > site building >
blocks",
but this page does not include an "add block" function.It really should have an add block function. There should be two options at the top - "List" and "Add block". What theme is your
backend
admin area using? If you are using a custom theme, it is possible
that
it isn't printing out $tabs as it should.
I think that is definitely the problem. I'm using the garland theme for the admin, but the blocks admin page shows up using the custom theme (as does the add content page). Unless there is a way to force these pages to also use the admin theme, I guess I'll have to add the $tabs to my custom theme...
OK, so I edited my theme to output $tabs, and that helps a lot! Now I see the "Add block" tab :) Seems weird that it keeps jumping back and forth between using the admin theme and my custom theme - when I click "Add block" it switches back to the admin theme.
-- sarah adams web developer & programmer portfolio: http://sarah.designshift.com blog: http://hardedge.ca -- [ Drupal support list | http://lists.drupal.org/ ]
I know you will not believe this offer
free Web hosting (not like others Cant believe go and see ) you domain not a subdomain
If you can not believe check this link http://www.000webhost.com/?id=9042
250 MB disk space 100 GB BAndwidth Full Domain hosting host unlimited domains free POP3 email
php, mysql, ruby etc. Regards Ajay Maurya ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ When I was younger, I could remember anything, whether it had happened or not; but my faculties are decaying now and soon I shall be so I cannot remember any but the things that never happened. It is sad to go to pieces like this but we all have to do it. -- Mark Twain
Don't spam the list.
Ajay Maurya wrote:
I know you will not believe this offer
Really? Try me.
free Web hosting (not like others Cant believe go and see ) you domain not a subdomain
wow. I mean, wow.
If you can not believe check this link http://www.000webhost.com/?id=9042
omigod. can't wait to click this. must click now. why am I still typing, and not clicking the link? Oh, yeah. Because it's SPAM.
250 MB disk space 100 GB BAndwidth Full Domain hosting host unlimited domains free POP3 email
php, mysql, ruby etc. *Regards* *Ajay Maurya *
When I was younger, I could remember anything, whether it had happened or not; but my faculties are decaying now and soon I shall be so I cannot remember any but the things that never happened. It is sad to go to pieces like this but we all have to do it. -- Mark Twain
When I was younger, I didn't spam. Now that I'm older, I still don't spam. I'm not a parasite. -- Samuel Clemens
Cheers,
Bill
23 October 2007 - 21:15 (where I live) Ajay Maurya
Hello Ajay,
Tuesday, October 23, 2007, 1:15:44 PM, you wrote:
AM> I know you will not believe this offer ...snip
If it looks to good to be true then it probably is.