Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Category images #781

Closed
psaikoheiko opened this issue Jul 13, 2020 · 1 comment
Closed

[FEATURE] Category images #781

psaikoheiko opened this issue Jul 13, 2020 · 1 comment
Assignees
Milestone

Comments

@psaikoheiko
Copy link

Extension version

4.2.2

Short problem description

We would like to be able to display the images of categorys in the list view but there is no possibility. Categories in backend can have images but there is no way to display them via arrays, which would be a great solution since our customers dont have a single image for each event. In order to avoid uploading the same image to every single event they would be able to upload it once for their categories which would be great to display at least a hint in the list view.

Screenshot_1

@derhansen derhansen self-assigned this Jul 13, 2020
@derhansen
Copy link
Owner

derhansen commented Jul 13, 2020

Categories in TYPO3 backend do not have an image by default. It is ext:news that adds additional fields to the category domain model (see: https://github.com/georgringer/news/blob/master/ext_tables.sql#L72)

If you want ext:sf_event_mgt to use the category domain model of ext:news, the category domain model of ext:sf_event_mgt needs to be overridden as shown below:

Add this to an extension (e.g. your sitepackage) in ext_localconf.php:

    GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\Object\Container\Container::class)
        ->registerImplementation(
            \DERHANSEN\SfEventMgt\Domain\Model\Category::class,
            \GeorgRinger\News\Domain\Model\Category::class
        );

After adding this snippet and clearing the cache, all categories in events do now use the category domain model of ext:news

image

Please do not close this issue, I will update the FAQ in the docs about this topic.

derhansen added a commit that referenced this issue Aug 16, 2020
@derhansen derhansen added this to the 5.1.0 milestone Aug 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants