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

Support archive

Show Single Category results in empty set when an entry is added/edited

Christian Lobaugh 5 Apr 2017 21:08 problem, active

I've got a problem when trying to use show single category on a Low reorder set.

Everything works great, until I add an entry or edit an entry the set is using, at which point the set will start to return empty. If I edit the reorder set to display all (instead of show single category), it will then work correctly. If I then set it back to show single category it continues to work fine.

I've looked for orphan channels, statuses, etc. and don't see anything.

help please

Details:
-----------
EE 3.53
Low Reorder 3.0.0

Setup:
---------
I created a new, very basic setup and it behaves the same
Channel: test
FieldGroup: test (no extra fields beyond title)
Category: test
Reorder set: test-set (that points at channel test, and category test)

template (I had to remove the <> from the php code to get it to post):
--------------
{layout="_embeds/.html-layout"}

?php
$entries = array();
{exp:low_reorder:entries set="test-set"}
$entry =<<{title}
EOE;

$hascat = "{categories}{category_name}{/categories}";
if ($hascat) {
{categories}
$entries[{category_id}][] = $entry;
{/categories}
} else {
$entries[0][] = $entry;
}
{/exp:low_reorder:entries}
?

TEST
{exp:channel:categories channel="test" style="linear" disable="category_fields" show_empty="no"}
{category_name}

{/exp:channel:categories}

?php if (isset($entries[0])): ?
Uncategorized
?=implode("\n", $entries[0])?
?php endif; ?

Replies

  1. Low 6 Apr 2017 07:21

    I cannot reproduce. Can you try and disable any other extensions you might have installed?

  2. Christian Lobaugh 6 Apr 2017 16:12

    I disabled all other add-ons and it did not make a difference. Any other ideas?

  3. Low 7 Apr 2017 09:28

    I'll need to take a look myself. Please send SuperAdmin login credentials to hi at gotolow dot com if you can.