All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

The category parameter

leeaston 20 May 2012 20:01 question, complete

Hi Low, in the docs it says:

Categories
The category parameter should be set in the low_reorder:entries tag when using this option.

But the category parameter is not mentioned in the docs for the entries tag: http://gotolow.com/addons/low-reorder...

I've got a set filtered by category and am not sure quite what to do?

Best wishes
Lee

Replies

  1. Low 21 May 2012 08:33

    The category parameter for the low_reorder:entries tag is the same as the one in the channel:entries tag, that's why it's not mentioned explicitly in the docs.

    As for this:

    The category parameter should be set in the low_reorder:entries tag when using this option.


    This is only applicable if you're showing entries per single category. If you're filtering entries by category (so you already selected which categories the set is filtered by), then the category="" parameter will be set automatically.

  2. ejaeDesign 6 Nov 2013 19:01

    Hi Low,

    Just revisiting this. I have a simple {exp:low_reorder:entries set="works"} where I'm expecting it to filter entries by category in a /works/category/my_category URL structure.

    However, it simply displays all entries. If the category parameter works in the exp:low_order:entries tag as it does with exp:channel:entries tag, shouldn't my tag work?

    Thanks!

  3. Low 6 Nov 2013 19:08

    It should, but the low_reorder:entries tag also sets dynamic="no" by default. Try adding dynamic="yes" to the tag.

  4. ejaeDesign 6 Nov 2013 20:08

    Hmmm - not working for me. Here's the opening tag:

    {exp:low_reorder:entries set="works" limit="{embed:limit_option}" disable="pagination" dynamic="yes"}

    under the URL http://www.acme.com/works/category/fe...

    Is there a place I could check in the add-on setting?

  5. Low 6 Nov 2013 20:46

    You can turn on template debugging and look up the Low Reorder lines. What does that say?

  6. ejaeDesign 7 Nov 2013 02:32

    Hi Low,

    This is all the instances of reorder ouput:

    (0.096800 / 7.15MB) Calling Extension Class/Method: Low_reorder_ext/channel_entries_query_result
    (0.155857 / 8.48MB) Calling Extension Class/Method: Low_reorder_ext/channel_entries_query_result
    (0.245458 / 9.52MB) Calling Extension Class/Method: Low_reorder_ext/channel_entries_query_result
    (0.260946 / 9.53MB) Calling Extension Class/Method: Low_reorder_ext/channel_entries_query_result
    (0.275653 / 9.54MB) Calling Extension Class/Method: Low_reorder_ext/channel_entries_query_result
    (0.285391 / 9.46MB) Tag: {exp:low_reorder:entries set="works" disable="pagination" dynamic="yes"}
    (0.285440 / 9.46MB) Closing Tag Found
    (0.285474 / 9.46MB) Processing Tags
    (0.285504 / 9.46MB) Plugin Tag: Gwcode_categories/
    (0.285518 / 9.46MB) Module Tag: Low_reorder/entries
    (0.285526 / 9.46MB) Including Files for Plugins and Modules
    (0.290060 / 9.81MB) Files for Plugins and Modules All Included
    (0.290084 / 9.81MB) Beginning Final Tag Data Processing
    (0.290100 / 9.81MB) Calling Class/Method: Gwcode_categories/
    (0.290238 / 9.81MB) -> Class Called: Gwcode_categories
    (0.294098 / 9.90MB) -> Method Called: Gwcode_categories
    (0.294173 / 9.90MB) -> Data Returned
    (0.294212 / 9.88MB) Calling Class/Method: Low_reorder/entries
    (0.294441 / 9.88MB) -> Class Called: Low_reorder
    (0.294828 / 9.89MB) -> Method Called: entries
    (0.294866 / 9.89MB) Low Reorder: Retrieving set from database
    (0.295805 / 9.89MB) Low Reorder: Getting ordered entry_ids from database
    (0.297627 / 9.91MB) Low Reorder: Setting parameters status="open" category="27" channel="works" fixed_order="110|107|106|105|104|103|102|4|47|100|49|50|99|26|97|51|48|60|28|32|53|46|10|17|94|52|57|93|92|8|12|16|15|14|13|62|9|7|6|5|21|96|95|11|55"
    (0.297643 / 9.91MB) Low Reorder: Calling the channel module
    (0.329492 / 10.73MB) Calling Extension Class/Method: Low_reorder_ext/channel_entries_query_result

  7. Low 7 Nov 2013 07:07

    Looks like it is setting category="27". What are the Set's settings? Post a screenshot if you can.

  8. ejaeDesign 7 Nov 2013 08:05

    Ah! That category ID was the clue. I had it filtered by another category (from another category group), and that was what made it ignore the category URL title.

    I removed that category setting (screenshot) and it's now filtering correctly.

    Thanks Low!