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

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值