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 revision | ||
building_a_plugin [2011/05/20 12:27] – demiankatz | legacy:vufind_1.x_developer_manual:building_a_smarty_plugin [2018/12/19 14:12] (current) – demiankatz | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Building | + | ====== Building |
- | + | ||
- | VuFind uses the [[http:// | + | |
- | + | ||
- | Here is an arbitrary example of a plugin that interacts with the Solr data store: | + | |
- | + | ||
- | <code php> | + | |
- | filename: / | + | |
- | <?php | + | |
- | /* | + | |
- | * Smarty plugin | + | |
- | * ------------------------------------------------------------- | + | |
- | * File: | + | |
- | * Type: | + | |
- | * Name: Show Q Authors | + | |
- | * Purpose: | + | |
- | * ------------------------------------------------------------- | + | |
- | */ | + | |
- | function smarty_modifier_showqauthors() | + | |
- | { | + | |
- | global $solr; | + | |
- | + | ||
- | $solr-> | + | |
- | + | ||
- | $result = $solr-> | + | |
- | + | ||
- | // Create Output | + | |
- | $html = "< | + | |
- | foreach ($result[' | + | |
- | $html .= '< | + | |
- | } | + | |
- | $html .= "</ | + | |
- | + | ||
- | // Return Output | + | |
- | return $html; | + | |
- | } | + | |
- | ?> | + | |
- | </ | + | |
+ | // This outdated page has been deleted to prevent confusion. To view old content for historical interest, see the "Old Revisions" | ||
---- struct data ---- | ---- struct data ---- | ||
+ | properties.Page Owner : | ||
---- | ---- | ||
legacy/vufind_1.x_developer_manual/building_a_smarty_plugin.txt · Last modified: 2018/12/19 14:12 by demiankatz