Link to Detail XSLT

Introduction

This guide presents explanation illustrated with screenshots and code samples on how to create XSLT functions for a link and detail overview of datatype elements (for example, News items or any other type).

Learning topics in this document are:

  • Creating an XSLT function
  • Using CMS functions instead of programming
  • Using CMS functions within CMS functions
  • Creating an input parameter filter
  • Getting data from a query string

In this example (specifically, for the NewsDetail function), you will see how to create a complex function in C1 CMS using other functions. The NewsDetail function is a more complex part of this job. It is complex but also very interesting because, we will create a filter without actual programming, by using an input parameter!

A .NET developer would probably say: “I can do that easier with a few lines of code”. True, but what is easy relates directly to your skills.

Note: We will do things manually in this example to learn from it. But it is also available as an add-on, so with the deployment wizard, this can all be installed in one go.

Important: In Composite C1 (now C1 CMS) version 5.0 or later, you can quickly build list-to-detail views for a data type by creating a CMS function with a parameter of the RoutedData<T> type. Please see Data URL Routing for more information.