Consistency in syntax usage for List, ListExecute and CustomSearch plugin
- Status
- Open
- Subject
- Consistency in syntax usage for List, ListExecute and CustomSearch plugin
- Version
- 23.x
- Category
- Consistency
- Feature
- Wiki Plugin (extends basic syntax)
- Resolution status
- Reviewed
- Submitted by
- Bernard Sfez / Tiki Specialist
- Lastmod by
- Bernard Sfez / Tiki Specialist
- Rating
- Description
On Tiki23 I set a CUSTOMSEARCH plugin to display a list of tracker items in a table output template with some actions buttons for each rows.
Copy to clipboard{DIV(type="span" class="click-modal")}[tiki-tracker-update_item?trackerId=22&itemId={display name="object_id"}&modal=1|{icon name="edit" iclass="text-warning mx-2 click-modal"}]{DIV}
It work just fine.But if I try the same on a List or ListExecute plugin, the "&" in the url are changed to "&" which is breaking the link. You have to add for the column "mode=raw".
Would be nice to have the (same) behaviour like in the CustomSearch plugin (no change)
Complete plugin code to reproduce.Copy to clipboard{LISTEXECUTE()} {filter field="tracker_id" content="22"} {filter field="tracker_status" content="o OR p"} {OUTPUT(template="table")} {column label="Date" translatelabel="y" field="date" mode="raw"} {column label="Name" field="name" translatelabel="y" mode="raw"} {column label="Month" field="month" translatelabel="y"} {column label="" field="action"} {OUTPUT} {FORMAT(name="date")}{display name="tracker_field_productsboughtDate" format="date"}{FORMAT} {FORMAT(name="name")}{display name="tracker_field_productsboughtCustomer" format="objectlink"}{FORMAT} {FORMAT(name="month")}{display name="tracker_field_productsboughtMonthOrder"}{FORMAT} {FORMAT(name="action")} {DIV(type="span" class="click-modal small")}[tiki-tracker-update_item?trackerId=22&itemId={display name="object_id"}&modal=1}|{icon name="edit" iclass="text-primary mx-2 click-modal"}]{DIV} {DIV(type="span" class="click-modal small")}[tiki-tracker-insert_item?trackerId=11&modal=1}|{icon name="cash-register" iclass="text-success mx-2 click-modal"}]{DIV}{FORMAT} {ACTION(name="Close")} {step action="change_status" from="p" to="c"} {ACTION} {LISTEXECUTE}
Another example is the fact that most of the time the expected value for "field" if it is to be filled with a tracker field parameter must start with "tracker_field" but not for the plugin ListExecute modify-item parameters. This add confusion to people new to the plugin ListExecute.Not accepted)} {step action=Copy to clipboard{step action="tracker_item_modify" field="paymentsStage" method="add"}- 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
- 7823
- Created
- Thursday 09 September, 2021 07:35:45 UTC
by Bernard Sfez / Tiki Specialist - LastModif
- Sunday 10 October, 2021 07:24:55 UTC