Monday, 21 December 2015
Thursday, 13 August 2015
powershell script to add new list item
powershell script to add new item-
$spWeb = Get-SPWeb -Identity http://url
$spList = $spWeb.Lists["Listname"]
#Create a new item
$newItem = $spList.Items.Add()
#Add properties to this list item
$newItem["Title"] = "test"
$newItem["Value"] = "0"
#Update the object so it gets saved to the list
$newItem.Update()
$spWeb = Get-SPWeb -Identity http://url
$spList = $spWeb.Lists["Listname"]
#Create a new item
$newItem = $spList.Items.Add()
#Add properties to this list item
$newItem["Title"] = "test"
$newItem["Value"] = "0"
#Update the object so it gets saved to the list
$newItem.Update()
Tuesday, 29 January 2013
Hide any control in master page for example site actions
In order to hide site actions ribbon you can use spsecuritytrimmedcontrol in master page.
<SharePoint:SPSecurityTrimmedControl ID=”SPSecurityTrimmedControl1″ PermissionsString=”manageLists” runat=”server”>
hidden controls for users who do not have managelists permission
</SharePoint:SPSecurityTrimmedControl>
Monday, 5 September 2011
rate topsharepoint sites
If you would like to get some rating for your internet facing sites
visit
www.wssdemo.com
www.topsharepoint.com
visit
www.wssdemo.com
www.topsharepoint.com
override core css in sharepoint
If you would like to override any core sharepoint css in your own custom css just use !important tag for the css in your custom css and it will override the outofbox css!!
example-
your custom css
.ws-body
{
background-color:red!important;
}
example-
your custom css
.ws-body
{
background-color:red!important;
}
Subscribe to:
Posts (Atom)