Problem/Motivation

I would like to introduce a setting for the field formatter, that hides the operations links for each table row (view, edit, etc.). Right now this is decided by permission (if user has permission to edit the paragraph in the row, edit button will appear). This is perfectly valid. But there maybe use cases, where you want to remove those operation links from the frontend (formatter view), i. e. to unclutter the frontend UI a bit. A setting for the field formatter could hide the operations links in that case.

Steps to reproduce

Use the paragraphs_table field formatter and see that there are operations links (view, edit, etc.) near every line of the table. Imagine that you want to hide these operations links.

Proposed resolution

Introduce a setting on the field formatter, that hides/disables the operations links.

Remaining tasks

Provide a patch

User interface changes

  • Additional setting for field formatter
  • Hide the operations links in frontend

API changes

additonal formatter setting

Data model changes

none

Remark:
the config schema should be addresse too. But since there is a bug with the config schema (#3198546: Config schema for formatter and widget missing/incomplete), this would only make sense after that bug is fixed. I will happily provide a revised patch after #3198546: Config schema for formatter and widget missing/incomplete is fixed.

Comments

stefan.korn created an issue. See original summary.

stefan.korn’s picture

Assigned: stefan.korn » Unassigned
Status: Active » Needs review
StatusFileSize
new2.38 KB
stefan.korn’s picture

Title: Introduce option to hide the operations for each line of the table » Introduce option to hide the operations for each row of the table

  • 89e9e93 committed on 8.x-1.x
    fixed Issue #3199607 #3199603 by ARUN AK
    #3198557 #3198546 #3198251 by...
lazzyvn’s picture

Status: Needs review » Closed (works as designed)

add this feature in version 8.x-1.4

stefan.korn’s picture

Version: 8.x-1.3 » 8.x-1.4
Status: Closed (works as designed) » Needs review
StatusFileSize
new544 bytes

Thanks for adding this feature.

Now that #3198546: Config schema for formatter and widget missing/incomplete was fixed and this is added to 8.x-1.4 there should be one more small fix on the config schema, see this patch

  • 4766bf4 committed on 8.x-1.x
    Issue #3198557 by stefan.korn: hide the operations for each row of the...
lazzyvn’s picture

Status: Needs review » Fixed

added in version 1.5

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.