Customizing the attribute editing form in composer for custom page type

I’m trying to change the display of the text type attribute form. If I place the modified attribute form in application/attributes/text/form.php then everything is fine, it is used. But if I place it inside a package, for example packages/my_pkg/attributes/text/form.php then the system doesn’t see it, which is logical.

How do I correctly tell the system that it should look in my_pkg?
Thanks in advance for the answers.

@kvt

Please check the official documentation first.

This document is for customizing the attribute form for FrontendFormContext, but you can also do the same for DashboardFormContext.

Thank you. Yes, I read this article, but it’s about customizing Express attributes. How can I do the same for a Collection attributes? The article uses Concrete\Core\Express\Controller\Manager to tell the CMS which controller to use. But what about attributes that are not related to Express?

I solved my problem, maybe someone will find it useful. I made a new attribute by inheriting it from the Text attribute, and registered it in the system. This made it possible to add an attribute display form to the package.