This topic is locked
[SOLVED]

 I have some numbers I display in list..

6/24/2007 1:13:07 AM
PHPRunner General questions
M
michaelmac author

Hey Everyone
I hope everyone is well today. I know, and this may sound stupid, but how do I right justify or even center numbers in a display field in a _list.
Thanks in advance
Mike

Sergey Kornilov admin 6/24/2007

Use "Align Right" button in Visual Editor.

P
pjeaton 9/27/2007

Is there any way of doing this automatically during compilation for number fields?
With the testing I'm doing, I keep having to add and remove pages and so having to use the Visual Editor all the time to right justify is a real pain, especially as the headings are a nested table. It's very fiddly to change the justification.
I'm actually using the pages 'clean' at the moment, from a heavily hacked template and css, i.e. no changes with the Visual Editor at all, I do all my changes to the generated pages with some sed and awk (which is also painful, but once it's done, it stays done).
Thanks,

Phillip Eaton

Alexey admin 9/27/2007

Phillip,
you can modify template files for this.

Find code snippet in list.htm file that looks like this and add code in bold there.

##foreach Fields as @f filter bListPage order nListPageOrder##

<td ##if IsNumberField(@f) && @f.strEditFormat!=EDIT_FORMAT_LOOKUP_WIZARD## align="right" ##endif##>

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

</td>

endfor