2013-04-11 46 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: