*
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
+
/**
* Converts comma separated list of pages uids to html unordered list (<ul>) with speaking titles
*
class PagesViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper {
/**
+ * Render unordered list for pages
+ *
* @param string $uids
* @return string
*/
while ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
$content .= '<li>' . $row['title'] . ' [' . $row['uid'] . ']</li>';
}
+ $GLOBALS['TYPO3_DB']->sql_free_result($res);
return '<ul>' . $content . '</ul>';
}