Download the PHP package cpsit/cps-utility without Composer
On this page you can find all versions of the php package cpsit/cps-utility. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cpsit/cps-utility
More information about cpsit/cps-utility
Files in cpsit/cps-utility
Package cps-utility
Short Description Collection of utilities to use in TYPO3 Extensions.
License GPL-2.0-or-later
Homepage https://github.com/CPS-IT/cps-utility
Informations about the package cps-utility
CPS Utility
Collection of utilities to use in TYPO3 Extensions.
Utilities
Page Utility
expandPagesWithSubPages
@depreprecated since 3.0, use \TYPO3\CMS\Core\Domain\Repository\PageRepository::getPageIdsRecursive instead.
Retrieves subpages of given page(s) recursively until depth ist reached.
Usage: $pageUtility->expandPagesWithSubPages([...], 0)
resolveStoragePages
Resolve a list of given page(s) recursively until depth ist reached.
Usage: $pageUtility->resolveStoragePages('1,2,3', 0)
TypoScript Utility
Useful function to parse TypoScript configuration array.
Data Processors
Extends the FlexFormProcessor to be able to get values by path.
Usage:
View helpers
Explode view helper
Explode view helper Split a string by a string.
Wrapper for PHPs :php:explode function.
See https://www.php.net/manual/en/function.explode.php
Usage:
Inline notation: {text_to_split -> f:iterator.explode()} without as parameter returns an array.
Title Tag ViewHelper
ViewHelper to render the page title tag Example: Basic Example
Meta Tag ViewHelper
ViewHelper to render meta tags
Example: Basic Example: News title as og:title meta tag
Example: Force the attribute "name"
Header Data ViewHelper
ViewHelper to render data in
section of websiteExample: Basic example
Output
TCA
Input tags element.
Custom form element to display comma-separated values as tags. Based on [bootstrap-tagsinput] (https://github.com/bootstrap-tagsinput/bootstrap-tagsinput) package
Usage in TCA:
CKEditor Plugins
CkContent Plugin
CKEditor 5 plugin that adds custom CSS classes to the editor content area for TYPO3 multi-site theming.
Documentation
Traits
Trait to add cache tags to pages
Trait to add cache tags to pages in FE context
Usage:
- Add trait to your class
use Cpsit\CpsUtility\Traits\FeCacheTagsTrait;. - Call method
$this->addCacheTags(['tag1','tag2')were needed.