i wonder if there is a drupal 8 project initiated for this module? a github depot?
Best,

Comments

matoeil created an issue.

anrikun’s picture

@matoeil
No but you may submit a patch and I'll create a 8.x branch if needed.

webflo’s picture

christophedg’s picture

Will https://www.drupal.org/project/field_extrawidgets be the way to go instead of Field Readonly for Drupal 8?

thtas’s picture

I've tried messaging you @anrikun but no response via your personal contact form.
Would you consider using my sandbox module as a start of a drupal 8 branch of this one?
I'd rather not publish yet another module in this space..

See https://www.drupal.org/sandbox/thtas/readonly_field_widget

anrikun’s picture

@thtas Sorry I didn't receive your message :-(
Anyway, I think your module cannot be considered as a port of Field Readonly as it adds a widget like https://www.drupal.org/project/field_extrawidgets. Shouldn't you post your message in that module's issue queue?

martin_klima’s picture

Hi, we have a development version of Readonly fields for Drupal 8.

In this time module can alter any content entity edit form and display fields without edit permission as disabled form input.
Module check permissions for each field and if an user has not permission to edit it, but has permission to view it, the module alters the content entity form and all non-editable fields are rendered as read only (disabled) form inputs.

More info in Field Readonly for D8 sandbox.

@anrikun, I wrote you a message via contact form about possibility to integrate our work as 8.x branch.

anrikun’s picture

@martin_klima
Thank you for your work!
D8 version of Field Readonly should have the exact same features as D7 version.
Your WIP renders readonly fields as disabled form inputs which doesn't match the way it works in D7: readonly fields should instead be rendered the way they would be viewed based on the customizable Field Readonly view mode.
Could you modify your version so that it stays an exact port of D7 version?

thtas’s picture

I've promoted my sandbox module

https://www.drupal.org/project/readonly_field_widget

Perhaps you could link to it from your main page @anrikun