无法获得Sitecore表单以显示在占位符中(“行销人员网络表单"模块) [英] Cannot get a Sitecore form to display in a placeholder (Web Forms for Marketers module)

查看:112
本文介绍了无法获得Sitecore表单以显示在占位符中(“行销人员网络表单"模块)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正忙于编写Sitecore解决方案来管理新闻网站.我有一个NewsArticleLayout(用于显示NewsArticle项),还有一个NewsArticleMailPlaceholder,我想用它来显示一个表单,用户可以在其中输入必须将新闻文章链接邮寄到的名称和电子邮件地址.

I'm busy writing a sitecore solution to manage a news site. I have a NewsArticleLayout (used to display a NewsArticle item), with a NewsArticleMailPlaceholder which I want to use to display a form where a user can enter a name and email address where a news article link must be mailed to.

在NewsArticleLayout页面上已经是一个带有phNewsArticle占位符的NewsArticleSublayout,该占位符当前可以正确显示与新闻文章有关的数据.

On the NewsArticleLayout page is already a NewsArticleSublayout with a phNewsArticle placeholder, which is currently correctly displaying data related to a news article.

当我尝试将表单链接到此占位符时,似乎只能链接到子布局而不是布局中的占位符,因此我创建了MailNewsArticleSublayout,并在其上放置了phMailNewsArticle占位符.然后,我告诉表单使用MailNewsArticleSublayout和phMailNewsArticle占位符在NewsArticleLayout上显示.

When I try to link the form to this placeholder, I only seem to be able to link to placeholders in sublayouts, not in layouts, so I created a MailNewsArticleSublayout, and placed a phMailNewsArticle placeholder on it. Then I told the form to display on the NewsArticleLayout, using the MailNewsArticleSublayout, and the phMailNewsArticle placeholder.

但是,当我查看页面时,我的表单没有显示.我已经完成了整个Sitecore内容树的完整发布,似乎没有任何修复方法.

However, when I view the page, my form doesn't display. I've done a full publish of my entire Sitecore content tree, nothing seems to fix it.

我什至在NewsArticleSublayout中添加了一个phEmail占位符,并将其链接到表单布局详细信息,但这也不显示任何内容.

I've even added a phEmail placeholder to the NewsArticleSublayout, and linked this to the form layout details, but this also doesn't display anything.

我是否正确设置了表单的布局?这里有我想念的东西吗?

Have I correctly setup my form's layout? Is there something I'm missing here?

推荐答案

与Sitecore支持人员交谈后,我能够解决此问题.我所缺少的是在模板的标准值上的布局详细信息中添加了表单".然后在此Form元素中,在"FormID"字段中填写实际Form的位置.添加完之后,它运行完美.

After speaking to sitecore support, I was able to resolve the issue. What I was missing was adding "Form" to the layout details on the standard values for my template. Then in this Form element, fill in the actual Form's location in the "FormID" field. After adding this, it worked perfectly.

这篇关于无法获得Sitecore表单以显示在占位符中(“行销人员网络表单"模块)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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