28.07.2013 Views

Hent teknisk dokumentation - Go Basic

Hent teknisk dokumentation - Go Basic

Hent teknisk dokumentation - Go Basic

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

}<br />

}<br />

{<br />

}<br />

// Use the alias name<br />

get { return GetValue("message"); }<br />

Klassen ”extender” den autogenererede klasse med Message propertien.<br />

Opret en ny klasse ”HelloWorldModuleRendering” under ”Modules” folderen i<br />

<strong>Go</strong><strong>Basic</strong>.Logic projektet, med følgende kode:<br />

using System;<br />

using System.Collections.Generic;<br />

using System.Linq;<br />

using System.Text;<br />

using <strong>Go</strong><strong>Basic</strong>.Logic.Entities;<br />

namespace <strong>Go</strong><strong>Basic</strong>.Logic.Modules<br />

{<br />

/// <br />

/// This is the presentation class for the HelloWorld module<br />

/// <br />

public class HelloWorldModuleRendering :<br />

BaseModuleRendering<br />

{<br />

/// <br />

/// This property is currently not being used, but is reserved<br />

for future use.<br />

/// <br />

public override string ModuleDescription<br />

{<br />

get { return "A module for outputting a message"; }<br />

}<br />

/// <br />

/// This method implements the rendering of the module.<br />

/// <br />

/// A strongly typed reference to the entity<br />

being rendered<br />

/// An advanced html writer with many<br />

capabilities<br />

protected override void RenderModule(HelloWorldModule module,<br />

LinqIt.Utils.Web.HtmlWriter writer)<br />

{<br />

writer.RenderFullTag(HtmlTextWriterTag.P, module.Message);<br />

}<br />

}<br />

}<br />

Byg projektet og test modulet på en given side i Umbraco.<br />

Moduler og Cookies<br />

<strong>Go</strong> <strong>Basic</strong> implementerer en godkendt løsning på krav om cookie-beskyttelse. Dette<br />

afsnit handler om, hvordan man sikrer, at nyudviklede moduler, som benytter cookies,<br />

overholder implementeringen.<br />

9

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!