Addpixel / KirbyComments

[Kirby 2] File-based comments stored as subpages for the Kirby CMS.
MIT License
68 stars 5 forks source link

Email and url optional fields? #36

Closed jenstornell closed 6 years ago

jenstornell commented 6 years ago

I do not require email and url in my comments because my users probably don't want to give this information.

Anyway, would it be a good idea to have them optional? I can remove them from the template but I guess they will still be in the blueprint and content as empty values?

florianpircher commented 6 years ago

Email- and website-address are part of the plugin core, which is why they are stored even if empty.

Anyway, would it be a good idea to have them optional?

Both of them are optional. You can even make name optional by setting the comments.form.name.required config to false.

jenstornell commented 6 years ago

I meant that it would be optional to not save them in the content if they are empty.

Anyway, if you implement that pre hook, then it could be used to remove unneeded fields as well, keeping it clean in cases like this.

florianpircher commented 6 years ago

In version 1.5.1 unused fields are no longer stored in the page.