Add path: Application --> Page, click "New" button to create a new page.
This will open the page editing window
Kooboo produces final page out based on defined configuration values. See below screen for an explaination.
Layout template
The layout to use. Layout template contains position tag and HTML code.
Navigation
Pages can be used on menu/navigation.There is API methods to query navigation tree.
Nav Parent:The parent page on navigation tree.
Show In Menu: Appear on navigation tree or not
Navigation Text: Link Text
Navigation Order: Sort order on display
For more information about Navigation, please refer to the document about menu.
URL & Parameter
URL: URL is used for query string parameter values. What kind of URL needed is determined by the content templates loaded into this page template. Links to this page need to pass in those parameters. By default, parameter will be pass through in the format of query strings. For example, contented=123&PageIndex=2. You can customize them to whatever you like. For example, {ContentId}_something_{PageIndex}. This can be used for the purpose of SEO.
DefaultParam: Default Parameter values
Data Rule
Data rule is Kooboo's way for data access which binds real business data (from content) to templates. Data rule can be defined on pages or content templates. Below are some basic concepts of Data Rule.
DataName: Returned object name of this data rule. In above screen, we defined the name as "Content", so in the content template,we need to use this.GetContent("Content") to access the data.
ValueType: The type of object to return. For example, List means a collection of objects, object means one object.
Folder: The folder which contains the content to be retrieved.
Value Condition: The WHERE condition in standard SQL statement. You can use the value from querystring as well. In the "Advanced" tab, there is a possibility to customize your URL.
Plugin
Kooboo is an extensible framework. Developers can use standard ASP.NET MVC to write extensions. PagePlugin is one type of extension. It is an extension without UI.
Kooboo offers 4 API methods in this type of extensions. You can use standard request.form or request.querystring to get desired data. Below screen is the defined interface for PagePlugin
///
///
///
public interface IControllerPlugin
{
///
/// Initializes the specified controller.
///
/// The controller.
void Initialize(CommonController controller);
///
/// Pres the get execute.
///
///
/// if return not null,will return the ActionResult to skip the default logic.
///
ActionResult PreGetExecute();
///
/// Pres the post execute.
///
///
/// if return not null,will return the ActionResult to skip the default logic.
///
ActionResult PrePostExecute();
///
/// Afters the get execute.
///
/// The action result.
///
ActionResult AfterGetExecute(ActionResult actionResult);
///
/// Afters the post execute.
///
/// The action result.
///
ActionResult AfterPostExecute(ActionResult actionResult);
}
Component
You can insert component to a page. Component includes Content template, Module extension and Web form, each with a different icon. Positions are defined in the layout template.
Select a position and insert a component. If a Content template contains parameters, you can assign a value to a parameter directly as well.
There is another way of adding components into a page. On the top menu of page window, click the menu called "visual design", it will open the visual designer. You can then drag and drop components into page positions.
