About Facebook like TextboxList

A great field for e.g. tags and names.

Category 1Field Types
Fieldtype modules that represent a data type used by fields.
Category 2Input Fields
Inputfield modules that provide a UI input widget in the ProcessWire admin.
Release StateStable
Should be safe for use in production environments. *
Authornico
Module Version1.2.0
Class NameTextboxList
Compatibility2.3, 2.4, 2.5, 2.6
Date AddedJune 14, 2014
Last UpdatedMay 7, 2015
Recommended ByNew recommendations may take up to 1 day to appear.

Instructions

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

README

TextboxList

As there is a new Module called InputfieldChosenSelect which uses the same interface but works as a Page Field what is probably even smarter I discontinue supporting this module here. But if you should prefer a comma sepearated list instead of real pages feel free to still use it.


This inputfield adds Facebook like TextboxLists to ProcessWire.

The field's contents are stored as a comma separated list in the database.

Here is a small example on how to output it in your template:

// "tags" is the name of the field
$tags = $page->tags;
// split the comma seperated list
foreach(explode(',', $tags) as $tag) {
  echo trim($tag).'<br>';
}

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.