문제

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?

도움이 되었습니까?

해결책

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

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top