10 Dec 2009

Immediacy Reference for dummies

How to get connection string

Immediacy.Configuration.Settings.ConnectionString

How to Get the Current PageId

//Create a 'Httpcontext' object using 'Current' property

ImmHttpContext currentContext = ImmHttpContext.Current;

//Get the live version of the requested page

LivePage requestedPage = currentContext.ContentPage;

How To Create an AddIn

http://support.immediacy.net/products/content_management_system/tutorials/immediacy_manager/add-ins.aspx

Anyway make an AspX page and put on addin folder taking attention to the name convention.

Inherite your page from <%@ Page Language="C#" Inherits="Admin.AdminPage" %>

And put on PageLoad EnsureAdmin(); to check page security on Immediacy Context

Now you can get connection string from ImmediacySession.ConnectionString;

No comments:

Post a Comment