lsascha/wm-pagepath

There is no license information available for the latest version (1.0.1) of this package.

Generates Frontend URL from Backend in TYPO3

Installs: 3 708

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:typo3-cms-extension

1.0.1 2018-08-30 09:48 UTC

This package is auto-updated.

Last update: 2024-12-17 00:26:13 UTC


README

Generates Frontend URLs from the Backend in TYPO3

Provides Utility Class to generate Frontend-Urls from Backend Modules. Based on Extbase + PageType in contrast to eID of similar Extension https://github.com/smichaelsen/typo3-pagepath

How to use

To obtain a path call: $pagepath = Webmatch\WmPagepath\Utility\PagePathUtility::getPagePath($pageId, $parameters);

$parameters can be a string or array. If it is a string it must start with a & character. So it can look like the following example to call an action of a extension.

use Webmatch\WmPagepath\Utility\PagePathUtility;
// ...
$pagepath = PagePathUtility::getPagePath(
    $this->settings['pageUid'],
    [
        'tx_pluginname[action]' => 'sendEmail',
        'tx_pluginname[controller]' => 'EmailSender',
        'tx_pluginname[user]' => $user->getUid()
    ]
);

Contacts

Maintained by Sascha Löffler lsascha@gmail.com

Credits to Dmitry Dulepov dmitry.dulepov@gmail.com and Sebastian Michaelsen sebastian@michaelsen.io