Custom Web Publishing Guide

Table Of Contents
150 FileMaker Server Advanced Custom Web Publishing Guide
CDML tag name: Link Previous
The HTML between [FMP-LinkPrevious] and [/FMP-LinkPrevious] is replaced with a link to the previous range
records based on the -Max and -Skip value used to create the current page.
CDML syntax: [FMP-LinkPrevious]...[/FMP-LinkPrevious]
XSLT-CWP conversion:
1 <a href="{$link-previous}">...</a>
1 insert at top-level of document: <xsl:variable name="link-previous">
<xsl:call-template name="get-link-previous"/></xsl:variable>
1 if inside an SGML tag/attribute: <!-- CDML Converter ERROR: [FMP-LinkPrevious] not in a valid location -->
CDML tag name: Link to Record ID
Tag is replaced with a URL to a specific record in a database. The link that is generated includes all the
search and sort criteria that was used to generate the page this tag was on. The
Layout parameter is optional.
CDML syntax: [FMP-LinkRecID: Format=FileName, Layout=LayoutName]
XSLT-CWP conversion:
1 <xsl:call-template name="get-link-rec-id"><xsl:with-param name="rec-id" select="@record-id"/><xsl:with-param
name="stylesheet" select="'/FileName.xsl'"/></xsl:call-template>
1 if followed a '-format' parameter: the 'stylesheet' parameter is passed to the 'get-link-rec-id' template
1 if followed a '-lay' parameter: the 'layout' parameter is passed to the 'get-link-rec-id' template
1 if not inside an SGML attribute: <!-- CDML Converter ERROR: [FMP-LinkRecID] not in a valid location -->
Conversion example
Original CDML: [FMP-LinkNext]Next set of records[/FMP-LinkNext]
Converted XSLT-CWP: <a href="{$link-next}">Next set of records</a>
Converted Result: <a href="/fmi/xsl/stylesheet.xsl?-skip=10&-max=10&-find=">Next set of records</a>
Conversion example
Original CDML: [FMP-LinkPrevious]Previous set of records[/FMP-LinkPrevious]
Converted XSLT-CWP: <a href="{$link-previous}">Previous set of records</a>
Converted Result: <a href="/fmi/xsl/stylesheet.xsl?-skip=10&-max=10&-find=">Previous set of records</a>