I am looking to create a 3-column home page design for my site that segregates 3 different items of a given taxonomy type (News, Training Alerts, and Advisories) into 3 separate columns. Each column shows not only the taxonomy term, but pulls the content associated with it (e.g. a teaser view of each item marked 'News').
I am not very familiar with Drupal themes, but currently I have been able to accomplish everything I've wanted with my site using the Bartik theme. Are there any ways I can accomplish this using Views and without having to change much about the Bartik theme? Or alternatively, is there a way to just create a table with PHP code that pulls the content associated with each taxonomy type into each column of a 3-column table?
The simplest way I can think of:
Create 3 separate block displays, one for each term, using the Content -> Teaser output.
Download/enable Blockgroup and create a new block region (called "Front Categories") and place it wherever and assign it to
Put those 3 block displays inside the new block group region in whatever order you would like.
Add some simple CSS to give the blocks an even width, like: .region-blockgroup-front-categories .block-views {width: 33%;}
That should get you about 90% of the way there, if not completely work out for you.
Related
I want to have a 2 column layout with left bar on my homepage. In the left column, I want a list of categories shown in a tree view for a particular category of the main menu (Main menu has links like Contact Us etc which I do not want in the left tree view). I tried a number of solutions online, but nothing worked. Some of them listed the categories and subcategories, but without any CSS.
Anyone tried solving this?
There's no module that fit your needs, a little development should be done to retrieve the result you are looking for.
You could use the app/design/frontend/base/default/template/catalog/navigation/left.phtml block for this. In that block subcategories from the current category are shown, normally this block only is shown on listpages with subcategories.
You can add this block to the homepage and replace <?php $_categories = $this->getCurrentChildCategories() ?> with custom code which retrieves the categories/menu structure.
For a Drupal site I'm building, I've used the Views module to create a custom view that shows the top 10 most popular taxonomy terms. I'd like this list to show up in my site's header but I'm having trouble accomplishing this. I can get the header to display a link to the page for the view, but haven't figured out how to actually display the content of the view in the header node.
Also, if there's a better way of accomplishing what I'm trying to do, I'm all ears!
You should create view with the "block" display. This block can be placed in any region using standard block/theme functionality.
If you don't have "header" region, you can create your own. See this link for details.
https://drupal.org/node/1088718
Maybe, i do not quite understand you question (actually, phrase "header node" confused me, you mean header area/region?). If you need to display view on the node page, you can use views_attach ot eva modules.
Option 1:
Create a region in your theme.
Render the region on your theme page.tpl.php
Create a block display of you view and assign it to that region.
Option 2
You can create a view and then embed it in your theme file using views_embed_views. For details https://api.drupal.org/api/views/views.module/function/views_embed_view/7
Hope this solves your problem
I'm not sure if this is a general web design or Wordpress question.
I have a simple demo here to illustrate my question.
http://www.ttmt.org.uk/forum/wp/
It's just a simple 2 column responsive layout.
My simple question is how do I spilt the content between the two columns.
The page will be a Page in Wordpress and not posts (I think).
I wanted to create a page in Wordpress and place the text on the content area
There is one content area in Wordpress, is there a way to split this content
so I can say this is the left column, this is the right column.
The text will all be on the same subject but I need to split it between two columns.
Thanks in advance for any help.
If you are asking for how to make three columns out of the existing two than have a look here. If you are looking for a way to make it possible to enter the content in a way that you are able to output the different columns in different places in the theme, than there are a lot of ways.
In general you need some kind of »container« for each column, so you could start by adding div-containers by using the plain text editor when creating a post or page. You can also use the custom fields to enter more columns. There are also plugins available (I never used one for this) and last but not least: you can create your plugin and hook into the page/post-edit page and add additional fields to the input field. With such a plugin you also create a custom post type and hook only into its editing form.
The solutions range from »cheap and fast« to »rather complex« and it depends how comfortable the editing should or has to be. If it is only for you than simple hacks in the editor might satisfy your needs, but if it is for a client who is not that good in html you should consider something »stronger«.
I think this is design issue rather than Wordpress. Wordpress fetch content as a single item and displays it. If you want to display the content in multiple columns then you can use jQuery plugins like http://www.vanderlee.com/martijn/?page_id=229
You could split your content into column using the column shortcodes plugin from wordpress.org
I have a content type called product-templates. In this content I capture the following fields: Title (core), content body, taxonomy term reference, and 6 different file types. A new product-template content is created for each template we have. So let's say our products are widgets, broken down by color.. blue, black, brown, pink, green, etc...
The taxonomy has the primary product template categories, for example: blue widgets, black widgets, etc.. Each will have multiple templates for the different sizes, so the term will reference size/style, widget small, medium, large, square, round, etc.
Using the default taxonomy override that comes with views taxonomy/term/% and limiting the filter to product-templates and using fields, rather than full content I get a list something like this: blue-widget small -> template b1s, template b2s, template b3s… / blue-wiget medium -> template b1m, template b2m, and so on. So what I end up with is a full listing on all the product templates with their associated template files.
What I would like to have happen is that when the visitor is on taxonomy/term/% they are presented with a drop down or jump menu that shows the different options, then when they click on (for example) blue-widget small the associated templates render/populate on the page. So basically I want to remove the listing and turn it into a selectable area. Since there could be a large number of options/sizes I don't want to have a list that goes 20 scrolls, and I don't want to have to use a pager. It seem more logical to present them a drop down list that has all the options/sizes they select the one they want and then just those templates pull up.
Any suggestions on how this would be accomplished?
You should be able to accomplish this by adding filter to the view which is taxonomy term, then set it to exposed and use the following url to access all documents.
taxonomy/term/all (this should display all documents)
This will mean that it is applied for all vocabularies, so not a problem if you only have one.
New to Drupal. Installed it, set Bartik theme as default, created a few pages with a menu. Now I would like to do something like this:
where the pictures with descriptions link to either other pages or articles. Each of them should have custom size.
What is the simplest way to do it?
For the testing I have created 4 articles on my home page, but obviously they sit one on top of each other. The same happens when I add blocks.
There is not better option to this than to install and use Views module. You can achieve exactly what you want using the nice UI it provides.
You need Views if
You like the default front page view, but you find you want to sort it differently.
You like the default taxonomy/term view, but you find you want to sort it differently; for example, alphabetically.
You use /tracker, but you want to restrict it to posts of a certain type.
You like the idea of the 'article' module, but it doesn't display articles the way you like.
You want a way to display a block with the 5 most recent posts of some particular type.
You want to provide 'unread forum posts'.
You want a monthly archive similar to the typical Movable Type/Wordpress archives that displays a link to the in the form of "Month, YYYY (X)" where X is the number of posts that month, and displays them in a block. The links lead to a simple list of posts for that month.
P.S - Views module is the most used and installed module in Drupal, hence, it will be a part of Drupal 8 core.