Plugin List, Smarty template; Cascading plugin List and passing values through FORMAT name variable
- Status
- Closed
- Subject
- Plugin List, Smarty template; Cascading plugin List and passing values through FORMAT name variable
- Version
- 26.x
- Category
- Error
- Feature
- Templates (Smarty)
Trackers
Wiki Plugin (extends basic syntax) - Resolution status
- New
- Submitted by
- Bernard Sfez / Tiki Specialist
- Lastmod by
- Bernard Sfez / Tiki Specialist
- Rating
- Description
In a Tiki26 I have a tracker with a field specifications.
In a wiki page I use a first smarty template to display the results.
To send the wiki parsed content of the field with the right language, I use:Copy to clipboard{FORMAT(name="specifications")}{display name="tracker_field_productssolutionSpecifications_fr"}{FORMAT}
In this first smarty template I setup a second wikiplugin List and use again FORMAT to pass the content of the $specifications variable.Copy to clipboard{FORMAT(name="specificationsInner")}{display name="{/literal}{$row.specifications}{literal}"}{FORMAT}
In the display I can see the content of the field as expected but it is surrounded by aNo value for ' .../... 'warning
expected mean that's the value I want to see, but I understand it has been passed into the $name of the FORMAT, instead of its content.This comes from the file "lib/core/Search/Formatter/ValueFormatter.php"
Copy to clipboard// ugly exception for wikiplugin - TODO better? if ($format !== 'wikiplugin' && (! isset($this->valueSet[$name]) || is_null($this->valueSet[$name]))) { return tr("No value for '%0'", $name); }
May it is possible to improve this "ugly" exception to avoid this false error ?
Or... a better verbose to help solving ?- Solution
- Workaround
- Importance
- 5
- Easy to solve?
- 5
- Priority
- 25
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 8579
- Created
- Sunday 07 January, 2024 11:09:04 UTC
by Bernard Sfez / Tiki Specialist - LastModif
- Wednesday 28 May, 2025 07:43:24 UTC