cdaecke / md_unreadnews

TYPO3 extension to add a unread flag for feUsers to a news record.
Other
1 stars 1 forks source link

Incompatible with md_newsfrontend? #1

Open AureliusHogan opened 3 years ago

AureliusHogan commented 3 years ago

Hi, thanks for this extension, it's great and works fine with georgringer/news.

But when using georgringer/news v 8.4 and mediadreams/md_newsfrontend v 2.0 the records for the md_unreadnews are only created for news produced in BE with georgringer/news. Viewing your hook tells me, that this actually is not possible. (There are no settings in constants done for feGroup or categories).

Is this the correct behavior? Could it be that the hook is not touched when md_newsfrontend is used to create news? Do I have to rewrite the md_unreadnews hook to use it with the signal slots that md_newsfrontend offers?

Any idea about this?

cdaecke commented 3 years ago

Yes, you are absolutely right. The unread info is only created, if the news is created in the TYPO3 backend.

I would also go for the signal slot createActionAfterPersist in ext:md_newsfrontend.

maartenmandemaker commented 3 years ago

We might need this as well. Perhaps we can sponsor (part of) this feature?

cdaecke commented 3 years ago

At the moment I am very short on time, so I can't provide a solution quickly.

You are welcome to share your thoughts about the implementation or even create a pull request.

AureliusHogan commented 3 years ago

So I was working on a solution for this problem. It depends on:

That works fine.

cdaecke commented 3 years ago

@AureliusHogan Sounds nice!

The signal slots createActionAfterPersist, updateActionBeforeSave and deleteActionBeforeDelete should be right, if you want to change the unread info on update and delete as well.

I would be interested in the other changes, that you made to ext:md_newsfrontend. Is there something, which you would like to see incorporated in the extension?

Do you mind sharing your code for the slot for others?

AureliusHogan commented 3 years ago

I'm thinking of moving the slot code to this extension. I'll create a pull and upload it as soon as I'm ready.

For md_newsfrontend I'm working on:

Lots of changes ... I hope soon.

AureliusHogan commented 3 years ago

So I've moved my slot code to md_unreadnews in the fork I created. Please have a look at it.