问题标签 [kentico-12]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
4 回答
889 浏览

asp.net-mvc - 如何在没有页面构建器的情况下在 Kentico 12 中使用 BizForms

Kentico 12 仅支持使用开箱即用的“表单”页面构建器小部件的表单。

谁能提供如何在 MVC _Layout.cshtml 或不使用页面构建器的页面中使用 BizForms 的示例?

验收标准:

  • 必须允许 CMS 用户编辑表单并将更改反映在网站上
  • 必须允许开发人员在保存到 Kentico 之前和发送通知/自动回复之前操作/转换提交的数据
  • 必须正确呈现表单构建器中使用的自定义 FormSections 和自定义 FormComponents
0 投票
3 回答
551 浏览

authentication - Kentico 12 - 如何将单个页面设置为需要身份验证?

在 Kentico 12 上,页面内的属性 Security 不像以前的版本Kentico 11 - Interface Access那样具有 Access 字段。

我需要提供此功能,因此我正在考虑使用这样的覆盖 OnAuthentication 方法:

HasSecureProperty 将是 kentico 页面中管理员或编辑用户可以在管理面板上设置的属性。我计划使用自定义表创建此属性,并在页面上为用户创建一个界面。

CMS_Tree 上的 IsSecureNode 字段似乎是我需要的属性,并且在以前的版本中使用过,但我找不到在新管理面板上设置的方法。

是否有其他解决方案允许用户在页面上设置身份验证?我担心性能,因为每个动作都会调用这个方法。谢谢你。

0 投票
1 回答
164 浏览

kentico-mvc - 通过代码提交表单项不会触发电子邮件通知

我正在尝试通过我的 MVC Web 应用程序上的 api 提交一个新的表单项(从表单的代码选项卡中获取代码),但电子邮件通知不起作用。除了电子邮件警报之外,它确实创建了一条新记录。我检查了电子邮件队列,但没有表单项的记录。我正确配置了 smtp 服务器设置。我也检查了事件日志,但没有看到任何错误。我是否遗漏了什么或此功能仅在门户引擎上?

在此处输入图像描述

0 投票
1 回答
948 浏览

lucene - 在第 1 行对 Lucene 词法错误使用错误的转义字符无法解析遇到. 肯蒂科 12

我有一个与以下问题类似的问题:Lucene error while parsing Query: Cannot parse '': Encountered "" at line 1, column 0,我已经尝试了所有转义。还能是什么?

我正在使用 Kentico 12 修补程序 14,以及他们的 Lucene.NET 3.0.3 实现。我的智能搜索索引使用标准分析器,见下文:

在此处输入图像描述

当我使用以下 lucene 语法拉回 en-US 区域性结果时,我得到了预期的行。此语法由 Kentico 自动创建,是检索正确区域性所必需的。这是直接从属性值复制而来的。

当我添加(或单独使用)以下值时(以许多不同的形式 - 不带括号等):

我总是得到词汇错误:

如您所见,我相信我已经正确地转义了长度值。我在这里想念什么?

其他不需要转义的值就可以了,例如:

关于我在 24" 值上做错了什么有什么想法吗?错误的分析仪?需要 Kentico 修补程序?过滤器的错误顺序?感谢您的宝贵时间!

0 投票
1 回答
228 浏览

text-editor - Text editor links leading with ~ character and images are not rendering correctly

I am running Kentico 12.0.24 MVC and there is an issue how the inserted images render using the text editor.

When inserting images using the Text editor in Kentico CMS, I am able to see the inserted images inside the Text Editor, but when viewing on the front-end page the images do not render and this is due to how the image path is generated with a leading ~ (tilde) character.

The generated image path is relative, which is fine but is the leading tile that breaks it.

Here are the steps to reproduce this:
1. In Kentico CMS, go to a page that has a Rich text editor (WYSIWYG).
2. In the text editor, click on the button called "Insert/Edit image or media".
3. In the popup window, click on the tab called "Media Libraries".
4. From the list, I select an image. At this point, the URL image URL preview will be as follow "/Admin/IPGLaserSystems/media/Random/application-non-contact-1x.jpg".
5. I click on "Save & Close", I am able to see the image inserted in the text editor.
6. Click "Save" at the top.
7. I navigate to the page and the image goes not show and at this point the generated image path is as follow "~/IPGLaserSystems/media/Random/application-non-contact-1x.jpg".

If the tilde character is removed from the path, then it renders the image fine. This should work natively.

I also found the following article, that seems to address the insertion of links from text-editor in relative form, but doesn't seems to directly address the issue with using relative (tilde-based) links in general: https://devnet.kentico.com/articles/how-to-fix-links-inserted-via-a-wysiwig-editor-in-kentico-12

Please advise, thank you.

0 投票
1 回答
254 浏览

multilingual - 如何一次性在 Kentico 中为多个页面创建新的文化版本?

我正在现有的 Kentico 12 网站上配置新的语言版本。我可以通过从现有语言复制内容轻松地创建页面的新文化版本,但问题是此功能仅在页面级别可用,在我的情况下,有数百个页面,将导致数小时手动的努力。理想情况下,我想选择多个页面并一次为所有页面创建新的文化版本。

你能告诉我如何优化这个任务吗?

0 投票
0 回答
93 浏览

kentico - 启用文化时的奇怪 URL

我正在运行 Kentico 12.0.26 MVC。

通过内联小部件编辑器 (MediumEditor) 添加链接时,生成的最终 URL 有一个奇怪的 URL 路径,这对于 SEO 来说不是一个漂亮的 URL。

并非所有链接都有这个,但是当添加这个链接时,它使用页面的干净相对 URL,我想也许在启用 Kentico 文化功能之后,他们以某种方式得到了这样的更新,但并非所有链接都受到影响。我仍然不完全确定他们会在什么时候得到这样的更新。

我还注意到通过页面类型编辑器(CKEditor)添加的链接很好,似乎没有遇到这个问题。

请指教,谢谢

0 投票
1 回答
117 浏览

kentico - Kentico 编辑器/所见即所得的问题

我们刚刚从 K7 切换到 Kentico 12,编辑器出现了一些问题。

  1. 在页面的外部编辑器中格式化代码并将其粘贴到源代码中时,它会删除所有格式,因此源代码是与保持格式相反的一长串代码 - 选项卡行等(这在 K7 中运行良好)

  2. 当从 Word 粘贴到 WYSIWYG 中时,而不是创建新段落,它只是在每一行之后 br />br /> (即使使用“从 Word 粘贴”或“粘贴为纯文本”选项)。

解决这些问题的任何帮助都会很棒。

谢谢。

0 投票
1 回答
59 浏览

kentico - Kentico UI 站点使用用户名而不是电子邮件登录

在 kentico UI 站点中,他们有一个登录表单,其中有两个文本框(电子邮件和密码)。用户使用电子邮件访问站点登录。现在我需要使用用户名而不是电子邮件进行访问。在 CMS_User 表的 UserName 列中,值在那里。如何编辑我的代码?

0 投票
1 回答
83 浏览

kentico - Kentico:10 如何同时允许 E-Mail 和 Username 认证

在 Kentico 中,有一个带有两个文本框(电子邮件和密码)的登录表单。

用户已经通过电子邮件登录访问该站点。

我需要他们能够使用用户名而不是电子邮件访问该站点。用户名值已存在于CMS_User表 columnUserName中。