By JackThompson on
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
=-=
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.
Well technically nodes do not
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.
Ahh ok thanks guys. I am
Ahh ok thanks guys.
I am getting this module now.
Worked awesome thanks again!
Worked awesome thanks again!