Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exp:channel:category_archive tag renders incorrectly when there are several {categories} pairs inside #2523

Open
jelle-burodeng opened this issue Nov 16, 2022 · 1 comment
Labels
Bug: Accepted Bug has been confirmed, is reproducible, and ready to work on.

Comments

@jelle-burodeng
Copy link

jelle-burodeng commented Nov 16, 2022

This code returns unexpected results in EE 7.2.0

{exp:channel:category_archive channel="vita" category_group="1" style="linear"}
	{categories}{category_id}{/categories} - {categories}{category_name}{/categories}<br>
{/exp:channel:category_archive}

The above code renders as

1 - 1
2 - 2
3 - 3

It should render as

1 - First category name 
2 - Second category name 
3 - Third category name 

This only happens if you have 2 or more instances of the categories tag pair in the exp:channel:category_archive loop
If there is only 1 categories pair everything works fine

@intoeetive intoeetive added the Bug: Accepted Bug has been confirmed, is reproducible, and ready to work on. label Nov 17, 2022
@intoeetive
Copy link
Contributor

Tested and can confirm the issue. It also seem that things have been this way for a while in EE, if not always. category_archive tag is currently designed to have only single categories pair in it.

@intoeetive intoeetive changed the title Unexpected output from exp:channel:category_archive exp:channel:category_archive tag renders incorrectly when there are several {categories} pairs inside Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug: Accepted Bug has been confirmed, is reproducible, and ready to work on.
Projects
None yet
Development

No branches or pull requests

2 participants