Question

I want some custom Dexterity types can be explicitly edited for their short name (ID, that will be part of the URL) field. If the short name field is left blank, then it will be calculated from the (required) title field value by the enabled plone.app.content.interfacess.INameFromTitle behavior.

By default, I see no short name field when adding/editing the type. Only via object_rename from action menu I can set its short name. What is the best practice for this task?

Was it helpful?

Solution

The id field is not part of the Dexterity schema, at all.

You'd have to create an additional behaviour that adds it.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top