Need advise to organise different path for different content-type

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
sadist's picture

Hey all,

I'm trying to create a type of database, with Public contribution in mind. It's not exactly how Wikipedia works, but the idea is there. This will be for a music site. There'll be 3 content-type: Artiste, Album, Music.

Right now, all of the contrib modules I'd found didn't match exactly with what I wanted to do. Wikitools and freelinking.

I like how Wikitools, if the URL that is entered is not found, it will suggest you to create it. But the thing is, I want my Artiste page to be at "artiste/Node_Title", and album page to be at "album/Node_Title" Wikitools can only recognise 1 path.

Node Reference Create is almost there (to have it in CCK field instead of filter), but this module will force the node to be created. What I wanted is a suggestion instead of creating the node. I don't wish to hold alot of empty nodes if no one is contributing it.

I hope there's someone here with a better advise for me?

Comments

Just install Pathauto - you

Gerard McGarry's picture

Just install Pathauto - you can configure it to create different paths depending on the content type.

Sorry for not making it

sadist's picture

Sorry for not making it clear. I'm familiar with pathauto.module, it will help you define the url for the node-type you want it to be.

But what I want is whenever someone entered the url "blog/Title_Name" and no node exist yet, it will suggest to create a blog content-type.

But I have more than 5 content-types and each has been distributed to their own path.

With wikitools.module, you can specify which path do you want your wiki to be, but this will only be for 1 path for multiple content-type.

I thought with Wikitools you

Gerard McGarry's picture

I thought with Wikitools you could only specify the Wiki homepage through that mechanism. It's my understanding that the rest of the path addresses are assigned through Pathauto. To be fair though, I only use one content type on my wiki section, so I've never tried with multiple types.

My starting point would be to configure Wikitools with a wiki homepage, then set Pathauto for all the content types you need artist/node-title, song/node-title, etc. Then create a few pages and see if the paths get allocated correctly.

That was what I did, I won't

sadist's picture

That was what I did, I won't have a problem if all my content-types are configured only in 1 path. This is the scenario.

Lets say I'd configured my wikitools to the path "media". So when a user type "domain.tld/media/video/Title_Name", the page will suggest him/her to create a content by the name of "video/Title_Name"

So, as a non-programmer myself, I need help on how to let the system knows that "video" is a path for video content-type, and only Title_Name is the name.

Wiki

Group organizers

Group notifications

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

Hot content this week