view_parameter
Available since Exponential 6.0.15 (in development, not in a release yet).
Summary
The template operator view_parameter: a value as the value of a view parameter, /(name)/<value>, written as expViewParameters::encode() writes it ("~2F" for "/", "~28" and "~29" for the brackets, "~7E" for "~", the rest readable), so that a template never encodes one by hand and the view reads it ...
Description
The template operator view_parameter: a value as the value of a view parameter, /(name)/<value>, written as expViewParameters::encode() writes it ("~2F" for "/", "~28" and "~29" for the brackets, "~7E" for "~", the rest readable), so that a template never encodes one by hand and the view reads it back with expViewParameters::get():
<a href={concat( 'settings/view/', $siteaccess, '/', $file, '/(q)/', $name|view_parameter )|ezurl}>Guide: doc/eng-us/guides/urls-and-aliases.md, section 9 "View parameters: how a value travels in an address".
Source
Implemented by expViewParameterOperator (kernel/common/expviewparameteroperator.php).
See also
Help: guides/urls-and-aliases.md
Generated example: view_parameter
Added to the reference for Exponential 6.0.15: the 4.x reference had no page for this operator.
Contributors
- Graham Brookins Updated
Comments
Add a comment