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

Show Category Name in the Tag list view #39183

Open
nasirkhan opened this issue Nov 9, 2022 · 1 comment
Open

Show Category Name in the Tag list view #39183

nasirkhan opened this issue Nov 9, 2022 · 1 comment

Comments

@nasirkhan
Copy link
Contributor

In the category list type menu item, I can only show the list of Article names tagged with a specific article. I want to show the Category Names along with the article name.

I found that there is category Id as core_catid and I can write a query to get the name of the related category. But I would like to know the recommended way to get the category name. For me, the number of queries on the tags page is already high, so what would be the optimized way to get that data?

Additional context

Related to #39177

@nasirkhan nasirkhan changed the title Show Category Name in the Tag list viwe Show Category Name in the Tag list view Nov 9, 2022
@chmst
Copy link
Contributor

chmst commented Nov 15, 2022

In general we use inner joins. If you have an article, you also have the catid and can get the categoryname with a join.
I am not in the code at the moment - take this carefully, it might be wrong

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants