Content Management

From Znode Knowledge Base
Jump to: navigation, search

Znode includes a built-in Content Management System (CMS). This system is meant to allow end users to easily manage content without technical expertise. The content is stored in XML files and database tables to allow integration with other systems. Each of the content is CMS is stored on the basis of locales.

Content Management Types in Znode


The Content Management Types are rendered in the Webstore using Widgets. Widgets are similar to Partials that help render a Control. Widgets can reuse a Control on multiple pages by rendering the widget on the Webstore page. Znode comes standard with the following Widgets, seen below.

  • Each Widget Type renders a different Control; like Banners, Product, Category, text, and etc.
  • Each Widget is contained in the database table "ZnodeCMSWidgets" where code is used as a key to render each Widget.
This example renders a widget to display the Offer Banner.

Parameters To Render a Widget

The required parameters to render a Widget are as follows:

Detail Description
Widget Code Identifies the type of widget and is used as a key to render that widget.
Display Name Name of the widget.
Widget Key The purpose of the widget is to reuse a Control on multiple pages. In order to use the same widget on different pages, we need a differentiating key which is the widget key. If we want to render the above widget "Offer Banner" on a different page then we need to use a different unique widget key.
Type of Mapping Portal Mapping, Content Page Mapping etc.
Mapping ID ID of Mapping depending upon whether it is portal mapping or content page mapping.

On rendering the above Widget on-view, its related partial views are called, thus creating the desired Control. All the related Widget partials are present in the shared folder of views in Widget folder.

In order to render a new widget, simply use the above syntax of a widget partial. Specify the widget code, its name, a unique widget key, type of mapping, and its IS. Create the partial view in Widget folder. Place the Widget partial tag on the page where you want to render your Control.

Related Links