Search in Cms
The form
Create a html form like:
<form action="search.jsp"> <input type="text" name="CmsFileManager_search"/> <input type="submit" value="search"/> </form>
search.jsp (taglib)
to enable the search result you can use following tag code (you can also load a xsl instead of using "inline")
<corinis:cms function="search" xsl="inline"> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:template match="/"> <xsl:choose> <xsl:when test="/CMSLIFEFILEMANAGER/RESULT/@results = 0"> Nothing found. </xsl:when> <xsl:otherwise> <xsl:for-each select="/CMSLIFEFILEMANAGER/RESULT/DOCUMENT"> <a href="{CMSFILEMANAGER/ENTRY/HREF}"> <xsl:value-of select="CMSFILEMANAGER/ENTRY/NAME"/> </a> </xsl:for-each> </xsl:otherwise> </xsl:choose> </xsl:match> </xsl:stylesheet> </corinis:cms>
