<emit source="sb-search"></emit>
Provided by module: CMS: Tags
This plugin
makes it possible to list all files matching a specified content-type
or to locate a file by matching a specified string. The plugin uses
the sitebuilder search "Smartsearch" to locate the files. The
"Smartsearch" engine traverses each directory from the present
location and upwards to the root. See the <emit dir>(SB) plugin for available entities.
Note!
|
All <emit> attributes apply.
|
Attributes
- content-type="content-type"
-
Find files matching this content-type. If supplied, the file
attribute is ignored.
<form>
<select name="template">
<emit source="sb-search" content-type="sitebuilder/xsl-template">
<if variable="_.selectable == yes">
<option value="&_.filename;">&_.title;</option>
</if>
</emit>
</select>
</form> |
- file="filename"
-
Find files matching this filename. Will be ignored if
content-type is provided.
<emit source="sb-search" file="common.xsl">
The file '&_.filename;' is located at &_.path;.
</emit> |
- location="path"
-
Find files from this location. If not provided the search starts at
the current page's location.