dckurushin
(Diavolonok)
1
Hello,
I want to combine pagination and sorting, with nice url…
Don’t sure how to do that…
the urls I have now are:
'index/page-<page:\d+>/*' => 'blog/index',
result:
Now I want to add sorter
The sorting urls now look very ugly…
for example sorting by title:
to remove the ajax/yw0 stuff, I just used in paginator
'params' => array(),
And this removed the ajax rubbish, but if I add this to the sort the sorter wont see the page number…
and the pager don’t see the pagination…
so
'params' => array(),
is not the way to go…
but I don’t want google to index ajax/ywo stuff… I must remove that 
help someone, hope this is not that confusing 
dckurushin
(Diavolonok)
2
up, or no one using CListView ?
tri
(tri - Tommy Riboe)
3
At least you can get rid of the "yw0" by specifying an id for the widget. Edit: And you can specify your own ajaxVar
'id'=>'my-listview',
'ajaxVar'=>'my-ajaxvar',
/Tommy
dckurushin
(Diavolonok)
4
Hi Tommy, and if I don’t want ajax var at all?
How google will index such stuff? with some added vars? or this is taken in account?
tri
(tri - Tommy Riboe)
5
To the best of my understanding, ajaxVar was introduced because isAjaxRequest (XMLHttpRequest) reportedly wasn’t always reliable.
It is used for url creation very near the end of jquery.yiilistview.js. You probably would have to modify something at server side too.
/Tommy