Warning: This page has not been updated in over over a year and may be outdated or deprecated.
legacy:vufind_1.x_developer_manual:building_a_smarty_plugin
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
building_a_plugin [2007/11/20 20:42] – asnagy | building_a_plugin [2015/12/11 19:15] – demiankatz | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Building | + | ====== Building |
- | VuFind uses the [[http://smarty.php.net/ | + | VuFind uses the [[http://www.smarty.net/ |
- | Here is an arbitrary example of a plugin that interacts with the SOLR data store: | + | Here is an arbitrary example of a plugin that interacts with the Solr data store: |
<code php> | <code php> | ||
Line 11: | Line 11: | ||
* Smarty plugin | * Smarty plugin | ||
* ------------------------------------------------------------- | * ------------------------------------------------------------- | ||
+ | * File: | ||
* Type: | * Type: | ||
* Name: Show Q Authors | * Name: Show Q Authors | ||
Line 26: | Line 27: | ||
// Create Output | // Create Output | ||
$html = "< | $html = "< | ||
- | foreach ($result as $author) { | + | foreach ($result[' |
- | $html .= "< | + | $html .= '<li>' . $record[' |
} | } | ||
$html .= "</ | $html .= "</ |
legacy/vufind_1.x_developer_manual/building_a_smarty_plugin.txt · Last modified: 2018/12/19 14:12 by demiankatz