Skip to content

A small statamic plugin that enables you to predefine the word combinations used to slabText a headline

Notifications You must be signed in to change notification settings

freqdec/slabtext-statamic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Statamic slabText Plugin

The slabText plugin enables you to predefine the word combinations used when slabtexting a headline.

Installing

Download the php file and add it to a folder named slabtext, itself resident within the /_add-ons/ folder.

Example Tag:

{{ slabtext title="{{ title }}" }}

Example Template Use:

<h2><a href="{{ url }}">{{ slabtext title="{{ title }}" }}</a></h2>

Parameters

Title title

The text to be given the slabtext treatment

title="{{ title }}"

Delimiter delim

Default: |

The delimiter to use when splitting the text

delim="^"

Notes

Remember to actually add the slabtext.js file to your template and call the $.slabText method to initiate the script as described in the demo page.

About

A small statamic plugin that enables you to predefine the word combinations used to slabText a headline

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages