mod_rsc_name

This module hooks into the update notification of m_rsc to automatically assign a unique name to each resource when the resource's unique name property is still empty.

Categories:

SCM system : Git (git)

Author: Arjan Scherpenisse

Project website: https://github.com/arjan/mod_rsc_name

Zotonic module for automatically assigning unique names to resources.

This module hooks into the update notification of m_rsc to automatically assign a unique name to each resource when the resource's unique name property is still empty.

The name that is generated is based on the title attribute of the resource. When multiple resources have the same title, a sequence number is appended to the name to enforce the unique constraint.

Note that the resource's name does not change when the title of the resource changes -- once a name is assigned, it stays the same until the name is explicitly cleared in the admin interface, at which point a new unique name is generated based on the resource's title.

Installation

Zotonic >= 0.10:
zotonic modules install mod_rsc_name
Zotonic <= 0.9:
zotonic installmodule mod_rsc_name
Zotonic <= 0.6:
git clone https://github.com/arjan/mod_rsc_name.git mod_rsc_name

Leave a comment