Use of Tags on Low Reorder
Just installed Low Reorder. I'm not a developer and have a stupid question. Do I need to insert all of those Tags in the documentation into my templates for this to work? I was hoping I could just install it and go. But that doesn't seem to be the case. I can have my development team do it if necessary but would rather not.
Replies
Jason Good 10 Sep 2016 02:47
Is this the tag I replace on my Index template?
{exp:channel:entries channel="howto" limit="5" disable="category_fields|member_data|custom_fields" category="{category_id}" orderby="view_count_one"}
{title}
{/exp:channel:entries}
Or is it this one:
{exp:channel:entries channel="howto" limit="100" disable="category_fields|member_data|custom_fields" orderby="view_count_one" show="not 31"}
{title}
{/exp:channel:entries}
I have done both and nothing changes on our site at all. Do I need to clear the cache or anything or should it just work?
Low 10 Sep 2016 08:07
Yes, you should use the Low Reorder tags to display the entries in the order specified by the module in the Control Panel.
You can replace any channel:entries tag with the low_reorder:entries tag for entries that need to be in a custom order. Make sure you've added the set="" parameter and point it to the desired Low Reorder Set you've created in the CP.
Jason Good 13 Sep 2016 14:22
This is helpful. I'm getting there. This is what my template currently has:
{exp:channel:entries channel="howto" limit="5" disable="category_fields|member_data|custom_fields" category="{category_id}" orderby="view_count_one"}
{title}
{/exp:channel:entries}
I'm just not sure how to fully incorporate your code into this.
Low 13 Sep 2016 14:51
Looks like you need to do something like
where you replace SET_NAME with the set you've created.
Jason Good 13 Sep 2016 21:20
Cool. This is working better. Can I use the "Limit" command? I don't want to show all topics on all pages. Just the first 5. Or first 10. Etc. Then I invite people to click deeper to view all of the topics.
Jason Good 13 Sep 2016 21:37
If this helps, this is the page I'm trying this out on: https://www.gocanvas.com/content/how-to
We only show 5 entries per category. When I added your tag, it showed all entries, which makes sense given that all of them are ranked. But I was hoping to limit it to the first 5.
Low 14 Sep 2016 12:22
Yeah, you can use the limit="" parameter on the tag. Just give it a try.
Jason Good 14 Sep 2016 12:55
I did try it and it doesn't appear to work unless I have screwed something up (highly likely!).
{exp:low_reorder:entries set="HowTo"limit="5"category="{category_id}"}
{title}
{/exp:low_reorder:entries}
I've tried putting the LIMIT paramenter in various places in the line of code and that doesn't seem to impact anything. I wasn't sure what else to try. Any tips?
Thanks so, so much!
Low 14 Sep 2016 12:57
You should add spaces around each parameter. So:
Jason Good 14 Sep 2016 14:14
Okay....It was a cache issue. We have a cache plugin. Once I cleared the cache and viewed the page, half of it is working. The most important half is working, which is great.
So it works on this page: https://www.gocanvas.com/content/how-to
Where it doesn't work is when I click on a Category to view the entries for a particular category.
It doesn't work on this page:
https://www.gocanvas.com/content/how-...
When I enter the low reorder code, this page just goes blank. It doesn't list any entries at all.
Here is the current code that works and shows all entries in order based on "view count".
{/categories}
{/exp:channel:category_archive}
{if:else}
{exp:channel:entries channel="howto" limit="100" disable="category_fields|member_data|custom_fields" orderby="view_count_one" show="not 31"}
{/exp:channel:entries}
I can't figure out why the Low Reorder code wouldn't work for these category pages. I cleared the cache just like I did to make the Channel page work.
Jason Good 14 Sep 2016 17:07
I got it. Figured it out. This tool solved our problem perfectly! Thanks!