Working with Dynamic Content¶
There are two types of content in Flamingo Cloud IDE templates – static and dynamic.
Static content is an arbitrary HTML code located in template.
Dynamic content is HTML code taken from original desktop site page by Flamingo and is updated automatically on the mobile website as soon as it changes on the original source through administrative tools of the website CMS or any other way.
Dynamic content feature is supported in Flamingo with the help of browser built-in functionality offered by W3C standard XPath 1.0. You can learn more about XPath language at http://www.w3.org/TR/xpath/ .
Flamingo solution provides two ways of getting content from original pages by XPath:
- Template parameters usage.
- Flamingo.XPath API function usage.
You can use both these ways in your template code.Flamingo.XPath function can be used inline in template code as well.
With these ways, you can use dynamic content elements taken from original pages in template code. In flamingo, this operation is called “mapping.”
Note
You should keep in mind that special syntax is used to insert dynamic content into your templates.
This section contains information on working with dynamic content in Flamingo IDE.
This section tells how to display any dynamic content in your template. Provided examples show various cases where such feature may be useful.
This section describes how to use different conditions in your templates.
This section tells how to use the same block of HTML code several times. Provided examples show various cases where such feature may be useful.
This section describes how to use snippets in your template.
This section describes how to use custom statements in your templates.
Generating XPath/CSS Statements
This topic tells how to generate XPath/CSS statements from original pages of your site.
See also