fnagel / t3extblog

A record based blog extension for TYPO3 CMS. Easy to use and packed with features (incl. comments, subscriptions for comments and posts, Wordpress like subscription manager, reasonable email sending in FE and BE, GDPR ready, BE modules, Dashboard widgets, RSS, Sitemap, ...). Flexible and powerful!

Home Page:http://typo3.org/extensions/repository/view/t3extblog

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make comment email optional

msollmann opened this issue · comments

Would it be possible to remove the hard coded "required"/"notEmpty" attribute for the email field in comments? In my opinion it is not required by the GDPR, so it wolud be nice to make it configurable via TS.

That would need some more changes, doesn't it? Like without email we cannot process subscriptions and need optional validation based on that TS value too. Not sure if there's some more thing to consider.

Would you mind adding a PR for that change? I'm still busy trying to make the extension TYPO3 10 compatible...

Some references:
https://github.com/fnagel/t3extblog/blob/master/Resources/Private/Partials/Comment/FormFields.html#L38
https://github.com/fnagel/t3extblog/blob/master/Classes/Domain/Model/Comment.php#L52-L53

Didn't know that it is so complicated because I do not use the subscribe function. I only changed the model, template and TCA. I am also too busy for doing a substantial modification.

I'm happy you made it work for your project! Would you mind to share you changes here for anybody else?

In general, it's something to consider and not THAT complicated to accomplish. And you're definitely right, an email address is not really required to comment. Would be a nice minor feature to have. So here is...

What needs to be done:

  • Add dynamic (optional) required validation for comment email property
  • Make comment email validation configurable using TS
  • Add check for email and subscription checkbox incl. form error message
  • Add template condition for comment email required attribute
  • Adjust subscription logic

@msollmann I've created a branch with optional comment email address support.

See https://github.com/fnagel/t3extblog/tree/feature-comment-email-optional

Would you mind testing this?

Any feedback on this?

Can not test it because I am using Version 5 on TYPO3 9.
Thank you anyway!

Ahh ok. Thanks for the info. I will do some more tests and merge this to master soon...

Merged to master. Will be included in next release.