Crear páginas Wiki Sharepoint

CrepuX

Curioso
Muy buenas a todos/as,

Soy nuevo en la programación con Sharepoint y tengo un problemilla a ver si me podeis echar un cable: Necesito crear una plantilla para emular una Wikipedia en Sharepoint. He encontrado un ejemplo por Internet, pero al meterlo en el Visual Studio, me casca en la herencia de la clase. Tengo metidas las referencias: Microsoft.Sharepoint, System, System.Data, System.Web y System.xml.

Me dice: Error 1 The type or namespace name 'CreateWebPage' could not be found (are you missing a using directive or an assembly reference?)
El código es el siguiente:

using System;
using System.Collections.Generic;
using System.Text;
using System.Web.UI;
using Microsoft.SharePoint.ApplicationPages;
using Microsoft.SharePoint.WebControls;
using Microsoft.SharePoint;


namespace Wiki
{
public class EnhancedCreateWebpage : CreateWebPage
{
protected ListFieldIterator listFieldIterator;
protected string template;

public EnhancedCreateWebpage() { }

protected override void OnPreRender(EventArgs e)
{
if (!this.Page.IsPostBack)
{
// Get the templates list
SPList templatesList = this.listFieldIterator.Web.Lists["Page Templates"];
if (TemplateSourceDirectory != null && templatesList.Items.Count > 0)
{
// Just take the first template for demonstration
this.template = templatesList.Items[0]["Template"].ToString();
}
templatesList = null;

this.FindRichTextControl(listFieldIterator);
}
base.OnPreRender(e);
}

private void FindRichTextControl(Control control)
{
foreach (Control childControl in control.Controls)
{
if (childControl.GetType().Equals(typeof(Microsoft.SharePoint.WebControls.RichTextField)))
{
((RichTextField)childControl).Value = this.template;
return;
}
this.FindRichTextControl(childControl);
}
}

}


}

Alguna idea de por donde pueden ir los tiros??

Un saludo a todos/as y muchas gracias
 
Arriba