【问题标题】:Save/Cancel dialog buttons not showing in Magnolia dialog保存/取消对话框按钮未显示在 Magnolia 对话框中
【发布时间】:2016-11-09 13:55:41
【问题描述】:

我正在尝试向我的应用程序添加一个对话框,虽然我没有任何问题定义我想要的表单,但保存和取消按钮根本没有显示,我不知道为什么。我是 Magnolia 和自定义应用程序的新手,所以肯定我遗漏了一些东西,但我已经浏览了我能找到的文档中的部分,但从我所看到的一切来看,这应该可以工作。

    detailFeatured:
        subAppClass: info.magnolia.ui.contentapp.detail.DetailSubApp
        class: info.magnolia.ui.contentapp.detail.DetailSubAppDescriptor
        actions:
            commit:
                class: info.magnolia.ui.form.action.SaveFormActionDefinition
                label: "Save"
            cancel:
                class: info.magnolia.ui.form.action.CancelFormActionDefinition
                label: "Cancel"
        editor:
            wide: true
            actions:
                - name: commit
                - name: cancel
            form:
                tabs:
                    - name: featured
                        label: "Featured Slideshows"
                        fields:

                            - name: ogLabel
                                label: ""
                                class: info.magnolia.ui.form.field.definition.StaticFieldDefinition
                                value: "<strong>Hero Slideshow</strong>"

                            - name: hero
                                class: info.magnolia.ui.form.field.definition.TextFieldDefinition
                                required: true
                                label: Slideshow URI

                            - name: ogLabel
                                label: ""
                                class: info.magnolia.ui.form.field.definition.StaticFieldDefinition
                                value: ""
                            - name: ogLabel
                                label: ""
                                class: info.magnolia.ui.form.field.definition.StaticFieldDefinition
                                value: "<strong>Slideshow Carousel</strong>"


                            - name: carousel
                                class: info.magnolia.ui.form.field.definition.MultiValueFieldDefinition
                                required: true
                                label: Slideshow URIs
                                field:
                                        class: info.magnolia.ui.form.field.definition.TextFieldDefinition
                                        label: URI
            nodeType:
                icon: icon-files
                name: mgnl:featured
        contentConnector:
            workspace: featured

【问题讨论】:

    标签: content-management-system magnolia


    【解决方案1】:

    看起来不错。当你遇到这样的事情时,几乎没有什么可做的:
    - 签入文件,确保您在定义中没有一些特殊的不可见字符,而不仅仅是空格。
    - 还要确保你有magnolia.develop=true 并在保存定义文件时观察日志中的消息。希望这会告诉你一些有用的东西。
    - 最后,最重要的是,安装 Magnolia 5.5(在撰写本文时提供测试版,最终版应在 2016 年 11 月 15 日发布),安装后,通过新的定义应用程序查看应用程序。它应该向您显示它在您的定义中发现的所有错误。

    【讨论】:

      猜你喜欢
      • 2010-11-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-10-22
      • 1970-01-01
      • 2011-11-30
      • 1970-01-01
      相关资源
      最近更新 更多