我正在使用木兰花创建模板。我想给出编辑图像的选项。使用magnolia 5.4,我创建了模板。为了在我的页面中编辑图像,我创建了这个区域。我的代码如下:
templateScript: /hello-magnolia/templates/pages/hello.ftl
renderType: freemarker
visible: true
title: Hello
dialog: hello-magnolia:pages/hello
areas:
main:
renderType: freemarker
availableComponents:
quotation:
id: hello-magnolia:components/quotation
textImage:
id: hello-magnolia:components/txtimgtxtimg.yaml:
form:
tabs:
- name: tabImage
label: Image
fields:
- name: upload
class: info.magnolia.dam.app.ui.field.definition.DamUploadFieldDefinition
label: Upload
actions:
commit:
class: info.magnolia.ui.admincentral.dialog.action.SaveDialogActionDefinition
cancel:
class: info.magnolia.ui.admincentral.dialog.action.CancelDialogActionDefinition当我测试这段代码时,我的页面没有加载。当我删除最后两行时,它就可以正确加载了。我为图像定义了正确的路径以及表单定义和字段定义。
如何使用jsp使我的图像可编辑。
还有如何检查镜像是否可用的条件。
有人能在这方面帮我吗?
发布于 2016-12-09 04:48:06
texting.yaml中提交和取消操作的缩进不正确。看起来您可能在提交操作的类名之前有错误的制表符。定义是yaml格式的,所以它对缩进相当敏感。
https://stackoverflow.com/questions/31852620
复制相似问题