Someone Slap me here - What am I doing wrong

Events happening in the community are now at Drupal community events on www.drupal.org.
BillyKoch's picture

I am building my first Drupal site - (yea yea I kept putting it off and off and now I am down to it) Okay so I created a few taxonomy vocabulary and terms. Now I added the fields to the Content Types - so this is where I am stumped. I thought when I created the Taxonomy Vocabulary and Terms it would create a path (I have pathauto) to create a clean url to so so - For example - I wanted it to be like http://www.scddgc.org/news/space-city-is-blah-blah-blah but instead it is coming out as http://www.scddgc.org/content/space-city-deaf-disc-golf-club-officially-... (This is an article) - so what am I doing wrong - Granted I am using Beginning Drupal 7 as my reference to pick and learn on this So slap me on what I am doing wrong - please disregard the template/look/etc - I am using my local deaf disc golf club as a personal project to learn/pick up on Drupal and plan to work through it as I can. (It has the Omega Template installed and I created the Sub-Template for it - still trying to figure out where the css is lol) But one thing at a time. :D And I tried to tinker with the URL Aliases - but it kept giving me a using the following invalid tokens: [term:vocabulary], [term:name].

Any feedback would be appreciated -

Thanks a million - have a great one!

~B

Comments

You will need to set the

ahughes3's picture

You will need to set the tokens for Automatic URLs here:

yoursite.com/admin/config/search/path/patterns

To be clear there are two different Automatic paths (Patterns) to consider

1. There is the Automatic url path for the content type

Example: I have a content type called News and I want to create a new piece of News content and I want the url to be

/news/title-of-news-article

For this I need to set the auto path pattern for the content type to

news/[node:title]

2. There is the Automatic url path for the taxonomy term page

These will be listed under Taxonomy Term names

Example: I created a Taxonomy Vocabulary called News and a Term under this Vocabulary called Sports, I now want the path of the page that shows all News tagged Sports to live at

/news/sports

For this I would use the following token

[term:vocabulary]/[term:name]

Also, If you are setting tokens for URLS try removing the commas

I get the impression that

katherined's picture

I get the impression that what you want to do is set the path to [term:name]/[node:title], which you can't do with just pathauto.

Assuming you want to use content type article with various taxonomy terms, one of them being news, and you want each post to reflect the taxonomy term in the url, you will need other means. I think the Entity Tokens module that is part of the Entity API should do it. You'll probably want to do some reading for an exact "recipe" that works for you. I think this was one of those side effects of adding some other feature that makes D7 awesome, like fields in core, or entities, or something. This is one of those few things that was actually easier in D6... lol. It was easy to just have something like [term]/[title], but oh well, good ol days...

You are the MAN Mr. Hughes

BillyKoch's picture

Thanks that helped alot and now I figured out what the heck I was doing wrong! You have made my day easier - or is that night! Time to finish drupalizing!!!

Billy Koch
Drupal Noob

You are the MAN Mr. Hughes

BillyKoch's picture

Thanks that helped alot and now I figured out what the heck I was doing wrong! You have made my day easier - or is that night! Time to finish drupalizing!!!

Billy Koch
Drupal Noob

Houston Drupal Users Group

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week