2016-02-04 27 views
3

我如何將能夠選擇Octobercms的YAML配置另一個表,現在我有這樣的。:Octobercms YAML選擇

season: 
    label: Season 
    type: relation 
    select: concat(title, ' - ', ' Season ', number) 

的選擇標題和數量,但我想做些什麼是選擇多個表並使用concat來進行特定的列選擇。

從下面的答案我試過這個,但我wouldnt知道從那裏去哪裏。基本上從情節feild.yaml它包含:

season: 
     label: Season 
     descriptionFrom: description 
     span: auto 
     type: partial 
     path: ~/plugins/test/movie/models/season/_content_column.htm 

我希望能夠抓住其中的插曲朝電影相關的季節。以前的關係代碼顯示了季節的「全部」。我想在電影中創建的電影的特定季節顯示在要選擇的情節下拉列表中。

回答