How do I turn off XHTML validation in Sitecore?

2019-02-13 10:04发布

How do I turn off Sitecore (6.5) XHTML Validation of pages in workflow?

I'm developing and keep running into issues while trying to publish down test pages because they error out. I would prefer to just get the errors as stacktraces in the browser.

I'm not sure if I have changed something before this does this, but I've recently taken on a project to move a Sitecore into a multi-site solution.

I did not have these issues while developing the solution the first time but I was using 6.4 instead of 6.5.

4条回答
The star\"
2楼-- · 2019-02-13 10:27

You can also suppress the validation for the particular Item, Click on Item,you will find Suppressed Validation Rules at the bottom of the Validation section and in the text-box we need to add the Item ID of that validation (Full Page XHtml).

For example Full Page XHtml, Item ID {9DE34911-96D5-48C3-AFFF-20CFF4D5AB02}

查看更多
SAY GOODBYE
3楼-- · 2019-02-13 10:28

If you go into System -> Settings -> Validation Rules -> Global Rules if you scroll to the bottom you will see the Workflow section.

You can remove the XHTML validation rule from there.

Hope this helps :)

查看更多
等我变得足够好
4楼-- · 2019-02-13 10:29

I was able to get this to work by going to the following item: /sitecore/system/Settings/Validation Rules/Field Types/Rich Text

From that item, remove the 'Is Xhtml' option from each of the Quick Action Bar, Validate Button, Validator Bar & Workflow fields.

This should disable the XHTML Validation.

查看更多
一纸荒年 Trace。
5楼-- · 2019-02-13 10:34

In Sitecore 7 and 7.1, you can delete the rule from the following path:

sitecore/system/Settings/Validation Rules/Item Rules/Item/Full Page XHtml item

查看更多
登录 后发表回答