Add this to the Pre-build event of your projects. With that bug we've come accross, this seems to take care of it for now.
cd $(TargetDir)
del $(TargetFileName) /q
Saturday, October 27, 2007
Saturday, October 20, 2007
My Colleagues Footer Links
Our client wanted those two links under the My Colleagues webpart gone. I added the following javascript to the bottom of my page.
<script language="javascript">
//Grab the tbody of the table
var tbody = document.getElementById("SPS_CLMICSRCHRES").childNodes[0];
if(tbody != null)
{
//Count the rows
var rowCount = tbody.childNodes.length;
//Hide the rows we don't want
tbody.childNodes[rowCount-1].style.display = "none";
tbody.childNodes[rowCount-2].style.display = "none";
tbody.childNodes[rowCount-3].style.display = "none";
tbody.childNodes[rowCount-4].style.display = "none";
tbody.childNodes[rowCount-5].style.display = "none";
//Hide the top row
var headerRow = document.getElementById("tr_updcoll");
if(headerRow != null)
headerRow.style.display = "none";
}
</script>
Couldn't find a better way of doing it. MS didn't provide an option to turn them off. Didn't add an ID to them either.
<script language="javascript">
//Grab the tbody of the table
var tbody = document.getElementById("SPS_CLMICSRCHRES").childNodes[0];
if(tbody != null)
{
//Count the rows
var rowCount = tbody.childNodes.length;
//Hide the rows we don't want
tbody.childNodes[rowCount-1].style.display = "none";
tbody.childNodes[rowCount-2].style.display = "none";
tbody.childNodes[rowCount-3].style.display = "none";
tbody.childNodes[rowCount-4].style.display = "none";
tbody.childNodes[rowCount-5].style.display = "none";
//Hide the top row
var headerRow = document.getElementById("tr_updcoll");
if(headerRow != null)
headerRow.style.display = "none";
}
</script>
Couldn't find a better way of doing it. MS didn't provide an option to turn them off. Didn't add an ID to them either.
Subscribe to:
Posts (Atom)