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)
Related
I have a WP website which has a home with a top banner and 2 more controllable panel like here.
My question is what is the best way to keep this controllable via admin?
The way I did it was to create two categories by the names "Latest Updates" and "New in 2013!" and then coded it such that the posts coming under the categories gets displayed in their respective panels on the home page. The image as usual controlled via the Featured Image of the post. A pretty basic setup to manage its content via posts to keep the layout intact and at the same time do the task.
I had suggestions where we should keep it right there in WP editor for control i.e. put all the div / ul / li etc. right there in the WP editor using the text part and have the admin control it right from there.
I need to know which method is better for implementation i.e. managing via posts like it is now or keep it right there in the editor and put HTML content in the editor.
All recommendations much appreciated.
Your first one method is correct ,easy and safe.
Safe Because,If accidentally any change in editor then all showing content breaked
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
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.
im using Views to output a block, containing latest post titles - simple and working. id now like to add some text links that should be different than the "more" link you can add through the Views UI. they are basically just p-tags with a-tags inside, pointing to a url of my choice.
right now i just inserted the markup in Basic Information > Footer > Full HTML.
is this the standard way of achieving what im after?
You can write custom templates for each row in a view if you want. Have a look at views 2 theming
Theming is a good way to do it but then it adds an additional responsibility to move the theme file when you move the view from one site to the other.
The header and footer are provided so that you can add html and php code to it, so it is definitely the right way to do it or else it would not have been provided in the first place by the module developer.
Also if the urls are related to the drupal site then I would suggest you to use php mode and add the link using l function (http://api.drupal.org/api/drupal/includes--common.inc/function/l/6)
the homepage of the design im currently converting in to a drupal site has 6 equally sized blocks of content (im not using the drupal term "blocks" here), showing a tagcloud, a list of the last 5 published titles, a delicious tagcloud, a "what is this site about" area etc.
my question is: is it possible / acceptable / standard practise to output only "blocks" and no "page" on the homepage, using Views? id assume a "page" would be the "main content area" of the homepage but since there isnt such an area im thinking of going just with blocks.
how does that sound?
I think the panels module may do what you are looking for here. Panels 3 is just out and looks like it can do just what you want.
Using two definitions for 'blocks' doesn't help you here. Page content, a view for instance, or a "what's the site about page" can still be page content if it's small and fits into a grid.
You have a choice of either using the panels module or of defining your own home page template by creating a page-front.tpl.php within your theme. Within the page-front.tpl.php you could specify in the markup the regions you want, defined in your .info theme file. In this case your page-front.tpl.php would contain 6 regions and you could simply then assign blocks to those regions within the adminstration area of Drupal.