果园动态表单混杂 [英] Orchard Dynamic Forms Miscues

查看:70
本文介绍了果园动态表单混杂的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在按照Orchard文档中的说明使用动态表格.

I am following the instructions from the Orchard documentations to use a dynamic form.

http://docs.orchardproject.net/en/latest /Documentation/Creating-Dynamic-Forms/

麻烦的是,它没有像表单小部件一样对待它,因此我无法在页面上放置表单.我确定我想念一些东西.它是作为内容类型创建的,但是我无法将表单放入网站中.我确定我做错了.

The trouble is that it is not treating it like a form widget and so I can not place a form on a page. I am sure that I am missing something. It is being created as a content type but I can't put the form into the site. I am sure I am doing something wrong.

我正在使用Orchard的1.10.0版本.

I am using version 1.10.0 of Orchard.

感谢帮派.

推荐答案

您可以通过两种方式使用动态表单:

You can use Dynamic Forms in two ways:

  1. 只需拖动&将Form元素放到布局上.这意味着您可以将表单添加到具有布局部分的任何内容类型中,包括页面和表单内容类型.

  1. Simply drag & drop the Form element onto a layout. This means you can add forms to any content type that has the Layout Part, including Page and Form content types.

如果您想跨多个页面使用表单,那么就像devcon所提到的,Form Widget是有意义的.

If you want to use the form across multiple pages, then a Form Widget makes sense, as mentioned by devcon.

Form元素可以放置在任何布局上,而与内容项的类型无关.因此,不必创建表单内容项,仅出于语义原因就可以创建表单内容项(例如,如果您需要联系表单页面,则可以创建表单而不是页面,但是页面同样有效)并且对于新用户以简化Form元素的发现.

The Form Element can be placed on any layout, regardless of the type of the content item. So it is not necessary to create a Form content item, it's only there for semantic reasons (e.g. if you want a Contact Form page, you can create a Form instead of a Page, but a Page would be equally valid) and for new users to ease the discovery of the Form element.

这篇关于果园动态表单混杂的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆