sitecore7

Sitecore gives a blank page with just the text “Default page” in my MVC solution

为君一笑 提交于 2019-11-30 03:18:42
问题 When I browse to my startpage, e.g. /sv I get a blank page that just says "Default Page". However when I try /sv/ it works. Subpages like /sv/example work without slash though. I'm using Sitecore 7.1 with only MVC views. 回答1: Remove the default.aspx file from the web root. That will fix your problem. 回答2: When requesting URLs without a slash at the end, the "StripLanguage" processor of the preprocessRequest pipeline rewrites path to the value of the Settings.DefaultPageName setting ("default

Web Forms For Marketters (WFFM) Html input tag with placeholder attribute

两盒软妹~` 提交于 2019-11-29 20:48:04
问题 I have a requirement in which I'm implementing sitecore WFFM to create a form. The page has HTML input tags with Placeholder attribute. I have to render the WFFM SingleLineInput box to a input tag with placeholder attribute. What should I do? I know that the SingleLineText class is define in the Sitecore.Form.Web.UI.Controls dll. 回答1: You can achieve this by extending SingleLineText with an additional property to store the placeholder's text value. Once the property is in place, you'll need

Indexing Sitecore Item security and restricting returned search results

﹥>﹥吖頭↗ 提交于 2019-11-27 20:49:37
I have several roles defined, each with different restrictions to content and media items and I would like to restrict the search results that are returned based on the access rights of the currently logged in user, rather than displaying the result and the user then presented with an "Access Denied" page. Some content will obviously be accessible to extranet\anonymous so they should be returned for all users regardless. The security follows the standard Sitecore practices so Role inheritance (roles within roles) will be used, so it will need to take this into account also. I couldn't see

Indexing Sitecore Item security and restricting returned search results

≡放荡痞女 提交于 2019-11-26 22:59:50
问题 I have several roles defined, each with different restrictions to content and media items and I would like to restrict the search results that are returned based on the access rights of the currently logged in user, rather than displaying the result and the user then presented with an "Access Denied" page. Some content will obviously be accessible to extranet\anonymous so they should be returned for all users regardless. The security follows the standard Sitecore practices so Role inheritance