Spotlight Tip: 2/17/2012 11:08:51 AM

How to handle search result URLs for document types with no detail view

Have you ever clicked on a search result's URL only to see the framework of the site and a blank content area?     I recently encountered this with a site I was working on.  The...

MORE

Latest NewsView All

Say Hello to the Petes

DATA, Inc's development team has started a new series of custom web parts call "The Petes", and they're bringing attitude to the world of the standard .NET repeater web part. Each "Pete" will be a powerful and specialized repeater, bringing advanced functionality to the ease-of-use of the Kentico Design tab.


Most Recent TipsView All

How to handle search result URLs for document types with no detail view

Have you ever clicked on a search result's URL only to see the framework of the site and a blank content area?     I recently encountered this with a site I was working on.  The...

0
Comments
1
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.

1
Comments
3
Votes

Allow smart searches on document properties only

Using smart search, if you need to search by a filter condition (without providing content), you need to add the following appSetting key:

 

<add key="CMSSearchOnlyWhenContentPresent" value="false" />

 

 

0
Comments
1
Votes

Use own created WebPartField-Values as macros directly in a container

Sometimes It could be very usefull to use several values directly in a container.

Example: {%ContainerTitle%}
{%MyOwnValue%}

 

I made an small tutorial where we create a dynamic webpart or widget without editing any code of a default webpart in VisualStudio.

0
Comments
2
Votes

Multiple Websites and Robots.txt, no problem!

Well, I should have included a disclaimer that this developer tip requires the use of IIS 7 and the rewrite module. If you're unfamiliar with the rewrite module, you can find a brief introduction here.

I run into this problem when creating multiple websites within a single Kentico installation.  I had a tough time finding the right solution for my application. I did find a solution in the Kentico forums that suggested adding a robots.txt file as a file type in the CMS Desk and using custom url extensions. More details of this solution can be found here. But, I also found that if your website isn't running under Integrated Mode, using the custom url extensions gets a bit messy. Therefore, I decided to look further into using the rewrite module.

0
Comments
2
Votes