blog icon indicating copy to clipboard operation
blog copied to clipboard

List posts by author as widget

Open derBoogie opened this issue 4 years ago • 4 comments

Feature Request

It would be nice to have the posibility to list posts by author, like list posts by category or tag.

derBoogie avatar May 19 '21 09:05 derBoogie

That already exists https://github.com/TYPO3GmbH/blog/blob/master/Resources/Private/Templates/Post/ListPostsByAuthor.html https://github.com/TYPO3GmbH/blog/blob/master/Classes/Controller/PostController.php#L251

helsner avatar May 19 '21 10:05 helsner

Hi @helsner, thanks for your fast reply.

I need to implement a select box with authors in blog listing as a filter option.

For categories and tags I used widgets: {blogvh:data.contentListOptions(listType: 'blog_categorywidget')} <f:cObject typoscriptObjectPath="tt_content.list" data="{contentObjectData}" table="tt_content"/>

{blogvh:data.contentListOptions(listType: 'blog_tagwidget')} <f:cObject typoscriptObjectPath="tt_content.list" data="{contentObjectData}" table="tt_content"/>`

But for authors there is no widget to render a list of authors.

Do you have a idea how to generate a list of authors in blog listing?

derBoogie avatar May 19 '21 10:05 derBoogie

Ah. the context of "widget" has been missing there. You might wanna change that in the description and title of the issue for better understanding.

I don't know what the exact result should look like, but just like the other widgets the "WidgetController" could take care of that and handle authors the same it does with e.g. tags. Tag are connected to a post just like the author, but can standalone and their usages listed for multiple posts independent

helsner avatar May 19 '21 11:05 helsner

Ok, I will try to implement this in the same way as the other widgets.

derBoogie avatar May 19 '21 11:05 derBoogie