Skip to content Skip to main navigation Skip to footer

Order Category Results

Welcome to QSM Support Forum. Forums QSM Pro Support Order Category Results

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #1477
    David LeighDavid Leigh
    Participant

    Hello,
    The categories feature is great for us. Is there a way to order/sort the results page so that the categories with the highest points are first and the lowest last?
    Thanks!

    #1479
    Kriti SharmaKriti Sharma
    Keymaster

    Hi David,

    Welcome To QSM Pro Support. Hope you are doing well.

    Here are template variables you can use on the result pages:

    %CATEGORY_POINTS_X% – X: Category name – The amount of points a specific category earned.
    %AVERAGE_CATEGORY_POINTS_X% – X: Category name – The average amount of points a specific category earned.
    %CATEGORY_SCORE_X% – X: Category name – The score a specific category earned.
    %CATEGORY_AVERAGE_POINTS% – The average points from all categories.
    %CATEGORY_AVERAGE_SCORE% – The average score from all categories.

    Hope this helps.

    Regards,
    Kriti

    #1481
    David LeighDavid Leigh
    Participant

    I have discovered those already and they work fine. I would just like a way to sort the results by number of points in each category. Is there a way in the plugin to do that? Thanks.

    #1483
    Kriti SharmaKriti Sharma
    Keymaster

    Hi David,

    Sorry, but this type of template variable is not available in the plugin right now.

    Regards,
    Kriti

    #1488
    David LeighDavid Leigh
    Participant

    Is there documentation on the available filter hooks in the plugin?

    #1491
    Kriti SharmaKriti Sharma
    Keymaster

    Hi,

    What kind of filter hooks you are looking for in the plugin? With filter hooks, do you mean the available template variables?

    Regards,
    Kriti

    #1506
    David LeighDavid Leigh
    Participant

    No, I’m not talking about template variables but about what’s been designed into the plugin for extending it – what “hooks” have been coded into the plugin so that I can extend it with my own code. I’m looking for documentation about the WordPress “apply_filters” instances in the code. Specifically what I’m interested in is manipulating the results before they’re displayed or put in an email.
    Thanks!

    #1510
    Kriti SharmaKriti Sharma
    Keymaster

    Hi David,

    I need to talk to the development team about this. I will be back soon with an answer.

    Regards,
    Kriti

    #1516
    David LeighDavid Leigh
    Participant

    That works – thanks!

    #1544
    Kriti SharmaKriti Sharma
    Keymaster

    Hi,

    The following link will show filters in QSM

    https://github.com/QuizandSurveyMaster/quiz_master_next/search?q=apply_filters&unscoped_q=apply_filters

    The following link will show actions in QSM

    https://github.com/QuizandSurveyMaster/quiz_master_next/search?q=do_action&unscoped_q=do_action

    Regards,
    Kriti

    #1546
    David LeighDavid Leigh
    Participant

    That helps. Thank you!

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.