Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Reverted from v. 3

...

Install as usual, see this for further information.

Configuration

In Administration » Islandora » Islandora Utility Modules » Pathauto (admin/islandora/tools/islandora-pathauto), configure which content models are subject to Islandora Pathauto:

Image Added

Configure how Pathauto creates aliases Configure the path patterns using the usual Pathauto interface, at Administration » Configuration » Search and Metadata » URL Aliases » Patterns (admin/config/search/path/patterns). Below is an example of setting up a custom pattern for Audio Content Model objects, and a default pattern which would be applied to all other objects. You can leave the "All Islandora objects" pattern blank if you do not want to create aliases for all other Islandora objects.

Image Removed

To enable custom paths for specific content models, first enable the desired content models at Administration » Islandora » Islandora Utility Modules » Pathauto (admin/islandora/tools/islandora-pathauto).

:

Image Added

The Default path pattern for Islandora Paths will apply regardless of the content model. Leave this field blank to create a path pattern for the desired Content Model.  Image Removed

Aliases can include the object's pid ([fedora:pid]), the Fedora label ([fedora:label]), the namespace ([fedora:namespace]), and/or the pid without the namespace ([fedora:shortpid]). See the documentation for Pathauto for more information on creating aliases.

...

A. By default, Pathauto removes punctuation such as the colon (:) from paths before creating aliases. This will result in PIDs that look like islandora123; if this is undesirable then configure the Pathauto setting under "punctuation" at admin/config/search/path/settings to not remove the colon.Q. Can I use this module to make the colon to show up as ':' instead of '%3A'?A. No. Sorry. This happens deep in Drupal's internal link-writing code. See this thread for more information. 

Q. What if I have multiple content models for the same object? Can I give it multiple aliases?

A. No. Multiple aliases for the same object are not supported. All objects should have at most one of their content models enabled for pathauto.