About Textarea Markup

Markup, plain text and optionally values from other fields as a non-editable, run-time field visible in Page Edit.

Category Input Fields
Inputfield modules that provide a UI input widget in the ProcessWire admin.
Release StateStable
Should be safe for use in production environments. *
Authorteppo
Module Version1.0.4
Class NameInputfieldTextareaMarkup
Compatibility2.4
Date AddedJune 1, 2014
Recommended ByNew recommendations may take up to 1 day to appear.

Instructions

This module's files should be placed in /site/modules/InputfieldTextareaMarkup/
How to install or uninstall modules

README

Textarea Markup inputfield for ProcessWire CMS/CMF

Textarea Markup inputfield for ProcessWire CMS/CMF.Copyright (c) 2014 Teppo Koivula

Intended for outputting markup as help or commentary among other inputfields,mainly in Page Edit context. Loosely based on InputfieldMarkup from core, but extends textarea to allow overriding markup on a per page basis by superuser.

Getting started

Copy (or clone with git) InputfieldTextareaMarkup folder to /site/modules/, goto Admin > Modules, hit "Check for new modules" and install Textarea Markup.

After installing the module create new "Textarea" field and configure it to useTextareaMarkup as it's inputfield. Via "Input" tab in field settings you can set default output for the field and optionally hide field label entirely.

Fied output can be configured on a per-page basis by superusers, otherwisedefault value from field settings is used. Output can contain text, HTML markup and values from other fields.

To output values of other fields, embed names of those fields in your outputstring using format {{field_name}}. Example:

Hello world, I'm a {{template}}, my name is {{name}} and my ID is {{id}}!

For basic-page with ID 1001 and name "About" this should output following:

Hello world, I'm a basic-page, my name is About and my ID is 1001!

License

This program is free software; you can redistribute it and/ormodify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public Licensealong with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

(See included LICENSE file for full license text.)

Comments

No comments yet. Be the first to post!

Post a Comment

Your e-mail is kept confidential and not included with your comment. Website is optional.