I have many content type that I have added in drupal 7 and I want them to be available in main menu. For example I have content types:
news
events
and I want the main menu look like
home - news - events
Despite I checked available menu > main menu
it doesn't show up in the main menu. How can I fix this?
Content types refer to the different types of nodes that you can create. Making your news content type available for the main menu means that, when you create news nodes, you can place them in that menu.
If you are trying to create a page that lists news nodes, you need to look into the Views module. It will allow you to create pages or blocks containing lists of content. Then, you can put those pages in the main menu. You can find the Views module here: http://drupal.org/project/views
Related
I define a menu in drupal7 that look something like:
school
--people
----teachers
----pupils
I create:
Content type for people.
Menu with the above titles.
When I add person to people’s content, I choose if he belong to
'teachers' or 'pupils' in the menu.
Now I need that pressing on the menu will give me a list of all that kind of people.
For example, pressing on ‘school->people->teachers’ will give me the list of all
the teachers, one line for each teacher.
So I thing to build a view that get the menu/sub menu as parameter and give me the
appropriate output.
But I don’t know how:
Send to a view the menu / sub menu as parameters. (How to send parameters to a view)
How to filter the view by this parameter and create the specific page.
Create 2 views pages (teacher and pupils)
Where you will show list of all the teachers or pupils
In menu ----teachers add path on views page teachers.
In menu ----pupils add path on views page pupils.
After click on menu you will redirect to the desired page
Update Watch Duplicate Copy Move
I have different nodes to which I apply taxonomy terms.
I want to display two separate blocks:
The first block should list all the taxonomy terms (HTML list would be fine) and each should be clickable.
The second block should list all nodes that have the taxonomy term clicked on the first block.
How would I achieve that? I am using Drupal 7 and the Views module. Thanks in advance.
You need to 2 block views for this.
But create just 1 view and the second view is already there in your default drupal views.
Follow this steps:
Create a view.
Select "Taxonomy Terms" for "Show" from drop down.
Select the related taxonomy vocabulary for "of type".
Click on Create a Block.
Click on "save & exit".
This will create your first view block with the taxonomy terms.
Now for the second block which should display all the node related to the taxonomy terms.
you just have to enable a view which is "Taxonomy Term".Go down words in your drupal view list there you will find this view in a disable mode. you need to enable it.
Now just override the view as you want to see that node page to display all the content related to taxonomy terms.Select the fields and filters according to normal view creation as we do.
Create a page for this second block and give path as you like.
Now use Context module(download if you don't have right now) to show the taxonomy terms block on the path you have given for views.
(Hope you will be knowing how to use context if not just leave a comment i will guide you for that)
I am new in drupal 7 and I want to create one view blog in which I can list out taxonomy as category and in under that I want to display two articles and a read more link to that category. Can any one explain in details how can i do that.
If you use a content type with a Term reference field for your category, it wil automatically create pages for each category with the articles tagged with that category listed within it.
If you want to have more control over these pages generated by the Taxonomy module, you can turn on the Taxonomy Term example view in de Views UI and add and remove the fields you want to display. The layout of these pages can be edited by creating a custom template file in you themes template folder for the file page--taxonomy.tpl.php.
There you could als create an additional block display (I assume you mean block when you say blog), and in the Page settings area, you can turn on de More link, and this will display a more link when more articles are available then you have set you pager to display (i.e. Use pager - Display a specified number of items - Items per page = 2). Make sure you change de setting from For all displays to This block (override) to not override the other displays.
This block you can place in any region on any page via the Blocks UI and is should do what you want.
I'd like to add a second level menu on the side bar to a particular content within a menu.
I would have top level menus, Home, About Us, Resources. What would be the best practice to have the second level menu to appear only in Resources section not in any other sections?
Can I have a customisation at menu level, eg only for pages under resources?
The modules mentioned by fotuzlab may help you or you may have a theme that already implements some levels of drop down menus/expandable menus. But for some of these modules/themes may require that you check the box for Show as expanded in the menu link setting for Resources and unckeck for the other menu links .
And just to add another possible module, you can check out Menu Blocks.
SuperFish Menu
This will help you.
There are many contributed modules for the same.
Try:
http://drupal.org/project/nice_menus
http://drupal.org/project/jquerymenu
http://drupal.org/project/superfish
or you can checkout the comparison of different drupal dropdown menus here:
http://drupal.org/node/990154
The Menu Block module will allow you to choose a source menu, menu level, e.g. 2nd level, and display it as a block anywhere on the page: https://www.drupal.org/project/menu_block
I would like to have sections of a site so the top menu is a menu of sections such as "About Us". Then I want to have a secondary menu of pages within that section in the left sidebar. I know how to lay this out in drupal, but I want to make it easy for my end users to put the page they create into the proper section of the website. Would it be possible for me to create a taxonomy of terms that represent the 5 or 6 sections of the site and then somehow create the path to the page for the section they select in the taxonomy pull down menu?
Download Node Hierarchy, it has exactly that functionality