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/*
Related
How do I add a module to a block/region in Drupal 7?
I am starting to format my Drupal 7 site to look like I want it do.
I have an empty block on the home page on the right side that I want to put a module in. I am thinking about a nice accordion menu or tree menu. How do I add a module to a block in Drupal 7?
I am new to Drupal and so I am probably confusing terminologies here.
If I click on Structure -> Blocks in the admin panel I am taken to a page where blocks are assigned to regions
If I click on the hyperlink to "Demonstrate block regions (Porto)", I am shown a page that represents regions (I guess) on the page as yellow fields/blocks and the name assigned to each of them. This is what I am referring to as "blocks" and I suppose this is a misnomer.
Earlier, I was trying to find a way of changing the width of a of a MD Slider and no matter what I tried in the configuration of this (Module?) nothing seemed to work. But then I noticed that could assign this to the "Content" area on the page and put something else in the "Right Sidebar" and this trick managed to change the layout of the page closer to what I was looking for like this:
and the result of my efforts is a home page that looks like this:
Which is getting close to how I want the home page to be arranged. Here, as an example, this is the previous layout I had before switching to the current theme:
Notice the "Navagation" UI control on the right side. This is what I am talking about here. If I add a module, like a tree or accordian, how do I get this to be put in the Blocks page such that it can be added to the region I want, which is the "Right Sidebar"?
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.
So, I'm relatively new to Drupal, and I'd like to make a Drupal site with a front page with a grid of links to other commonly used pages on the site. This site is intended as a sort of community page for a small town, so it would be links like Government, News, Business Directory, History, Forum, etc.
Some of these pages are basic pages on my Drupal site, some are external links, and some are links to views or modules, like the aggregator module. I'd like all of the links to be sortable and generally have the same markup. I'd also like these links to be gathered automatically, i.e. via the 'Promote to Front Page' option or something like that. I ABSOLUTELY DO NOT want to hardcode this to a basic page.
So far my solution has been to create a view with a list of title fields from pages promoted to the front page, and a special content type I named 'Link' which are actually just redirects to external urls. The problem now is that I don't know how to include special pages, like aggregator or view.
Any ideas? Is there a better way to do this? Have I missed something?
The easiest way to do this is as follows.
Create a content type called link with a link field on it.
Create a page view that displays all content of type link and displays the field link
This is a very basic way of doing it, if you wanted more than one list on the page then that would depend on the theme you are using and the links would need to be categorized in someway using taxonomy.
You may also want to look at the flag module.
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.
I'm using Drupal 7 along with the Views and Context modules. I have a particular view with a page display, and I want to put a particular block in the content region. When I do that, the block appears below the view.
I want the block to appear above the view, instead. Is this possible, or do I have to create another region to go above the content region?
Like you mention in your question, you'll need a region above the content region for this. The default theme for Drupal 7, Bartik, has several such regions (the 'Featured' region is probably the closest to what you're after), so if you're making a custom theme, you can refer to that theme for an example.
Go to edit your page view and click add on the header region. Navigate to your block view and insert it .
This may be the quick solution as it will display the block directly above the page content. It also allows the option of inherit contextual filters so the header display can receive the same contextual filters as its parent.
This can be also done in the footer region and works on all themes.