smallrecords icon indicating copy to clipboard operation
smallrecords copied to clipboard

Issue with record fields

Open ghost opened this issue 4 years ago • 2 comments

Hello, I've just installed Small Records plugin inside fresh OctoberCMS. Creating new list of records works like a charm, but creating single record or editing existing one is troublesome.

Scenario:

  1. Create basic list like News. Add fields: context, images and active.
  2. Go to created list and create new record.
  3. Rendered form has too many tabs with all fields.

fresh

  1. After create, my edit form is unchanged.
  2. After save, my edit form has valid fields:

edit

This is very problematic for system users, because they must save form to edit or create any data.

System info

PHP version: tested on 7.2, 7.3, 7.4. WWW: Apache 2.4. DB: MySQL 5.7.

OctoberCMS v465

ghost avatar Apr 30 '20 11:04 ghost

This is how most plugins work with complex data relations in OctoberCMS. The plugin must first create the entry in the database. After that, you'll be able to edit the other fields based on the options you selected when you created the list. It's a small setback, but it keeps all the data organized and optimized.

artistro08 avatar May 14 '20 13:05 artistro08

Hi @dyzajash I know about this and I have it in my todo list to work this out.

Small Records is a very simple plugin :)

jan-vince avatar Aug 06 '20 07:08 jan-vince