An open API service indexing awesome lists of open source software.

https://github.com/dennisinteractive/dennis_permalink

Set and handle permalinks
https://github.com/dennisinteractive/dennis_permalink

Last synced: 8 months ago
JSON representation

Set and handle permalinks

Awesome Lists containing this project

README

          

dennis_permalink
================

Dennis Permalink provides a token and a predictable pattern
that is used for Open Graph urls and wherever a permalink is needed.

Once set, a permalink would not be changeable for a node.

Configuration
=============

The permalink pattern uses a predefined prefix which should be set on install for example;
variable_set('dennis_permalink_prefix', 'us');

The simplest way to do this is within a hook_update_N().
For example:
```
/**
* Enable and configure dennis_permalink.
*/
function HOOK_update_7100() {
module_enable(array('dennis_permalink'));
variable_set('dennis_permalink_prefix', 'us');
}
```