This topic is locked
[SOLVED]

 Customizing the More... Truncated field display

5/21/2012 1:55:14 PM
PHPRunner General questions
K
KeithS author

The popup box that shows the full truncated text of a list page "More..." field is good, but I really need to get more control of this box. The text I need to show is formatted for a lineprinter, meaning the space characters are important (think of the text as an Invoice that is/was destined to print monospace font to a pre-printed tractor feed multipart form on an old dot matrix printer). So I need to show this text in fixed monospace font - HOW???? I would also like to make the popup window size larger. I'd really love it if I could make this popup based on a hover (but this is optional - but would definitely be cool). But the BIG important thing is to set the font to Monospace. I'[ve tried things in the editor with no success.
Any tips on how to manage this would be greatly appreciated.
I did use another forum topic to figure out how to use a custom field format to open my own browser window and show my content, but the Ajax popup that phpRunner uses is more attractive, efficient and pops up in a more appropriate place on the screen.
Big Thanks in advance!!!!!

K
KeithS author 5/24/2012

Answering my own posting... As usual, with phpRunner, it often comes down to design and using the tools available. In my case, I moved the data I wanted to show to a child record/table so I could easily get the ajax hover over effect and then I limited the amount of text in the hover over by setting the truncate length for the table. I was able to get the font to appear as fixed monospace font using the visual editor setting the font on the field and also defining the field format as a custom field where I would preg_replace the newlines with
and spaces to &nbsp; along with some htmlentities functions and so on (I wanted the effect of <pre>text</pre> but that did not get me the results I hoped for. Maybe it would work yet, but I got the functionality I wanted, so I'm onto the next development issue.