Create attribute type in 5.7
Permalink
Hi,
I need to create a new custom attribute type. I've read the developer documentation index:
http://documentation.concrete5.org/developers...
but I have only seen things about attributes but not attribute types. Finally, I found this:
http://legacy-documentation.concrete5.org/tutorials/create-a-custom...
Could anyone tell me if this tutorial is still valid in 5.7? If not, is there any piece of documentation telling how to create a custom attribute type?
Thanks,
Juan Ramón
I need to create a new custom attribute type. I've read the developer documentation index:
http://documentation.concrete5.org/developers...
but I have only seen things about attributes but not attribute types. Finally, I found this:
http://legacy-documentation.concrete5.org/tutorials/create-a-custom...
Could anyone tell me if this tutorial is still valid in 5.7? If not, is there any piece of documentation telling how to create a custom attribute type?
Thanks,
Juan Ramón
Thanks! I'll have a look.
Hi,
I've downloaded the attribute type example and tried to install it, but when I do I get the following error:
"Class \Concrete\Attribute\AttributeFreeFormMaster\Controller does not exist"
And it shows always when I try enter the dashboard/system/attributes/types page. I've been able to see the page again by deleting the row in the AttributeTypes table, but I don't know how to fix the source code so I don't get the "Controller does not exist" error after installing.
Could anyone give me a clue?
I've downloaded the attribute type example and tried to install it, but when I do I get the following error:
"Class \Concrete\Attribute\AttributeFreeFormMaster\Controller does not exist"
And it shows always when I try enter the dashboard/system/attributes/types page. I've been able to see the page again by deleting the row in the AttributeTypes table, but I don't know how to fix the source code so I don't get the "Controller does not exist" error after installing.
Could anyone give me a clue?
I've tried installing only the free-form directory in the zip file, with the same result.
Any help would be welcome. Thanks!
Any help would be welcome. Thanks!
What you need to do is download the GIT repo as a Zip file, unzip it and place the attribute-free-form-master inner directory into your packages directory on your site. Then rename it to attribute_free_form (so the path should be /packages/attribute_free_form/controller.php). Then go into your Dashboard into the Extend Concrete5 and install the package, and you should have this option in your attribute types as well as your attribute add dropdown.
It worked. Both ways (downloading the zip and using the zip clone). In addition, I've realized the problem is that I was using hyphens instead of underscores in the name of the folder.
Thanks!
Thanks!
https://github.com/Remo/attribute-free-form...
cheers