gpt4 book ai didi

php - Octobercms YAML 选择

转载 作者:可可西里 更新时间:2023-11-01 09:03:47 24 4
gpt4 key购买 nike

我现在如何能够在 Octobercms 的 YAML 配置中选择另一个表我有这样的。:

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

选择标题和编号,但我想做的是选择多个表并使用 concat 来选择特定的列。

根据下面的答案,我已经尝试过了,但我不知道从那里去哪里。基本上来自它包含的剧集 feild.yaml:

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

我希望能够获取剧集与电影相关的季节。之前的关系代码显示了“所有”季节。我想在下拉列表中显示电影中创建的那部电影的特定季节,以供选择剧集。

最佳答案

您可以通过 partial column 手动从不同的表格中进行多项选择.

关于php - Octobercms YAML 选择,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35211648/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com