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
Unable to override Category entity on Akeneo 3 due to hard-coded form type #9868
Comments
Hi, To go forward, I updated both files by using a parameter for the class (in vendor, please don't judge me so fast... this is just for a training not a real project ^^), to be able to override it and it works. But after that I was unable to add an MediaType form element for my new "image" property of a category, but this is another problem. I guess it's possible but I just don't know how to do that because there is no other sample of MediaType property with the "old twig front" system into Akeneo :' BR, |
Hi @peleq-smile, |
Hi @peleq-smile,
make sure that the yml-file is properly loaded in Your\Custom\Bundle\DependencyInjection\Extension.php:
|
Hi @peleq-smile! We release a new fix of our documentation. It contains a fix for the "how to add a new property to a category" page. https://docs.akeneo.com/3.0/manipulate_pim_data/category/add_new_properties_to_a_category.html Please, clean your browser cache to show the new version. Regards, |
Hi,
I'm trying to override Category entity to add a new property, using Akeneo CE 3.0.10, and I have some troubles to do it.
I'm following official documentation, more or less because I know it's not always up-to-date.
I did override Category class, that's OK, but override of the Category form is not possible.
That's logic because I've just noticed that the parameter
pim_enrich.form.type.category.class
doesn't exist anymore ! The used Form Type (Akeneo\Pim\Enrichment\Bundle\Form\Type\CategoryType
) is now hard-coded 👎 into this two YAML files :Akeneo/Pim/Enrichment/Bundle/Resources/config/form_types.yml
Akeneo/Pim/Enrichment/Bundle/Resources/config/controllers.yml
... whereas in Akeneo 2 it was OK !
There is another issue about extending Category entity : #9833, I have no idea if this is linked or not.
Could you please fix this very shortly ?
Rgds,
Perrine
The text was updated successfully, but these errors were encountered: