Hi, Just wondering...
I've been reading the forums and quite a few answers require custom code to be inserted or replace existing code in the generated pages to make the output do something 'special'...
If I was to make a change like this eg: 'Position to near current date in a list' question...
Andreas,
you can do the following:
- check off No records on the first page option on the Edit SQl query tab.
- build your pages.
- open generated ..._list.php file, find these lines:
QUOTE
if(!count($_GET) && !count($_POST))
$strSQL = AddWhere($strSQL,"1=0");
and replace it with this one:
QUOTE
if(!count($_GET) && !count($_POST))
$strSQL = AddWhere($strSQL,"`FieldName`>now()");
where FieldName is your actual field name.
To recieve all records click on the Show all button on the LIST page.
would PHPRunner respect these changes if I was to later-on open the project and mess around some more in the wizards or would it write back the original list.php file? and mods be lost..?
Just wondering up front..
thanks
AJ