Sorry, this page is only available in one language

ShowWysiwyg

Suggested dropletname: ShowWysiwyg

Published by: dbs

Display one defined WYSIWYG section

global $database;
$content = '';
$section = isset($section) ? intval($section) : 0;
if ($section) {
 if (is_readable(WB_PATH.'/modules/wysiwyg/view.php')) {
 // if valid section is given and module wysiwyg is installed
 $iOldSectionId = intval($section_id); // save old SectionID
 $section_id = $section;
 ob_start(); // generate output by regulary wysiwyg module
 require(WB_PATH.'/modules/wysiwyg/view.php');
 $content = ob_get_clean();
 $section_id = $ioldSectionId; // restore old SectionId
 }
}
return $content;

The parameter needed is the section id of the content you want to include.

Usage:

[[ShowWysiwyg?section=10]]



« Previous droplet | Overview |