Drupal Articles » Drupal gallery using CCK and Views » Pathauto settings and Custom Breadcrumbs
Pathauto
It's always best to set up Pathauto settings before making any new nodes.
Go to Administer > Site building > URL Aliases > Automated alias settings (admin/build/path/pathauto) and expand the "Node path settings" fieldset.
Add the following settings:
- Pattern for all Photo paths:
media/photos/[nid] - Pattern for all Photo Album paths:
media/photos/[title-raw] - Pattern for all Video paths:
media/videos/[nid] - Pattern for all Video Category paths:
media/videos/[title-raw]
Click the "Save configuration" button.
Add some sample content
Now that the content types have correct path aliases set up, go ahead and add at least 1-2 Photo Albums and 1-2 Video Categories, and then add several sample nodes for each album/category. Having several nodes to work with initially is important for confirming that everything is working correctly throughout the process.
After creating the new content, run cron to have the content automatically indexed by the Search module (go to admin/reports/status/run-cron).
Custom Breadcrumbs
Go to Administer > Site building > Custom breadcrumbs (admin/build/custom_breadcrumbs) and click the "Add a new custom breadcrumb" link (repeat for each instance). Add the following settings:
Photo Album
- For Node type choose:
Photo Album - For Titles add:
Media
Photos - For Paths add:
media
media/photos
Photo
- For Node type choose:
Photo - For Titles add:
Media
Photos
[field_photoalbum_reference-title-raw] - For Paths add:
media
media/photos
[field_photoalbum_reference-url]
Video Category
- For Node type choose:
Video Category - For Titles add:
Media
Videos - For Paths add:
media
media/videos
Video
- For Node type choose:
Video - For Titles add:
Media
Videos
[field_videocategory_reference-title-raw] - For Paths add:
media
media/videos
[field_videocategory_reference-url]
