Drupal contextual block above view? - drupal

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.

Related

Add Links block to view's page, below filter, in Drupal 8

I have this view with a Page display that has a filter and a list with content to be filtered.
I would like to add a Links block right below the filters form but I just don't get it how. I tried adding the block to the sidebars (from /structure/block) but the sidebars are outside the main content (Bootstrap theme) and the View edit form (views/view/myview/edit) has no option or place where I could add a Builder block.
How would you do this?
You can setup the view as block display(or duplicate the page display as block display) and go with the option "Exposed form in block" = Yes in the Advanced section.
It will let you to show the main view block (content list) and the exposed form(filters) in different configurable blocks in any basic/blank page.
Then you can easily insert your links block in between them.

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.

Is it possible to have a large image above the content node in Drupal?

I'm trying to replicate pages like the following using Drupal:
http://www.ams-neve.com/Products/Outboard/1073LB/1073LB.aspx
My problem is that I'd like the image at the top (which changes depending on which page you're on) to be part of the main content node, while the menu on the left is a sidebar region.
I'd like to have a 'product' content type where I can write the main copy, include linked files, etc. plus have a 'header image' which would be what appears at the top of the page.
I have the feeling that it can't be done like this because I'd essentially need bits of the node to be rendered into different blocks. If I theme the node template to wrap a div around the header image I can't figure out a way to have that moved to the top of the page and displace the left sidebar down.
Can anyone tell me if it's possible, or suggest an alternative route.
There are a lot of products so I need it to be a simple method.
The method I used was to create a Views Slideshow Block in Views. It pulled the header_image field from my node by looking at the page it was on. I put this block into the header of my page.
Anyone else looking at this should also check out Display Suite. You can do a lot of cool stuff with that.
if i'm not getting it wrong you are having problems with the default way in which drupal blocks work. Have you tried panels? It's an awesome plugin to work with drupal which let you create pages in a really flexible way.
You could have a custom field for your 'Product' content type that is an image or a text field to a URL for the header image. Just use CSS to place them where you'd like.
Alternatively, check out these links, I think they are what you are looking for.
http://drupal.org/project/headerimage
http://drupal.org/project/sections

drupal views more link

i'm new to drupal views. More link not displayed with my view block. i set more link both Create more link and Always display more link option too. Find picture below for view settings.
Note: i'm sure there is around 10+ nodes available to display.
You have only block display, so where should go "More"? :) Create also "Page" display.
If you have specific page to link on more then you can use header or footer also
1. Add Global Custom Text in Header or Footer
2. Put Your Link There.
That is alternate way for more link

Multiple sections in Content Block for Drupal

How to create multiple sections in Content block in Drupal?
When a user visits my homepage, a mainpage will be displayed; this page will contain a few sections at the middle panel. One of these sections would be a news update section, another would be a video channel, much like how mtv UK is looking in the middle portion of the homepage.
http://lh6.ggpht.com/_SDci0Pf3tzU/Sd7SEwzEbhI/AAAAAAAAEqc/ROuP7fXkRSk/s400/section.png
What modules are needed to create this kind of website layout?
That site is using mainly Panels, and Nice Menus
A combination of the Views and Panels modules would be able to do it.
You may also want to try the composite layout module (which I find simpler to use & theme than Panels) : http://drupal.org/project/composite (unfortunately not yet available for D7)

Resources