Create a block for a specific page in Drupal - drupal

I want to have a sidebar for certain pages, each sidebar would contain different information. The problem is that I don't seem to be able to add blocks for a specific page but for all of them.

You can set this in /admin/structure/block
go to admin/structure/block
search for the desired block and click in 'edit'.
Scroll down until you see the below panel and click in 'Pages'.
Now you can show/hide blocks per page.

Related

How do I get blocks to display in Drupal 7?

I'm sure this is a very simple question, but I'm new to Drupal and haven't found a solution by the traditional methods of Googling and searching the Drupal home site, so please indulge me.
I've just installed Drupal 7 and am using the Bartik theme.
When I click Structure > Blocks there are a bunch of blocks at the bottom of the page which you can drag to a position corresponding to a region of the page template (Footer, Sidebar 1 etc).
However, when I assign a block to a region, whether by dragging, using the dropdown menu or using the configuration menu against the block, it does not save the assignation.
The block does not appear in the assigned region and when I return to the blocks page, those blocks are back at the bottom of the page, not assigned to a region.
The only blocks that I can make stick are ones that I create myself.
Can anyone point me in the right direction for a solution?
Thank you.
You wrote:
However, when I assign a block to a region, whether by dragging, using
the dropdown menu or using the configuration menu against the block,
it does not save the assignation.
It sounds as if you didn't click "save blocks" after assigning a block to a region - did you? There is a button on the bottom of the page - just below the blocks.

Displaying a menu/block in a page/node

I'm new to Drupal and making some changes to an exisiting site.
I have a page with a menu in the left side bar, which shows on all the pages in that menu apart from the one i've added. I've done it before where you have to add the URL of the page you want the menu to show somewhere in the admin panel for the menu to show.
If i go to: site building > blocks > block_name and then tick 'Users cannot control whether or not they see this block.' The menu wil show. But it will also show on pages I don't want it to.
Do you know where in the Admin I need to go to allow the menu to show on this new page.
Thanks in advance.
After hours of hunting around I've found the answer, the block has text box at the bottom of the page 'page specific settings' where you add the URL of the page you wish the block to show on.
You can use menu_block module.
It creates the menu inside a block and treats it EXACTLY like a block.
Hope this helps... Muhammad.

How to create different page styles in drupal 7 site?

i want to make drupal pages that has got different structures. Like on
the first page i want to place many 'views blocks', and after pages i
want to show other banners and some other blocks not placed on other
pages.
How can i do it?
You can go to admin/structure/block and click "configure" on the block.
Towards the bottom, there's a 'Pages' tab where you can indicate what pages you would like to show this block on.
For front page, use <front>
For other pages, use the path after http://yourdomain.com/ i.e. node/1
This box also supports wild cards, so if you wanted a block to show on all node pages, you could use: node/*

Can't edit block in Drupal

I have recently started using Drupal but I am having a bit of difficulty editing some blocks. I've gone into the blocks admin menu and I can see a list of all of the different blocks being used and they have the configure option next to them.
If I click configure on some of them, on the next page I am given the 'edit block' box but on others the box doesn't show up (e.g. footer). How can I make the edit box show up or is there another way to edit them?
Thanks for any help.
1] visit this link http://drupal.org/project/block_edit and download module and install it on your site.
2] visit this link to apply setting admin/settings/block_edit.
What actually this module do?
It's provide a edit link on block itself where you are viewing it. Now clicking on edit link will redirect you to specific block edit page. This means need not to go deep inside and find block you want to edit.
Some modules, like the menu module, add blocks with auto-generated content that cannot be edited directly from the blocks admin page. Usually only content blocks added by yourself will have the edit block content option.
Footer will be a menu block, so there will be no editable area. If you want to make changes to the menu you'd need to edit the menu rather than the block.

Custom Order Menus in WordPress

I'm using WordPress Menus for my main navigation, at the moment it's displaying the navigation alphabetically. How can I get it to display my menus in the order I have them arranged in WordPress?
Thanks in advance!
Appearance > Menus
Select the menu you want to edit (this view is editing Main Nav)
Select that pages you want to include in your menu from PAGES on the left
Add To Menu
NOTE: You can also add post categories and nest pages within each other like shown in the image below. Make sure that your template is set up for menu nesting if you do this.
If you are talking about pages in your menu, go to the editing screen and look for Page Attributes (typically on the lower right). You will see PARENT, TEMPLATE and ORDER. In the order section, you can assign a number to the post, and they will appear in the order you define.
Hope this helps
In the menu page, you should just be able to drag the items into the order you want.

Resources