我想显示子网站的内容并将它们包装在特定的div中。这是我的代码:
lib.content = CONTENT
lib.content {
stdWrap.wrap = <div id="sub-content-scroll">|</div>
renderObj.stdWrap.wrap = <div class="page">|</div>
table = tt_content
select {
pidInList.cObject < lib.allPid
where = colPos = 0
orderBy = pid
}
}
我的问题是:我怎样才能包装每个pid。现在它用页面div包装所有内容元素。但我想通过网站实现包装。 PS:lib.allPid是带有ids的kommaseparated列表。
有人可以帮助我吗?
非常感谢你 Coreblade
答案 0 :(得分:0)
感谢您的回答
我解决了我的问题。解决方案是在一个中实现(lib.content和lib.allPid):
lib.content = HMENU
lib.content {
stdWrap.wrap = <div id="sub-content-scroll">|</div>
special = directory
special.value = 7
1 = TMENU
1.NO {
doNotLinkIt = 1
field = uid
stdWrap.cObject = CONTENT
stdWrap.cObject {
wrap = <div class="page">|</div>
table = tt_content
select {
pidInList.field = uid
where = colPos = 0
orderBy = pid
}
}
}
}
Ragards Coreblade