2013-04-11 51 views
2

我有一个RelationList领域敏捷Info类型与另一种类型Venue到有关从/info folder,而不是从/ folder敏捷RelationChoice源路径定制

enter image description here

我的实例现在运行在Plone的4.2.4和1.2.1 plone.app.dexterity。

+0

3年前我找到相关的讨论:https://groups.google.com/forum/?fromgroups=#!msg/dexterity-development/AU4BXIHttao/AtFdNvO71lsJ 但任何人都可以暗示什么是这个要求的最佳做法? – marr 2013-04-11 04:02:12

回答

1

为了限制ObjPathSourceBinder一个路径可以做到以下几点:

[...] 
source=ObjPathSourceBinder(navigtion_tree_query = { 
    "object_provides":"IVenue.__identifier__", 
    "path": {"query":"/my/path" } 
    } 
), 

,或者你可以只添加一个“路径”参数代码:

[...] 
source=ObjPathSourceBinder(
    object_provides,IVenue.__identifier__, 
    path={"query":"/mysite/media"}, 
), 

navigation_tree_query参数IST描述here: