Name from Creation Date Behavior

For Archetypes types, we can edit short name for their Add/Edit forms. For Dexterity, we have to create custom behaviors for such tasks. By default, Dexterity provides Title-to-ID behavior. However, CreationDate-to-ID behavior is more valid for my case. With help of @vitaliypodoba, I add NameFromCreationDate behavior in my recent project. To make it working Through The Web, be sure to uncheck the Name from title behavior, then check the Name from Creation Date behavior. Here is a similar implementation that might be of help. Also it is inspiring to learn the title computation and display technique.

No comments: