I’ve got two category groups that are being used. On one page I’m listing all of the categories that a member belongs to using the following
{exp:member_categories:categories category_group="11|3|4"} <li><a href="{path=/members/groups/{category_url_title}}">{category_name}</a></li> {if no_results}none{/if} {/exp:member_categories:categories}
This works correctly, and I have tested by removing and adding back a category for them. When the user clicks on one of the categories listed, it goes to another page to a) check that they have access and b) display the list of entries. Here is the code that is being used.
{exp:member_categories:check category_id="{segment_3_category_id}"}
{exp:channel:entries channel="my_channel" category="{segment_3_category_id}" status="Open" dynamic="no" limit="100" paginate="bottom" }
Display the content if they have access to it....
{/exp:channel:entries}
{/exp:member_categories:check}
When the user clicks on one of the categories from Group A, it pulls up the items as it should. However, if they click on one of the categories from Group B, we see the error message “Error - No Category Provided”. If I add in errors=“no”, the page comes up but with nothing listed. I have tested this myself as a super admin (with access to all of the categories).
ADDITIONAL TESTS
If I replace the segment_3_category_id with the corresponding category number (regardless of whether it’s from Group A or Group B), then the content displays like it should.
I added another category to the Group A (group that is working) that is nearly identical to one from Group B (group that isn’t working), and that one worked as it should.
Is there a problem using multiple groups? Any other thoughts on what is happening?
Todd
|