itaysk

15 באפריל 2012

We all know wikis and how they work. It's a quick way to create inter-connected items of unstructured data. SharePoint 2010 Introduces two wiki solutions that appear similar on first sight, but are actually different. In this post I will cover technical differences between the two.

First is the "Enterprise Wiki" site template. It's a template that can be used to create site collections, or sub-sites. The Enterprise Wiki site template creates a site that is dedicated to wiki content. The main component in the site is the "Pages" Library. We will explorer it later.

Second is the "Wiki Page Library" list template. This Wiki Library can host wiki pages. It can be created in any kind of site. As a matter of fact, this Wiki Library list template is used as the default pages library in the "Team Site" site template.

Mark pages for easier reference by tagging them with enterprise keywords

Enterprise Wiki

These are nice guidelines, but what is the real difference of each? I am now going to go through the detailed process that I took for investigating the case. You can skip to the end if you want the summary.

Wiki Page Library

The template is part of the feature called "WebPageLibrary". In this feature, you can find the list definition at: "14\TEMPLATES\FEATURES\WebPageLibrary\ListTemlpates\WebPageLibrary.xml". If you look at it, you'll notice that the list template id is 119, and BaseType="1", which means it is a regular document library.

If we take a look at the schema.xml file at "14\TEMPLATES\FEATURES\WebPageLibrary\WebPageLib\schema.xml", we will see that the template associates a content type with ID 0x010108 to the library. This content type is called "WikiDocument", and is defined in: "14\TEMPLATES\FEATURES\ctypes\ctypeswss.xml". It inherits from the base "Document" content type, does 2 things: Add the "WikiField", and remove the "Title" field. The "WikiField" field is what holds the content of the page.

Enterpries Wiki

This is an entierly different beast. First of all, it's a site definition. You will find the "Enterprise Wiki" site definition at 14\TEMPLATE\1033\XML\webtempsps.xml. Let's take a closer look at it. The site definition onet.xml file is at: 14\TEMPLATE\SiteTemplates\ENTERWIKI\XML\onet.xml. In here, we can see that this is actually a publishing site (publishing features, such as "Publishing 22A9EF51-737B-4ff2-9346-694633FE4416" are activated).

In addition to the standatd pablishing features, there's an additional feature with id "76D688AD-C16E-4cec-9B71-7B7F0D79B9CD". This is the EnterpriseWiki feature, you can find it's source at: 14\TEMPALTE\FEATURES\EnterpriseWiki.

If you take a look at EnterpriseWikiContentTypeBinding.xml, you will see that the feature takes the default pages library that is created with the publishing infrastructure, and binds to it 2 content types. One is the standard Redirect Page content type, and the other is the Enterprise Wiki content type. The Enterprise Wiki content type is defined at: 14\TEMPALTE\FEATURES\EnterpriseWikiContentTypes, and defines the following fields: ModifiedBy, PublishingPageContent, Rating, RatingCount.

If we take a look at the page layout at: 14\TEMPALTE\FEATURES\EnterpriseWikiLayouts\PageLayouts\EnterpriseWiki.aspx, we will see that the field that holds the content of the page is "PublishingPageContent". This field is just like the "WikiField" field that we discussed earlier.

Rendering

Handling wiki style markup is integrated into SharePoint foundation. From what I have found, it seems that the translation from wiki syntax to html is done in the field level (not UI control). The class "SPFieldMultilineText" has a property called "WikiLinking" (boolean), that toggles the feature on or off. For publishing pages, the "HtmlField" inherits indirectly from SPFieldMultilineText, so it supports this too.

You can use this feature with regular publishing pages as well (not nessicarely wiki page layouts). If you look at the source of a publishing page you will see a line similar to this: document.getElementById('ctl00_PlaceHolderMain_PageContent_RichHtmlField_displayContent').WikiLinking = 'on'; This controls whether or not the wiki syntax translation is active.

Summary

SharePoint has different 2 solutions for wiki style editing:

1. Wiki Library – a web pages library that uses the "Wiki Document" content type. This content type has a field called "WikiField" to hold the wiki content.

2. Enterprise Wiki – a site definition that is based on the publishing infrustructure. As such, it is based on the built in "Pages" library. It uses a content type called "Enterprise Wiki", in which the field "PublishingPageContent" is used to hold wiki content.

This knowledge can be helpful if you are developing solutions that are usign the wiki features programmatically.

25 תגובות

Hi Itay, Can you provide a comparison between an Enterprise Wiki and a Wiki Page Library from a user's point of view? What extra features does an enterprise/user get from an Enterprise Wiki that they don't get from a Wiki Page Library? And does a Wiki Page Library offer anything that an Enterprise Wiki doesn't? Would a company/user be most effective using both or may it be better to choose one or the other?

A 5 volt signal is sent from the push button on the power source to tell it when to turn on.

But with the micro level, the exact level of which those individual ink
particles do their thing, they don't care where inside the bowl of water they are. This obviously takes more hours nonetheless it hopefully brings about you receiving a fully working product just about every time.

Hey I know this is off topic but I was wondering if you knew of any
widgets I could add to my blog that automatically tweet my newest
twitter updates. I've been looking for a plug-in like this for quite some time and was hoping maybe you would have some experience with something like this. Please let me know if you run into anything. I truly enjoy reading your blog and I look forward to your new updates.

I'd like to thank you for the efforts you've put in writing this blog.
I am hoping to see the same high-grade blog posts
from you in the future as well. In fact, your creative writing abilities has motivated me to get my own website
now 😉

very much unlike the Habu that was too sensitive as well as
the movement were built with a harshness to it. Also you will see that
the buttons are slightly curved up, when you need to click, you'll click considerably faster which will improve overall game play on the computer. The second and fourth with the Razer Naga mouse buttons have a high peak while using button around the right thumb.

When I removed the inside mold­ings around a window inside our house,
1 found six old pennies. In certain applications, however, digital penetration is already exceeding 50%. Here is a test to place to all that work in government offices, that make financial decisions: 1.

Recycling electronic parts can facilitate preserve these resources and can also facilitate use less energy compared to the output
of recent components. The game showed the graphical capabilities of the Wii, and has become one with the highest-selling games ever for the Wii.
Some ofthe games are really simple which you can even play them while working inthe office.

Home improvement projects can include many different finishes, including a skip trowel texture.

At the same time, persons having IVAs, defaults, CCJs, arrears, bankruptcy
etc can also enjoy all of its facilities. They do not need insulin to control diabetes, no heart or respiratory problems, no high blood pressure, epilepsy, or any vascular problems.

You can contact your local sales people for these companies and tell
them that you have been wanting to try out their
lines as opposed to what you are using now and would like
to give it a test run. The first time I stayed over at
his place I woke up in a panic. Every color
she chooses with which she works with will retain earth tone hues.

It's the contractor that does offer more than one line of fiberglass pools that I personally would be cautious about. You may have to spend several hours, days or even weeks, getting your child comfortable in the water. If you can't find
a fibreglass pool to meet your requirements, a concrete pool will make
the most of limited space as its walls can
be designed to form part of building structures.

When you go there you sure will like more than one plan.
However, we're only just coming out of a devastating recession, and I think you'll find that merely asking for a discount will work 90% of the time.
Absolutely without a shadow of a doubt this will
be one of your better decisions once you have it all set
up and running.

The truth is often times found somewhere in the middle.
There is little argument that list building is one of the smartest things anyone marketing on the internet can do.
It means you should give them as much information as is possible in any existing way.

The nail salon industry has grown exponentially in the
last several years. You can nail down sub-flooring and even build
trusses. Indeed, the frequency of 5 to 10% of the population is an average, but
athletes, soldiers, or miners are much more exposed to this disease.

In 1828, following the Greek War of Independence, it is Aegina that emerges as the very first capital of the
new independent Greek State. But, if you stop and think about the holidays,
you'll find that they're really no different from any other days in the year.
Words would struggle to fit the description of the interior and the museum that resides within.

Not to mention the time away from family and friends.
But in choosing a photographer, make sure that he
or she has additional knowledge about real estate so that there will be no need for
you to orient him or her. If you already have a neighborhood in mind, get one who
is based there.

You will have additional communication opportunities, increase productivity and sales.
I do not mean that you should not respect your family and treat them with the utmost love and admiration.
Right capabilities: Employees need to know that time invested
in learning and usage will yield personal advantages.

The next time you do a listing presentation for selling or leasing a property, it will be that
much more focused and directed to the needs of the customer.

When you get the right property solutions for
your real estate, you can sell it out to get maximum profitability.
Don't allow these risks stop you from jumping into the real estate investing waters, just keep your eyes open as you leap.