MashZone NextGen 10.2 | Appendix | Legacy Presto components | Mashables and Mashups | Views for Mashups and Mashables | Built-in MashZone NextGen Views | Template View
 
Template View
 
Create a Custom View
Map Result Fields to the Template
Map Results Fields That Contain HTML Markup
Iterate Through Repeating Results
Add Conditional Logic
Use CSS in Template Code
Use Images in Template Code
Use JavaScript in Template Code
Examples
This desktop-only view allows MashZone NextGen developers to create custom views for specific mashable information sources or mashups.
Note: This view is a beta feature.
MashZone NextGen developers can also create custom views that plug into the MashZone NextGen View Gallery so that they can be used with many mashables or mashups.
Custom views and templates combine HTML code with template syntax to map result fields to the appropriate locations within the HTML markup. This uses some aspects of the jQuery templating syntax. You can loop through repeating structures, handle conditional logic to generate appropriate HTML, display results that contain HTML markup and merge result data to produce the custom view.
Note: Custom views created with the Template view have two limitations:
*Custom views are not supported for mobile devices. The view can only be shown in desktop browsers.
*You cannot define topics or events that can be used to wire apps together in workspaces.
Users should be familiar with HTML and optionally CSS and JavaScript to use the Template view to create a custom view for an artifact. See the following sections for instructions and examples:
*Create a Custom View
*Map Result Fields to the Template
*Map Results Fields That Contain HTML Markup
*Iterate Through Repeating Results
*Add Conditional Logic
*Use CSS in Template Code
*Use Images in Template Code
*Use JavaScript in Template Code
*Examples

Copyright © 2013-2018 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Innovation Release