1

我已经在 share.ez.no 上问过这个问题。但由于我没有得到任何问题或回答,我想让我试试我最喜欢的网站,看看它是否有一些吸引力。

我想完成以下工作:

我想在简单的文章页面上提供一个链接或按钮。当用户单击它时,它应该将他带到一个允许他添加特定内容对象的表单。这个对象是我已经创建的自定义类(想象的!)。

TestClass - 全名、电子邮件地址。

稍后,我想使用这些对象在单个详细信息页面上显示列表以及特定对象。

我的问题基于我花在文档上的大量时间:

1)我在寻找什么?是“编辑”还是“创建”?“编辑”也用于“创建”吗?

2)我应该使用什么样的模板来“创建”?系统或节点模板?

在某一时刻,它看起来像 Node.js。但是基本节点模板没有任何“创建”。有一个“创建”的系统模板。

3) 我如何创建一个链接或按钮,让用户单击它并访问一个 Web 表单来创建对象/提交他的条目?我希望文章编辑应该有这个功能。

(我不想使用 ez 工具栏。)

4) 我查看了编辑模板。特别是文章页面中的评论页面使用的那个。但我无法理解。由于模板使用对象 ID。在添加新对象的情况下,不会有任何对象 ID。是吗?那么编辑模板是如何工作的呢?

5)我也没有找到一篇文章来展示如何创建应该很常见的这种功能。我找到了一篇关于如何创建表单的文章,但它使用了我不想要的信息收集器功能。因为它会让我看到设置部分的结果。我宁愿在前端完全管理这些信息。

我希望有人可以指出我一步一步的文章。或者澄清其中一些问题。最终我准备写这样的文章,因为我经历了所有的痛苦happy.gif表情

谢谢!

4

2 回答 2

1

Late answer i posted on the eZ Publish Community website, sharing it with all of you here : http://share.ez.no/forums/general/how-to-let-users-add-content-objects/comment66112

Cheers

于 2011-02-22T22:39:09.520 回答
1

You say you don't want to use the toolbar (which would make this a ten minute job to setup), but really it looks like you should at least look at the code in there. And remember, the toolbar is just another (override-able) template you can embed anywhere on your page and restyle via CSS. As I assume your experience level with eZ is not huge, the easy way for you might be to use the toolbar but override its template to the extent that it only has one button on it. Then set-up the security policies so that the button becomes available under the correct conditions. Should take maybe an hour or less to get working right as just one button.

于 2011-05-05T17:58:55.287 回答