开发者

Hiding "Group By" value in a Content Query Web part

I'm making a Sharepoint 2007 Content Query web part, where I want to group by a field (ArticleSticky), but I don't want to show the field in the webpart. Is there 开发者_开发百科some way I can hide the field in the webpart? Maybe in the XSLT definition ?


That is correct, you probably want to add a custom header style in the style library.


You can also do it with some JavaScript. Here is an example using JQuery:

$(function() {  
    $("table.ms-listviewtable td.ms-gb").each(function(){
      $(this).find("a:eq(2)").replaceWith($(this).find("a:eq(2)").text()) 
    }) 
});
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜