Sorry, this page is only available in one language

ShowMultipleWYSIWYG

Suggested dropletname: ShowMultipleWYSIWYG

Published by: rsmith

Display multiple identified WYSIWYG Sections
Modification of the ShowSection Droplet, ShowMultipleWYSIWYG will display the WYSIWYG sections that you identify

global $database, $wb;
$sections=explode(",",$section);
reset($sections);
array_unshift($sections," ");
while($sectionid=next($sections)){
  $get_content = $database->query("SELECT content FROM ".TABLE_PREFIX."mod_wysiwyg WHERE section_id = '$sectionid'");
  $fetch_content = $get_content->fetchRow();
  $content = $content.($fetch_content['content']);
}
$wb->preprocess($content);
return $content;

Usage:

[[showmultiplewysiwyg?section=10,12,15,20]]

 



« Previous droplet | Overview | Next droplet »