Complete my Flexible Address attribute

Permalink
I've attempted to create a custom attribute for 8.1 with 5 simple text fields and a country drop down.

So far I can't get past various class issues to make it work.

Package is attached.

Please let me know how much you'd charge to make it work properly.

1 Attachment

katalysis
 
ld13 replied on at Permalink Reply
ld13
Not sure what you need...are you having a functionality issue or a styling issue? do you have a url where we can see the current form you created live?
katalysis replied on at Permalink Reply
katalysis
Code so far is attached.

It seems to install but probably not completely and when attaching it to a Member it gives errors.

STyling etc. all fine - it needs someone who properly understands classes to make it work.
Frank27 replied on at Permalink Reply
Hello,

Please join me on Skype: cis,am3. So that we can have a discussion on your requirement
as i can surely assist you with the solution for this.

Looking for your response

Thanks & regards
Frank Jones
SnefIT replied on at Permalink Reply
SnefIT
Hi,

Trying to do the same thing and also having problems with classes. See:https://www.concrete5.org/community/forums/customizing_c5/custom-att...

I think it has to do with the @ORM\Entity stuff. When using \Entity instead, it is recognized as an entity, but the mapped superclass isn't used (missing an ID field).

Please let me knof if you get this working! I'll try your code later today.
SnefIT replied on at Permalink Reply
SnefIT
I've got a custom address attribute type. See the thread mentioned before! Maybe it can solve your problem as well.
katalysis replied on at Permalink Reply
katalysis
In the end I got the client to agree to using a standard address attribute.

I'd be interested to see how you made yours work though if you were willing to post the code.

A couple of developers looked at this for me and they both struggled with it.
SnefIT replied on at Permalink Reply
SnefIT
Which C5 version are you using?

When using 8+ there are some changes with the entity parts. (using @ORM\...). This in combination with the required application version.

I've set the required application version to 8.x and changed the autoloading stuff. Because I set it to 8.x, the /src/.... autoloading is not working anymore.

See:https://documentation.concrete5.org/developers/packages/custom-datab...

I'll create a package with an example attribute (when/if that works). Should be done in the weeked...
katalysis replied on at Permalink Reply
katalysis
We we're using 8.1 on this which I think was why we had issues.
SnefIT replied on at Permalink Reply
SnefIT
Using 8.1 here also. I'll try to make the package as soon as possible!
SnefIT replied on at Permalink Reply
SnefIT
Try to change the required app version to 8+. See if that helps.