Console class

The Console provides an integrated means of managing a ReFlex CMS website. The Console should be placed before the closing form tag of all MasterPages and Pages where content management functionality is required.

Namespace: ReFlex.Website.UserControls namespace
Assembly: ReFlex.Website.dll

Syntax

public partial class Console : ReFlex.Web.UI.UserControl, ReFlex.Web.UI.IAdminConsole

Constructors

Console();

Examples

// Content.master.cs
using System;
using ReFlex.Web;
using ReFlex.Data;
using ReFlex.Web.Managers;
using ReFlex.Web.Data;
using ReFlex.Web.UI.WebControls;
using ReFlex.Web.UI.Support;

public partial class Site_Templates_Content : ReFlex.Web.UI.MasterPage
{
    private ReFlex.Web.UI.Page m_Page;

    /// <summary>
    /// Template name
    /// </summary>
    public override string GetName()
    {
        return "Content Template";
    }
    /// <summary>
    /// Template description
    /// </summary>
    public override string GetDescription()
    {
        return "Content template";
    }

    /// <summary>
    /// Page init
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void Page_Init(object sender, EventArgs e)
    {
        m_Page = Page as ReFlex.Web.UI.Page;
    }
}

 

<!-- Content.master -->
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="Content.master.cs" Inherits="Site_Templates_Content" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Console Example</title>
</head>
<body id="body" runat="server">
    <form id="frmMain" runat="server">
      <h1>
          <ReFlex:TextBox ID="cmsPageHeading" EditTextMode="SingleLine" Title="Page Heading"
              Behaviour="Page" runat="server"></ReFlex:TextBox></h1>
      <ReFlex:RichTextBox ID="cmsMainContent" AllowCode="true" AllowFormat="true" AllowImages="true"
          AllowTables="true" Title="Main Content" Behaviour="Page" runat="server" />
      <ReFlex:AdminConsole ID="acAdminConsole" runat="server" />
    </form>
</body>
</html>