https://antibiotiqueaugmentin.com/surdosage-augmentin-bebe/
× This is the optional Forum header for the Suggestion Box.

nl2br line break

  • DukEz7
  • DukEz7's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 1 month ago #1304

hellow again.
i just solved my previous problem with encoding, but now i have another one.

i.imgur.com/Iq2Gi.jpg here is a screenshot

i need to insert linebreak in every place where it consists in mysql table, beacuse now the whole table shows in one line.
what file of a component i have to edit and how?

thanks!

Last edit: 13 years 1 month ago by DukEz7.

Please Log in or Create an account to join the conversation.

More
13 years 1 month ago #1305

Hi,

This would be file components/com_grid/layouts/GridView.php, line 266

$podatek=$this->_data[$i][$column->columnName];
change it to
$podatek=nl2br($this->_data[$i][$column->columnName]);

Please Log in or Create an account to join the conversation.

  • DukEz7
  • DukEz7's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 1 month ago #1306

thanks it works perfectly!

Please Log in or Create an account to join the conversation.

  • DukEz7
  • DukEz7's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 1 month ago #1312

hey again :kiss:

i have another issue for you guys:

i.imgur.com/ZXfzh.jpg - screenshot

i need to set vertical aling to the "top" everywhere in display table. and set left paddings of all the rows to about 5-10 px. As it shows on a picture above

Where can i change this values and what file i have to edit?

thanks

Last edit: 13 years 1 month ago by DukEz7.

Please Log in or Create an account to join the conversation.

More
13 years 1 month ago #1313

I suggest using css styles.

In the last versions there are some new css classes added to Table JX. But they are not documented yet.

You can access all tables with class .tableJX
If you want to access just one table you can access it with class .tableJX[id] Example: .tableJX1
You can also specify styles for each column separately using .tableJX[id][column name] Example: .tableJX1title

I suggest that you use some kind of web developer plugin for browser like firebug, for example, and check the classes defined on JX tables.

You can put your css code either in your template css file or in /components/com_grid/css/grid.css

Regards,
Tomaž

Please Log in or Create an account to join the conversation.

  • DukEz7
  • DukEz7's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 1 month ago #1315

thank you again!
solved it

Please Log in or Create an account to join the conversation.

Moderators: tomaz
Time to create page: 0.167 seconds

Contact Us

Contact us on Discord

Contact us on Facebook