【问题标题】:Is there a way to add some tabs inside Composite C1 function?有没有办法在 Composite C1 函数中添加一些选项卡?
【发布时间】:2017-05-03 12:09:59
【问题描述】:

我正在使用第 6 版 Composite c1 CMS。我想知道有没有办法在复合函数中添加某种选项卡?例如,我有一个函数

`public override string MyFunction
{
    get { return "SomeFunction"; }
}

[FunctionParameter(DefaultValue = "Nad")]
public string Name { get; set; }

[FunctionParameter(Label = "Another Field", DefaultValue = "", HideInSimpleView = true)]
public string AnotherField { get; set; }

[FunctionParameter(Label = "Some URL", DefaultValue = "", HideInSimpleView = true)]
public string Url { get; set; }`

并且我想添加某种选项卡,只有当函数名称为“someName”时,用户才应与之交互。有没有办法a)添加那种标签,所以用户可以在主标签和另一个标签之间切换; b) 有条件地显示这个标签?

【问题讨论】:

    标签: c# function content-management-system c1-cms


    【解决方案1】:

    不,与数据表单不同,可以使用 xml 文件定义布局,这样的功能不会针对函数调用实现,因为只能为函数参数定义小部件,而不能为整体布局定义小部件。

    可以用自定义页面替换默认的函数调用编辑器,就像在 FormBuilder 包中所做的那样。

    http://docs.c1.orckestra.com/Console/Custom-Function-Call-Editor

    可用示例基于 WebForms,因此实施起来可能并不简单。

    http://docs.c1.orckestra.com/Console/Custom-Function-Call-Editor/Web-Form

    【讨论】:

    • 谢谢,我使用的是完全相同的技术(网络表单)
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2022-08-03
    • 2012-02-15
    • 2020-10-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-10-08
    相关资源
    最近更新 更多