dawb Posted April 10, 2013 Share Posted April 10, 2013 (edited) Hi, I am having issues with the Block Contact Infos module displaying the address incorrectly on the front end. I am using the standard template and have modified it. For some reason it displays the address as: Address line 1 Address ine 2 City, 8000 New Zealand Instead of how it appears in the admin area: Address line 1 Address ine 2 City, 8000 New Zealand Does anyone have any thoughts on how to fix this? I have tried adding <br /> inside the textarea but these are stripped out by the module. Thanks Edited July 29, 2013 by vekia (see edit history) Link to comment Share on other sites More sharing options...
dawb Posted April 18, 2013 Author Share Posted April 18, 2013 Anyone know of a solution to this? Seems to be broken by default? Link to comment Share on other sites More sharing options...
dawb Posted April 22, 2013 Author Share Posted April 22, 2013 No one has a fix? Have tried everything I can think of.... Link to comment Share on other sites More sharing options...
Tibo Tel Posted July 6, 2013 Share Posted July 6, 2013 up, Dawb did you find a solution ? same problem no solution for the moment. Link to comment Share on other sites More sharing options...
dawb Posted July 29, 2013 Author Share Posted July 29, 2013 Hi, You can fix this by adding in nl2br() to the output in blockcontactinfos.php so it becomes : 'blockcontactinfos_address' => nl2br(Configuration::get('blockcontactinfos_address')) You will also need to update the template file so that it is only outputting {$blockcontactinfos_address} Cheers 1 Link to comment Share on other sites More sharing options...
vekia Posted July 29, 2013 Share Posted July 29, 2013 i unmarked this topic as solved because here is no solution for this, dear @dawb please share your solution if it is possbile Link to comment Share on other sites More sharing options...
dawb Posted July 30, 2013 Author Share Posted July 30, 2013 Hi Vekia, if the issue is that the module does not output the address with line breaks is using nl2br() not an acceptable solution? If there is a better solution for this to be outputted correctly I would be interested to find it, so that I have a better solution for the future. Thanks Link to comment Share on other sites More sharing options...
Recommended Posts