mpfserver Manual
 
 
 Examples | creating a library-tree for use with mpfserver
display value
{mpf:link/name}
use as conditional section (use with closing token)
{mpf:link/cat||==main}
... will be returned if ok ...
{/mpf:link/cat||==main}
store value in myVar (use as embedded token)
{mpf:set=myVar||{mpf:link/cat}}
display a list
{mpf:linklib/name}
... {mpf:linklib/name} ...
... {mpf:linklib/url||!=} ...
{/mpf:linklib/name}
lookup value from list
{mpf:linklib/url/home}
lookup value from list and store in myVar (use as embedded token)
{mpf:set=myVar||{mpf:linklib/name/home}}
passing a search string to page using GET-method
http://www.mydomain.com/myfile.php?search="master+switzerland"
use of count parameter

display number of records in list:
{mpf:linklib/name||count}

display number of pages (five records per page):
{mpf:linklib/name||count||recs=5}
use of page partitioning

display list:
{mpf:linklib/name||recs=5||page={mpf:param/get/pg}}
{mpf:linklib/name}
{/mpf:linklib/name||recs=5||page={mpf:param/get/pg}}

display page links:
{mpf:loop={mpf:linklib/name||count||recs=5}}
<a href="{mpf:url={mpf:link/url}||pg={mpf:loop/key}}">{mpf:loop/key}</a>
{/mpf:loop={mpf:linklib/name||count||recs=5}}
search functionality (fulltext-search)
you may use fulltext-search by passing a parameter named something like "search" by POST- or GET-method. you may access number of found links by using token with the following structure:
{mpf:linklib/found||count}
 
 
2004 by master-p-formance.All rights reserved.
 
This manual is generated on the fly using mpfserver and MPFT (mpf transformation).