Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.

  • 21/11/2023 BLACK FRIDAY 23 is coming

    BIG SALE, 35% discount for all our extensions. Use BF23 coupon code. Hurry up the discount is valid till 27 November.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

How to change quiz list view
(1 viewing) (1) Guest
component
Go to bottomPage: 12
TOPIC: How to change quiz list view
#19912
How to change quiz list view 12 Years, 9 Months ago Karma: 0
Dear Admin
How to change quiz list view. I write about it in email.
please help!
The administrator has disabled public write access.
 
#21058
Re: How to change quiz list view 12 Years, 8 Months ago Karma: 0
I tried to change it too, but no success.

I need to order que quiz list by ID, i found that this was done in pages/quiz_list.php and kernel\Web\Controls\Data\class.DataTableSortOptions.php. But i can't find out how to make it work =/
The administrator has disabled public write access.
 
#21067
Re: How to change quiz list view 12 Years, 8 Months ago Karma: 748
Hello,

Do you want to sort quizzes by ID on backend or frontend?

Regards,
ARI Soft
The administrator has disabled public write access.
 
#21080
Re: How to change quiz list view 12 Years, 8 Months ago Karma: 0
On backend.


Thanks, Andrew
The administrator has disabled public write access.
 
#21085
Re: How to change quiz list view 12 Years, 8 Months ago Karma: 748
Open <joomla_directory>\administrator\components\com_ariquiz\kernel\Controllers\AriQuiz\class.QuizController.php file, find "getQuizList" method and replace the following code:

Code:


$query = sprintf('SELECT Q.QuizId, Q.QuizName, Q.Status, QC.CategoryName' . 



and replace it with the next one:

Code:


$query = sprintf('SELECT Q.QuizId, Q.QuizId AS QuizId1, Q.QuizName, Q.Status, QC.CategoryName' . 



After this open <joomla_directory>\administrator\components\com_ariquiz\pages\quiz_list.php file and replace the following code:

Code:


new AriDataTableControlColumn(array('key' => 'QuizId', 'label' => AriWebHelper::translateResValue('Label.ID'), 'className' => 'dtCenter dtColMin')),



with the next one:

Code:


new AriDataTableControlColumn(array('key' => 'QuizId1', 'label' => AriWebHelper::translateResValue('Label.ID'), 'className' => 'dtCenter dtColMin', 'sortable' => true)),



After this "ID" column becomes sortable.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#21091
Re: How to change quiz list view 12 Years, 8 Months ago Karma: 0
Thanks, it works like a charm.
The administrator has disabled public write access.
 
Go to topPage: 12