Scripts for Pulse

Hi! At Pulse Style we create all sorts of fun stuff for the very talented CMS, Pulse.

Pulse Script icon

Super Include

version 1.0

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.

What does the script do?

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.

Installing the script

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"); ?>

Super Include

Version 1.0
Requires Pulse 4.0 or above
Last Updated 7th September 2016

What is Pulse?

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.

About Pulse Style

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.

Tim can also be found over at Plumb Design, or making cool stuff for Freeway Pro over at Freeway Style and Freeway Actions. Pop by and say hi!

Sign up for news and offers

Stay in touch by signing up for our (infrequent) email newsletter with details on what's new from Pulse Style.