sitecore

Parsing JSON returned from the Sitecore Item Web API

∥☆過路亽.° 提交于 2019-12-11 03:16:19
问题 I am having trouble parsing the following JSON object from the Sitecore API: { "statusCode": 200, "result": { "totalCount": 1, "resultCount": 1, "items": [ { "Category": "PAGE", "Database": "web", "DisplayName": "Profile", "HasChildren": false, "Icon": "/temp/IconCache/Network/32x32/earth.png", "ID": "{7F51AD8B-4A8B-4DA5-87A8-374BEB900801}", "Language": "en", "LongID": "/{11111111-1111-1111-1111-111111111111}/{0DE95AE4-41AB-4D01-9EB0-67441B7C2450}/{110D559F-DEA5-42EA-9C1C-8A5DF7E70EF9}/

asp:Panel runat=“server” not available in C# .cs code page

拈花ヽ惹草 提交于 2019-12-11 02:55:51
问题 My ascx page: <%@ Control Language="c#" Inherits="FSB.Layouts.Short_Home_Loan_Application" CodeBehind="Short Home Loan Application.ascx.cs" %> <div class="form"> <form action="" method="post" rel="shortForm"> <div class="section"> <asp:panel id="shortForm_wrapper" runat="server"> this is the first panel </asp:panel> <asp:Panel runat="server" ID="thankYouWrapper" >this is the second panel</asp:Panel> </div> </form> </div> <sc:sublayout runat="server" path="~/layouts/FSB/Document Checklist

How do I time my XSLT execution times to millisecond accuracy?

久未见 提交于 2019-12-11 02:54:37
问题 I have an XSLT (running under Sitecore) that I'd like to benchmark. For example: <xsl:variable name="start_ms" select="TIME IN MILLIS" /> Do something <xsl:variable name="end_ms" select="TIME IN MILLIS" /> <xsl:variable name="total_ms" select="$end_ms - $start_ms" /> Do something else Unfortunately I can't manage to get the time to milliseconds accuracy. If I include xmlns:date="http://exslt.org/dates-and-times" I get date:dateTime() , but that only goes to seconds accuracy. Similarly, sc

Sitecore Content tree scroll to top in Firefox

五迷三道 提交于 2019-12-11 02:33:24
问题 When I expand the Sitecore content tree and when the vertical scroll bar appears for the content tree, and if I scroll down and select an item in the bottom of the tree, it scroll to top. This only happens in Firefox, IE10, IE9, Chrome it works fine. I did the Sitecore upgrade very recently. Has anyone encountered similar issue? Please help! Sitecore.NET 6.6.0 (rev. 130404) Firefox versions - 21,22 回答1: I have had a similar issue and contacted Sitecore support about it. They provided me with

Sitecore Mobile detection

懵懂的女人 提交于 2019-12-11 02:24:18
问题 I cant seem to get mobile detection working. I added the following "mobile" web.config changes: <site name="mobile" hostName="m.localhost" device="mobile" virtualFolder="/" physicalFolder="/" rootPath="/sitecore/content" startItem="/home" database="web" domain="extranet" allowDebug="true" cacheHtml="true" htmlCacheSize="10MB" registryCacheSize="0" viewStateCacheSize="0" xslCacheSize="5MB" filteredItemsCacheSize="2MB" enablePreview="true" enableWebEdit="true" enableDebugger="true"

Sitecore: Caching by custom param in code behind?

北城余情 提交于 2019-12-11 02:23:56
问题 We are looking to enable caching in Sitecore 6 on a specific page, however, this page has an image set based on a random value - and as such, we actually need to cache each individually rendered page so that we can keep this "random" image. Any suggestions? I figured that we would need to use sublayout params, but can not see how I can set this in the code behind to influence the caching behaviour. Any way of directly manipulating the cache entry? Regards, Andy 回答1: Create an outer sublayout

Sitecore Workflow __OnSave Command

。_饼干妹妹 提交于 2019-12-11 02:16:31
问题 I'm updating workflow process in Sitecore. As shown in the screenshot, I added "__OnSave" command under Approval state. I guess it means when user saves the item in Approval state, the state will change to Draft state. But, it is still in Approval state after saving. What is the issue?? 回答1: Actually __OnSave is a command, not an action. I'm not sure if Next State of this command is used at all. You need to click on the command button to execute the command, and __OnSave button is hidden by

Retrieving Sitecore items Position A in the content tree and to the user in Position B

拈花ヽ惹草 提交于 2019-12-11 02:11:54
问题 Given the following content tree, how could I associate Dealerships with Cars so that I can get a URL like this? http://website/Dealerships/JimWhite/Ford I need to be able to have the content viewable and editable under cars, but automatically updated under the dealerships. I assume there is some kind of link I can do? Home Cars Ford Honda Toyota Dealerships JimWhite TomJones 回答1: Take a look at this document on SDN, especially the chapter about Sharing and Reusing Items and Field Values

Sitecore with LDAP - authenticate programmatically

馋奶兔 提交于 2019-12-11 02:02:18
问题 I am creating an app inside Sitecore and I only want it available to the users via a direct URL. I want the authentication to occur against LDAP. I tried going directly to the app and let it redirect to the auto login page and redirect me to the app but it didn't do it. Instead it took me to the Sitecore login page. I'm wondering if it is possible for me to write some code to auto authenticate a LDAP user and redirect to the app page. I want the user to never see the login page or Sitecore

Sitecore folder & IIS permissions

耗尽温柔 提交于 2019-12-11 01:54:48
问题 When setting up or moving a Sitecore solution, you have to remember to setup the correct folder permissions and IIS permissions. It something like sections 3.3.3.2 - 3.3.3.9 here: http://sdn.sitecore.net/Products/Sitecore%20V5/Sitecore%20CMS%205,-d-,3/Installation/EXE%20Installation.aspx The folder permissions are usually setup when using the installer, but not when using the Zip or just moving an existing solution. You could use the guides (for Sitecore 6) here: http://sdn.sitecore.net