Everything SharePoint and XAML

My continuous learning of SharePoint, XAML, Silverlight, Windows Phone 7, Windows 8, Office, VSTO, C#…

Archive for the ‘SPUI’ Category

CEWP – Hide View All Site Content in Quick Launch

Posted by Steve Pietrek on August 11, 2009

Below are steps to hide the View All Site Content link in the Quick Launch Bar in a Content Editor Web Part (CEWP).

  1. Edit the page.
  2. Add CEWP to a Web Part Zone.
  3. Select Edit – Modify Shared Web Part
  4. Under Appearance, change title to Hide Quick Launch.
  5. Under Layout, check the Hidden option.
  6. Click the Source Editor button and add the following markup.

<style>
.ms-quicklaunchheader {
display:none;
}
</style>

Advertisements

Posted in SPUI | Comments Off on CEWP – Hide View All Site Content in Quick Launch

Quick Way to Add Web Parts to Page

Posted by Steve Pietrek on May 5, 2009

As most SharePoint consultants, I would quite a bit with end users. Invariably I get asked the following question. “Can you talk with Microsoft and see if they can add a feature to allow me to specify how many Web parts to add to a page at a given time?”. Unfortunately I don’t have a Bat phone into Redmond, but I have an option.

If I want to add three Content Editor Web Parts (CEWP) to a page, do the following:

  1. Select Site Actions > Edit Page
  2. Click the “Add web parts” link in the Web Part Zone you want to add the CEWP.
  3. In the “Add Web Parts” dialog, check the CEWP option and click the Add button.
  4. To add the second CEWP, click the F5 button.
  5. Bam! A new CEWP has been added.
  6. Click F5 again to add the third CEWP.

You can add as many as you want by repeatingly clicking the F5 button. If you want the CEWP to another Web Part Zone, click F5 to add it and drap and drop it to the new Web Part Zone.

Posted in SPUI, SPWebParts | Comments Off on Quick Way to Add Web Parts to Page

Limit SharePoint Designer to Certain Users

Posted by Steve Pietrek on March 31, 2009

There has been quite a bit of chatter on advantages/disadvantages of SharePoint Designer (SPD) the last few days. Though I believe SPD has a place; I personally tend not to use it very often. As a developer, I like to have a little more control over things. For example, I tend to go old school and create master pages/CSS in NotePad++. With that in mind, I have received many queries on how to limit SPD to certain individuals in the organization.

There are many ways to limit SPD use:

  1. Turn off site editing. An example can be found here.
  2. Disable access to sites in SPD. My buddy John Ferringer has a CodePlex project to do this.
  3. Use security permissions to limit access to SPD.
  4. Only give users you want access to SPD tool.

For this post, I am going to concentrate on using security permissions to limit access to SPD.

Read the rest of this entry »

Posted in SPD, SPUI | Comments Off on Limit SharePoint Designer to Certain Users

Configure Advanced Search

Posted by Steve Pietrek on March 27, 2009

A coworker asked if it was possible to send a notification to a user’s supervisor when the user made changes to their user profile. I was able to quickly put something together (anybody interested) but ran into issues when attempting to test my change. The search box in my site did not have advanced search functionality so I could not search for my name under People. I was only able to search the current site (This Site: <Site Name>).

image

The steps below will take you through the process of creating a Search Center sub-site within your existing site collection:

  1. Open the top-level site in your site collection.
  2. Create a new Search Center (with tabs) sub-site. 
  3. Reopen the top-level site in your site collection.
  4. Open Site Settings.
  5. Click the “Search settings” link under the “Site Collection Administration” group.
  6. Select the “Use custom scopes” option. Paste in the Url to the Search site collection (e.g. /sites/sitename/searchcenter/Pages/).
  7. Click the OK button to save.

image

image

Posted in SPUI | Comments Off on Configure Advanced Search

Simple SharePoint Survey Walkthrough

Posted by Steve Pietrek on March 11, 2009

Below are the steps to create a simple SharePoint survey with branching.

  1. Open the site
  2. View all site content
  3. On the “All Site Content” page, click Create
  4. Under Tracking, click the Survey link
  5. Enter name and description. Fill in options to support your implementation. Click Next.
  6. Fill in the first question.
  7. Click Next Question for a new question, else click Finish to quit.
  8. Select Settings-Survey Settings from the toolbar.
  9. If necessary, under General Settings, click Advanced Settings, and make Item-level permission changes. Click OK to save. Click Settings in the breadcrumb to return.
  10. Click “Add a question” link to add additional questions.
  11. Click “Change the order of questions” to change the order.
  12. To set branching, click the question link. Under Branching Logic, set each the possible choices. Note: For branching, be sure to all choices for branching. For example, for a Y/N question, you need to set branching for both Y and N. In the case of “Do you like Kool-Aid?”, if the user selects Y, then branch to “Favorite Kool-Aid Flavor?”, else branch to “Do you like Beer?”.
  13. Example questions and branching:
  • Do you like Water? Y/N (Y and N branch to b)
  • Do you like Kool-Aid? Y/N (Y branch to c, N branches to d
  • Favorite Kool-Aid flavor? Grape, Cherry, Other (All branch to d)
  • Do you like Beer? Y/N (Y branch to e, N branch to f)
  • Favorite Beer flavor? List (All branch to f)
  • Do you like Lemonade? Y/N

Posted in SPUI | Comments Off on Simple SharePoint Survey Walkthrough

CEWP – Hide Quick Launch

Posted by Steve Pietrek on May 12, 2008

Below are steps to hide the Quick Launch in a Content Editor Web Part (CEWP).

Read the rest of this entry »

Posted in SPUI | 1 Comment »

Save Steps, Export that Web Part!

Posted by Steve Pietrek on March 31, 2008

I was working with a client last week on some content they want to display in a certain format. The content medium will be used across the site and will be used multiple times.

After spending time creating the content, the client (who isn’t very knowledgeable in HTML) but comfortable enough with how SharePoint works, clicked the Source Editor button, selected all the markup, and copied the content to the clipboard. He then added another CEWP, edited the Web Part, click the Source Editor butotn, and pasted the markup. He was now able to go into the Rich Text Editor and make the required changes.

Great! Then I asked him if he wanted to reduce the steps significantly. He was all for that!

Read the rest of this entry »

Posted in SPUI | 1 Comment »

Disable MySite and MyLinks in MOSS 2007

Posted by Steve Pietrek on December 11, 2007

For my client’s site, they were not interested in My Site and My Links for the first phase. Below are the steps I followed to remove the two links:

  1. Log into Central Administration.
  2. Under Shared Services Administration in the Quick Launch bar, select the one running My Sites.
  3. In the “User Profiles and My Sites” group, click on the “Personalization services permissions” link.
  4. For those users you want to remove the personalization functionality, click on the user name (for example, NT AUTHORITY\Authenticated Users).
  5. On the “Modify Permissions: Shared Service Rights” page, uncheck “Use personal features”. Click OK to save.
  6. I had to shut down my browser and log in again to see my changes.

Note 1: I read on a few blog posts that on the “Modify Permissions: Shared Service Rights” page, “Create personal sites” pertains to My Sites and “Use personal features” pertains to My Links. I could not uncheck all permissions. Unchecking “Use personal features” appeared to modify both My Site and My Links permissions.

Note 2: If you do not change the Administrator user, you will see My Site and My Links displayed. If you don’t want to see them when you log in as an administrator, change the administrator’s permissions.

Note 3: As far as #6 above, this isn’t required. A timer job runs which will switch all authenticated users. Be patient.

Posted in SPAdmin, SPUI | Comments Off on Disable MySite and MyLinks in MOSS 2007