kwizcom banner advertisement

Role Based Content in Sharepoint Content Editor Web Part

June 30, 2011    , ,
The requirement here is: My client wants to show different contents in the content editor web part to Anonymous users and authorized users. To handle these kind of security trimming, we usually use "Security Trimming" in the master page. But here, the end user doesn't want to place the content in master page, as it will repeat on every page. The requirement is targeted on ONLY one page. So, We need role based content inside SharePoint content editor web part. Alright, Here is the solution for the issue: Insert the below code to Master page: (You can insert just below <form runat="server" onsubmit="return _spFormOnSubmitWrapper();"> ) <script> var UserHasPermissions= false ; </script> <Sharepoint: SPSecurityTrimmedControl runat= "server" PermissionsString= "ManageWeb" > <script> UserHasPermissions= true ; </script> </SharePoint: SPSecurityTrimmedControl> Save &am
Role Based Content in Sharepoint Content Editor Web Part Role Based Content in Sharepoint Content Editor Web Part Reviewed by Salaudeen Rajack on June 30, 2011 Rating: 5

How to Create Slipstream Installation of SharePoint 2010 cumulative updates, Service Packs?

June 28, 2011    , , , , , , , , ,
By the way, what is Slipstream Installation? Well, If you want to combine your service pack's with SharePoint installers, so that you don't need to apply service pack after the installation (Service packs will be combined with installers and you will get latest build on one time installation!) you can use SlipStreaming. OK, How to create Slipstream of SharePoint installer? simple. Download and extract the service packs, place them under "Updates" folder of SharePoint installer media! Here is the detailed instructions on creating SharePoint slipstream installation: If you are running with SharePoint foundation, you can just download service packs/patches/cumulative updates. If you have SharePoint Server, You must download the service packs for both SharePoint Foundation and SharePoint Server from the URLs: http://technet.microsoft.com/en-us/sharepoint/ff800847/ Update: As a result of new packaging, This has been changed as of August 31, 2011! Its no longer nec
How to Create Slipstream Installation of SharePoint 2010 cumulative updates, Service Packs? How to Create Slipstream Installation of SharePoint 2010 cumulative updates, Service Packs? Reviewed by Salaudeen Rajack on June 28, 2011 Rating: 5

Find All Incoming E-Mail Enabled Lists and Libraries in SharePoint

June 24, 2011    , , , , , , ,
Requirement : During Migration, Needed a List of location where Incoming E-Mail is enabled. So Here is the script which gives that! PowerShell Script to find all incoming Email Enabled Lists and Libraries: Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue #Web Application URL $WebAppURL="http://intranet.crescent.com/" $Report="c:\IncomingEmails.csv" # Enumerate all lists in the web application Get-SPWebApplication $WebAppURL | Get-SPSite -limit ALL | Get-SPWeb -Limit ALL | ForEach-Object { #Get the Current Site $Site = $_ #Get all Lists with Incoming Email enabled $Site.Lists | Where-Object { ($_.CanReceiveEmail) -and ($_.EmailAlias) }| ForEach-Object { New-Object -TypeName PSObject -Property @{ ListName = $_.Title SiteUrl = $Site.Url Email = $_.EmailAlias } } } | Export-CSV $Report -NoTypeInformation Write-host "Incoming Emails Report Generated!" Get All Incoming Email
Find All Incoming E-Mail Enabled Lists and Libraries in SharePoint Find All Incoming E-Mail Enabled Lists and Libraries in SharePoint Reviewed by Salaudeen Rajack on June 24, 2011 Rating: 5

Distribute and Load Balance SharePoint Central Administration site

June 20, 2011    , , , ,
Its a best practice to Distribute and Load balance the SharePoint Central Administration site at least to two servers in the Farm. This will be extremely helpful in the event of one server failure and of course Microsoft supports this 100%. How do I distribute Central Administration to 2 servers? Lets say we have two servers: G1SPS01 and G1SPS02 . Say G1SPS01 hosts Central Admin and G1SPS02 doesn't currently. To add SharePoint Central Administration role to the Server G1SPS02, run SharePoint Configuration Wizard on the Server G1SPS02 and at the "Completing the SharePoint Products and Technologies Configuration Wizard" step, click on Advanced Settings, Select "Use this machine to host the website" to add SharePoint Central Administration role and click OK. Click Next to start the configuration wizard After the configuration wizard completes successfully, you will have additional server providing Central Administration role. How do I verify that my new s
Distribute and Load Balance SharePoint Central Administration site Distribute and Load Balance SharePoint Central Administration site Reviewed by Salaudeen Rajack on June 20, 2011 Rating: 5

Branding SharePoint 2007 Top Navigaion Bar with Images

June 15, 2011    , , , ,
Want to give some stylish look and feel for the Top link Bar? like the below one: MOSS 2007 Top link bar uses the following CSS Classes from Core.CSS: 1.  .ms-topnav 2.  .ms-topnav a 3.  .ms-topnavselected 4.  .ms-topnavselected a So, Customize the above CSS classes. Either we can place them in our own Here is what I've done: .ms-topnav{ border:none; background:url("/_layouts/images/left_inactive.gif") top left no-repeat transparent!important; font-family:Tahoma; font-size:8pt; color:#3764a0; height:42px; } .ms-topnav a{ display:block; white-space:nowrap; padding:23px 12px 0px 12px; height:42px; color:#013d79; background:url("/_layouts/images/right_inactive.gif") top right no-repeat transparent!important; } .ms-topnavselected{ color:#013d78; background:url("/_layouts/images/left_active.gif") top left no-repeat transparent!important; border:none; font-weight:bold; } .ms-topnavselected a{ padding-top:17px; color:#ffffff; background:u
Branding SharePoint 2007 Top Navigaion Bar with Images Branding SharePoint 2007 Top Navigaion Bar with Images Reviewed by Salaudeen Rajack on June 15, 2011 Rating: 5

Excellent Online Tools to Build & Test Regular Expressions

June 14, 2011    , ,
Often I'm forgetting syntax with regular expressions and it leads to trouble! Lately I find these online tools which helped me to build better regular expressions in my coding (Yes, I do code rarely!) 1. http://gskinner.com/RegExr/    - Online Regular Expression builder with brief help text on each regular expression characters. http://gskinner.com/RegExr/desktop/ - Desktop version of above. 2. http://txt2re.com - Online regular expression builder, with Source code builder for Javascript, C#, Java, etc.   3. Another nice online utility: http://regexhero.net/tester/
Excellent Online Tools to Build & Test Regular Expressions Excellent Online Tools to Build & Test Regular Expressions Reviewed by Salaudeen Rajack on June 14, 2011 Rating: 5

Configure People Picker for Multi-Domains(or Cross Domains), Forests Environments

June 12, 2011    , , , , , , , ,
By default, the people picker will issue queries to all two-way trusted domains and two-way trusted forests to search people & groups. It uses the application pool account to search the target domains and forests. If the application pool account does not have permission to the target domains or forests, or if you want to use different account to search the target domains or forests, you can use the below steps: If the AD domain has a 1-way trust, then you need to specify a username and password, execute the following commands on every server in the farm: stsadm –o setapppassword –password MyPassword ensure you use the same password for each server you execute this command on! On every WFE in the farm execute the following command to instruct the people-picker to use the corret AD domain:   stsadm -o setproperty -pn peoplepicker-searchadforests -pv domain:YourDomain.com,domain\user,password –url relevant web application you need to run this for each web application, i
Configure People Picker for Multi-Domains(or Cross Domains), Forests Environments Configure People Picker for Multi-Domains(or Cross Domains), Forests Environments Reviewed by Salaudeen Rajack on June 12, 2011 Rating: 5

SharePoint Column/Field Display Name vs Internal Name

June 07, 2011    , ,
In SharePoint, When we create a column on a site/list/document, It has two names:     Internal Name - which is the name given to it when it was created and it wont be changing.     Display Name - You can change the display name as many times as you want. Best example to understand internal name is "Modified By" field which is having internal name "Editor". When you edit the column name and change it to something totally different, the internal name doesn't change. But why should we care? Well, Because: When writing code that interacts with SharePoint's object model, some methods requires the field's Internal Name, and others the Display Name. When working with Data Views, some third party controls, and custom Web parts - we must use the internal name So, how to Identify the Internal SharePoint Column Name? Important: Open your SharePoint site in Firefox/Google Chrome (IE does different encoding!) Sort the List / Document Library column by
SharePoint Column/Field Display Name vs Internal Name SharePoint Column/Field Display Name vs Internal Name Reviewed by Salaudeen Rajack on June 07, 2011 Rating: 5

Show Login for Anonymous user and Logout for Authenticated users

June 06, 2011    , , , ,
Here is my requirement: I want to Show Custom Log-in button for Anonymous user, and once logged in I want to show the Log-out for Authenticated users. Here is the implementation part. 1. create your own Log-in and Log-out button images, place them under: C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\IMAGES Important: Do not forget to set the images security property, otherwise you will get Log-prompt even though you enabled anonymous access. Here is the screen shot. 2. Edit the individual page if you want for ONLY one page / or Master page if you want these buttons to appear in every page 3. Place the below code: <div id="RegistrationLink"><img src="_layouts/images/login.gif" /></div> <SharePoint:SPSecurityTrimmedControl ID=SPSecurityTrimmedControl1 PermissionsString=BrowseDirectories runat=server> <script type="text/javascript" language="javascript"> document.getEl
Show Login for Anonymous user and Logout for Authenticated users Show Login for Anonymous user and Logout for Authenticated users Reviewed by Salaudeen Rajack on June 06, 2011 Rating: 5

SharePoint Site is Read-only to Everyone: Including Farm Administrator, Site Collection Owner

June 02, 2011    , , ,
Ever faced this odd problem? where SharePoint Site is read-only to every one.. Including Farm Administrator, Site Collection Administrator.. They would only have basic permissions & various OK buttons were greyed out. This is because, Sharepoint site collection/database into Read Only mode! To unlock the Sharepoint site either use Central Admin Site quota page or stsadm. Central Administration Go to Application Management >> SharePoint Site Management >> Site collection quotas and locks >> Select the correct web application and site collection >> Set the lock status of the collection (it most likely will be set to "Read-only", and you'll need to move that radio button to "Not locked"). Stsadm stsadm -o -setsitelock -url http://teamsites.Crescent.com/sites/abc -lock None That's all! Tail:   This may happen when the content Database is in read-only mode or in Single user Mode! By the way, If you want to set a Site c
SharePoint Site is Read-only to Everyone: Including Farm Administrator, Site Collection Owner SharePoint Site is Read-only to Everyone: Including Farm Administrator, Site Collection Owner Reviewed by Salaudeen Rajack on June 02, 2011 Rating: 5
Powered by Blogger.