Frage

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?

War es hilfreich?

Lösung

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

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

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top