Category list image

Questions around the TYPO3 integration and plugins
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
goransabo
Posts: 33
Joined: 30 Nov 2020, 17:54

Category list image

Post by goransabo » 10 Apr 2021, 17:03

Hello!
I need to add image to each category, but it must be visible in category list?
Second question is how to add video in long description of product?
Thank's & Best regards,
Goran

// Typo3 10.4.14 / Aimeos 20.10.7 / PHP 7.3 / Linux //

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Category list image

Post by aimeos » 11 Apr 2021, 17:12

goransabo wrote: 10 Apr 2021, 17:03 I need to add image to each category, but it must be visible in category list?
Use the catalog stage plugin and add an image to the category with type "stage".
goransabo wrote: 10 Apr 2021, 17:03 Second question is how to add video in long description of product?
If you have a link to Youtube or similar, you can embedd the tag within the text in the source view. The current CKEditor configuration will remove that if you save the product again so you need to add that configuration in the admin/jqadm/themes/custom.js file of your Aimeos extension for your project:

Code: Select all

Aimeos.editortags = 'div(*);span(*);p(*);iframe(*);';
See: https://github.com/aimeos/ai-admin-jqad ... min.js#L22
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

goransabo
Posts: 33
Joined: 30 Nov 2020, 17:54

Re: Category list image

Post by goransabo » 12 Apr 2021, 11:03

1. Where and how I need to add category image?

2. Yes, I have added, but aill the same problem. If I do any changes in source have only

Code: Select all

<iframe></iframe>

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Category list image

Post by aimeos » 13 Apr 2021, 13:53

goransabo wrote: 12 Apr 2021, 11:03 1. Where and how I need to add category image?
Add it here:
aimeos-catalog-media-stage.png
aimeos-catalog-media-stage.png (53.74 KiB) Viewed 5370 times
goransabo wrote: 12 Apr 2021, 11:03 2. Yes, I have added, but aill the same problem. If I do any changes in source have only

Code: Select all

<iframe></iframe>
Strange, CKEditor should leave the attributes of the iframe intact with that settings.
Look for "advanced content filter" of CKEditor to find out what the problem may be. The above setting sets CKEditor "extraAllowedContent" config.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

goransabo
Posts: 33
Joined: 30 Nov 2020, 17:54

Re: Category list image

Post by goransabo » 13 Apr 2021, 18:30

:-)
... just for info. I'm using Aimeos only on the one project and my knowledge about it is a small, very small ...
At global, the best shop software ever!!!

goransabo
Posts: 33
Joined: 30 Nov 2020, 17:54

Re: Category list image

Post by goransabo » 14 Apr 2021, 17:48

ok.
I have changed original admin.js, but video iframe still not work :-(
2nd, new question is about adding and removing users from user group.
I found this

Code: Select all

controller/common/subscription/process/processor/cgroup/name = Mygroup
but now I don't understand how to implement it ... I have 15 users groups.
When somebody buy product, adding to user group work fine.
How to add decorator for removing from user group, if subscribing expired?
best regards to all :-)

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Category list image

Post by aimeos » 15 Apr 2021, 07:07

goransabo wrote: 14 Apr 2021, 17:48 I have changed original admin.js, but video iframe still not work :-(
Like said, please have a look into the CKEditor documentation to find out how it must be configured correctly to keep the iframe attributes.
goransabo wrote: 14 Apr 2021, 17:48 2nd, new question is about adding and removing users from user group.
I found this

Code: Select all

controller/common/subscription/process/processor/cgroup/name = Mygroup
but now I don't understand how to implement it ... I have 15 users groups.
When somebody buy product, adding to user group work fine.
How to add decorator for removing from user group, if subscribing expired?
You don't need to configure your own subscription processor for customer groups. Just add the customer group as hidden attribute to the product and configure the cgroup processor to be used in your scheduler:

Code: Select all

controller.common.subscription.process.processors {
    0 = Cgroup
}
The customer groups are then automatically added to the customer when the subscription begins and automatically removed when the subscription ends (provided, you run the subscription begin/renew/end jobs regularly).
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply