我可以限制内容查询 WebPart 中的组项,以便输出为
<h2>Group Header</h2>
<ul>
<li>Item One</li>
<li>Item Two</li>
<li>Item Three</li>
<li>See More</li>
</ul>
我已经按照链接教程进行操作,效果很好,但我无法获得正确的输出。特别是这两个UL
标签。
我可以限制内容查询 WebPart 中的组项,以便输出为
<h2>Group Header</h2>
<ul>
<li>Item One</li>
<li>Item Two</li>
<li>Item Three</li>
<li>See More</li>
</ul>
我已经按照链接教程进行操作,效果很好,但我无法获得正确的输出。特别是这两个UL
标签。
包含结构(带有 class 的表cbq-layout-main
)在ContentQueryMain.xsl
文件OuterTemplate
模板中定义。但是,如果您修改它,您的所有 ContentQueryWebpart-s 都将被修改。
因此,您必须为主查询(例如ContentQueryMain-cust.xsl
)创建自定义定义,然后按照本教程进行操作:http ://www.thesug.org/Blogs/kyles/Lists/Posts/ViewPost.aspx?ID=3&RootFolder=%2FBlogs%2Fkyles %2FLists%2F帖子