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

Wrong menu item in body tag when adding new frontend article #39558

Open
rbuelund opened this issue Jan 4, 2023 · 7 comments
Open

Wrong menu item in body tag when adding new frontend article #39558

rbuelund opened this issue Jan 4, 2023 · 7 comments

Comments

@rbuelund
Copy link

rbuelund commented Jan 4, 2023

Steps to reproduce the issue

(maybe this has something with the create order to do - therefore I write my actual itemid's)

Create two article categories:
Cat1 (catid-14)
Cat2 (catid-15)

Create theese four menu items :
Menu type: Create article - fixed category set to Cat1 (itemid-122)
Menu type: Create article - fixed category set to Cat2 (itemid-211)
Menu type: Category list - show Cat1 (itemid-199)
Menu type: Category list - show Cat2 (itemid-216)

In frontend go to the menu item for Category list - show Cat1

Press New article button

Expected result

The editor page that opens upon pressing New article has the menu itemid-122 (Cat1-new article) in the body tag

Actual result

The editor page that opens upon pressing New article has the menu itemid-211 (Cat2-new article) in the body tag

System information (as much as possible)

Joomla 4.2.6

Additional comments

This is not good if you want to show a specific module in the top of the edit screen.

@Catriona
Copy link

I am experiencing the same problem. I have 2 categories, I have a menu with 4 items, as reported above, I have changed the menu items order, I have tried just using one menu with only one category on it, nothing helps, it always opens the create screen for category 1 when the New Article button on the category list is clicked. It does have the correct category in the article, but the links on the cancel/save button go back to the wrong page. The 'create cat2' menu item works correctly, it is only the new article button on the category list page which is not working.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/39558.

@Techydeveloper12
Copy link

i want to work on this issue please assign me this task @joomla-cms-bot @

@rbuelund
Copy link
Author

I have a new experince which I belive is related to this problem. I have created two different child templates which have different overrides for com_content/category/default_articles.php.

I connect the one child template to one menu item of type category-list, and the other child template to another menu item also of type categori-list. Both menu items are set to display the same category.

When I now go into one of the two menu items in frontend, then one of the child-template overrides, hi-jacks and it it is not possible to show the correct override for this menu item unless I unpublish the other menu item !!??

@Techydeveloper12
Copy link

i want to work on this issue please assign me this task @rbuelund

@rbuelund
Copy link
Author

Sorry - but I do not know how to assign you. I do not think I can...

@Techydeveloper12
Copy link

Techydeveloper12 commented Jan 17, 2023

i want to work on this issue please assign me this task @dziudek @philip-sorokin

@alikon
Copy link
Contributor

alikon commented Jan 17, 2023

there is no need to assign , simply submit a pull request that's all

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

6 participants