Experimental project
This is a sandbox project, which contains experimental code for developer use only.
A simple YAML-based means of adding blocks, pages and tokens to Drupal.
Concisely, YNot allows you to use your favourite text editor to add HTML/PHP files to a site directory and have their output available as blocks, pages or tokens (or all three) within drupal.
Y?
- so global content created by admins can be version controlled
- so we can use our cool text editors
- so we don't have to create content in dev that clashes with content in the production database - keep user content in core tables and admin content in files
- because sticking full HTML, css or javascript in a textarea in the interface is nasty, last-ditch hack and we've all done it. Goodbye to that.
- but using a token to place your custom block/markup in the middle of user content is the right way to do it. YNot facilitates this nicely.
Brief Example
The following defines both a block and a token.
---
name : An example ynot block
description : An example block, also available as a token.
tokenize : true
block_info : true
process :
text_format : full_html
---
<h2>Hello, world</h2>
I am a block, but I'm also a token
Fuller examples are available in the README and the examples module that ships with YNot.
Project information
- Module categories: Content Editing Experience, Developer Tools
- Created by clancyhood on , updated