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
- Host: GitHub
- URL: https://github.com/dennisinteractive/dennis_permalink
- Owner: dennisinteractive
- Created: 2014-11-19T12:11:50.000Z (over 11 years ago)
- Default Branch: 7.x-1.x
- Last Pushed: 2018-06-18T15:33:56.000Z (about 8 years ago)
- Last Synced: 2024-12-28T11:28:38.523Z (over 1 year ago)
- Language: JavaScript
- Size: 23.4 KB
- Stars: 0
- Watchers: 44
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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');
}
```