Getting started with Kentico’s Data Query API can be a bit confusing, even if you’ve read the help and a few blog posts. The examples online are often quite basic, and when you need to implement more complex queries (or run into unexpected errors doing something you thought was simple), it can be time consuming and frustrating. I’m sharing a collection of Kentico Data Query API examples which could be useful for you.
Tag Archives: Kentico
Conditional tabs in Kentico’s content admin UI
Kentico 8’s Admin UI control is pretty flexible – you can easily add pages to any part of the admin area. Here’s a quick walk through on how you can add a tab to the content area and make sure it only displays for a specific page type.
Kentico: Roles and staging – excluding items from the staging queue
If you’re using roles and the staging module in Kentico, a change to the role record will not only push through that record, but will synchronise the related user-role entries as well. Once the role has been staged, your user-roles on the destination environment will be the same as on the source (users will be added or removed from the role). Depending on how you’re using staging with your environments, this may not be desired behaviour. This article explores one way to manage this – how you can exclude roles from being staged (or other objects!), without affecting any other staging settings.
Kentico’s view modes
From time to time when building Kentico sites it can be useful for elements on your page or in your code to know whether they are being viewed and executed on the live site, in the page tab, or even in design mode. The good news is that you can do this, and easily! The key to it is CMS.PortalEngine.PortalContext.ViewMode . Continue reading