Jump to content

Recommended Posts

Posted

New line is stored in db, so, where is necessary, it should use a simple nl2br() php method.

 

Where you think to use address in new way?

 

Thank you mate :) life saver.

<?php if( $system_company->address !='' ){ echo nl2br($this->Html->safe($this->Html->ifSet($system_company->address))); } ?>
Posted

Where is this shown?

 

Structure.pdt :) When I did it before it was in the line but with the code above it goes in the way you set it in the company settings :)

Posted

We don't show company address in the structure. I guess this is a custom change you've added? If so, then running it through nl2br wherever you're using it is the preferred solution. We wouldn't update the company address field to automatically display line breaks as HTML breaks otherwise.

Posted

We don't show company address in the structure. I guess this is a custom change you've added? If so, then running it through nl2br wherever you're using it is the preferred solution. We wouldn't update the company address field to automatically display line breaks as HTML breaks otherwise.

 

Ah that's why :) nl2br works fine so perfect haha.

Guest
This topic is now closed to further replies.
×
×
  • Create New...