mpfserver Manual
 
 
 treelib | creating a library-tree for use with mpfserver
mpf:xml | importas=treelib

this lets you create a tree, containing one or more (sub-)libraries
Accessing Variables
use token-structure as shown below to display a list of all xml-tags in tree-library or lookup a values of a specific xml-tag

{mpf:link  }
/[myattrib]
name identifier attribute 
url assembled url 
parse parse document for mpf-tokens 
found returns "1" if search was successful 
[...] any other defined attribute 
|| convert=[lowercase|uppercase|upperfirst]
convert value string
|| encode=[url|html|html-chars|crypt]
encode value to another format
|| trim=[left|right|both]
remove whitespaces from value
|| convert_section=[lowercase|uppercase|upperfirst]
convert section data (for use with closing token only)
|| parse_section=[yes|no]
parse section data for mpf-tokens (for use with closing token only)
|| encode_section=[url|html|html-chars|crypt]
encode section data to another format (for use with closing token only)
|| trim_section=[left|right|both]
remove whitespaces from section data (for use with closing token only)
|| [opr][condition]
condition may be used to check value

{mpf:linklib  }
/[name]
you may lookup values from list by "name"-attribute ([myattrib])
||count
use this parameter to count number of items in list (a list/array will not be initialized)
||recs=[number]
this parameter is for use of integrated page partitioning. in combination with "count"-parameter token will return number of pages
||page=[number]
use this parameter to access pages if "recs"-parameter is set to restrict number of records per page
 
 
2004 by master-p-formance.All rights reserved.
 
This manual is generated on the fly using mpfserver and MPFT (mpf transformation).