Setting up a clean install of a Kentico 5.5 site

Kentico comes pre-installed with starter sites that include sample document types, templates, and layouts. These items exist to give you a starting point and demonstrate features of Kentico. In most cases, when building a custom site, you will want to install Kentico without these extraneous items. Having only items that pertain to your site in the CMS will make for a better user experience for your CMS Desk and Site Manager users. I will walk you through the installation process, highlighting the sections in which you can choose to minimize the items that will be installed on your site.

4
Comments
2
Votes

Find Closest Ancestor Method

The find closest ancestor method is a handy method that recursively traverses up the tree from a given node until it finds a document with the class type you have specified. For example you might have news items that live under various page menu items in order to categorize them (e.g. Tech News, Global News, etc.) and you want to display the section name (page menu item's title) above the news title on the news item. You can use the find closest ancestor method to get the page menu item that is above the current news item and display the page menu item's title. 

0
Comments
3
Votes

Extending the User Profile

In some cases you may have a need to add extended data to the user’s profile. The extended profile data is stored in the CMS_UserSettings table. To add a field to this table, navigate to CMS Site Manager > Development > System tables and click edit on the CMS_UserSettings table.

2
Comments
3
Votes

Using SQL Profiler with Kentico

This is a quick tip, but might save you some time and sanity if you are using SQL Profiler with Kentico. SQL Profiler is a tool that will let you see the SQL queries that are being sent to the database. This is a useful debugging tool when you are not getting the results you expect. The problem is, when using the connection from your Kentico site you will not see the SQL queries. This is an easy fix; we just need to modify the connection string in the web.config. Set the value for MultipleActiveResultSets to false. Now you should start seeing the SQL queries being sent to the database.

0
Comments
1
Votes

User control setup in Kentico

Often times when adding custom controls to Kentico I will choose to use a plain user control over creating a new web part. The benefit of creating a web part is that you can allow the designer/content editor to set properties on your control from the design interface. If you do not require this ability it is simpler to add your user control using the "User control" web part located under the "General" section. All you need to do is set the virtual path to your user control (e.g. ~/Controls/MyControl.ascx). One thing you should add to any control/web part that executes code on load is a "StopProcessing" check.

2
Comments
2
Votes

Caching in with Kentico

Caching is an important part of website performance. Kentico has caching built right into its web parts, controls, and site settings making it easy to take advantage of its caching capabilities. You can read in depth about Kentico caching in a post by Martin Hejtmanek (http://devnet.kentico.com/Blogs/Martin-Hejtmanek/April-2009/Deep-Dive---Kentico-CMS-Caching.aspx). In this post I’m going to show you how to utilize Kentico’s caching API in your code. We will then abstract that code into a utility class that will simplify our methods and reduce redundancy.

2
Comments
3
Votes

Kentico 7 - Little Things That Make a Big Difference

After attending the Kentico Connection 2012 in Denver last week, I’m excited about all the new features and improvements that Kentico 7 has to offer. In this post I would like to point out some of...
0
Comments
1
Votes

Document Retrieval Macro

With the introduction of the K# syntax in Kentico CMS version 6, the capability of macros has been greatly enhanced. Now, rather than returning simple strings, you can return objects and...

0
Comments
2
Votes

Creating a Document Category Filter

Kentico provides an interface for developers to create custom controls to filter data sources such as document, navigation, and custom table data sources. Users can interact with these controls to...
0
Comments
2
Votes