开发者

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

开发者 https://www.devze.com 2022-12-21 03:30 出处:网络
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.

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

精彩评论

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