Loading...
 
Features / Usability

Features / Usability


Plugin LIST with 'Icons' field + in-line edit

posts: 228 Ukraine

Continuing the series on LIST... biggrin

I set up the tracker field type 'Icons' to work correctly with LIST (and the connected List Execute), however, when I add

  • editable="inline"

it doesn't quite work - it displays the 'in-line' edit, I choose the icon, but then gets stuck on the image and never actually 'saves'.
Most likely I have not configured the LIST statement correctly.

I tried:

  • {FORMAT(name="IconFieldName")}{display name="tracker_field_IconFieldName" default=" " format="trackerrender" editable="inline" }{FORMAT}


The closest I could find in the Docs was the example about 'gender' icons:

  • https://doc.tiki.org/PluginList-format-control-block#Using_Font_Awesome_icons_instead_of_content_depending_on_the_value_of_the_field_content_2
  • specifically: {FORMAT(name="gender")}{DIV(type=i class=fa fa-{display name="tracker_field_gender"})}{DIV}{FORMAT}
  • however I don't believe this is my use case, I have two icons in the Icons Tracker field, a 'square' and 'check-square' (Font Awesome).


I tried a few variations on the 'DIV' statement, but to no avail.

Any recommendations?
TIA,
Mike

posts: 8633 Israel
Mike Finko wrote:

Continuing the series on LIST... biggrin

I set up the tracker field type 'Icons' to work correctly with LIST (and the connected List Execute), however, when I add

  • editable="inline"

it doesn't quite work - it displays the 'in-line' edit, I choose the icon, but then gets stuck on the image and never actually 'saves'.
Most likely I have not configured the LIST statement correctly.

I tried:

  • {FORMAT(name="IconFieldName")}{display name="tracker_field_IconFieldName" default=" " format="trackerrender" editable="inline" }{FORMAT}


The closest I could find in the Docs was the example about 'gender' icons:

  • https://doc.tiki.org/PluginList-format-control-block#Using_Font_Awesome_icons_instead_of_content_depending_on_the_value_of_the_field_content_2
  • specifically: {FORMAT(name="gender")}{DIV(type=i class=fa fa-{display name="tracker_field_gender"})}{DIV}{FORMAT}
  • however I don't believe this is my use case, I have two icons in the Icons Tracker field, a 'square' and 'check-square' (Font Awesome).


I tried a few variations on the 'DIV' statement, but to no avail.

Any recommendations?
TIA,
Mike


I have a working exemple here: http://bsfez-11581-7702.show2.tikiwiki.org

posts: 228 Ukraine

Hi Bernard,

This is a bit different from the other Forum post I made where I needed to add the 'Action' option to delete an item.

Here I'm trying to use the Tracker field 'Icons' to display icons (2) in conjunction with 'in-line edit'.

br,
Mike

posts: 126886 United Kingdom
Someone made a bug report/wish on dev listing all the fields that don't play nicely with inline-edit, there are quite a few i think still... can't find it now, maybe we need to start a new one?
posts: 228 Ukraine

ok, I see, looks like it's pointing towards a bug, not incorrect configuration.
Sounds like you prefer a consolidated 'inline edit' bug report - I'll add it tomorrow and start it off with the 'Icon' field.

br,
Mike

posts: 228 Ukraine

Hi Jonny,

just so I understand, when you say "maybe we need to start a new one" you mean start a specific page on the Dev site where it lists all the issues (e.g. filed bug reports) related to the LIST in-line edit feature? So something like:

  • https://dev.tiki.org/Mathematical-calculation-tracker-field
  • https://dev.tiki.org/Search-Engine-Friendly-URLs


Thanks,
Mike

posts: 126886 United Kingdom

Hi Mike

Hopefully we don't need a new page, but just a consolidated bug report where we can add all the field types that don't work properly in inline edit, then i'll blitz them all (one day wink)