Mark Handy
Mark Handy

Reputation: 1256

Kentico ASCX transformation page type properties

I'm starting to plan out an full dynamic accordion. The idea is files would be upload to a series of folders. Now i could place a bunch of repeaters on a page, one per folder and have a transformation that reads the files and generates links and the HTML for the accordion. What I'm hoping to do is have one transformation what will read all the folders, and their children.

So initial logic is something like this.

if (PageType = cms.Folder && HasChildren = true){
  Output folder name + html
  Output children + html
}

Example content tree:

parent node

I can control the children page types, cms.file, and the parents will be cms.folder, but how do i detect determine the actual page type and if there are children?

Upvotes: 1

Views: 263

Answers (2)

Sunanda-Systematix
Sunanda-Systematix

Reputation: 66

We can use nested repeater in transformation. Something Reference link is https://devnet.kentico.com/forums/f67/t42585/repeater-nested-in-transformation

Upvotes: -1

Roman Hutnyk
Roman Hutnyk

Reputation: 1549

Mark, consider using hierarchical transformation/viewer - it should handle this.

Upvotes: 3

Related Questions