by Vipul Bhavsar
22. June 2011 03:16
1.) Open up your site
2.) Go to “Site Actions” --> “Site Settings”
3.) Under the “SITE COLLECTION ADMINISTRATION” section
4.) Select “Site Collection Features”
5.) Scroll down to find “SharePoint Server Publishing Infrastructure”
6.) Click the activate button
7.) Go to “Site Actions” --> “Site Settings”
8.) Under the “SITE ACTIONS” section
9.) Select “Manage Site Features”
10.) Scroll down to find “SharePoint Server Publishing”
11.) Click the activate button
You should now be able to successfully activate the Publishing feature on all sites in the site collection. There are other features that have similar dependencies and the same method will work.
by Altaf Pinjari
18. June 2011 07:23
You can add this script to master page to provide functionality throughout. Two main pieces which drives this are :
1. JavaScript ( to be placed in head tag )
2. HTML control/element to trigger the call to JavaScript function
3. JavaScript ( to be placed at the end of the page, so that it can execute on page load )
JavaScript( this will go in head tag ):
<script type="text/javascript" >
function getCookie(Name) {
var re = new RegExp(Name + "=[^;]+", "i"); //construct RE to search for target name/value pair
if (document.cookie.match(re)) //if cookie found
return document.cookie.match(re)[0].split("=")[1] //return its value
return ""
}
setCookie = function setCookie(name, value) {
document.cookie = name + "=" + value + ";path=/" //cookie value is domain wide (path=/)
}
function togglefn() {
var e = document.getElementById('s4-leftpanel');
var e1 = document.getElementById('MSO_ContentTable');
if (e.style.display != "none") {
setCookie('showLeftNav', 'no');
e.style.display = "none";
e1.style.marginLeft = "10px";
}
else {
setCookie('showLeftNav', 'yes');
e.style.display = "block";
e1.style.marginLeft = "155px";
}
}
</script>
HTML element ( some where in body tag):
<a href="javascript:togglefn();">hide/show</a>
JavaScript( this will go towards page end ):
<script type="text/javascript" >
var persistedLeftNav = getCookie('showLeftNav');
if (persistedLeftNav == 'undefined') {
setCookie('showLeftNav', 'yes');
}
else {
if (persistedLeftNav == 'no') {
togglefn();
}
}
</script>
by Altaf Pinjari
10. June 2011 02:59
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>SharePoint 2010 Rounded Div</title>
<style type="text/css">
.page-container
{
float:left;
width:422px;
}
.div-header
{
background-image:url("district-center-tab.jpg");
background-position:left top;
background-repeat:no-repeat;
height:27px;
padding-left:12px;
padding-top:13px;
width:410px;
}
.div-header-left
{
background-image:url("wpart-head-left.jpg");
background-position:left top;
background-repeat:no-repeat;
height:37px;
width:3px;
float:left;
}
.div-header-center
{
background-image:url("wpart-head-center.jpg");
background-position:left top;
background-repeat:repeat-x;
height:37px;
width:400px;
float:left;
}
.div-header-right
{
background-image:url("wpart-head-right.jpg");
background-position:left top;
background-repeat:no-repeat;
height:37px;
width:10px;
float:left;
}
.div-header-txt
{
/*background-image:url("images/bullet.png");
background-position:left top;
background-repeat:no-repeat;*/
color:#FFFFFF;
font-family:Arial,Helvetica,sans-serif;
font-size:13px;
font-weight:bold;
height:27px;
/*padding-left:17px;*/
text-decoration:none;
padding-top:9px;
text-align:center;
}
.div-container
{
background-image:url("wpart-bg.jpg");
background-position:left bottom;
background-repeat:repeat-x;
width:410px;
border-left:1px solid #CCC;
border-right:1px solid #CCC;
border-bottom:1px solid #CCC;
min-height:90px;
word-wrap: break-word;
}
.div-container-text
{
padding:10px;
}
.div-bottom
{
background-image:url("district-center-bottom-img1.jpg");
background-position:left top;
background-repeat:no-repeat;
height:42px;
width:422px;
}
.page-right-district-bg_top
{
background-image:url("district-tab-bg.jpg");
background-position:left top;
background-repeat:repeat-y;
width:237px;
height:90px;
}
</style>
</head>
<body>
<div class="page-container">
<div>
<div class="div-header-left">
</div>
<div class="div-header-center">
<div class="div-header-txt">SCHOOL NEWS</div>
</div>
<div class="div-header-right">
</div>
</div>
<div class="div-container">
<div class="div-container-text" >
DATADATADATADATADATADATADATADATADATADATADATA DATADATADATADATADATADATADATADATADATADATADATA DATADATADATADATADATADATADATADATADATADATADATA DATADATADATADATADATADATADATADATADATADATADATA <br/>
DATADATADATADATADATADATADATADATADATADATADATA DATADATADATADATADATADATADATADATADATADATADATA DATADATADATADATADATADATADATADATADATADATADATA <br/>
</div>
</div>
</div>
</body>
</html>
Images download :