I've created a custom content type (using administer->content types->add content type), called Journal. It'll behave similarly to a Blog entry but has some of the options set differently (eg. not published to front-page, whereas my blogs are).

The question is how to make this new content type aliased in the drupal path. Blogs are aliased as sitename.com/blog. How can I alias this new content type to sitename.com/journal (for example). I would like to have this new content type's alias to behave in the same way as sitename.com/blog would (and list all the blogs, or be able to be sorted by username).

I've tried to use the path and pathauto modules, but don't seem to be able to get this working.

Comments

fuzzy_texan’s picture

I'm looking for the same thing. Did you happen to figure it out?

Jeff Burnz’s picture

In Path Auto simply add 'journal' as the first 'place holder' for the Journal node type (under node path settings):

journal /[title]

If you have a vocab called 'journal' you could use the [vocab] place holder:

[vocab]/[title]

There's a lot of different ways to set this sort of thing up, depends on how you want to structure your site and your specific path requirements. Keep playing with it and you will get there.

Remeber if you are using taxonomy to make settings for the category path settings also.

fuzzy_texan’s picture

Thanks. I went into pathauto and ticked create index aliases

When a pattern generates a hierarchical alias (i.e., any alias containing a slash), generate aliases for each step of the hierarchy which can be used to list content within that hierarchy. For example, if a node alias "music/concert/beethoven" is created, also create an alias "music/concert" which will list all concert nodes, and an alias "music" which will list all music nodes.)

This is doing exactly what I wanted. However I read on the pathauto page that this was not a good thing to do

Performance Note: Index aliases are slow and buggy. Please don't use them. They were ported to the 5.x-1.0 version of pathauto for "feature completeness" sake but will likely be dropped from future versions. See the issue about removing them and issues about them being slow for more details.

Is there another way? I need to be able to access different sets of news at /news, /news/[yyyy], /news/[yyyy]/[mm], etc.

Jeff Burnz’s picture

Not sure about that, maybe Views or the archive module (which I have never used, you'll have to check that one out yourself).