kentico

Kentico - Not able to save the DateTime in “DD/MM/YYYY” format

↘锁芯ラ 提交于 2021-02-11 17:44:44
问题 I am working on Kentico 12 MVC Site in version 12.0.59 and default culture set to "en-AU". I have created a Form named "Sample Form". When I am trying to save the datetime in either "MM/DD/YYYY" or "YYYY/MM/DD" it works correctly and saves the data in the database for the form. But when I try to save the datetime in format "DD/MM/YYYY" and click on Submit button to save the data in database, it shows the error as follows: Can anyone please suggest for the same? Thanks 回答1: One potential

Kentico - Pass MemoryStream file to MediaFileInfo API

谁说胖子不能爱 提交于 2021-02-10 14:20:38
问题 I have created a iTextSharp PDF file that is created to a MemoryStream. But I now need to pass this file to the Kentico media library. I would be grateful if anyone could show my how to do this. The code I have currently is: //Media Library Info - takes Media Library Name and Website Name MediaLibraryInfo libraryInfo = MediaLibraryInfoProvider.GetMediaLibraryInfo("MyLibrary", CMSContext.CurrentSiteName); //Folder in Media Library where Item will be Inserted string mediaLibraryFolder = folder;

How to get media file's ID from kentico's media selection?

℡╲_俬逩灬. 提交于 2021-02-08 11:31:24
问题 I am creating a custom web part for my project, so I need to select files (.pdf, ,doc, etc...) from a media library. I am using kentico's media selection form control and getting the value on my code behind like this: public string DocumentInfo { get { return ValidationHelper.GetString(GetValue("MediaInfo"), "") } } Doing this I am getting the path of my file (e.g ~/BlankSite/media/Office/test-file.pdf?ext=.pdf) but what I need is the ID, so I can get the Media Info with Kentico's

Extract Sustainsys SAML 2.0 Assertion

会有一股神秘感。 提交于 2021-01-28 14:13:27
问题 I am tasked with setting up SAML 2.0 Single Sign On via the Sustainsys (Kentor) library for the project I am currently working on. Here is the documentation I have been following. The website is a webforms application so I am using the HTTPModule portion of the Sustainsys library. I have configured my IDP (Okta) to send the SAML 2.0 assertions to the website which the documentation proclaims the Endpoint to be /Saml or /Saml/Acs . The site is a Kentico CMS website and the CMS offers an API

How to Create an MVC Widget in Kentico 12 Page Builder

纵然是瞬间 提交于 2020-08-10 19:40:45
问题 Previous question for context (the previous question was going nowhere, so I created this new one to start fresh): Unable to Create New MVC Widget in Kentico 12 I'm trying to create a widget called "Image with Summary". For now, I'm just trying to add a single property to it (a summary property that will have a rich text editor). It isn't appearing as a widget option when I add a new widget to page builder: From this, you can see that I have page builder configured properly (there is already

How to Create an MVC Widget in Kentico 12 Page Builder

杀马特。学长 韩版系。学妹 提交于 2020-08-10 19:40:03
问题 Previous question for context (the previous question was going nowhere, so I created this new one to start fresh): Unable to Create New MVC Widget in Kentico 12 I'm trying to create a widget called "Image with Summary". For now, I'm just trying to add a single property to it (a summary property that will have a rich text editor). It isn't appearing as a widget option when I add a new widget to page builder: From this, you can see that I have page builder configured properly (there is already

Kentico filter duplicates in search

橙三吉。 提交于 2020-07-16 09:40:52
问题 I have the following script to return search results of linked pages. I need to filter out the duplicates of the alias pages, as well as sort the results alphabetically. Currently, it returns both main page and alias page and does not sort them. <script runat="server"> bool hasDegree; bool hasCertificate; bool hasLetter; protected override void OnInit(EventArgs e) { base.OnInit(e); hasDegree = ValidationHelper.GetBoolean(CMS.DocumentEngine.DocumentHelper .GetDocuments("FCC.Credential").Path

Repeater Linkbutton Onclick not firing

南笙酒味 提交于 2020-05-16 21:50:49
问题 I am having problem with the LinkButton onclick event not firing. I have checked the following posts and taken the precaution of Postback but still joy repeater linkbutton not firing Repeater's Item command event is not firing on linkbutton click Here is my Code so far <asp:PlaceHolder runat="server" ID="phOrders"> <asp:Repeater ID="rprOrders" runat="server" OnItemCommand="rprOrders_ItemCommand"> <HeaderTemplate> <table> <tr> <th> <asp:LinkButton ID="lnkOrderByDate" runat="server" Text="Date"

YSOD Could not load file or assembly CMS.DataEngine - after Kentico 11.0.0 upgrade to Kentico 12 SP1

↘锁芯ラ 提交于 2020-04-30 10:11:04
问题 Just finished upgrading Kentico 11.0.0 with MVC, to Kentico 12 SP1 using https://docs.kentico.com/k12sp/installation/upgrading-to-kentico-12 No issues during upgrade. Kentico CMS is coming up fine on local IIS and Azure app. MVC site came up fine on local IIS. But staging MVC site is showing this error in Azure app: Server Error in '/' Application. Could not load file or assembly 'CMS.DataEngine, Version=11.0.0.0, Culture=neutral, PublicKeyToken=834b12a258f213f9' or one of its dependencies.