Hi! At Pulse Style we create all sorts of fun stuff for the very talented CMS, Pulse.
Super Include is a PHP function for Pulse CMS that allows you to include blocks outside of the main Pulse page area and still process Pulse tags within them.
Pulse Tags (short codes) are a great way to easily and quickly add complex or repetative content to your blocks or posts. However you can only use Pulse tags within the main page area of the template:
<?php echo $parsedown->text($content); ?>
Outside of the main page area you would normally include your block or gallery the Pulse 3 way;
<?php include("path/block.txt"); ?>
This works well but, as mentioned, any short codes aren't processsed so you can't add a gallery short code, for example, to your included block.
Super Include works in the same way as the standard PHP include statement but will also pre-precess any embedded short codes.
Download the PHP script and FTP the superinclude.php file into the template folder alongside the layout.php file.
In your layout.php template file add the following code to the top of the document;
<?php include("superinclude.php"); ?>
Lastly include a block as you would normally but use the superinclude function;
<?php superinclude("content/blocks/my-block.txt"); ?>
Pulse is a simple, yet powerful content management system and is ideally suited to small or medium sized web sites.
We've developed a number of plug-ins, themes and galleries for Pulse to allow you and your clients to add rich content to your sites quickly and easily.
Pulse Style is run by Tim Plumb who has been using Pulse for both personal and commercial projects since 2012. Over that time he's created a number of plug-ins, themes, custom galleries and other scripts for the CMS.
Stay in touch by signing up for our (infrequent) email newsletter with details on what's new from Pulse Style.