kentico

Change domain of Kentico CurrentContact cookie

可紊 提交于 2019-12-13 04:13:41
问题 I have a Kentico installation at sub.mydomain.com . The CurrentContact cookie is created using a domain of sub.mydomain.com . I want the cookie to be able to be read by other subdmains like app.mydomain.com . Is there a way to accomplish this? Is there a web.config setting or a system event in which we can change the cookie domain? 回答1: If a cookie is issued for .mydomain.com then it will be accessible on all sub domains i.e. sub. and app. but not vice versa. Technically is sub.mydomain.com

Kentico culture error when uploading a file

一个人想着一个人 提交于 2019-12-12 04:37:26
问题 This only happens when using IE. An admin tries to upload a PDF in IE and we get this error. An error occurred when saving data. Please see event log for more details. Message: [TreeNode.InsertInternal]: Document culture 'en-CA' is not allowed on site 'KFFIntranet'. Exception type: System.Exception Stack Trace: at CMS.DocumentEngine.TreeNode.InsertInternal(TreeNode parent) at CMS.DocumentEngine.TreeNode.Insert(TreeNode parent, Boolean useDocumentHelper) at CMS.DocumentEngine.DocumentHelper

How do I disable products in Kentico 10?

徘徊边缘 提交于 2019-12-12 04:27:51
问题 I am performing CRUD operations for products of e-commerce site in kentico 10.I can add and update products using below API SKUInfoProvider.SetSKUInfo(updateProduct); Also there is an API for deleting product SKUInfoProvider.DeleteSKUInfo(updateProduct); But I do not wish to delete the product from database,rather just disable them so that they do not show up to the end users and still stay in the database . This are the SKU Objects for the product : var sku = new SKUInfo { //SKUName =

How to use custom page type class for current document

拟墨画扇 提交于 2019-12-12 03:48:12
问题 Currently, I have several custom page types within the CMS. In order to have type safety when working with documents, I used built-in code generator to create classes for each page type. For example, I have a page type called Whitepaper and the Kentico code generator generated two classes: public partial class Whitepaper : TreeNode { } public partial class WhitepaperProvider { } These classes work great if I'm directly querying for specific documents using the provider such as:

Kentico v9 how can i detect when a user is in CMS desk with JavaScript

喜夏-厌秋 提交于 2019-12-12 03:27:30
问题 I'm in the process of writing some JS for custom event tracking in Google Analytics. I want to avoid event tracking while the site is being updated. I do have access to change the code behind of my main .Master page so add an attribute to the body that than i can check against. The Javascript webpart may not be an option, since this is global code, rather template specific. 回答1: I'd still consider web part that could be placed on the master page, but rendered only if this is live site. Here

Is there a predefined webpart called CAPTCHA webpart?

若如初见. 提交于 2019-12-11 23:07:36
问题 How would I go about creating a CAPTCHA plugin for the framework Kentico CMS 7.0? Is there a predefined webpart called CAPTCHA webpart? 回答1: There are few form controls of CAPTCHA type. Navigate to Site manager -> Development -> Form controls and filter out CAPTCHA controls. You'll find e.g. "logic captcha" or "text captcha". You can use those controls e.g. in forms (this is typical usage) or anywhere else (just see properties of particular control). If you want to prevent robots posting to

Kentico reCaptcha does not block form submission

我的梦境 提交于 2019-12-11 19:33:25
问题 I have the reCaptcha FormControl in my WebPart <script src='https://www.google.com/recaptcha/api.js'></script> ...... <div class="form-group"> <label>Please type the word below. If required use the buttons to change or listen to the word.</label> <cms:RecaptchaControl ID="reCaptchaVld" runat="server" data-theme="clean" data-callback="cpCallBack();" PrivateKey="xxxxxxxxx" PublicKey="xxxxxxxxx" data-recaptcha="" CssClass="g-recaptcha" /> </div> I did a test that I filled all required field but

Server Error in Application Kentico 7.31

孤人 提交于 2019-12-11 16:34:32
问题 When I click tools in CMSDesk I get an "Server Error in Application" errir I was able to solve this error in Kentico 7.0 as documented here However i now have the same error in a 7.31 installation. The event log is Event ID: 77 Event type: Error Event time: 5/2/2013 10:27:08 PM Source: Application_Error Event code: EXCEPTION User ID: 53 User name: administrator IP address: ::1 Description: Message: Multiple controls with the same ID 'bRecentDocs' were found. FindControl requires that controls

Get Id of user currently logged into MS Dynamics CRM 2011 Online

巧了我就是萌 提交于 2019-12-11 13:47:09
问题 Is there a way to retrieve/identify the user that is currently logged into MS Dynamics CRM 2011 Online? What i'm trying to accomplish here is kind of like the facebook login except with MS Dynamics. I need to somehow detect whether the user has logged into the MS Dynamics website. If the user is logged into the MS Dynamics website, i'll have to grab the UserId and authenticate it with Kentico CMS. I've tried messing with the WhoAmIRequest, but unfortunately it needs a credential to properly

Kentico 12 DancingGoat MVC SiteName is empty or null

假如想象 提交于 2019-12-11 07:58:51
问题 I have installed DancingGoat MVC and i can access the IIS urls just fine http://localhost:8080/Kentico12_DancingGoatMvc http://localhost:8080/Kentico12_Admin/Admin/cmsadministration.aspx When I try to debug the MVC application to look into the inner workings of the sample site, in StartUp.auh.cs file i get SiteName is empty or null exception . The exception is on following line // Register Kentico Membership identity implementation app.CreatePerOwinContext(() => UserManager.Initialize(app,