This topic is locked

default field type

3/27/2008 4:26:00 PM
PHPRunner General questions
K
kenhaley author

I am evaluating phpRunner... I have about 2 weeks left.
Is there a way to modify the code generator's defaults as it renders html elements for the various data types that it finds in the database? Here's a specific example...
Our database (Postgres) has defined most character fields as text (which may seem strange, but the manual says there's no performance penalty for choosing text over varchar). phpRunner, by default, creates textarea edit controls on the add and edit pages for text columns by default. Instead, we'd like to have text fields, not textareas. I know we can go through and change them all after the page is built, but if you change the SQL query later, your overrides will likely be lost when you rebuild.
Another example: we'd like to always have checkboxes for boolean data types.
So, can the default behavior be changed? If so, how?
...Ken

Sergey Kornilov admin 3/27/2008

This is a very good question.
Unfortunately default edit types are hardcoded in the program. Making it configurable sounds like a nice idea