2017 © Pedro Peláez
 

typo3-cms-extension pagepath

image

smichaelsen/pagepath

  • Thursday, August 2, 2018
  • by smichaelsen
  • Repository
  • 1 Watchers
  • 2 Stars
  • 4,195 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 10 Forks
  • 4 Open issues
  • 16 Versions
  • 13 % Grown

The README.md

Pagepath extension for TYPO3 CMS

This is an extension for the TYPO3 CMS., (*1)

What it does

This extension provides an API for other extensions to create a path to a TYPO3 page for page id and additional URL parameters., (*2)

For example the page with id 26 and tx_ttnews[tt_news]=287 can be converted to http://example.com/news/health_care_for_typo3_programmers/., (*3)

This is especially helpful in contexts where typolink is not available, for example when creating frontend URLs in a backend module., (*4)

How to use

To obtain a URL use the following call:, (*5)

$pagepath = \Smic\Pagepath\Api::getPagePath($pageId, $parameters);, (*6)

Page id must be an integer value. Parameters must be an array. The format is the same as for the \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl() function., (*7)

The following examples are valid and equivalent:, (*8)

$parameters = ['tx_ttnews[tt_news]' => 123];
$parameters = ['tx_ttnews' => ['tt_news' => 123]];

The result will be either a fully qualified URL to the page or an \Smic\Pagepath\ApiException is thrown with further information on what went wrong., (*9)

Important! If there are many web sites in the page tree, the call should be made within the proper web site., (*10)

For example, if there are example1.com and example2.com, and Backend is open at https://example1.com/, resolving will work correctly only for example1.com. To overcome this limitation, make sure you have config.typolinkEnableLinksAcrossDomains=1 in TypoScript setup for all sites., (*11)

Caching

Calls to \Smic\Pagepath\Api::getPagePath() are not cached. For an improved performance you can use \Smic\Pagepath\Api::getPagePathCached(), which caches its result internally., (*12)

Compatibility

pagepath Version Compatible with TYPO3 version(s)
1.0 4.5 - 6.2
1.1 7.x
2.x 8.7
3.x 9.5

Contacts

Maintained by Sebastian Michaelsen sebastian@michaelsen.io, (*13)

Credits to the original developer Dmitry Dulepov dmitry.dulepov@gmail.com, (*14)

The Versions

02/08 2018

dev-version_1_0

dev-version_1_0

  Sources   Download

04/04 2018

0.1.2

0.1.2.0

  Sources   Download

04/04 2018

1.0.4

1.0.4.0

  Sources   Download

15/03 2018
15/02 2017

dev-task/test-typo3-8-6

dev-task/test-typo3-8-6 https://github.com/smichaelsen/typo3-pagepath

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

09/02 2017

dev-feature/exception-on-failure

dev-feature/exception-on-failure https://github.com/smichaelsen/typo3-pagepath

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

09/02 2017

dev-task/travis-ci

dev-task/travis-ci https://github.com/smichaelsen/typo3-pagepath

  Sources   Download

GPL-2.0+

The Requires

 

07/07 2016

1.1.1

1.1.1.0

  Sources   Download

GPL-2.0+

The Requires

 

07/07 2016

dev-security/2-unserialize

dev-security/2-unserialize

  Sources   Download

24/05 2016

1.1.0

1.1.0.0

  Sources   Download

22/12 2015

dev-7-compat

dev-7-compat

  Sources   Download