Unfortunately when you start implementing your own rows and headers, you forego some of the built-in features. You would need to add sorting yourself.
Xataface does allow you to build the link to sort on a particular column using the Dataface_Application::url() method. Xataface URL conventions will accept the -sort GET parameter as follows:
- Code: Select all
-sort=colname1+asc,colname2+desc
This would sort on the column colname1 ascending as the primary sort, and colname2 descending as the secondary sort.
So if you wanted to sort on a particular column, you could build the URL with:
- Code: Select all
$app = Dataface_Application::getInstance();
$url = $app->url('-sort=colname+asc')
Now, if your only goal through this whole thing was to make each cell of the table custom and linkable, why not just override the xxx__renderCell() method instead of overriding the row and the headings?
-Steve