This topic is locked
[SOLVED]

 Adding more parameters on the query string of sorting

7/8/2010 6:27:11 AM
PHPRunner General questions
L
Leo086 author

Hey All , Hope all is well.

Im trying to add an additional parameter on the sorting link .

the default link is as bellow :

vw_page_list.php?orderby=dpag_id

and i want to add a new parameter like this bellow :

vw_page_list.php?page_parent_id=1&orderby=dpag_id
anyone have an idea !!!

A
ann 7/8/2010

Leo,
you can change it in the setLinksAttr() function in the generated output\classes\listpage.php file

Here is a sample:

$href = $this->shortTableName."_list.php?page_parent_id=1&orderby=".($sort != "" ?($sort == "a" ? "d" : "a"):

"a").$field.($this->listAjax ? '&mode=ajax' : '');
L
Leo086 author 7/8/2010



Leo,
you can change it in the setLinksAttr() function in the generated output\classes\listpage.php file

Here is a sample:

$href = $this->shortTableName."_list.php?page_parent_id=1&orderby=".($sort != "" ?($sort == "a" ? "d" : "a"):

"a").$field.($this->listAjax ? '&mode=ajax' : '');



yeah i found the function , and modified the code there, but whenever i build the project all again i lose my changes in that page !

A
ann 7/8/2010

Leo,
you can also edit \source\classes\listpage.php file (files in the \source folder aren't changes when you rebuild the project).

L
Leo086 author 7/8/2010



Leo,
you can also edit \source\classes\listpage.php file (files in the \source folder aren't changes when you rebuild the project).


yeah thanks Ann , it works fine <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=51070&image=1&table=forumreplies' class='bbc_emoticon' alt=':D' />