While I am not inherently a coder, I have been wanting to play with modules. So I thought this one may be a good one to play with. While it’s not simple, I’m hoping that since what I want to do is similar to something it already does, it would be a good template of sorts.
If I wanted to try and write an extension of the NumericDataTypes module to try and make this new data type, which files/folders would need to be added to? Looking through the file structure, I noted where I THINK I need to add or modify a file. Am I far off?
NumericDataTypes-Plus /*good name?*/
→ asset
→ css /*?*/
[]numeric-data-types.css
→ Js
[]numeric-data-types.js
→ Faceted browse /*eventually*/
→ Facet-data-form
[]New Document
→ Facet-render
[]New Document
→ Config
[]Module.config.php
[]module.ini
→ Data
→ Doctrine-proxies /*?*/
[]New Document
→ Src
→ Controller
→ SiteAdmin
→ FacetedBrowse /*eventually*/
[]IndexController.php
→ DataType
[]New Document
→ Datavis /*eventually*/
→ Data Set Type
[]New Document
→ Diagram Type
[]New Document
→ Entity
[]New Document
→ Faceted Browse /*eventually*/
→ Facet Type
[]New Document
→ Form
→ Element
[]New Document
→ Service
→ Delegator
[]FormElementDelegatorFactory.php
→ Faceted Browse /*eventually*/
→ Facet Type
[]New Document
→ Form
→ Element
[]NumericPropertySelectFactory.php
→ ViewHelper
[]NumericPropertySelectFactory.php
→ View
→ Helper
[]New Document
→ View
→ Common
[]New Document
→ Faceted Browse /*eventually*/
→ Facet-data
[]New Document
→ facet-render
[]New Document
The ones marked /*eventually*/ (Faceted Browse or Datavis) should be able to wait until the rest of the new data types are working elsewhere.
I figured it would be a good idea to look at how the Timestamp is set up, since it sets up multiple values to be put together as one. So that’s what I looked for in the file structure.
Instead of the radio buttons that I originally illustrated, I am looking at other ways to try and specify the order of data types. But I figured I’d start with one and work from there.