Using Button Functions
Jamroom Developers
Looking for more details than provided by the docs.
Given a custom module (ntTracker) I need to provide a few buttons. The first button would use the hand icon (semantics = cease) and the second button would reuse the trash icon (semantics = discard). So two buttons - no more.
This template code (with, of course, the supporting PHP declarations) ...
{jrCore_item_list_buttons module="ntTracker" item=$item exclude="update"}
... renders the buttons defined in ntTracker but adds update and delete. The exclude does not work. No matter what value (or values) is placed, the extra buttons always appear.
As an alternative, the docs suggest code similar to:
Using {jrCore_item_create_button module="jrAudio" view="create" profile_id=$_profile_id title="Create Audio"}
But this requires that the appropriate function exist in core. There is no 'hand' function (for example).
Likely there is a straightforward (not reinventing the wheel) way to place select icon buttons on a list, but I do not see it. I think I need to buy a vowel from the experts at this point.
updated by @tig: 02/16/18 04:28:07PM