Re: [Djulia] createdByUserNum and rule to rewrite
Hi Djulia,
To have CMS Builder do the search for records created by a user automatically, you need to have the "createdByUserName" in the url.
However, you can format the URL string to anything you like, so long as you have the record number (in your example 3) at the end of the url string like this:
xxx.php?page=2&userName-3
This will not do the search automatically, but you can then change your getRecords statement to use this line:
'where' => "createdByUserNum=".getNumberFromEndOfUrl(0),
Hope this helps.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/