address attribute

Permalink 1 user found helpful
Hi,

I need to display a line of text next to the postal code. Because its inside the address attribute i cant find the physical existance of this field.

anyone know where i should look.

thanks in advance

pixelfish
View Replies: View Best Answer
ryan replied on at Permalink Best Answer Reply
ryan
Override the address attribute:

copy:
/concrete/models/attribute/types/address
to:
/models/attribute/types/address

Then modify: /models/attribute/types/address/form.php to your liking
Ricalsin replied on at Permalink Reply
Ricalsin
...that would enable you to add your text line while the attribute is in the "form" mode. But to add text in the displaying of the attribute you would need to modify the "getDisplayValue" method within the same directory's controller file.
shotrox replied on at Permalink Reply
shotrox
can you explain more about the getDisplayValue thing? I am trying to customize the member page so it can be used as a membership roster for an organization. For that I need access to the single elements of the memberaddress attribute so I can implement linebreaks between the address elements. I search everywhere and am not able to figure it out.
Any help would be greatly appreciated.

Thanks
EvanCooper replied on at Permalink Reply
EvanCooper
You might also need to modify the composer.php file in your override at /models/attribute/types/address/composer.php