It should be possible to include the ALTERNATE value of a plugin List within the results template
- Status
- Closed
- Subject
- It should be possible to include the ALTERNATE value of a plugin List within the results template
- Version
- 27.x
- Category
- Feature request
- Feature
- Wiki Plugin (extends basic syntax)
- Resolution status
- Fixed or Solved
- Submitted by
- Bernard Sfez / Tiki Specialist
- Volunteered to solve
- Alvin Bauma
- Lastmod by
- Bernard Sfez / Tiki Specialist
- Rating
- Description
With the plugin List you can use a template.
If there are no results you can set the alternate value that will be displayed.
But this value won't be display using the template design but as an element on its own.Use case:
I want to create a dashboard with several gauge where 0 items is a valid value that lead to specific design with conditions.Just to give an idea:
0 item = green background
1 item = warning background
>5 items = red backgroundThe Alternate value should be used in the template as a value and not as a string on its own.
- Solution
- Workaround
With the actual if there is no items (0) it is possible to include the design AND the logic into the ALTERNATE parameter... But this is a real pain (not all is possible) and create a lot of duplication.
To use "0" as a value there is a workaround.
{CODE()}<span>0</span>The rest while complicate can finally be done using Smarty conditions and templates
- 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
- 8687
- Created
- Sunday 08 September, 2024 08:06:26 UTC
by Bernard Sfez / Tiki Specialist - LastModif
- Wednesday 07 May, 2025 13:51:14 UTC