jan-vince / smallrecords

OctoberCMS plugin to store and manage records and lists
MIT License
31 stars 12 forks source link

Issue with record fields #64

Open ghost opened 4 years ago

ghost commented 4 years ago

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

4) After create, my edit form is unchanged. 5) 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

artistro08 commented 4 years ago

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.

jan-vince commented 4 years ago

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 :)