SEARCH:

AndroPage Smarty

AndroPage's can not only be defined to use an automatic layout but they can also be defined to use a template

There a couple of extra properties that can be used on a AndroPage using Smarty

AndroPage Smarty Properties

Propery Type Parent Description
onerow Y/N section This property will let you acess your results in the smarty template without having to enclose the template in a foreach/section loop
nofilter Y/N options This property allows all records to be pulled without asking for something to filter on
compare Refer to:
Chain Comparison Expression
column This property specifies how to compage the uifilter to this column
uifilter string N/A This property specifies how to filter the results (WHERE clause)
template string N/A This property tells andropage the Smarty template you wish to use

The smarty template will have a variable assigned to it the same name of the section. If you do not specify a section, a section called default will be applied.

If you want this page to be public please see the section of Web Programming- Public Pages

Sample AndroPage Smarty YAML file

   1:options:
   2:        title: Reviews
   3:        
   4:section reviews:
   5:        table books:
   6:                column name_book:
   7:                        compare: = @writtenby
   8:                column isbn:
   9:        table reviews:
  10:                column ts_ins:
  11:                column uid_ins:
  12:                column review:
  13:        
  14:
  15:uifilter writtenby:
  16:        description: Written By
  17:        type_id: vchar
  18:        colprec: 50
  19:
  20:template: p_reviews.tpl