Kentico 11.0.34 version. In the Product Coupons app, the default setting for "Apply lower priority discounts" is true/yes. Business logic stipulates that this should be set to false/no except in extraordinary circumstances. Because this option is hidden under the Discount processing tab at setup, it is often missed. Is it possible to change the default of this setting? Discount Processing Setting Default
↧
Kentico 11: Default Setting for Product Coupons > "Apply lower priority discounts"
↧
Modify existing unsubscribe macro?
Is it possible to modify an existing macro?Specifically EmailFeed.UnsubscribeFromEmailFeedUrl.The issue is that I need to create a landing page for a user to see all Newsletters and allow them to check/un-check which ones they want to sub to. The existing functionality only unsubs from whatever newsletter was in the query string.I just want the macro to generate a url to my new page with a valid hash in the query string that can be verified on the landing page (the clients will not be users in Kentico. The hash is what will validate them and allow subscribing)Thanks
↧
↧
Multi part conditional statement with Contains
Hi all, I've got webpart visibility set on a macro like so:
{% Contains(CurrentDocument.AbsoluteURL, @/Real-Estate/@) #%}Works like a champ. But I want to add a second Contains condition and this seems like it should be very simple but the syntax is eluding me. I've tried If/Else statements returning True/False, I've tried some || operators. I tried a few other methods I felt should work, but I'm stumped.So how would I check for a URL containing either of 2 strings?
↧
Does a parent page with many child pages provide models for all children?
Does a parent page with many child pages provide models for all children?By fetching the model of a parent page, does it include all data from the child pages also? or do they all need to be retrieved separately?Thanks!
↧
Hidden sub menus in page type editor
On a new Kentico site I am running I have some missing sub menus when editing page types. Importantly I am missing fields.Any tips?
ThanksMissingNormal
↧
↧
Tried to display image galleries and it does not showing anything
Hi there,I am trying to replicate this tutorial for our Kentico 9 media gallery installation:
https://docs.kentico.com/k9/developing-websites/loading-and-displaying-data-on-websites/displaying-data-advanced-scenarios/displaying-image-galleriesI have put the Media files data source web part and have added a basic repeater. In my basic repeater, I have put: {% WebPart.GetValue(@WebPartControlID@,@MediaFilesDataSource@) #%}And this transformation
https://imgur.com/yUqdgamIt is not showing anything :( I have make sure that the media libray contains some images.Any help will be appreciated.Thank you
↧
Bulk changing documents to specific categories
Hi , I am currently in the process of performing assigning a number of pages in our portal engine to various categories. I am looking at a method something like : var docs = DocumentHelper.GetDocuments()
.Path(@/Path@, PathTypeEnum.Children)
.OnCurrentSite();
foreach (TreeNode node in docs)
{
DocumentCategoryInfoProvider.AddDocumentToCategory(node.DocumentID, @categoryId@)
}
In order to run this code what is the best practice for running the code in the portal engine, ie would i just create a button on a web part to execute it , or create an ascx control and link in as web part. I am thinking ahead in respect to creating a number of utility methods over time.
↧
jquery-core.js
Is it possible to upgrade @...\CMS\CMSScripts\jquery\jquery-core.js@ from 1.7.2 to a newer version of jquery without upgrading from Kentico v8.2?It keeps appearing in web app vulnerability scanning results as out of date.
↧
Is it possible to pull data from a non Kentico Database?
I have added a Drop-Down list Form Control to one of my page types in the field editor of Kentico 11.In the section where it asks me to create a Data Source, can I pull some data from a database outside of Kentico?Thanks you.
↧
↧
Kentico 11+ WebForms PortalEngine and WebObjectActivator
Has anyone had any success with setting a DI adapter to HttpRuntime.WebObjectActivator on a Kentico 11 hotfix 24 WebForms PortalEngine website?With https://www.nuget.org/packages/DependencyInjection.WebForms.Unity/ being added on Global.asax Application_Start any page/admin request is producing the following error for me:[Exception: Only one page manager (CMSPageManager or CMSPortalManager) is allowed on the page.]
CMS.PortalEngine.PortalContext.set_CurrentPageManager(IPageManager value) +90
CMS.PortalEngine.Web.UI.CMSPortalManager..ctor() +210
[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) +0
System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +328
Unity.Processors.@@c__DisplayClass16_0.@GetResolverDelegate@b__0(BuilderContext@ c) in C:\projects\unity\Container\src\Processors\Constructor\ConstructorResolution.cs:79
Unity.Processors.@@c__DisplayClass8_0.@GetResolver@b__0(BuilderContext@ c) in C:\projects\unity\Container\src\Processors\Abstracts\MemberProcessor.cs:162
Unity.Processors.@@c__DisplayClass8_0.@GetResolver@b__0(BuilderContext@ c) in C:\projects\unity\Container\src\Processors\Abstracts\MemberProcessor.cs:162
Unity.Processors.@@c__DisplayClass8_0.@GetResolver@b__0(BuilderContext@ c) in C:\projects\unity\Container\src\Processors\Abstracts\MemberProcessor.cs:162
Unity.@@c__DisplayClass111_0.@OptimizingFactory@b__0(BuilderContext@ c) in C:\projects\unity\Container\src\UnityContainer.Resolution.cs:271
Unity.Strategies.BuildPlanStrategy.PreBuildUp(BuilderContext@ context) in C:\projects\unity\Container\src\Strategies\BuildPlanStrategy.cs:88
Unity.@@c.@.ctor@b__73_2(BuilderStrategy[] chain, BuilderContext@ context) in C:\projects\unity\Container\src\UnityContainer.Resolution.cs:420
Unity.Builder.BuilderContext.Resolve(Type type, String name, InternalRegistration registration) in C:\projects\unity\Container\src\Builder\Context\BuilderContext.cs:177
Unity.Builder.BuilderContext.Resolve(Type type, String name) in C:\projects\unity\Container\src\Builder\Context\BuilderContext.cs:44
Unity.Builder.BuilderContext.Resolve(ParameterInfo parameter, Object value) in C:\projects\unity\Container\src\Builder\Context\BuilderContext.cs:217
Unity.Processors.@@c__DisplayClass7_0.@CreateParameterResolvers@b__0(BuilderContext@ context) in C:\projects\unity\Container\src\Processors\Parameters\ParametersProcessor.cs:121
Unity.Processors.@@c__DisplayClass16_0.@GetResolverDelegate@b__0(BuilderContext@ c) in C:\projects\unity\Container\src\Processors\Constructor\ConstructorResolution.cs:77
Unity.Processors.@@c__DisplayClass8_0.@GetResolver@b__0(BuilderContext@ c) in C:\projects\unity\Container\src\Processors\Abstracts\MemberProcessor.cs:162
Unity.Processors.@@c__DisplayClass8_0.@GetResolver@b__0(BuilderContext@ c) in C:\projects\unity\Container\src\Processors\Abstracts\MemberProcessor.cs:162
Unity.Processors.@@c__DisplayClass8_0.@GetResolver@b__0(BuilderContext@ c) in C:\projects\unity\Container\src\Processors\Abstracts\MemberProcessor.cs:162
Unity.@@c__DisplayClass111_0.@OptimizingFactory@b__0(BuilderContext@ c) in C:\projects\unity\Container\src\UnityContainer.Resolution.cs:271
Unity.Strategies.BuildPlanStrategy.PreBuildUp(BuilderContext@ context) in C:\projects\unity\Container\src\Strategies\BuildPlanStrategy.cs:80
Unity.@@c.@.ctor@b__73_1(BuilderContext@ context) in C:\projects\unity\Container\src\UnityContainer.Resolution.cs:361
Unity.UnityContainer.Unity.IUnityContainer.Resolve(Type type, String name, ResolverOverride[] overrides) in C:\projects\unity\Container\src\UnityContainer.IUnityContainer.cs:244
Unity.UnityContainerExtensions.Resolve(IUnityContainer container, Type t, ResolverOverride[] overrides) in C:\projects\unity\Abstractions\src\Extensions\Container\UnityContainer.cs:913
HouseofCat.DependencyInjection.WebForms.Unity.ContainerServiceProvider.GetService(Type serviceType) in C:\GitHub\personal\HouseofCat.DependencyInjection.WebForms.Unity\ContainerServiceProvider.cs:49
ASP.cmspages_portaltemplate_aspx.__BuildControlplcRoot() in C:\GIT\tests\KenticoTests\CMS\CMSPages\PortalTemplate.aspx:0
ASP.cmspages_portaltemplate_aspx.__BuildControlform() in C:\GIT\tests\KenticoTests\CMS\CMSPages\PortalTemplate.aspx:13
ASP.cmspages_portaltemplate_aspx.__BuildControlTree(cmspages_portaltemplate_aspx __ctrl) in C:\GIT\tests\KenticoTests\CMS\CMSPages\PortalTemplate.aspx:1
ASP.cmspages_portaltemplate_aspx.FrameworkInitialize() +54
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +48
System.Web.UI.Page.ProcessRequest() +76
System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +24
System.Web.UI.Page.ProcessRequest(HttpContext context) +62
ASP.cmspages_portaltemplate_aspx.ProcessRequest(HttpContext context) +48
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +195
System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +50
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean@ completedSynchronously) +73
If I don't add the adapter I get no error, I can't really tell why the PortalContext.CurrentPageManager is already initialized for it to throw that error when the page/controls are being built up.Any help getting to the bottom of it would be greatly appreciated.
↧
Kentico MVC Anti Forgery Token and caching
Hi,I'm using caching to improve performance and I'm having issues with some Kentico Forms added to my site, which by the way is in a web farm.I have the same @machineKey decryptionKey=@XXX@ validationKey=@XXX@ /@ values on all web.configs.However, I'm randomly getting the following error when a form is submitted:The anti-forgery token could not be decrypted. If this application is hosted by a Web Farm or cluster, ensure that all machines are running the same version of ASP.NET Web Pages and that the configuration specifies explicit encryption and validation keys. AutoGenerate cannot be used in a cluster.I presume this is because the AntiForgery Token value posted was cached and thus, it doesn't match with the one expected by the server.Is there any solution for this that doesn't involve disabling the caching? Can I disable the Anti Forgery token validation?Any help would be appreciated.Kind regards,Gustavo
↧
Kentico 11 Forms
Hi thereCan some please explain to me how do I use forms to post its data to another method in a class as I want to save the posted data to another Database table instead of @Recorded Data@. I have went through the documentation but did not get luckyBest regards
David
↧
How to search for overlapping time slices?
I have a list of objects, there are multiple objects in list and every object contain StartTime and EndTime, for example:StartTime: 09:00 EndTime: 10:00StartTime: 09:30 EndTime: 10:15StartTime: 10:00 EndTime: 10:30StartTime: 11:00 EndTime: 11:30StartTime: 11:45 EndTime: 13:00StartTime: 12:45 EndTime: 14:00In the above example there are three groups of time intervals with and without overlapping:1) StartTime: 09:00 EndTime: 10:302) StartTime: 11:00 EndTime: 11:303) StartTime: 11:45 EndTime: 14:00Please suggest how can I modify my query to get the results like above example, any help will be highly appreciated.
↧
↧
Conditionally required image field
Hi, In my current project, I have a hero area that supports the following two layouts:Large Hero Area, that requires an image and a heading text.Small Hero Area, that requires only a heading text. In my page type I have the following three fields:HeroAreaType (DataType Text, Required, Form Control: Drop-Down list, DataSource: list of options, Data: 0;Large Hero Area, 1;Small Hero Area), for the author to select the Hero Area Type.Heading (DataType Text, Required, Form Control: Text box): for the author to insert the heading text.Banner (DataType Text, Form Control: Media selection): for the author to select an image from the media library.What I need to do, but I wasn't able to find any relevant documentation, is when the author selects the 'Large Hero Area' in the @HeroAreaType@ list then the @Banner@ field should be treated as required and if no value is set for the @Banner@ a relevant validation message to be displayed to the author. Also if the author selects the 'Small Hero Area' in the @HeroAreaType@ list, then the @Banner@ field should be treated as optional. I tried to use the @General Condition@ Validation Rule of the field @HeroAreaType@ in the relevant Validation section, but I could not make it work.Is it possible to achieve such conditional behavior by using the @General Condition@ or any other build in validation rule? If so please direct me to a relevant example or showcase. If not, what is the suggested way to achieve such behavior?I' am using Kentico 12Sp1 MVC.Thanks in advance,George
↧
scheduled tasks
I have recently created a scheduled task, which provides the ability to bulk change pages to specific categories. I have used the DocumentNamePath to provide the user with a mechanism for grouping pages into their respective areas. I am now looking at the ability to pass parameters in my task so i don't have to keep going into the code to change the path string. There does not seem to be any documentation on how these parameters are passed and the format within the Task Scheduler, only reference to a input box called Task data, and Task condition. Could you point me in the direction of getting some clarification on performing the passing of parameters to my code behind. Many Thanks
↧
Public user, how to access the customer site in without login window for particular users, not all u
In kentico 10 customer site already used login window, if enter username and password, if credential is success they able to access the customer site.
else the credential is not valid not able to access the site.My requirement is how to access the site in without login window for particular users, not all users.
↧
Kentico 12 - Recaptcha and BizForms
I've been successful in setting up a custom form in my views utilizing some built-in Kentico HTML Helpers. Been using @Html.TextAreaFor(), @Html.CheckboxFor(), etc. All data is being passed through a model and getting saved to the database via BizForm. Just to note, I am not using PageBuilder for the form.Now, maybe I'm trying to do something that's not even supported because I don't see it in the documentation. However, is it possible to call the Recaptcha field with a similar built-in method (i.e. @Html.RecaptchaFor())? If so, what is the method/namespace for it? If this is simply not possible, I'll implement it a different way. Just want to ensure there isn't a better way of doing this.Appreciate any feedback and implementation suggestions, thank you in advance.To help provide some context, below are the namespaces currently being referenced in web.config, which don't seem to inherently support displaying Recaptcha: @add namespace=@Kentico.Content.Web.Mvc@ /@
@add namespace=@Kentico.Web.Mvc@/@
@add namespace=@System.Web.Mvc@ /@
@add namespace=@System.Web.Mvc.Ajax@ /@
@add namespace=@System.Web.Mvc.Html@ /@
@add namespace=@System.Web.Optimization@/@
@add namespace=@System.Web.Routing@ /@
↧
↧
Widget Page Selector - Limit by page type
Is it possible to limit the new widget Page Selector by a given page type?
I know you can set it to load a specific path using EditingComponentProperty(nameof(PageSelectorProperties.RootPath) but can't see a way to limit by page type.Thanks in advanced,
Danny
↧
Smart search filter
I was just wondering when i perform a smart search based on categories, i have a page which has two editable regions. The search seems to always choose The first paragraph from the second editable text box. Is there a reason behind this behaviour, and can it be modified?
↧
form doesn't work after log out from kentico
hello team Kentico
I am facing an issue with Kentico 11 the issue is I create a form and everything works fine but when I log out from Kentico while I am clicking of submit button nothing happens
↧