This project is read-only.

Can I make a field type read only in admin ui?

Topics: Core, General
Jul 9, 2015 at 4:44 PM

If I create a field (text or bool etc), how can I make it read only?

The reason is that I have some custom workflows and the value is basically calculated base on some values the customers save and some external database values.

Seems can't find a read only field type.

Many Thanks
Jul 9, 2015 at 5:04 PM
Orchard doesn't have the notion of a readonly content field. You'd have to implement your own content fields or parts to achieve that.
Jul 9, 2015 at 5:16 PM
realised I could add some function in javascript to find my input field with id like "XXXX-field-shouldbereadonly" and read only them.
Jul 9, 2015 at 5:42 PM
Yep, there's always that. :-)