Editing View Mode

Crownpeak

Code Editing is a technique of editing in a code window manor. A code editor is a text editor program designed specifically for editing source code of computer programs by programmers. It may be a standalone application or it may be built into an integrated development environment (IDE) or web browser. Code Editing allows developers to input, edit and manage templates in the CMS.

• Code - Allows users to edit content in a code based manor.


This example displays how I am able to view editable content in "Code Mode".

Crownpeak

Crownpeak


Enabling Templates

<%@ Page Language="C#" Inherits="CrownPeak.Internal.Debug.InputInit" %>

<%@ Import Namespace="CrownPeak.CMSAPI" %>

<%@ Import Namespace="CrownPeak.CMSAPI.Services" %>

<%@ Import Namespace="CrownPeak.CMSAPI.CustomLibrary" %>

Input

Input.ShowAcquireImage("#", "#");

Input.ShowTextBox("#", "#");

Input.ShowWysiwyg("#", "#", wParams, "");

Output

img src="<%=asset.Raw["intro_img"]%>" alt="<%=asset["intro_img_alt"]%>">

h1><%=asset["intro_title"]%>

p><%=asset["intro_content"]%>