ez projects / redirect_operators
| UNIX name | Owner | Status | Version | Compatible with |
|---|---|---|---|---|
| redirect_operators | Esben Visfeldt | planning | N/A | N/A |
The operators will send an HTTP header 301 Moved Permanently to
the browser.
Installation instructions
-------------------------
1. If it does not exist, create a directory named "extension" in the
base
ezpublish directory.
2. Unpack the ZIP file and copy the directory "RedirectOperators" to
the
extension directory.
3. Add the following to your settings/override/site.ini.append.php
file:
[ExtensionSettings]
ActiveExtensions[]=RedirectOperators
4. Clear the caches.
5. Ready to go!
Usage
-----
From within a template, write:
{redirectrelative( '' )}
for instance: {redirectrelative( '/path/to/file.php' )}
or
{redirectabsolute( '' )}
for instance: {redirectabsolute( '' )}
Hope you find it useful! And if you know a better way to do the same,
please
post a comment for this contribution.
Best,
Esben Visfeldt
--------------------------------------------------
The mandatory disclaimer: use at your own risk!
--------------------------------------------------
Simple and so useful !
Monday 26 September 2011 20:42
Mickael Robin