zevenseas


 

The IgnoreIfAlreadyExists File Element Attribute

This attribute doesn't quite work the way I expected it to, or the way I have seen it described in other places on the web. (The documentation is not as clear as it should be. I really wish it did work the way described in Chris's great post!)

From the official documentation (http://msdn2.microsoft.com/en-us/library/ms459213.aspx) we find that it is designed to:

IgnoreIfAlreadyExists

Optional Boolean. TRUE to provision the view even if the file already exists at the specified URL; otherwise, FALSE.

To fully understand how this attribute worked I set up the following test:

  1. Created a Feature (ReplaceTest1) which simply provisioned a file (test.aspx) into a team sites /_catalogs/masterpage folder. The file simply contained "11111111".
  2. I then tested this and confirmed that it worked correctly, I saw "11111111" when accessing the page.
  3. I then created another feature (ReplaceTest2) based on ReplaceTest1, except with:
    1. A new FeatureID
    2. I added the IgnoreIfAlreadyExists parameter, and set it to TRUE
    3. Modified the test.aspx file to contain "22222222" instead.
  4. I then activated this feature, and in doing so found that it didn't actually replace the existing test.aspx file. In the browser I still saw "11111111". I didn't expect this.
  5. I then decided to change ReplaceTest2 so that IgnoreIfAlreadyExists was equal to FALSE
  6. I then repeated the tests and found that this time, when activating ReplaceTest2, I received an error telling me that the file already existed. I did expect this.

So, in summary, it appears this attribute actually does exactly what it says (even if it really could have said it clearer), it ignores the provisioning of the file if a file with the same name already exists. At this point I have to wonder just how useful such an attribute really is!

Anyway, I'm going to return to investigating the easiest way to replace an existing file via a feature, but if anyone out there has had a different experience then I would love to hear about it.

Content from Point2Share

I have had a couple of people ping me about content that was available on my old Point2Share site (especially the upgrade stuff) and I'm pleased to say that I have finally got around to going through the old blog and pulling out content that remains useful today.

Too much has changed now for me to just bring that server back online (not to mention maintenance effort) so I'm just going to republish them here, apologies for the duplication, you just never know when someone is going to find it useful via Google!

Tagged Links Walk-through

Last week we released "Tagged Links", a solution that brings Social Bookmarking to SharePoint (WSS/MOSS). Today I would like to take you on a walk-through of how it works and the capabilities it provides.

Download Tagged Links

First Things First

What is the one thing you should know about the "Tagged Links" solution?

Well, that it has everything the "Links List" has, but a lot more! Take a look through the walk-through below, email me at daniel@zevenseas.com for more information, or try it yourself:

Site: Tagged Links
Username: DemoUser
Password: DemoUser

The Tagged Links List

image

As you can see a "Tagged Links" list looks like any other SharePoint List, the only exception is the text appearing just above the view.

To create a browser button for quickly adding links to this list, right-click the below link, select 'Add to Favorites...' and select the 'Links' folder in your favorites:
Add link to MyDemoSite - Tagged Links

This will appear above all "Tagged Links" lists and provides you with a way to add a shortcut to your browser that quickly adds useful websites you find to the list.

This is how it works:

1) Right click on the "Add link to Tagged Links - Tagged Links" link, and select "Add to Favorites"

You may be prompted with the following:

image

If so, select "Yes" because the "Tagged Links" list is a trusted source.

2) When prompted by your browser, place the shortcut in the "Links" folder:

image

3) After clicking "Add", notice that a new button has been placed on the "Links" toolbar in your browser (if that has been turned on):

image

4) Finally, lets see what this shortcut can do for us. Browse to a page, for example my blog http://community.zevenseas.com/blogs/daniel, then, lets pretend (yes I know it is difficult) that you wanted to add my site into your tagged links list. With a standard links list you would have to copy the URL, browse to your links list, create a new item, paste in the URL and then enter a title. With a "Tagged Links" browser shortcut we do that for you!

Click on the "Add link to MyDemoSite - Tagged Links"

image

Notice that the URL and Title fields are already completed for you and that you are taken directly to the "New Item" form from the web site you were viewing when you clicked the button. All you need to do now, is tag it.

Tagging with Tagged Links

While you can tag information in SharePoint with "Choice" or "Lookup" fields, it's not quite as easy as we wanted it to be, so we have introduced a new "Tags" field. Behind the scenes it is a standard "Choice" field with a "Fillin" option, however, unlike the standard Choice field with the Fill-in enabled, when you enter a new fill-in value, it's automatically added to the list of choices in the field itself. This means that next time you save a link, that tag is already available and just a checkbox tick away.

Lets see it in action.

In this example lets say we wanted to tag my blog with our company name "zevenseas". Unfortunately this value has not yet been added to the Choice list. In a standard links list this would mean going into list settings, modifying the "Tags" field, adding the choice and then refreshing my page. With "Tagged Links" we just type it in, along with any other Tags separated by a "," or a ";".

image

Now watch what happens when I save the item, and then go back in to edit it:

image

Notice that those new tags are now Choices defined in the choice list, just to confirm lets take a look:

image

So that is a real time saver, and it means that your Tags can be kept more consistent.

Global Tags

Keeping tags as consistent as possible across your "Tagged Links" lists is going to make the information you store there easier to find. To help you do this we have introduced the concept of "Global Tags". These are a set of tags that you define at the Site Collection level, and are then available to any "Tagged Links" list, in any site, within the Site Collection.

To define these Global Tags open site settings and then click on "Global Tags" under the galleries heading:

image

This will take you to the following list, where you define Tags by simply entering them in:

image

When defined these are available via your "Tagged Links" list toward the bottom of the form:

image

Viewing your Tagged Links

Of course all this information is useless if there is not an easy way to find what you are looking for. So in addition to standard SharePoint views, we have included two specialised views, the Tag Cloud and the Tag List. These are shown below, and provide a simple way to one-click filter the information you are seeing.

image

image

This concludes the tour, I hope it has been informative, any questions please mail me at daniel@zevenseas.com and if you would like to have a play around yourself, then feel free to log on here:

Site: Tagged Links
Username: Coral\DemoUser
Password: DemoUser

Download Tagged Links

Introducing the "Tagged Links" Solution (beta) Social Bookmarking for SharePoint

Download Tagged Links

NEW: Tagged Links Walk-through

Inspired by the many great social bookmarking services available today, I've been working to bring their important features to SharePoint (MOSS and WSS). The results is a solution we are making available today in Beta called "Tagged Links", which really does what it says, its an enhanced links list focused around tagging, organising and sharing your favourite links.

The key features that have been added to the standard links list include the following:

Integration with the browser so that creating a new link is just a button press away. It automatically fills in the URL and Title for you.

image

Simple tagging. Tagging a link is just the click of a checkbox, while adding new tags is as simple as filling in a text box. The best bit is that new tags are added to the list for selection next time.

image

Built in Tag Cloud and Tag List views.

image

image 

Ability to define "Global Tags" which are consistent and available throughout the entire site collection.

image

So download it and have fun. Please remember that this is Beta, so expect the odd bug or two, and don't use in production for live data, there may not be an upgrade path to the final version. If you do find anything, please let us know, also keen for your feedback, so if you have any comments, please email me directly at daniel@zevenseas.com. I will follow this post up with a detailed walk-through shortly, but the install zip includes an installation readme.

Download Tagged Links


 
 
 

© 2009 Community Kit For SharePoint