How do I turn off XHTML validation in Sitecore?

三世轮回 提交于 2019-12-19 02:23:05

问题


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.


回答1:


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 :)




回答2:


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.




回答3:


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




回答4:


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}



来源:https://stackoverflow.com/questions/8452005/how-do-i-turn-off-xhtml-validation-in-sitecore

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!