lsascha / wm-pagepath
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
Requires
- typo3/cms-core: ^8.7.1
Replaces
- typo3-ter/wm-pagepath: 1.0.1
- wm_pagepath: 1.0.1
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