This topic is locked

align right

5/22/2008 12:31:32 PM
PHPRunner General questions
G
garethp authorDevClub member

Sorry - last question!
Is there any way to align numbers right and text left in the view and list screens.
Thanks
Gareth

A
alang 5/22/2008

Couple of suggestions - alignment by default is set in the layout template:

  1. You can use visual editor to set alignment for each field.
  2. You could edit the layout template to apply to all views ie look for <td align="center"> and change the appropriate ones.

G
garethp authorDevClub member 5/23/2008

Alan
Thanks for the resonse. The problem doing it in the visual editor is rebuild and all is lost - which is very frustrating but I know the guys are sorting this for future realeases.
If I was to edit the layout template for each page type how could I define that al numbers are rights aligned and all text fields are left aligned?
I really appreciate you help.
Gareth

A
alang 5/25/2008

Good question - I'm not sure if you can do this as from what I can see, the template loops through all fields in the list template as follows:

foreach Fields as @f filter bListPage order nListPageOrder##

<td align=left valign=middle class=borderbody {$row.##@i####@f.strName g##_style}>

{$row.##@i####@f.strName g##_value}

</td>

endfor##



Best I can suggest is to select most common and then override the other in visual editor but agree with your comment in this regard - I also tend to avoid doing much with it because of the page reset problem.

S
steveh 8/1/2008

Just hit the same issue!
This would be a great enhancement, ability to specify left, right or centred.
I've a report with both text and numeric columns and the numbers not being right justified looks terrible.
Jane, Alexei, any chance?