Skip to content
kenticode

kenticode

kentico branding and more

  • About
  • Contact

Tag: code

Trim Text Based on Character Limit without Breaking Words

Posted on June 21, 2025

Trimming or truncating text to a character limit involves shortening a string to a specific length. This is useful for various purposes, like displaying […]

Continue Reading
Code #code #Kentico #kentico13 #string #text #trimming #truncating #XbK

Retrieve Image URL

Posted on June 18, 2025

When you retrieve an image path from Kentico 13 using item.GetProperty(“MyImage”).ToString(), it often returns a path starting with ~ (tilde), which is a virtual […]

Continue Reading
Code #code #images #kentico13 #query #URL

Retrieve Page Tags in XbK

Posted on May 5, 2025June 12, 2025

Let’s assume you developed a widget using Xperience by Kentico (XbK) that allows you to display various pages and you need to display their […]

Continue Reading
Code #categories #code #tags #taxonomy #XbK

GTM and URL Hash Fragments

Posted on March 20, 2025March 20, 2025

If you’re trying to create a trigger in Google Tag Manager (GTM) that tracks a page with a hash (#) within the URL you […]

Continue Reading
Tutorials #code #GTM

Generate RSS Feed Based on Retrieved Kentico Pages

Posted on January 4, 2024January 4, 2024

In Kentico 13, you can retrieve pages using DocumentHelper.GetDocuments and then generate a standard RSS feed based on the retrieved pages. The following code […]

Continue Reading
Code #api #code #kentico13 #routing #rss #xml

Escape Special Characters

Posted on January 4, 2024

In C# and Razor views (Kentico 12/13), you can escape special characters by using the Html.Raw() method or the @Html.Raw() helper in Razor syntax. […]

Continue Reading
Code #code #encoding #javascript #kentico13 #razor

Retrieve Pages Based on Certain Tags and Categories

Posted on January 3, 2024January 4, 2024

In Kentico 13, you can use the MultiDocumentQuery or DocumentQuery class to retrieve pages based on certain tags and categories. Using MultiDocumentQuery Replace “/YourPagePathHere/” […]

Continue Reading
Code #api #category #code #kentico13 #query #tags

Display Kentico Content Based on a Certain Tag Passed Through a Query String

Posted on November 22, 2023January 4, 2024

Displaying content based on a certain tag passed through a query string involves retrieving the tag value from the query string parameter and using […]

Continue Reading
Code #api #code #tags

Filter Search Results By Tags Using Kentico API

Posted on November 22, 2023November 22, 2023

In Kentico, filtering search results by tags can be achieved using the built-in functionalities provided by the platform. Here’s a general guide on how […]

Continue Reading
Code #api #code #filter #tags

Display Page Tags

Posted on November 14, 2023November 16, 2023

In Kentico 13 and Xperience, you can retrieve page tags by accessing the DocumentTags property of the TreeNode object. Replace “/YourPagePath” with the actual […]

Continue Reading
Code #code #page #tags #treenode

Posts navigation

Older Posts
Recent Posts
  • Create a Navigation Menu for Xperience by Kentico
  • Trim Text Based on Character Limit without Breaking Words
  • Retrieve Image URL
  • Retrieve Page Tags in XbK
  • GTM and URL Hash Fragments
Categories
  • Code
  • Themes
  • Tutorials
© kenticode - All Rights Reserved | Made in Chicago