Create an article A.
Create menu item 1 of the type "single article" that points to the article A.
Assign a separate template to menu item 1.
Create menu item 2 of the type "create article"
Open page 1.
Click "edit" on the article.
Article editor for article A opened with the template and modules assigned to menu item 1.
Article editor for article A opened with Menu item 2 and the layout and modules for that menu item.
Joomla 3.7.2
This is probably related to #12687 ?
This used to work in Joomla 3.6, ie the menu item id for the page with the edit button was used when showing the editor.
Status | Expected Behaviour | ⇒ | Closed |
Closed_By | franz-wohlkoenig | ⇒ | joomla-cms-bot |
Status | New | ⇒ | Expected Behaviour |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-06-09 17:31:19 |
Closed_By | ⇒ | franz-wohlkoenig |
Set to "closed" on behalf of @franz-wohlkoenig by The JTracker Application at issues.joomla.org/joomla-cms/16598
Closed as expected Behaviour.
Let me elaborate a bit... Let's say I have a site with two article categories and two blog view pages, one for each category. Each blog view has its own template.
I would like to make it easy for the persons creating content, so I created "add article" pages below each of the blog views and set these up with a "default category" to force the articles into the right categories. I also selected the same templates as the blog views to make it consistent.
This is all well and good, except..
when an existing article (any article) is edited, the itemid used is always the first create article menu item (with the lower id) regardless of any "default category" settings. Example:
Status | Discussion | ⇒ | New |
Closed_Date | 0000-00-00 00:00:00 | ⇒ |
Status | Closed | ⇒ | Discussion |
Closed_Date | 2017-06-09 17:31:19 | ⇒ | |
Closed_By | joomla-cms-bot | ⇒ |
Set to "open" on behalf of @franz-wohlkoenig by The JTracker Application at issues.joomla.org/joomla-cms/16598
Status | New | ⇒ | Information Required |
Status | Information Required | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-08-03 12:19:28 |
Closed_By | ⇒ | osignell |
That is the expected behaviour as you have defined a template for the edit view and that is being loaded when you try to edit the article