sitecore

Sitecore Custom Membership Provider

我的梦境 提交于 2020-01-15 07:34:06
问题 We have a need to use an existing external database for our membership needs. This database will contain all the basic information needed to authenticate and authorize users. I'm looking to see if you have documentation that can guide me through this process. I've seen posts online for custom membership providers implementation. But I haven't seen examples on how to integrate the custom membership provider with Sitecore API so Sitecore.Context.User will return the information of the logged in

Sitecore ECM Newsletter: ECM generate different values for links inside message when click on Dispatch and Test button

╄→гoц情女王★ 提交于 2020-01-14 19:50:12
问题 I have ECM NewsLetter with some links to site (another Items). When I send this Newsletter to my email by click on Dispatch button - links don't work when I click on them from the email inbox. It displays 404 not found error. But in ECM, if I click on Test button and type an email address, then go to inbox - the links works. Link - when clicked on Dispatch message button looks like: (after ec_camp there's no nulls) http://www.site.com/sitecore/RedirectUrlPage.aspx?ec_url=mypage.aspx&ec_camp

'ASP._Page_sitecore_shell_client_Speak_Layouts_Layouts_Speak_Layout_cshtml' does not inherit from 'System.Web.WebPages.WebPage

筅森魡賤 提交于 2020-01-14 12:54:12
问题 When we try to browse images in sitecore 7.1 application are getting the below error which is migrated from 6.2 to 7.1. Type 'ASP._Page_sitecore_shell_client_Speak_Layouts_Layouts_Speak_Layout_cshtml' does not inherit from 'System.Web.WebPages.WebPage 回答1: What you need to do is either: Go to your App_Config/Include folder, and rename Sitecore.MVC.config.disabled to Sitecore.MVC.config ; Or disable SPEAK (by renaming the SPEAK configs). 来源: https://stackoverflow.com/questions/20471147/asp

'ASP._Page_sitecore_shell_client_Speak_Layouts_Layouts_Speak_Layout_cshtml' does not inherit from 'System.Web.WebPages.WebPage

為{幸葍}努か 提交于 2020-01-14 12:53:35
问题 When we try to browse images in sitecore 7.1 application are getting the below error which is migrated from 6.2 to 7.1. Type 'ASP._Page_sitecore_shell_client_Speak_Layouts_Layouts_Speak_Layout_cshtml' does not inherit from 'System.Web.WebPages.WebPage 回答1: What you need to do is either: Go to your App_Config/Include folder, and rename Sitecore.MVC.config.disabled to Sitecore.MVC.config ; Or disable SPEAK (by renaming the SPEAK configs). 来源: https://stackoverflow.com/questions/20471147/asp

Redirect module in Sitecore

夙愿已清 提交于 2020-01-14 12:20:23
问题 I have installed Redirect module in sitecore. Inside modules I have created "Redirect Url". In Redirect Url I wrote Requested Url "http://domainname/pagename" and selected Redirect To from content. But it is not working. Can anyone tell me what is wrong I am doing? I have created redirect pattern. 回答1: It all depends on which module implementation you are using. I have heard multiple complaints on functional of original one (seems it is discontinued at all), so people are doing their own

Redirect module in Sitecore

旧巷老猫 提交于 2020-01-14 12:18:54
问题 I have installed Redirect module in sitecore. Inside modules I have created "Redirect Url". In Redirect Url I wrote Requested Url "http://domainname/pagename" and selected Redirect To from content. But it is not working. Can anyone tell me what is wrong I am doing? I have created redirect pattern. 回答1: It all depends on which module implementation you are using. I have heard multiple complaints on functional of original one (seems it is discontinued at all), so people are doing their own

Sitecore Glass Mapper (v4): Add custom query string parameter via RenderImage

◇◆丶佛笑我妖孽 提交于 2020-01-14 06:03:49
问题 Using Glass Mapper for Sitecore version 4 (MVC), I need the following method call: @Html.Glass().RenderImage(Model, x => x.PhotoField, new {cropregion = xmlValue.GetCropRegion()}, true, true) to result in: <img src="/sitecore/shell/-/media/Default-Website/cover.jpg?h=550&w=1600&la=en&hash=2986CA8291803D4A8EAC3B5A1C276E27D4877DCC&cropregion=534,11,1348,548" width="1600" height="550" /> Currently, the RenderImage call will result in the cropimage being added as an attribute rather than on the

How to find related items by tags in Lucene.NET

戏子无情 提交于 2020-01-14 05:26:25
问题 My indexed documents have a field containing a pipe-delimited set of ids: a845497737704e8ab439dd410e7f1328| 0a2d7192f75148cca89b6df58fcf2e54| 204fce58c936434598f7bd7eccf11771 (ignore line breaks) This field represents a list of tags. The list may contain 0 to n tag Ids. When users of my site view a particular document, I want to display a list of related documents. This list of related document must be determined by tags: Only documents with at least one matching tag should appear in the

Sitecore: The layout for the requested document was not found

杀马特。学长 韩版系。学妹 提交于 2020-01-14 05:10:08
问题 Only when I go to preview an item from the Content editor I get an error message The layout for the requested document was not found. I get redirected to http:///?item=%2f&layout=%7b00000000-0000-0000-0000-000000000000%7d&device=Default However, if I take the url and type it in directly or cut and paste like http:///?sc_itemid=%7BDA4BABB2-2605-46C5-8BA6-52215A826154%7D&sc_mode=preview&sc_lang=en Preview works. If I load the previous backup it works, I am trying to figure out the difference

Sitecore 7.2 - Item Web API-User Authentication

可紊 提交于 2020-01-13 09:55:50
问题 I want to restrict the Sitecore Item Web API to send data to authenticated user only & as per the documentation,we need to pass the user name & password in http request header as X-Scitemwebapi-Username & X-Scitemwebapi-Password To achieve this,I used below code: HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://scapidemo.local/-/item/v1/?sc_itemid={110D559F-DEA5-42EA-9C1C-8A5DF7E70EF9}&sc_database=master"); request.Headers["X-Scitemwebapi-Username"] = "admin"; request