This topic is locked

Truncated field names

2/3/2009 7:24:57 AM
PHPRunner General questions
N
nickditrolio author

I have two tables extracting a listing of team names. One table displays the whole team name while the other truncates the team name(15 characters) Any ideas where I can find why the one table's field is being truncated?

J
Jane 2/3/2009

Hi,
I suppose you use Truncate large text fieldoption on the Miscellaneous tab.

Also this option doesn't work for HTML fields ("View as" settingsdialog --> HTML on the Visual Editortab).

hichem 2/6/2009

Hi,

I suppose you use Truncate large text fieldoption on the Miscellaneous tab.

Also this option doesn't work for HTML fields ("View as" settingsdialog --> HTML on the Visual Editortab).


Thanks for the hint Jane,

I have an html field and would like to truncate it as it contains a lenghty description field, any workaround to truncate it when it is viewed as html please?
Many thanks in advance

Hich

J
Jane 2/6/2009

Hich,
there is no reliable way to truncate HTML text.

As workaround set up this field as Custom on the "View as" settings dialog on the Visual Editor tab and truncate it manually:

http://php.net/manual/en/function.substr.php