2017 © Pedro Peláez
 

silverstripe-module textfieldgroup

A super simple convenience module for displaying text and textfields inline in the CMS

image

nathancox/textfieldgroup

A super simple convenience module for displaying text and textfields inline in the CMS

  • Monday, September 9, 2013
  • by nathancox
  • Repository
  • 1 Watchers
  • 2 Stars
  • 32 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 3 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

SilverStripe TextFieldGroup

This is intended to make any combination of text fields and labels on a single line. Eg for URLSegments prepended by the domain as a label, or for X, Y and Z coordinates for a single location., (*1)

The differences from FieldGroup are a) it takes away the minimum width of fields so things are spaced approriately; and b) if you pass in a string instead of a field it's automatically turned in to a LiteralField, (*2)

No dramatic functionality, just a convenience class for formatting., (*3)

Currently being developed on SilverStripe 3, not tested on 2.x yet., (*4)

Maintainer Contacts

Requirements

  • SilverStripe 3.0+

Documentation

GitHub, (*5)

Installation Instructions

  1. Place the files in a directory called tagitfield in the root of your SilverStripe installation
  2. Visit yoursite.com/dev/build to rebuild the database

Usage Overview

The first argument is the field label. All following arguments should be either instances of FormField or strings to be converted in to LiteralFields., (*6)

$fields->addFieldToTab('Root.Main', new TextFieldGroup('Map coordinates',
        $this->getMapLink() . '/',
        new NumericField("LocationX", "", "", 3),
        "/",
        new NumericField("LocationY", "", "", 3)
));

$fields->addFieldToTab('Root.Main', new TextFieldGroup('Subdomain',
        'http://',
        new TextField("Subdomain", ""),
        '.example.com'
));

Known Issues

Issue Tracker, (*7)

The Versions

09/09 2013

dev-master

9999999-dev https://github.com/nathancox/silverstripe-textfieldgroup

A super simple convenience module for displaying text and textfields inline in the CMS

  Sources   Download

BSD-3-Clause

The Requires

 

by Nathan Cox

form cms silverstripe