antcooper / nl2li

Craft CMS Twig filter for newline to list item

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nl2li Twig filter

Simple Twig filter to turn a multiline text field into list items.

Installation

  1. Upload the nl2li/ folder to your craft/plugins/ folder.
  2. Go to Settings > Plugins from your Craft control panel and enable the nl2li plugin.

Usage

<ul>
    {{ entry.specification|nl2li }}
</ul>

Changelog

1.0

  • Initial release

About

Craft CMS Twig filter for newline to list item

License:MIT License


Languages

Language:PHP 100.0%