Skip to content

Roadmap

Aurovrata V edited this page Nov 27, 2020 · 2 revisions

Rewrite of the plugin

automatic mapping

I have in mind to rewrite the factory, make it simpler, and introduce an automatic mapping function:

  1. the first text field -> maps to the title of a post.
  2. the first textarea maps to the content, else the next text field.
  3. subsequent fields all get mapped to meta fields.
  4. empty dropdown/checkbox/radio fields are left unmapped (user can map it to taxonomies).
  5. each mapped field can be changed with a dropdown (as is the case currently).

Mapping format to match ACF plugin

a number of users have complained that the mapped values do not register with the ACF created meta-fields (checkbox / files).

Ideally the plugin should,

  1. retrieve the list of meta-fields associated with the mapped post type created using the ACF plugin,
  2. save the field values to the format expected by the ACF plugin.

flag mapping as draft/published

currently post_types created with the plugin only get registered when the mapping is published.

I propose to change this. The post_type is registered once saved, and the draft/publish becomes a flag only. Only published mappings will save to posts. Draft will suspend the saving, but the post type will nonetheless exist.

This has 2 advantages,

  1. it will allow to simplify the factory class, use a single one instaed of currently distinguishing between system/plugin post types.
  2. it will allow users to suspend the saving of new submission while still being able to view posts that were previously saved.

Clone this wiki locally