I'm creating a recipe/online store website. The root URL is going to explain to people what the site is about and direct people to both the "store" tab as well as the free "recipes" tab. The root URL will also have a feed of my latest news/site related posts.

At the same time, I want the recipes tab to take people to a separate string of posts which are just recipe related.

I've created a new content type I've labeled "Recipes", so when an author wants to submit a recipe to the site, they can use that content type.

My question is (from a Drupal newbie) how can I go about getting my "Recipes" content type to appear exclusively under my Recipes tab on the site's menu. Is there an easy way to do this just using the administration panel in Drupal or do I need to be able to code to get this to work?

I'm on Drupal 7.39 specifically, and thank you for the help in advance!

Comments

Stefan Lehmann’s picture

The easiest way would probably to add a View which displays a list of recipes. The view would probably also provide some means to filter the list after various attributes. You can also give this View a menu item in the main menu.

The View itself would probably be placed under: yourdomain.com/recipes

You probably don't want to give recipes menu items. They really sound like a standard non hierarchical content type, which is only displayed based on the current context. If you install the Pathauto module you can define a URL pattern, which will give all recipes a URL like: yourdomain.com/recipes/basil-pizza .. which then can be used to create a proper breadcrumb path via the Crumbs module.

Not sure, if this is the sort of guidance you meant?

I like cookies!

scanner737’s picture

Ah hadn't used Views much on my sites yet so hadn't considered it but that's probably exactly what I'll need. I guess I'll pop back here if I need help with configuring Views to get this sorted but thanks for the suggestion as well as the one about using Pathauto to get the custom "recipes" URL pattern. I'll give these a go.

scanner737’s picture

I just started messing around with Views and kind of stumbled into it so now all pieces of "recipe" content appear under the /recipes destination and recipes only appear under the new "Recipes" tab. Thanks for the quick help, Stefan; I've got a lot to learn with Views it appears.

Stefan Lehmann’s picture

Views is probably the most important module in the Drupal universe and it will even be part of core once Drupal 8 is released. You won't regret any second you put into learning it.

I like cookies!