I just want a navigation categories similar to wordpress,

Categories:
>Php
>Html
>XML
>Java

And when you click PHP for example, you get all the Pages posted that is related to PHP.

How do I do this?

Comments

drawk’s picture

Taxonomy. Make sure you have the taxonomy module enabled, and go to admin/taxonomy

Click on the "add vocabulary" tab and create a vocabulary. If you don't know what to name your vocabulary, just call it "topics". Use the "Types" checkboxes to associate it with different node types (story, page, etc..). Then create terms under that vocabulary such as "PHP", "HTML", "XML", "JAVA".

Now when you add content, you can select what category it is in. The category links should automatically show up with the posts and teasers.

---
www.whatwoulddrupaldo.org

jason342’s picture

Thanks, but how do I make it appear like a navigation category, any advice?

I suppose I could put in a block and call that block "Categories" then does that mean I have to put the URL for "PHP", "HTML", "XML", "JAVA" manually?

Meaning every time I add a term do I have to manually add the term to the category, can Drupal not do this automatically like wordpress?

drawk’s picture

Meaning every time I add a term do I have to manually add the term to the category, can Drupal not do this automatically like wordpress?

If you choose "Freetagging", you can just type in the terms as you need them when creating your content

Thanks, but how do I make it appear like a navigation category, any advice?

I suppose I could put in a block and call that block "Categories" then does that mean I have to put the URL for "PHP", "HTML", "XML", "JAVA" manually?

I'm not exactly sure what you mean here. If you click on the link in my sig, you'll notice that it automatically shows the categories (taxonomy terms) I've associated with each article. If you click on, for example, "how to", you'll be taken to an auto-generated page of all the content associated with that term.

Is that what you mean?

---
www.whatwoulddrupaldo.org

jason342’s picture

What I mean is just having a standard right hand side navigation. Just a normal navigation that shows all the terms.

Just like the standard drupal navigation you use when you look at your 'my account', 'administer' in drupal.

So I would like a navigation like thatm to show "PHP", "HTML", "XML", "JAVA" etc..

drawk’s picture

Ah, I see. The taxonomy block or taxonomy menu modules should do what you are looking for. You can also accomplish it with some PHP snippets, so if that doesn't do what you are looking for let me know.

Also take a look here: http://drupal.org/node/47623 (Taxonomy Garden: Navigation by category)

---
www.whatwoulddrupaldo.org

jason342’s picture

Changing the subject slightly,

Drawk you seem to know drupal well, could you please tell me how to manage my articles like this site below?

http://www.mobilepokernow.com/articles

I want to have an Articles page, then in that page for the articles to be managed categorised the way they are on that site, notice it has General headers, then article headers.

You have any Idea how this is achieved?

That’s a brilliant drupal site.

drawk’s picture

That is definately an excellent Drupal site.

You could use some code like I posted in one of your other threads http://drupal.org/node/85740#comment-159177 and in the foreach statement, pull up a list of nodes associated with each term and either directly access the title, or override the teaser display in the node-*.tpl.php file. That's how I'd start if it were my site, and tweak a bit as necessary. See the API reference for taxonomy_select_nodes: http://api.drupal.org/api/4.7/function/taxonomy_select_nodes

There may be a module to make it more straightforward -- Views comes to mind, but I'm not sure that it's so easy to cleanly seperate the headers from the other fields with a Views page display.

---
www.whatwoulddrupaldo.org

DayShallCome’s picture

I recommend you check out the Category Module. It will provide a more structured setup for your site, which seems to be what you are looking for.

Give it a look - It's a really cool module. One of Drupal's best, imo.

netentropy’s picture

I am wondering the same thing. I understand there is a module but I would just like to know how to create a link that appears on the frontpage that will link to a category (vocab)

I have created a Vocab Category "History"

When I add a new link I type "History" into the path field box and I get page not found when I use the link. What am I doing wrong?

Thanks!

yoann54’s picture

u can try the taxonomy browser module !! its excellent...but not ported to drupal 7 i'm waiting the Drupal 7 version and i work on it too.....enjoy !