Author:
brockpetrie
Version:
3.0 beta 2
Released:
30 September 2013
Category:
Field Types

Description

This field provides a method to dynamically add groups of text fields and text-representable fields (including radio, checkbox and dropdown inputs) to an entry. An example of its use would be for creating tracklists in a section for record albums. This extension would allow you to create as many track entries in each album entry as needed.

Usage

  1. Add the dynamictextgroup folder to your Extensions directory
  2. Enable the extension from the Extensions page
  3. Add the Dynamic Text Group field to your section, then save your section to enable the Field Editor
  4. Go nuts

Field Editor

The Field Editor allows for easy manipulation and customization of each field's instance. When adding a new subfield, the label MUST be unique or it'll crash and burn. This is because it names the SQL columns based on your input, and SQL column names must be unique.

v3.0 now uses Select2 as its select box mechanism. This means that dynamic values in your select list are now possible, though you'll have to get your hands pretty dirty by creating an instantiation function in assets/dynamictextgroup.publish.js (instantiating it with a unique classname), and then entering that classname (without the leading .) in the Custom Override field within the Select Box field's options dropdown. This will attach your unique class to the select element, allowing for your jQuery instantiation plugin to find it and do its magic. I've included an example that dynamically pulls movies from Rotten Tomatoes to give you a starting point; just enter 'rottentomatoes-example' in the Custom Override option (please don't abuse my API key, I included it as a kindness; go register for your own if you want to actually use it, it takes like 20 seconds). In the distant future I'd like to make implementing these custom selects more user-friendly, but the potential use cases are so varied that it's scary and daunting. Anyway, with a bit of tinkering, it shouldn't be too hard for you to set this up to pull dynamic data from your Symphony site via the APIPage plugin.

Change log

Version 3.0 beta 2

  • Symphony 2.3.3 compatibility.
  • Updated jQuery UI to 1.10.3.
  • Added error message to field on entry page when a schema hasn't been created via the Field Editor. (It used to just cause a PHP error and die).

Version 3.0 beta 1

  • Symphony 2.3 compatibility.
  • Switched Select Box mechanism to use Select2, so it's now Select Box on steroids. Dynamic select values and more!
  • Just a heads up: I'm planning on renaming this extension to Dynamic Field Groups at some point in the future, so brace yourselves.

Version 2.0

Version 1.0

  • Initial release. See v1.0

Repository

https://github.com/brockpetrie/dynamictextgroup/tree/development

Discuss this Extension

Screenshot

dynamictextgroup_v3.0beta2-1380604942.png

Compatibility

2.7.10 Unsure
2.7.9 Unsure
2.7.8 Unsure
2.7.7 Unsure
2.7.6 Unsure
2.7.5 Unsure
2.7.4 Unsure
2.7.3 Unsure
2.7.2 Unsure
2.7.1 Unsure
2.7.0 Unsure
2.6.11 Unsure
2.6.10 Unsure
2.6.9 Unsure
2.6.8 Unsure
2.6.7 Unsure
2.6.6 Unsure
2.6.5 Unsure
2.6.4 Unsure
2.5.4 Unsure

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details