Kentico ASCX转换页面类型属性 [英] Kentico ASCX transformation page type properties

查看:60
本文介绍了Kentico ASCX转换页面类型属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在计划一个完整的动态手风琴.想法是将文件上载到一系列文件夹中.现在,我可以在页面上放置一堆转发器,每个文件夹一个,然后进行一次转换,以读取文件并生成链接和手风琴的HTML.我希望做的是进行一次转换,该转换将读取所有文件夹及其子项.

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
}

示例内容树:

父节点

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆