This section contains short samples on how to achieve different tasks with EPiServer. The section covers the following topics:
- Access Files And Folders in EPiServer
Information about Access Files And Folders in EPiServer. - Add reference to Web service
EPiServer includes a number of Web services (see EPiServer.WebServices) that makes it possible to retrieve, add, delete and search information from the EPiServer site. This "How To" describes how to reference a Web service from Visual studio. - Add and Remove Right-click Menu Items
To add a custom item to the righ-click menu in EPiServer you can use the ContextMenu.CreateMenuItem method. In the following sample the code first checks that the current user has edit access to the site. - Change the Create URL Segment Functionality
In order to replace the create URL segment code you need to inherit from EPiServer.Global and override the EPiServer.Global.Application_Start(Object, EventArgs) and EPiServer.Global.GlobalPageValidation_Validators(object, PageValidateEventArgs). The following code shows an example of how to replace the default functionality with custom code. - Change the style sheet for the Editor and the XForm editor
It is possible to configure what css-files the editor, as well as the XForm editor loads and uses. This can be configured in two ways. - Create a Custom Property
- Create a GUI Plugin
- Create a Page Programmatically
- Create a Page Template
- Create a Web User Control
- Create an editor Plug-in
This "How to" shows how to create a simple plug-in for the Editor, and at the same time answers some common editor plug-in questions. - Create and Use a Workflow
The process of creating a workflow in Visual Studio, deploying it to EPiServer and then registering it is easy. In this guide we will create a simple workflow that assigns a task to a group of users whenever a page is created in a specific node in the site structure. - Create Dynamic Content
- Create UI Settings for Dynamic Content
- Modify values for page properties when loading the page for editing in edit mode
Sometimes you might want to alter a value that is beeing loaded when editing a page in EPiServers edit mode. In EPiServer CMS we have added a new event that makes it possible to alter a page's values only when loaded in edit mode. Here is a code example of how this can be done by attaching to an event in the Global class(global.asax.cs): - Read Site Settings Programmatically
In previous versions of EPiServer, the EPiServer specific settings were located under the AppSettings block in the Web.Config file. These have been removed. Instead of using the AppSettings collection EPiServer settings are today accessed through the use of a configuration class. All settings are typed members of this class which gives the added benefit of being able to access all settings through intellisense. - Programmatically Search for pages created recently