Is it possible to configure Drupal to save certain content type nodes into specific directories?

For example I created a content type called Packages. I want any package content that I create to be in a specific directory like - http://www.mysite.com/package/node111 etc..

The reason for this is so I can use wildcards in other parts of drupal concering the package data.

Is this possible?

Comments

vm’s picture

you want to investigate the pathauto.module.

keep in mind that drupal doesn't save content in a file based way. Drupal uses the database and as such you use paths to access content. paths resemeble directories but you will notice by looking at your folder structure that there are no directories being created for content and such, other than those directories that came included with the drupal download.

A perfect example of this is the admin path, yoursite.com/admin There is no "admin" folder in your folder structure.

nevets’s picture

Well technically nodes do not exist in directories at all, they exist in the database.

That said you can use path auto to alias the paths and vary the path per node type.

JackThompson’s picture

Ahh ok thanks guys.
I am getting this module now.

JackThompson’s picture

Worked awesome thanks again!