aplia / redirectoperators
eZ publish legacy template operators for performing URL redirect from within a template
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 5
Type:ezpublish-legacy-extension
Requires
- php: >=5.3
- composer/composer: >=1.0
This package is auto-updated.
Last update: 2020-01-07 08:55:58 UTC
README
This package is deprecated and can be replaced by using the redirect
operator from composer package Swark instead.
ie. {redirectrelative( '' )}
becomes {redirect( '', 301 )}
and {redirectabsolute( '' )}
becomes {redirect( '', 301, 'abs' )}
.
Redirectoperators
eZ publish legacy template operators for performing URL redirect from within a template. The operators will send an HTTP header 301.
redirectabsolute
redirectrelative
Installation
Install with Composer:
composer require aplia/redirectoperators
Usage
From within a template, write:
{redirectrelative( '' )}
for instance:
{redirectrelative( '/path/to/file.php' )}
or
{redirectabsolute( '' )}
for instance:
{redirectabsolute( '' )}