Skip to content
kenticode

kenticode

kentico branding and more

  • About
  • Contact

Tag: code

Retrieve Page Tags in XbK

Retrieve Page Tags in XbK

Posted on May 5, 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

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

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

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

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

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

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

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
Display Page URL

Display Page URL

Posted on November 13, 2023November 14, 2023

To display the URL of a specific page in Kentico Xperience, you can retrieve the NodeAliasPath of the page and construct its URL based […]

Continue Reading
Code #code #page #treenode
Restrict Kentico Content in Edit Mode

Restrict Kentico Content in Edit Mode

Posted on June 27, 2023

While in Kentico Edit Mode you might want to hide or not load certain content or scripts which slows the editing process and only […]

Continue Reading
Code #code #edit mode

Posts navigation

Older Posts
Recent Posts
  • Retrieve Page Tags in XbK
  • GTM and URL Hash Fragments
  • Open a Collapsible Element By Anchor
  • Undefined Properties Error
  • Kentico Form Sections
Categories
  • Code
  • Themes
  • Tutorials
© kenticode - All Rights Reserved | Made in Chicago