Questions tagged [kentico-mvc]

Kentico is a CMS using asp.net that enables users to build websites, online stores, and community sites. To use this tag, the question has to be about Kentico development using MVC, rather than using the Portal Engine or ASPX templates.

Up to and including version 11, Kentico has provided three development modules; MVC, the Portal Engine, and ASPX templates. With version 12, they have dropped ASPX templates and are now making more of a push for MVC.

When developing under the MVC model, you work with two separate applications – the Kentico administration is entirely separated from the MVC application serving content, allowing you to fully leverage the separation of concerns for which the MVC approach is known.

The advantages of using this development module are:

  • Model-View-Controller architecture.
  • The option of using a View Engine of your choice.
  • Full control over the implementation.
  • Two applications, allowing for greater separation of concerns.
  • Greater flexibility when designing websites and no dependence on existing implementations, but at the price of additional development time.

Disadvantages are:

  • Not all Kentico features are supported for MVC development
  • Requires knowledge of ASP.NET MVC and programming.

References

66 questions
0
votes
1 answer

How can I override DocumentCreatedWhen and DocumentModifiedWhen while using Kentico Import Toolkit?

I've created a number of .iprofile files to import pages from a legacy WebForms site into the "Content-Only" versions on a new MVC site. This works great except that it ignores the mapping for DocumentCreatedWhen and DocumentModifiedWhen. Each time…
cganickel
  • 76
  • 6
0
votes
2 answers

Kentico 12 - Limit Page Selector by a given 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.
mp3duck
  • 2,633
  • 7
  • 26
  • 40
0
votes
1 answer

How to change text on page dynamically depending on value from another page/ product in Kentico CMS 9.0

Currently, we are working on Kentico CMS 9.0 version. We are facing some development issue on below scenario: There is a static message getting displayed on a Success page after Registration. This Text is written in WebPart -- > HTML Envelop …
0
votes
0 answers

Setting up controller and views for Kentico Cloud API and .NET

I'm having the worst luck with the documentation for Kentico Cloud and .NET. I'm looking to get my controller and views organized so they can display on another page (not main view but accessed via navbar) and then click on the post to see the full…
0
votes
1 answer

Kentico IEnumerable is empty in my controller

I am using the standard method to get the properties of my page: ClientLogosDatasource datasourceItem = ClientLogosDatasourceProvider.GetClientLogosDatasource(datasourceNodeGuid, "en-us",…
Ben Murphy
  • 49
  • 1
  • 5
0
votes
1 answer

CMS_DocumentAlias table is empty Kentico

I am trying some different basic URL mapping methods for Kentico 12 MVC and I have seen this post: https://devnet.kentico.com/questions/get-treenode-by-url SelectSingleNode is returning null. When I check my database, the CMS_DocumentAlias table is…
Ben Murphy
  • 49
  • 1
  • 5
0
votes
2 answers

How to route and resolve pages in Kentico

I am creating a Kentico website and have been through the tutorial and reading up on the handling links for Kentico MVC. From what I understand, Kentico is encouraging developers to use the standard MVC routing to map pages to controllers. This is…
Ben Murphy
  • 49
  • 1
  • 5
0
votes
1 answer

How do I get the Alias Path/Node Alias in C# Kentico 12 MVC

I am using the standard DocumentHelper.GetDocuments to find a page, and for top level pages, the .WhereEquals("NodeAlias", pageAlias) is working fine, where pageAlias is along the lines of "Test-Page". Once I start resolving child pages (so…
Ben Murphy
  • 49
  • 1
  • 5
0
votes
1 answer

Kentico Migration Update URLs

I have recently inherited a Kentico site and there still seems to be links to the old owner's instance. Is there a way in Kentico to update links and URLs? I've searched through the codebase for traces of the URL but cannot find anything
Ben Murphy
  • 49
  • 1
  • 5
0
votes
1 answer

How to use the Email template in c#code in kentico 10

I created one Email template in Kentico 10. How to use the Email template in c#code. I created the one kentico cms form, once submit the form after I need to show the success message in popup window. how to do?
krishnan
  • 33
  • 6
0
votes
1 answer

Kentico 12 Service Pack - MVC site only redirects to Admin site login page

I have a site I'm building in Kentico 12 MVC. I just upgraded the admin backend app and my MVC app to the Kentico 12 Service Pack (hotfix 12.29). Now my MVC app only redirects to the admin app login page. I removed the admin redirect route mapping…
0
votes
1 answer

How to create kentico site specific resource strings in each sites?

In my site they have configured in 5 sites. SiteName: A,B,C,D,E. I want to have the ability to customise these two pieces of text by site using a site specific resource (localization) string for each text field. These resource strings should be…
krishnan
  • 33
  • 6
0
votes
1 answer

Referencing Client Script Files in Kentico 12 MVC

We are new to Kentico having recently purchased a Kentico 12 licence. This is what we are trying to do: Create a new CSS Stylesheet and JavaScript File in the Development section of the CMS On a single, custom MVC page, reference these client…
Neilski
  • 4,385
  • 5
  • 41
  • 74
0
votes
0 answers

Strange URLs when culture is enable

I am running Kentico 12.0.26 MVC. When adding links via the inline widget editor (MediumEditor), the final URL that gets generated has a strange URL path, which is not a pretty URL for…
0
votes
0 answers

None of the constructors found with 'Autofac.Core.Activators.Reflection.DefaultConstructorFinder' in builder.RegisterType

Detailed error is as below None of the constructors found with 'Autofac.Core.Activators.Reflection.DefaultConstructorFinder' on type 'KMVC12.Controllers.HomeController' can be invoked with the available services and parameters: Cannot resolve…