Transformation in kentico

https://docs.kentico.com/k10/developing-websites/loading-and-displaying-data-on-websites/writing-transformations

 

Transformations are a crucial part of the process used to display pages and other data in Kentico. A transformation is a code template that determines how listing web parts and controls render content. Data sources provide a collection of items containing raw data, and transformations convert the data into appropriately formatted page output code (HTML).

 

The functionality of transformations is very similar to that of item templates used by standard ASP.NET list controls, such as the Repeater. The main difference is that the system stores transformations as virtual objects in the database, and you can easily reuse transformations for different components.

 

Transformations are categorized under the objects whose data they display. You can manage transformations for:

  • Page types (Page types -> Edit a page type -> Transformations)
    • Container page types do not represent actual objects on the website, but only serve as containers for transformations. Use container page types to store transformations that you want to share among multiple page types.
  • Custom tables (Custom tables -> Edit a table -> Transformations)

 

To assign transformations to listing web parts or controls, use the available Transformation properties. Transformations are supported by all data listing web parts, as well as by listing controls that are designed to work with Kentico pages. The full name that identifies transformations is in format <parent object code name>.<transformation name>.

 

The Kentico sample sites include many transformations for all built-in page types.

 

SELECT * FROM dbo.CMS_Class
WHERE ClassDisplayName LIKE '%article%'


SELECT * FROM dbo.CMS_Transformation
WHERE TransformationClassID=5340

 

kentico7中,是叫Document Types

 

作者:Chuck Lu    GitHub    
posted @   ChuckLu  阅读(176)  评论(0编辑  收藏  举报
编辑推荐:
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
历史上的今天:
2016-11-16 NavBarControl
点击右上角即可分享
微信分享提示