Hi, I'm still very new to Drupal and am trying to figure out how to set things up.
I'd like to have "index" pages for my content types. For instance "podcasts/" where it lists all my podcast audio content, and a "gallery/" where it lists all my image gallery items, etc.
How do I do this? I've been able to kinda do what I want using a URL alias to a taxonomy term/category but this isn't ideal, because my terms are not necessarily exclusive (i.e. a photo may come from a podcast recording session and be tagged podcast).
I'm sure this is really simple but I seem to be missing.
Try the views module : http://drupal.org/project/views
On Dec 9, 2007 4:40 PM, Errol Sayre errolbert@mac.com wrote:
Hi, I'm still very new to Drupal and am trying to figure out how to set things up.
I'd like to have "index" pages for my content types. For instance "podcasts/" where it lists all my podcast audio content, and a "gallery/" where it lists all my image gallery items, etc.
How do I do this? I've been able to kinda do what I want using a URL alias to a taxonomy term/category but this isn't ideal, because my terms are not necessarily exclusive (i.e. a photo may come from a podcast recording session and be tagged podcast).
I'm sure this is really simple but I seem to be missing.
[ Drupal support list | http://lists.drupal.org/ ]
Hi Errol,
Welcome to Drupal. It's a great CMS/CMF with an awesome community.
Adding the Views module will give you a gazillion different ways to do what you want to do. There is a bit of a learning curve using the Views set-up page -- but you'll fall in love, for sure.
Views is at: http://drupal.org/project/views
You create a new view at: http://example.com/admin/build/views/add (replace "example.com" with your domain). You do that after you've given yourself permission on the Access control page: http://example.com/admin/user/access. (If you are working as user/1, the superadmin user created upon installation, then you don't need to set permissions. Howver, it's considered a best practice to not do much work while logged in as user/1. I always create another user for myself and create another role where I give that role all privileges.)
Using the "Filter" section of the views form you can create multiple criteria which select what content to present on the page. Content type, taxonomy, custom fields (if your content type has a custom field), author, created date, etc. You can also choose how you want the the content displayed (e.g. full nodes, teasers, or "list" from which you'll select fields to display).
Three important reminders:
1. You create the URL alias on the same form that you build your view. 2. You MUST check the check-box that says "Provide page view". It is hidden by default in the "Page" section of the form. 3. If you are having trouble pulling the desired content, experiment with changing the order of the filters you've chosen.
Good luck and write back with questions.
Shai content2zero http://content2zero.com
On 12/9/07, Errol Sayre errolbert@mac.com wrote:
Hi, I'm still very new to Drupal and am trying to figure out how to set things up.
I'd like to have "index" pages for my content types. For instance "podcasts/" where it lists all my podcast audio content, and a "gallery/" where it lists all my image gallery items, etc.
How do I do this? I've been able to kinda do what I want using a URL alias to a taxonomy term/category but this isn't ideal, because my terms are not necessarily exclusive (i.e. a photo may come from a podcast recording session and be tagged podcast).
I'm sure this is really simple but I seem to be missing.
[ Drupal support list | http://lists.drupal.org/ ]
Quoting Shai Gluskin shai@content2zero.com:
(If you are working as user/1, the superadmin user created upon installation, then you don't need to set permissions. Howver, it's considered a best practice to not do much work while logged in as user/1. I always create another user for myself and create another role where I give that role all privileges.)
How is that any different than working as user/1? Why is it better?
Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/
Earnie,
Here is the handbook page that describes why not using user/1 for day-to-day is a best practice:
Shai
On 12/9/07, Earnie Boyd earnie@users.sourceforge.net wrote:
Quoting Shai Gluskin shai@content2zero.com:
(If you are working as user/1, the superadmin user created upon installation, then you don't need to set permissions. Howver, it's considered a best practice to not do much work while logged in as
user/1. I
always create another user for myself and create another role where I
give
that role all privileges.)
How is that any different than working as user/1? Why is it better?
Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/
-- [ Drupal support list | http://lists.drupal.org/ ]
On Dec 9, 2007 12:40 PM, Errol Sayre errolbert@mac.com wrote:
I'd like to have "index" pages for my content types. For instance "podcasts/" where it lists all my podcast audio content, and a "gallery/" where it lists all my image gallery items, etc.
In addition to Shai Gluskin's awesome response on using Views I suggest the Pathauto Recipes handbook page [1] which describes how to make your content aliases work nicely with views. Specifically the section about making your patterns match your views to provide indexes.
For your case you could set the podcast content type pattern in Pathauto to be "podcasts/[title-raw]" which would create a url like example.com/podcasts/your-podcast-title which makes the podcasts index more useful/discoverable for your site visitors.
Regards, Greg
[1] http://drupal.org/node/124462#index_views
Can I use content templates with views?
On a related note, can I use content templates with blocks?
Thanks for all the help.
Errol,
If you choose, from within Views, to output info as a "teaser", or "full node" AND you contemplate installed and configured for teaser and/or body for the content type you are selecting -- then yes, contemplate's settings will be applied to the content within the view.
If you are using the "list" output mode, then you'll need to use the Views Theme Wizard. This generates code you need to paste into your template files.
Also note there is cool stuff like header and footer fields that can be set for each view. There is also powerful stuff you can do with arguments and as Greg said, with pathauto.
Shai content2zero.com
On 12/9/07, Errol Sayre errolbert@mac.com wrote:
Can I use content templates with views?
On a related note, can I use content templates with blocks?
Thanks for all the help.
[ Drupal support list | http://lists.drupal.org/ ]