Application templates


Application Templates

Application Templates pages or portions of pages. They accept the use of front-end coding languages (HTML, JS, CSS) as well as Newzulu components for the output of static and dynamic content.

Editing templates:

The Newzulu Platform CMS includes a basic template editor that uses file locking and records that last edit by time and user. The editor is accessed via the applications tab in Newzulu Platform. The web-based editor may not provide an ideal experience for a developer working for many hours on customizing the application. If you prefer a desktop editor experience, you will need to configure WebDAV for Newzulu Platform. WebDAV instructions can be found in the developer documentation. There is no template locking in place for WebDAV.

Creating a new template:

Newzulu Platform

  • 1. Select your application in Applications
  • 2. Under the Sections block on the right side of the page, click Application templates.
  • 3. Next to the title Application Templates click the New button.
  • 4. Enter the Template Name as you would like it to appear in the page title, mixed cases are accepted.
  • 5. In lower-case, type the Url that you would for your domain path (ex: www.yourapp.com/pagename)
  • 6. Select the Access checkbox if the user must be logged in to view the page.
  • 7. The default Page type is set to 'Generic'. Other options include: Log-in, Media detail, or User Profile page.
  • 8. Once you have saved the file, you can modify the information above by clicking Info on the edit page of the CMS.

WebDAV

  • 1. Select your Application from the list of folders.
  • 2. Expand the folder Application templates.
  • 3. Right-click in the folder and create a new .html file, named to your standards.
  • 4. Open the page in your editor and modify the first line - #url pagename. This is used to map the path to that page (ex: www.yourapp.com/pagename)
  • 5. To alter your page title, use <fm:PageTitle>.
  • 6. Save your page in the editor and check the changes online. Note: Template locking is not enforced in WebDAV.

Sub_Templates:

These templates are generally embedded within other pages and templates using <fm:Include name="subTemplateName">. You can pass parameters to sub_templates that allow you to create intelligent switches based on where you have included the file.

  • 1. Select your application in Applications
  • 2. Under the Sections block on the right side of the page, click Application templates.
  • 3. Scroll down to Subtemplates title.
  • 4. Click through to open the file and make changes.

See Also: