Plone技术论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 75|回复: 0

Hiding description field with Dexterity [复制链接]

Rank: 9Rank: 9Rank: 9

发表于 2012-1-17 14:40:05 |显示全部楼层
    3    [url=]down vote[/url]
        
    If you want to hide the description field, you should not use IBasic (nor IDublinCore, as that is IBasic plus a few more).
You can define your own behavior with a title field (and possibly still a description field that you hide in the normal way with form.omitted('description') if you only want to hide it instead of complete removing it).
For the rename-after-creation part: this is the plone.app.content.interfaces.INameFromTitle behavior.  It only needs a title field, so an own behavior with just a title field would be enough.  Some more hints for this part are here: http://davidjb.com/blog/2010/04/plone-and-dexterity-working-with-computed-fields


招聘Python/Plone开发人员

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

Archiver|Plone技术论坛 ( 湘ICP备07003419 )

GMT+8, 2012-2-23 20:23 , Processed in 0.064769 second(s), 7 queries , Gzip On, Memcache On.

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

回顶部