Category Archives: SharePoint Customization

Creating mailing lists for SharePoint sites and blogs [No Code Required] – Part 6: Administering the mailing list using Microsoft Word Mail Merge

NOTE : This article was published on EndUserSharePoint.com a couple of weeks ago and because of the wonderful feedback I received, I decided to cross-post it here too.

4

This is the sixth article in a multipart series that is intended to help you create mailing lists for your SharePoint sites or blogs without writing a single line of .NET Code. In the introductory article, I listed the project initiatives, requirements, and objectives. In Part 1, I created a secured backend where we will store the subscribers’ contacts. In Part 2, I configured the ‘Contact’ content type, created a subscription form for the mailing list and did some simple customizations to it. In Part 3, I utilized the thrilling DataFormWebPart to further extend and enhance the subscription form to meet the project requirements. In Part 4, I implemented requirement # 3 by creating a list that comprises the names of all the countries of the world and a lookup field that gets its values from this list. In Part 5, I showed you how to create the primary and secondary SharePoint Designer Workflows needed to meet our project requirements.

In the previous article, I showed you how to connect the approved contacts to Outlook by creating a workflow that is triggered when the list administrator approves a subscriber request moving their contact to the “Approved Subscribers” list. I have also provided you with some excellent resources if you need to know more about SharePoint Designer Workflows.

As I mentioned in Part 4, most of the questions that I have received lately focused on the sixth requirement. For easier reference, I have copied it below.

List administrators should be able to send e-mails to all the approved and registered users specifying some filters. For instance, the list administrator should be capable of sending e-mails to all the registered users from Canada”.

In this article, I will show you how to implement this requirement using Microsoft Word Mail Merge.

Unexpectedly, Microsoft Word has no option to pick a SharePoint list directly as the data source for a mail merge. However, we can work around this limitation by connecting our “Approved Subscribers” list to Outlook and selecting the Merge data source to be an Outlook Contacts List as shown in the following figures.

5

 

6

 

7

 

8

9

 

10

 

11 12 13 14 15

16

17

 

18

19

Summary

There you go! Yes, we are done; you can now create and administer your own mailing list for your SharePoint site or blog.

Since this series is intended to be educational, you should now be capable of:

  1. Creating and configuring SharePoint Lists using SharePoint Designer.
  2. Configuring anonymous contributions for SharePoint Lists.
  3. Creating simple SharePoint Designer workflows for sending confirmation mails to list subscribers.
  4. Configuring content approval for share point lists.
  5. Creating custom SharePoint list forms.
  6. Creating Client-Side validation for SharePoint list forms.
  7. Using the DataFormWebPart.
  8. Connecting SharePoint Lists to outlook.
  9. Using Word 2007 Mail Merge feature with SharePoint Lists.
  10. Using and creating SharePoint List Templates.
  11. Hiding SharePoint lists.
  12. Using lookup columns in SharePoint lists.

Again, I would like to thank everybody who took time to drop me an e-mail, follow me on twitter, or even leave me a comment. Your feedback, guys has always made my day.

So until I talk to you again (most probably about SharePoint 2010 ), check out my blog athttp://www.aymanelhattab.com , where you will find shorter articles, tips and tricks, questions and answers, and downloadable content. You can also follow me on Twitterhttp://www.twitter.com/aymanelhattab  or drop me an e-mail at ayman.elhattab@gmail.com if you have any questions.

About EndUserSharePoint:

EndUserSharePoint.com is a community of SharePoint authors dedicated to providing content to SharePoint End Users on three levels: Information Worker, Power User/Site Administrator and Site Collection Administrator.

 

 

 

 

 

 

 

 

 

 

 

 

 

Advertisement

Creating mailing lists for SharePoint sites and blogs [No Code Required] – Part 4: Creating the Country lookup elements

NOTE : This article was published on EndUserSharePoint.com a couple of weeks ago and because of the wonderful feedback I received, I decided to cross-post it here too.

This is the fourth article in a multipart series that is intended to help you create mailing lists for your SharePoint sites or blogs without writing a single line of .NET Code. In the introductory article, I listed the project initiatives, requirements, and objectives. In Part 1, I created a secured backend where we will store the subscribers’ contacts. In Part 2, I configured the ‘Contact’ content type, created a subscription form for the mailing list and did some simple customizations to it. In Part 3, I utilized the thrilling DataFormWebPart to further extend and enhance the subscription form to meet the project requirements.

In the previous article, I promised to tackle a new area, which is “SharePoint Designer Workflows”. However, while writing the promised article, I received some e-mails, from followers of this series, asking about the country lookup feature I mentioned in the project requirements.

When filling out the form, users should select their countries from a drop down list, which holds all the countries of the world.”

I found a zillion of articles throughout the web covering the “lookup fields” and “lookup lists” topics into enough depth and listing their gotchas and limitations. However, I will provide you with some steps, tips, and free stuff that you will definitely need to implement this requirement. To make this article more useful, I will also explain some other topics during the implementation like List Templates and SharePoint field type conversions. I’ll show you how to modify the FormField Controls and how to mark a list as invisible using SharePoint Designer.

  1. Navigate to SPCountries Feature page at CodePlex and download the Countries List Template as shown below:

2

Note: Do not forget to allow anonymous access to this list as I showed you in the first article.

4. Now, you need to change the “Country/Region” field type to “Lookup (information already on this site)” rather than “Single line of text” to gets its values from the “Countries” list you just created.

5. Navigate to the Contact content type settings page from the list settings one.

3

6.  Oops! You cannot modify the “Country/Region” field to be a lookup one! Yes, this is not supported by design, for a list of supported SharePoint field type conversions, refer to this article.

4

5

Note: You can write a simple script that utilizes SharePoint/Office Live javascript API to perform this conversion, refer to this interesting article for more information.

7 . For the sake of simplicity, I will just delete the default “Country/Region” column and replace it with a new lookup one as shown below.

6

7

8.  To mark the “Countries” lookup list as invisible (Only the list and not the included content, which should be available to all the site users including anonymous ones), open up SharePoint Designer, supply your credentials, and follow the steps illustrated by the following figures.

8

9

9. Open the custom subscription form. Unsurprisingly, you will get an error like the one shown below.

10

10. The reason I have received this error is that I’ve modified the list fields and some form fields are still looking at the deleted country field. To fix this error, modify the FieldName attribute values of the FormField and FieldDescription controls to be “Country” instead of “WorkCountry” or you can just useFind and Replace to achieve the same result.

11

11. Save your form, the error is gone

12

12. Preview your form from the browser and there you go; now you have a list with a form analogous to the one I have shown you in the introductory article… Congratulations!

13

Community Feedback

Since the kick-off of this series, I have received amazing feedback from EUSP visitors and my blog followers. I would like to extend a special thank-you to everyone who took time to drop me an e-mail, follow me on twitter, or even leave me a comment. Your feedback means a lot to me.

I noticed that most of the questions that I have received lately focused on the sixth requirement. For easier reference, I have copied it below.

List administrators should be able to send e-mails to all the approved and registered users specifying some filters. For instance, the list administrator should be capable of sending e-mails to all the registered users from Canada”.

Starting with the next article, I will explain how to implement this requirement, which will involve the creation of primary and secondary workflows, integrate SharePoint lists with Microsoft Outlook and Microsoft Word 2007.

As I told you in the beginning of this article, I had already started writing about SharePoint Designer Workflows before I received questions about the lookup fields and lists. When I was doing a research to avoid writing what has already been written, and to elaborate where others are vague or incomplete, I stumbled upon a great article by Paul Galvin titled “Email and SharePoint Designer Workflow”  which provides a deep explanation to what I was about to cover.

Therefore, if you are new to SharePoint Designer workflows, I would encourage you to have a look at this article. So you’ll be ready for my next post which will directly start creating and implementing the needed workflows without discussing what was smartly discussed by Paul as I am not a fan of reinventing the wheel.

So until I talk to you again, check out my blog at http://www.aymanelhattab.com , where you will find shorter articles, tips and tricks, questions and answers, and downloadable content. You can also follow me on Twitter http://www.twitter.com/aymanelhattab  or drop me an e-mail atayman.elhattab@gmail.com if you have any questions.

About EndUserSharePoint:

EndUserSharePoint.com is a community of SharePoint authors dedicated to providing content to SharePoint End Users on three levels: Information Worker, Power User/Site Administrator and Site Collection Administrator.

 

Creating mailing lists for SharePoint sites and blogs [No Code Required] – Part 3 : More Customizations to the subscription form using DataFormWebPart

NOTE : This article was published on EndUserSharePoint.com a couple of weeks ago and because of the wonderful feedback I received, I decided to cross-post it here too.

This is the third article in a multipart series that is intended to help you creating mailing lists for your SharePoint sites or blogs without writing a single line of .NET Code. In the introductory article, I have listed the project initiatives, requirements, and objectives. In Part 1, I created a secured backend where we will store the subscribers’ contacts. In Part 2, I have configured the ‘Contact’ content type, created a subscription form for the mailing list and did some simple customizations to it.

In this article, I will customize the subscription form I created in the previous article, utilize the magical DataFormWebPart to remove the unneeded columns, and change the form validation to be client sided rather than the default server-sided validation.

I will also show you how to validate the email addresses entered by the subscribers using regular expressions and, at the end, I will thrash out a trick to enable the DataFormWebPart to be viewed by anonymous users.

Let’s get started!

  1. In the Design view, click the default List Form Web Part to select it. From the Code View, put the cursor straight away before the ListFormWebPart and press enter.

8

 

2.  On the Insert menu, point to SharePoint Controls, and then click Custom List Form.

9

 

3. The List or Document Library Form dialog box opens up.

3.1. In the List or document library to use for form list, choose the list where we store our subscribers’ contacts.

3.2. In the Content type to use for form list, choose the ‘contact’ content type.

3.3. Under Type of form to create, click the ‘New item form’ as shown in the figure below.

10

 

3.4. The custom list form can comprise a toolbar to assist users in carrying out frequent actions for an item. The commands on the toolbar vary according to the type of the form. For example, the toolbar for the New Item Form looks like the following one.

11

As you can see, we do not need this toolbar in our subscription form so do not check the show standard toolbar checkbox.

4.  Now, the custom list form (Data Form Web Part) has been added to your subscription form. The custom list form shows the default fields for the selected form type, along with any default controls for each field. You can utilize the WYSIWYG tools in SharePoint Designer to add or eliminate columns, modify font formatting, or apply colors. When you do this, Extensible Stylesheet Language (XSL)  is directly inserted into the HTML. Although it is possible to amend the XSL directly in Code view, you can make use of the formatting tools in Design view to apply XSL without studying any XSL.

  1. 4.1. Remove all the unwanted fields from the form by removing the whole unwanted rows.

    4.2. Rename ‘Country/Region’ to be only ‘Country’.

    4.3. Change the font formatting, or apply the colors that go with your site’s theme.

    4.4. Remove the Ok and Cancel buttons at the top of the DataFormWebPart. We need them only once on our form.

12

As you can see the DataFormWebPart is incredibly cool. Within the XSL, you can input any HTML you want and, in effect, the sky is really the limit.

5. Now, you must hide the default List Form Web Part. Right-click the default List Form Web Part and then click Web Part Properties.

In the dialog box that appears, click the plus sign next to Layout, select the Hidden check box, and then click OK.

13

 

14

Note:  Do not delete the default List Form Web Part. This will break the page’s connection to the list.

6.  Next step is validating the users’ inputs. For instance, we need to make sure that the user has entered their e-mail address in a correct format since we are going to send them e-mails later.

6.1. Find the E-mail Address form field, right click on it in the designer, and click Show Common Control Tasks.

6.2. Change the “Format As” dropdown from “List Form Field” to “Text Box” as shown below.

15

 

6.3. Now drop a RegularExpressionValidator control from the asp.net controls toolbox beside the E-mail address text box as shown beneath.

16

 

17

 

6.4. Specify the RegularExpressionValidator control properties (such as ControlToValidate, ErrorMessage, Validate Expression) from the Tag Properties toolbar.

18

 

For ControlToValidate, choose the ID of the E-mail address field and for the ValidationExpression, choose Internet E-mail Address.

19

 

6.5. After specifying the control properties, you will end up with something like the following markup in the SharePoint Designer Code View.

20

That’s it! You now have custom client-sided validation on your form. You can also make use of the asp.net RequiredFieldValidator controls in the same way discussed in the previous step to make sure that the user has not left the text boxes empty.

7.     In addition, you can modify the markup of your form however you want. For instance, you can substitute the SharePoint:SaveButton control with a traditional asp.net button that calls some custom java script to do custom logic and save the item to the backend. I will leave this point to another discussion.

Didn’t I tell you? The DataFormWebPart is an incredibly wonderful creature.

For me, I have ended up with the one shown below.

21

 

8. Save your changes and navigate to the subscription form anonymously. You will receive an error message like the one shown below.

22

9 . I have blogged about this error on my blog a couple of weeks ago. For now, just set DataSourceMode of SPDataSource control to Webs or ListOfLists. This will permit anonymous users to view the DataFormWebPart that holds the subscription form fields

23

10. Congratulations! You are now ready to preview the page in the browser.

24

Summary

One of the initiatives of this series of articles is to show you how powerful and flexible the Data Form Web Part is. In this article, we have only scratched the surface; there are still a lot of cool and nifty features when it comes to the magical Data Form Web Part. Laura Rogers has really done a great job discussing and discovering wonderful features in the Data Form Web Part. I would advise you to have a look at her articlesat EndUserSharePoint.com for more tips and tricks.

In my next article I will go into some completely new stuff when we explore SharePoint Designer Workflows. I will create a workflow that sends welcome e-mails to the list subscribers as soon as their requests to join the list are approved. And as we agreed in the introductory part, I will not write a single line of code.

 

About EndUserSharePoint:

EndUserSharePoint.com is a community of SharePoint authors dedicated to providing content to SharePoint End Users on three levels: Information Worker, Power User/Site Administrator and Site Collection Administrator.

 

Creating mailing lists for SharePoint sites and blogs [No Code Required] – Part 2: Creating a custom subscription form

NOTE : This article was published on EndUserSharePoint.com a couple of weeks ago and because of the wonderful feedback I received, I decided to cross-post it here too.

This is the second article in a multipart series that is intended to help you create mailing lists for your SharePoint sites or blogs without writing a single line of .NET Code. In the introductory article, I listed the project initiatives, requirements, and objectives. In Part 1, I created a secured backend where we store the subscribers’ contacts. In this article, we will continue our journey, let’s carry on!

In the previous article, I made use of the ‘Contacts list template, provided out-of-the-box by SharePoint, to create a list which will act as the backend for our mailing list. In this article, I will show you how to configure the ‘Contact’ content type, create a custom subscription form and do some sort of customization. The intention of these customizations is not only to make the subscription form look different from the out-of-the-box list forms but also to show you the power, simplicity, and efficiency of SharePoint Designer 2007.

  1. Navigate to the list settings page > Advanced settings.

69

2. Make sure that management of content types is turned on

70

3. Navigate to the contact content type settings page from the list settings as shown underneath:

71

4. Configure the content type fields from the content type settings page. We need a  list subscriber to mandatorily supply their first namelast name and e-mail address and optionally supply theirCompanyCity and Country.

72

73

5. Now, navigate to the New Form (NewForm.aspx) by adding a new contact to the list as follows :

74

75

6.As shown in the figure above we need to get rid of the highlighted areas. I will show you in this article, and the next one how, to accomplish that.

7. Open up SharePoint Designer, connect to your SharePoint site collection, and supply your credentials.

8.Choose the list that we created in the previous article from the folder list. If the Folder List is not visible, on the View menu, click Folder List.

9.Make a copy from the NewForm.aspx and rename the copied version from NewForm_copy(1).aspx to subscribe.aspx as follows:

76

77

78

10. Change the list New item form from NewForm.aspx to subscribe.aspx using the supporting files tab of the list properties’ dialogue box as illustrated below:

80

81

82

11.Now choosing to add a new contact to the list will redirect you to subscribe.aspx rather than NewForm.aspx.

12.Our next task is to modify the newly created form (subscribe.aspx) to look like a mailing list subscription form rather than the traditional SharePoint list forms.

13.Open subscribe.aspx using SharePoint designer.

14.Select “New Item” highlighted in the figure below. Delete it with the colon preceding it.

83

15.    Now, we need to eliminate the “New Item” from the form breadcrumb.

15.1. Select the “PlaceHolderTitleBreadcrumb” placeholder from the Master Page toolbar as shown in the figure below.

84

 

Note:  You can show this toolbar if it is hidden from View menu > Toolbars.

15.2. The word (Master) on the content placeholder tab means that the content is retrieved from the master page. To make this content region editable to override the retrieved data, click the arrow in the upper-right corner to show the Common Content Tasks list, and then click Create Custom Content as shown in the figure below. This will automatically create a new content region that will fill the placeholder in this page rather than using the Master’s default content.

85

 

15.3. Replace the SiteMapPath control with a link to the site collection’s welcome page. You can use the handy “SPLinkButton” control in conjunction with “ProjectProperty” control to accomplish that as shown below. The  good thing about SPLinkButton is that it is aware of ~site and ~sitecollection expression tokens.

 

1

2

 

16. To change the page title “IE Tab title”, locate the ”PlaceHolderPageTitle” placeholder using the Master Page toolbar discussed above and replace the ListFormPageTitle control with your own title.

3

 

4

 

17 . Now, we are in a good shape; only one non-compulsory step is left which is adding the left navigation bar back to the page. Note the word (Custom) on the content placeholder tab. This means that the content is custom content for this page only, and that it is not retrieved from the attached master page. Nevertheless, we do not need any custom content for this page. We need to retrieve the left navigation menu from the master page so the only thing we need to do is defaulting the region to the master’s content using the Common Content Tasks as shown in the figure below.

5

 

18.  Save your changes by clicking Save on the File menu. A message appears warning you that saving your changes will customize a page from the site definition. Click Yes.

6

 

19. And here is what you will end up with, if you follow the preceding steps.

7

 

Note: If you are not pleased with the customizations that you have made to the page, you can always reset it to the site definition.

Summary:

In this article, I showed you how to configure the ‘Contact’ list content type, create a subscription form for the mailing list, make it the default New Item Form and do some simple customizations to it.

In the next article, I will show you how to customize the form fields, use the extremely powerful DataFormWebPart, change the form validation mechanism to be client sided, add your own validation logic, configure the SPDataSource control and much more ..

About EndUserSharePoint:

EndUserSharePoint.com is a community of SharePoint authors dedicated to providing content to SharePoint End Users on three levels: Information Worker, Power User/Site Administrator and Site Collection Administrator.

Your Very Own Permissions Dashboard by Laura Rogers

Using a web service and a little magic, it’s possible to create your own data view web part “dashboard” to quickly get to permissions and other screens for all of the lists and libraries on your SharePoint site.  Here’s an example of what the goal is:

 

This is really a Very cool read for SharePoint! Lot of folks asking how to do this and Laura Rogers has done a fantastic job showing you how. Here is a link to the full article !

Creating mailing lists for SharePoint sites and blogs [No Code Required] – Part 1: Creating a secured backend

NOTE : This article was published on EndUserSharePoint.com a couple of weeks ago and because of the wonderful feedback I received, I decided to cross-post it here too.

This multi-part series of posts is intended to help you create mailing lists for your SharePoint sites or blogs without writing a single line of .NET Code. In the introductory article, I listed the project initiatives, requirements, and objectives. If you have not read it yet, I would encourage you to do that first.

As per the requirements listed in the introductory part, we need to create a back-end where we will store the subscribers’ contacts and information. Since everything in SharePoint is stored in lists or in libraries, we will use a Contacts List to hold our users’ information. We need anonymous users to be able to contribute to this list by adding their contacts without giving them any sort of access to the list views. In addition, we need to set in motion the content approval feature provided by SharePoint to stop subscribers from receiving e-mails unless they are permitted. That being said, let us get started…

For this series of articles, I’ve assumed that you already have a SharePoint site set up and that it is accessible to anonymous users. If you do not know how to configure your SharePoint site for anonymous access, check out this short video.

  1. Open up SharePoint Designer, connect to your SharePoint site collection, and supply your credentials.
  2. Choose a location from the folder list as to where you want to create the list that will hold the subscribers’ contacts.

 

45

 1 Choose a “contacts list” template to start with and specify a name for the list.

46

4 . Go to the newly created list from SharePoint Designer, right click, and select properties.

5.  The list properties dialog box opens up, open the settings tab, uncheck “Enable attachments” and check “Require content approval”. Press the “apply” button. Remember that we need the emails to be sent only to the approved subscribers.

47

6 .Switch to the security tab

48

7. Click “Manage Permissions using the browser”.

8. The list by default inherits permissions from the site, but for anonymous lists, this will not do. By selecting ‘Edit Permissions’ from the ‘Actions’ menu, you can specify specific permissions for this list.

49

9. You will be prompted that you are breaking the inheritance from the parent site, click Ok

50

10. The Setting menu has now appeared. Open it, and choose ‘Anonymous Access’.

51

11. Configure the anonymous users’ permissions as shown in the following figure then press Ok.

5212. Navigate to the list settings page using the breadcrumb.

13. Choose “Advanced Settings” from the General settings tab.

54

14 . Configure the advanced settings as shown in the figure below.

55

15 . Navigate back to the list, click new contact.

56

16. Copy the URL from your browser address bar to Notepad. Edit the value of the “Source” query string parameter to be the home page of your site. In my case, I ended up with the following URL

http://www.sitename.com/Lists/EUSP%20Mailing%20List/NewForm.aspx?RootFolder=%2FLists%2FEUSP%20Mailing%20List&ContentTypeId=0×01060031DDECE1AF719B4DA173919310A8F264&Source=http%3A%2F%2Fwww%2Esitename%2Ecom

 Note : You must edit “Source” value, otherwise your visitors will be redirected to the default view of the list after submitting the request and they will be prompted to provide their credentials.

17 . Now everything is set up for your mailing list form, you just need to provide your visitors with a link to subscribe to the list. You can add a content editor web part to your home page and insert a link to the URL that you ended up with in the previous step.

18. Access the site anonymously and navigate to the Mailing list form through the content editor web part you created in the previous step.

19. Fill out the form and here you go! You are redirected back to the home page.

Note: Anonymous users will not be able to navigate to the list views even through the breadcrumb. They will be prompted to enter their credentials or they will be redirected to the Access Denied page.

Summary:

In this post, I’ve illustrated creating SharePoint lists through SharePoint designer, configuring them for anonymous contribution, and preventing anonymous users from accessing any submitted data. I have also demonstrated configuring SharePoint lists to enable content approval.

In the next post, we will create a custom SharePoint list form through SharePoint designer like the one shown in the introductory part, manage the “Contact” content type, create client-sided validations and much more …

About EndUserSharePoint:

EndUserSharePoint.com is a community of SharePoint authors dedicated to providing content to SharePoint End Users on three levels: Information Worker, Power User/Site Administrator and Site Collection Administrator.

Creating mailing lists for SharePoint sites and blogs [No Code Required] – Introduction

NOTE : This article was published on EndUserSharePoint.com a couple of weeks ago and because of the wonderful feedback I received, I decided to cross-post it here too.

Last week, I worked on creating a mailing list for a public facing SharePoint site. I really had some constraints because I was only allowed to use SharePoint Designer and the browser. I’m not used to these situations because I am mainly a software engineer. However, it was a very nice experience. I applied lots of knowledge and I worked around the constraints. I decided to put the experience and workarounds together into an educational series of articles to help SharePoint end users and administrators create their own mailing list without writing a single line of .NET code.

Here is a snapshot of what I ended up with last week:

44

Requirements
  1. A SharePoint form is needed, from which anonymous users can send requests to join the mailing list. We need this information to be stored somewhere on our SharePoint site.
  2. The form should be customized to validate the e-mail addresses entered by anonymous users. We also need the validation to be client-sided rather than the
    server-sided. Validation provided out of the box.
  3. When filling out the form, users should select their countries from a drop down list, which holds all the countries of the world.
  4. We need to first approve those requests before allowing users to receive our letters.
  5. Once a request is approved, an e-mail should be sent informing him/her of the approval of the request and telling how to unsubscribe from the mailing list.
  6. List administrators should be able to send e-mails to all the approved and registered users specifying some filters. For instance, the list administrator should be capable of sending e-mails to all the registered users from Canada.
After completing this set of articles, you should be capable of:
  1. Creating and configuring SharePoint Lists using SharePoint Designer.
  2. Configuring anonymous contributions for SharePoint Lists.
  3. Creating simple SharePoint Designer workflows for sending confirmation mail to list subscribers.
  4. Configuring content approval for share point lists.
  5. Creating custom SharePoint list forms.
  6. Creating Client-Side validation for SharePoint list forms.
  7. Using Data Form Web Part.
  8. Connecting SharePoint Lists to Outlook.
  9. Using the Word 2007 Mail Merge feature with SharePoint Lists.
  10. Using and creating SharePoint List Templates.
  11. Hiding SharePoint lists.
  12. Using lookup columns in SharePoint lists.

In the next part, we will create a SharePoint list based on the Contacts template provided by SharePoint. We will configure the list to allow anonymous contribution but not anonymous access. In other words, anonymous users should be able to add items but not navigate to the list data. Stay Tuned

Problems with anonymous access to custom SharePoint list forms

A couple of days ago, I had troubles with anonymous access to a custom form for a custom list. I created a list, and added a DataFormWebPart to the page using SharePoint Designer as shown below.

41

I set the page and the list to allow anonymous access, and I could get to both. However, when I opened the page with the custom list form, the DataFormWebPart displayed the following error :

42

Resolution :

Just set DataSourceMode of SPDataSource control to Webs or ListOfLists as shown below :

43

For more information about the differences between Webs and ListOfLists, See this SharePoint Designer Team Blog post for a decent explanation of these options:

http://blogs.msdn.com/sharepointdesigner/archive/2007/04/24/spdatasource-and-rollups-with-the-data-view.aspx

 

Creating mailing lists for SharePoint sites and blogs [No Code Required]

A few days ago my first article for EndUserSharePoint.com went live. This article is the first one of a series titled “Creating mailing lists for SharePoint sites and blogs [No Code Required]”. You can always follow my articles at EUSP by selecting my name from the drop down list shown at the top of the home page as illustrated in the figure below.

37

SharePoint Branding messed up in IE8

Here is another question that I answered @ MSDN Forums :

Q : We just tested our sharepoint branding in IE8, but it’s totally messed up!what’s wrong with IE8 ??Did anybody encounter this before ?

A : Generally, there are two choices for rendering mode, “standards” mode and “quirks” mode. In “standards” mode, a modern browser will do its best to render the document according to the W3C recommendations, even if it leads to unexpected results.
In “quirks” mode, a modern browser will try to handle an (x)HTML document like older browsers from the mid-to late ’90s did. It will do its best to imitate the parsing, rendering, and bugs of earlier browsers when encountering sloppy or invalid code authoring. And, it will display those quirky pages in the same way as those earlier browsers do.
So how does a browser decide whether it should use “standards” mode or “quirks” mode? Why, by examining the doctype, or lack thereof on the web page.
IE8 decides its rendering engine based on DocType in the master page:
If IE8 sees a valid DocType declared it will attempt to render a site in IE8 Standards Mode.
If IE8 does not see a DocType it will attempt to render a site in quirks mode
Master pages like default.master that do not have a doctype declared will render automatically in IE8 in quirks mode.
However if you create a custom master page and add a doctype IE8 will try to render the page in IE8 standards mode which will cause some problems like in showing SharePoint dynamic menus .
So if you want to add a DocType, you should add the followint Meta Tag < meta equiv=”X-UA-Compatible” content=”IE=EmulateIE7″> , this will render your page like IE7 Mode.