【问题标题】:select multiple category and subcategory joomla 3选择多个类别和子类别 joomla 3
【发布时间】:2015-03-08 09:14:38
【问题描述】:

我为 Joomla 3 编写了一个组件。在我的组件中,我必须选择多个类别和子类别。

我的类别来自我在数据库中创建的表,因为我的类别是 两级。

表单中的字段如何使用美观又好?

【问题讨论】:

  • 欢迎@user2279698,您可能应该提供更多关于您的数据库的详细信息,并提供您现有代码的示例

标签: select components joomla3.0


【解决方案1】:

在 Joomla 中没有“漂亮”的方式来做到这一点。你将不得不建立自己的。通常我会写出一堆复选框,让用户选择他想要的。

在核心 Joomla 中,您将使用选择多个选项的选择字段。您可以在此处阅读有关这样做的信息:http://blog.calebnance.com/joomla-3.0/saving-a-multi-select-field-in-a-custom-joomla-3.x-component.html

【讨论】:

    猜你喜欢
    • 2016-03-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-01-01
    • 1970-01-01
    • 2013-03-18
    相关资源
    最近更新 更多