I recently took wordpress across to Drupal and am in process of testing Drupal to see if it will do what I need.
Wordpress has permalinks which have the following structures (for my site)
1. For categories
/category/cat-name1/
/category/cat-name1/
...
...
etc.
2. For posts
/cat-name1/post-title1/
/cat-name2/post-title1/
Now in Drupal I can get the urls to look like this
1. Categories
/category/cat-name1
(no backslash, would be nice if the / could be added)
2. Posts
/content/post-titel1
/content/post-title2
Again no trailing backslash which would be nice to have - more importantly I cannot get the category name into the url (i.e. the "content" is a literal and I want that to be the category.
Can anoyone please help with these queries.
I have tried to change the url for the posts to [catpath]/[title-raw] but then I get error
"You are using the token [catpath] which is not valid within the scope of tokens where you are using it."
Comments
[termpath-raw]/[title-raw]
[termpath-raw]/[title-raw]
That is usually what I do. That way it pulls the taxonomy terms (up to the 1st parent) and it should accomplish what you wish.
URL aliases..
its no working for me.. I'm very new with drupal so I assume I'm doing something worng with my categories. Can anyone guide me through it..
I got pages (content type behaving as category).
I create my pages, nest some of them ..
I'm using [termpath-raw]/[title-raw] under node path settings .. and I don't know what to add under taxonomy term path settings?? Im using teh category module.. not taxonomies..
Please help..
Yenny
Some more info
Check to make sure you have each of these modules installed and enabled (and that you give yourself every permission in yoursitename.com/admin/user/permissions)...
- Token module
- Path module
- Pathauto module
Then, go to yoursitename.com/admin/build/path/pathauto
Under "Node Path Settings", you'll find the options to rewrite the url's of actual content pages. (In the "Node Path Settings" area, click on "Replacement Patterns" to see various rewriting options).
Under "Taxonomy Term Path Settings", you'll find the options to rewrite the taxonomy (i.e. category) pages. (Note: if you're not already, you should use taxonomies to categorize your content. It sounds like a complicated word, but it's the best way to categorize content.)
Some notes:
1. I'm assuming you have clean url's enabled, so that something like yoursitename.com?q=admin or whatever is rewritten by your Drupal installation as yoursitename.com/admin
2. Replace yoursitename.com with the actual name of your site
thanks
Well .. I checked all modules that you sugested.. everything is there and I do have the clean urls enable.. I tested using the [type] token instead of the termpath that I had, and it works perfectly.. I'm confident to say that my problem is the categories .. Maybe I'm not creating my content in the right way. I have to use the category module instead of the taxonomy module cause I'm using FCKeditor, with the link to content menu, and this last one doesn't filter the content if it is organises with taxonomies..
I really appreciated your help... I'll have to read more a bout categorizing content and then try it again.
Cheers,
Yenny
URL allias , Taxonomy and Link to content compatibility...
I Think I found out what my problem is...
I was creating my content using "/admin/content/category" category module.. I was creating containers and within them categories, pages and so on... My url aliases configuration is alright accord to your instructions.. but with teh category module doesn't work ( Why?? no idea...)
I decided to create my content with taxonomy (l/admin/content/taxonomy) not that I undertand much but I create a vocabulary and them some terms to it. Them try to create my content and associate it to my terms.. and my url looks to be working...
BUT... I choosed to use the category module instead of taxonomy a couple months ago, when installing the FCKeditor I couldn't create links to other pages.. So Iinstalled Linkto content.. and it only let me browse ( like a tree) categories and pages created using the category module, not the taxonomy..
Just wonder... How you guys achive both things... Links within your editor.. ( my users don't have any idea of HTML, so they will need to navigate through categorized content and find the page to link to) and urls that show your content structure.
Any suggestions welcome.
good tip, but this is work
good tip, but this is work for Drupal 6 too?