Hi:I was executing the upgrate tool for migrating a Kentico site from v.9.2 to v.10. The upgrade process finished ok whitout any errors in the log, but when i restarted the site, the page throw the following exception:So i compiled and built the site in VS but the exception appeared again.Do you know the way to solve this error?Thanks.
↧
Upgrading to Kentico 10 - License key is not valid
↧
Error saving documents to content tree
Hello KenticoI am trying to save documents but i get an errors that is not consistent with the TreeNode informationTreeProvider Tree = new TreeProvider(MembershipContext.AuthenticatedUser);
TreeNode AuthorRoot = Tree.SelectNodes().Path(@/authors@).OnCurrentSite().Culture(@en-us@).FirstObject;
// this exists AuthorRoot, see image below
TreeNode AuthorPage = TreeNode.New(@CMS.Author@, this.Tree);
AuthorPage.DocumentName = authorName;
AuthorPage.DocumentCulture = @en-us@;
// AuthorPage.DocumentPageTemplateID = 26076;
// Creates the Author page
AuthorRoot.Insert(AuthorPage);
I get these error
[TreeNode.GetSiteName]: Site is not specified or specified site does not exist.
[DocumentHelper.CheckParameters]: Parent node site not found.
this line " parentAuthor.Insert(AuthorPage);"
I know there is a site associated with the tree node, but the save is not recognizing it Any ideas? Thanks
↧
↧
How to find the object type of particular database table or a web part or page type or form ?
for instance I saw in one of the examples of integration bus it was mentioned to use
new ObjectIntegrationSubscription(ConnectorName, TaskProcessTypeEnum.AsyncSnapshot, TaskTypeEnum.All, null,@bizformitem.bizform.%@, null); to subscribe. How can we know @bizformitem.bizform.%@is the type to b used, because it did not work when i used predefinedObjectType.bizform !
↧
Error related to missing column name while exporting site in kentico
Hi
Anyone who can help me out ?
I am getting an error - Missing column name xyz while i am exporting site.
I am working on custom modules and don't know who have updated my code.Regards,
Naveen
↧
Analytics tab is missing from "Pages" Application
Hi,I have exported and again imported site in Kentico 10.
Also I have applied new salt to every component but still analytics tab is missing from pages application.System -@ Macros -@ Signatures interface @ Change SaltKindly help.Best Regards,
Manmath
↧
↧
How to Bind Nested Repeater with Custom Data Source
I try to show state details on clicking on State id ,so I am trying to use Nested Repeater but not working,How to use nested Repeater with Custom table Data Source with out ASP.NET Code
↧
Kentico chatbot
Does anyone has any idea about how would you approach developing a chatbot like service within Kentico?What are the major libraries available? I have heard some noise about LUIS and Microsoft cognitive services?My idea would be have a user Q/A on Kentico CMS and get answers to users about the most common questions in an interactive to start off with!!Any help will be appreciated!!Cheers,
Chetan
↧
Linking directly to a page within the Page Admin for editing
Currently upgrading from v7 to v10. On our old v7 site, we had added a small section of code to the .master page of our Intranet site which, if the current user was an editor and had the proper access, would link them directly to that page within the CMSDesk for editing. The old link was:/CMSDesk/Default.aspx?nodeID=@nodeID@Based on the link to the admin site from the on-site editor, it looks like you can now link via: /Admin/CMSAdministration.aspx?nodeid=@nodeid@#@guid@I am guessing that the Guid is the Page module's. Do you know if this is static or is generated per install? And, if it's generated on install, how to find it via the API?
↧
Where Clause for Tag Names in News List
I have a page that contains a list of news with a tag cloud. The Page will show only the related tag when a tag is selected. Using Kentico 8.2I have the following for a Where Clause where I filter on the TagName in the URL.DocumentTags like '%{?TagName?}%' This works with some side effects. Tag Name Maple will return both tags @Some Maple@ and Maple instead of just @Maple@. I tried DocumentTags = '%{?TagName?}%'.
This results returns nothing. Is DocumentTags a string with a comma delimited list of tags?What is a good where clause to filter down to just the word @Maple@ when the TagName is Maple?Thanks David
↧
↧
Read list of field values in BizForm custom submit handler
Hi, Is there any way to programmatically read a list of submitted fields and their values on a custom submit handler? All the examples I can find assume you already know the names of the fields on submit.
private void FormItem_InsertAfterHandler(object sender, BizFormItemEventArgs e)
{
var form = e.Item;
.... *
↧
Kentico 9: Customizing the Form action based on the page the form is on
I have a form that I want to include on each of 250 pages based on the same pageType. Thus I want to include the form reference in the template and have it render on all pages. this much seems to be working.
However, I want to have the form to trigger an email send to a different email address based on the pages contactEmail property (entered as a property of the page/ defined on the pageType) I am guessing I will have to build a custom form control or alternative form, but I don't know where to start and I have been pouring over the documentation for days.
I tried enabling email notification and setting {% CurrentDocument.ContactEmail #%} as the recipient email, but that does not seem to work. I am not sure what context I can use macros in the form building or if there is a way to reference the current document field values within the form.
↧
Can we load different images in differnt BannerRotators in page load under same category Banner in kentico
I am developing on e Website using kentico cms tool .In that I have 5 banner rotators .i want to display different images in different banner rotators under same category banner in same page.
↧
Kentico CSS issue
I am using Kentico and have noticed a weird css issue. After mocking my pages up in Dreamweaver I then create the page in Kentico, however I have noticed that some elements in Kentico are slightly misaligned.I have tried copying the source from Kentico into Dreamweaver to see if I can fix the issue but Kentico still renders the content incorrectly.Thanks,
Mark
↧
↧
How to display busy status in Kentico custom module
I have a custom module that contains a button. The button click performs a process that sometimes takes 5-10 seconds to complete. Is there a way in Kentico to display a custom busy message like the "Loading" message that Kentico displays during lengthy processes? I would like to show the same "Loading" msg that Kentico shows with my own custom message.
↧
Hiding entire website to visitors on Kentico?
Is it possible to hide an entire website behind a log-in screen? Making the visitor login to see the content. I know there are plugins like this on Wordpress but I am unable to find something for Kentico.Thanks,
Brian
↧
Getting CSRF error after redirection to other site and coming back to original site using post
Hi,
We have a requirement to redirect to third party site to perform authentication. Upon successful authentication, it should redirect back to our site using POST with stored cookie values or authentication ticket to get user details.Getting CSRF error after redirecting to our site. For time being we have added below key in web.config to resolve the CSRF error but this web.config is common to multiple sites that are hosted in same build@add key=@CMSEnableCsrfProtection@ value=@False@@Request you kindly provide the solution without this key setting in web.config.
↧
CSRF Attack on the Website.
Hello Support,
We are getting below issue. as we on my website we have third party login @ redirection to our website.Our Kentico instance having multiple website. so we can't able to disable @ App Key.
Message: CSRF attack detected.Exception type: CMS.Protection.CsrfException
Stack Trace:
at CMS.Protection.CsrfProtection.ThrowCsrfException(Exception innerException)
at CMS.Protection.CsrfProtection.OnPostMapRequestHandlerExecute(Object sender, EventArgs eventArgs)
at CMS.Base.AbstractHandler.CallEventHandler[TArgs](EventHandler1 h, TArgs e)
at CMS.Base.AbstractHandler.Raise[TArgs](String partName, List1 list, TArgs e, Boolean important)
at CMS.Base.SimpleHandler2.RaiseExecute(TArgs e)
at CMS.Base.SimpleHandler2.RaiseExecute(TArgs e)
at CMS.Base.SimpleHandler`2.StartEvent(TArgs e)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean@ completedSynchronously)Message: Value cannot be null.
Parameter name: sException type: System.ArgumentNullException
Stack Trace:
at System.Convert.FromBase64String(String s)
at CMS.Protection.CsrfProtection.OnPostMapRequestHandlerExecute(Object sender, EventArgs eventArgs)Regards,
Harshal
↧
↧
How to make a field depend on the value of another field in Kentico form builder
I'm creating a contact form which should allow the user to enter either phone or email or both. My conditions would be something like:Email.value != "" || Phone.value != ""I just have no idea how to write this as a K# macro rule in the Forms -> Form Builder -> Field Validation -> General Condition editor. Is it even possible to get the value of other fields? All the predefined rules are completely unrelated to the current form data.
↧
Unique ID's in custom web part and how to add properties by id
Based on the following Article I have a follow up question.
(https://devnet.kentico.com/articles/custom-web-part-with-editable-regions---how-to-ensure-unique-ids-of-nested-editable-regions).To ensure unique ID's of controls inside a web part, in the Page_init function the ID of the web part itself is added to the ID that might otherwise be not unique.
However, how can you call the ID after updating it?I have for example a custom web part that contains a asp:repeater control with ID=@Repeater1@. In the OnInit function (I can not override a Page_Init function) I change this ID by adding the ID of the web part:
Repeater1.ID = @Repeater1@ + this.ID;However, after this, I can not find the repeater by its other ID, only Repeater1 is found with intellisense.
↧
Adding Custom Web Part to the Web Part List View
I have created a Custom Web Part using Visual Studio 2015. How do I add the Custom Web Part in the Web Part list page of Kentico Portal Engine.
link text
↧