Pvh 

Extension key

pizpalue

Package name

buepro/typo3-pvh

Version

main

Language

en

Author

Roman Büchler

License

This document is published under the Creative Commons BY 4.0 license.

Rendered

Mon, 27 Apr 2026 13:21:34 +0000


This extension provides view helpers for the extension pizpalue hence aims to support new TYPO3 LTS releases promptly. It contains copies from the great vhs extensions by Claus Due.


Credits

This extension can be provided thanks to generous support from partners. A big thanks goes to:


Table of Contents

TYPO3 14 TYPO3 13

Introduction 

The aim from this extension is to provide general purpose view helpers for the extension pizpalue. It contains copies from the great vhs extensions by Claus Due. Many thanks here to Clause for his excellent extension.

Why copy code? To offer stable releases earlier. Stable releases from VHS used to be available a view month after a TYPO3-LTS-release. This extension is going to have stable releases available together with pizpalue.

View helper reference 

Condition/String 

Contains 

Description 

See vhs:condition.string.contains

Usage examples 

{pvh:condition.string.contains(haystack: haystack, needle: needle, then: 'then', else: 'else')}
Copied!

Condition/Variable 

IsNull 

Description 

See vhs:condition.variable.isNull

Usage examples 

{pvh:condition.variable.isNull(variable: variable, then: 'then', else: 'else')}
Copied!

Core 

Version 

Description 

Returns the core version number in the format M.fff.bbb. The version 11.5.21 would result in 11005021.

Usage examples 

{pvh:core.version()}
{pvh:core.version(as: '_version')}
Copied!

Format 

Eliminate 

Description 

See vhs:format.eliminate

Usage examples 

{content -> pvh:format.eliminate(whitespace: true)}
{pvh:format.eliminate(content: someContent, whitespace: true)}
Copied!

PregReplace 

Description 

See vhs:format.eliminate

Usage examples 

{pvh:format.pregReplace(subject: subject, pattern: pattern, replacement: replacement)}
{subject -> pvh:format.pregReplace(pattern: pattern, replacement: replacement)}
{pvh:format.pregReplace(subject: subject, pattern: pattern, replacement: replacement, as: '_as')}
Copied!

Replace 

Description 

See vhs:format.replace

Usage examples 

{content -> pvh:format.replace(substring: 'foo', replacement: 'bar')}
{pvh:format.replace(content: someContent, substring: 'foo', replacement: 'bar', count: 1)}
Copied!

Trim 

Description 

See vhs:format.trim

Usage examples 

{content -> pvh:format.trim()}
{content -> pvh:format.trim(characters: 'ab')}
{pvh:format.trim(content: someContent)}
{pvh:format.trim(content: someContent, characters: 'ab')}
Copied!

Iterator 

Merge 

Description 

See vhs:iterator.merge

Usage examples 

{pvh:iterator.merge(a: a, b: b, useKeys: useKeys, as: 'merged')}
{pvh:iterator.merge(a: a, b: b, useKeys: useKeys) -> f:format.json()}
Copied!

Random 

Description 

Select random elements from a coma separated list, array, traversable or query result.

Parameter Description Default
subject The subject Traversable/Array instance from which to select random elements.  
count Number of randomly selected elements to be returned. 1
shuffle Shuffle the selected elements. true
as Template variable name to assign. If not specified the ViewHelper returns the variable instead.  

Usage examples 

{pvh:iterator.random(subject: someArray, count: 3, as: 'randoms')}
{someArray -> pvh:iterator.random(count: 3, as: 'randoms')}
{pvh:iterator.random(subject: someArray, count: 3) -> f:variable(name: 'randoms')}
Copied!

Transform 

Flexform 

Description 

Transforms flexform data to an array.

Usage examples 

{pvh:transform.flexform(data: pi_flexform, as: 'pi_flexform_transformed')}
Copied!

Variable 

Get 

Description 

See vhs:format.trim

Usage examples 

{pvh:variable.get(name: 'my.template.var.{index}')}
Copied!

Set 

Description 

See vhs:format.trim

Usage examples 

{value -> pvh:variable.set(name: name)}
{pvh:variable.set(name: name, value: value)}
Copied!

Changelog for release HEAD 

Features 

  • [FEATURE] Add flexform transform vh (06.12.2024, 0d1d5b2 by Roman Büchler)

Reference 

Generated by:

git log v3.0.0..HEAD --pretty="* %s (%cd, %h by %an)" --date=format:%d.%m.%Y --abbrev-commit --grep

Note: The above list contains just commits marked with [FEATURE], [BUGFIX] and [!!!]. Complementary commits are available at Codeberg.

Changelog for release v3.0.0 

Features 

Bugfixes 

  • [BUGFIX] Strictify random view helper (17.08.2024, 5fc2aba by Roman Büchler)

Breaking changes 

  • [!!!][TASK] Drop TYPO3 v11 & add v13 support (15.08.2024, 283fab7 by Roman Büchler)

Reference 

Generated by:

git log v2.0.0..HEAD --pretty="* %s (%cd, %h by %an)" --date=format:%d.%m.%Y --abbrev-commit --grep

Note: The above list contains just commits marked with [FEATURE], [BUGFIX] and [!!!]. Complementary commits are available at Codeberg.

Changelog for release v2.0.0 

Features 

  • [FEATURE] Add core version vh (31.01.2023, 3bc0ad6 by Roman Büchler)
  • [FEATURE] Add count argument to replace vh (11.12.2022, e313b1a by Roman Büchler)

Bugfixes 

  • [BUGFIX] Add services configuration (14.12.2022, e709b60 by Roman Büchler)
  • [BUGFIX] Make string subject in PregReplace vh (12.05.2022, 82ebec6 by Roman Büchler)

Breaking changes 

  • [!!!][TASK] Bump TYPO3 to v12.1 (11.12.2022, 561b4bc by Roman Büchler)

Reference 

Generated by:

git log v1.1.0..ee27b6d1 --pretty="* %s (%cd, %h by %an)" --date=format:%d.%m.%Y --abbrev-commit --grep

Note: The above list contains just commits marked with [FEATURE], [BUGFIX] and [!!!]. Complementary commits are available at Codeberg.

Changelog for release v1.1.0 

Features 

  • [FEATURE] Add condition.variable.isNull vh (17.03.2022, 5457119 by Roman Büchler)
  • [FEATURE] Add condition.string.contains vh (17.03.2022, 5fd8a3f by Roman Büchler)
  • [FEATURE] Add format.pregReplace vh (17.03.2022, 39bf66f by Roman Büchler)

Bugfixes 

  • [BUGFIX] Make composer.json validate (09.02.2022, 59c9486 by Roman Büchler)

Reference 

Generated by:

git log v1.0.0..82987730 --pretty="* %s (%cd, %h by %an)" --date=format:%d.%m.%Y --abbrev-commit --grep

Note: The above list contains just commits marked with [FEATURE], [BUGFIX] and [!!!]. Complementary commits are available at Codeberg.

Changelog for release v1.0.0 

Tasks 

  • 41d9ffe [TASK] Add composer normalizer
  • bb7f3ab [TASK] Add extension icon
  • 56fa42c [TASK] Add unit tests to workflow
  • 1a5f2c7 [TASK] Add license
  • de6e6af [TASK] Add variable.set vh
  • f9dbc72 [TASK] Add variable.get vh
  • 63c52d0 [TASK] Add iterator.merge vh
  • 8cfd022 [TASK] Add iterator.random vh
  • 60ebda6 [TASK] Add format.trim vh

Miscellaneous 

  • 192c8c6 [DOCS] Add format.replace vh
  • ee60ae5 [DOCS] Add format.eliminate vh
  • 37541ae [DOCS] Add format.trim vh

Sitemap