J4 Issue ?
avatar ribafs
ribafs
17 Nov 2017

Steps to reproduce the issue

Menu - Main Menu - New
Whereis Parent Item to create a submenu?

Expected result

Parent Item on create a new menu.

Actual result

Do not exists Parent Item.

System information (as much as possible)

Joomla 4 Alpha 1

Additional comments

avatar ribafs ribafs - open - 17 Nov 2017
avatar joomla-cms-bot joomla-cms-bot - change - 17 Nov 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 17 Nov 2017
avatar zero-24 zero-24 - change - 17 Nov 2017
Title
Dont create a submenu
[4.0 alpha]Dont create a submenu
avatar zero-24 zero-24 - edited - 17 Nov 2017
avatar zero-24
zero-24 - comment - 17 Nov 2017

Hi @ribafs can you please add some text which step you take so we can reproduce this? I'm not exactly sure what you mean nor how you get there, what is the expected and what is the actual result ?

avatar ribafs ribafs - change - 17 Nov 2017
The description was changed
avatar ribafs ribafs - edited - 17 Nov 2017
avatar brianteeman
brianteeman - comment - 17 Nov 2017

You mean this dropdown?
screenshotr21-58-32

avatar franz-wohlkoenig franz-wohlkoenig - change - 18 Nov 2017
Category Templates (admin)
avatar franz-wohlkoenig franz-wohlkoenig - change - 18 Nov 2017
Title
[4.0 alpha]Dont create a submenu
[4.0 alpha] Dont create a submenu
Status New Information Required
avatar joomla-cms-bot joomla-cms-bot - edited - 18 Nov 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 18 Nov 2017
Title
[4.0 alpha] Dont create a submenu
[4.0] Dont create a submenu
avatar joomla-cms-bot joomla-cms-bot - edited - 18 Nov 2017
avatar ribafs
ribafs - comment - 18 Nov 2017

See here:
image

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 18 Nov 2017

@ribafs can't recreate Issue:
bildschirmfoto 2017-11-18 um 14 08 39

System information

4.0.0-dev
macOS Sierra, 10.12.6
Firefox 57 (64-bit)

MAMP 4.1.1

  • PHP 7.0.15
  • MySQLi 5.6.35
avatar ribafs
ribafs - comment - 18 Nov 2017

OK
Im using
Linux Mint 18.1 with Firefox 57 or Chrome 62.
PHP 7.0.22
MySQL - 5.7.20

avatar ribafs
ribafs - comment - 18 Nov 2017

In main menu Shop and Parks are submenu from Sample Sites but int site when move mouse over Sample Site dont display submenus but its already are displayed.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 26 Dec 2017

@ribafs tried to simulate the Issue but didn't understand your comment above. Can you please explain it, maybe with Screenshots or Video?

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 27 Jan 2018

If this Issue get no Response, it will be closed at 28th February 2018.

avatar astridx
astridx - comment - 4 Feb 2018

I can confirm this issue on ubuntu without sample data with the current 4.0-dev branch.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 4 Feb 2018

Thanks @astridx, Issue stay open.

avatar ReLater
ReLater - comment - 5 Feb 2018

I can confirm the issue after installing 4.0-dev of some minutes ago. No test datas installed. "Normal provider installation." But had the issue also with older Joomla 4.0-dev with and without test datas.

PHP Built On 	Linux dd1620 3.13.0-139-generic #188-Ubuntu SMP Tue Jan 9 14:43:09 UTC 2018 x86_64
Database Version 	5.5.58-nmm1-log
Database Collation 	latin1_swedish_ci
Database Connection Collation 	utf8_general_ci
PHP Version 	7.1.11-nmm1
Web Server 	Apache
WebServer to PHP Interface 	fpm-fcgi
Joomla! Version 	Joomla! 4.0.0-dev Development [ Amani ] 19-November-2017 16:34 GMT
User Agent 	Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0

Also with PHP Versions
7.2
7.1.11-nmm1
7.0.25-nmm1

Firefox (ESR version), 52.6.0 (32-Bit)

avatar ReLater
ReLater - comment - 5 Feb 2018

Looks like that type="menuparent" in form-XML is case sensitive somehow.

Field https://github.com/joomla/joomla-cms/blob/4.0-dev/administrator/components/com_menus/Field/MenuParentField.php is not called. Tried it with a exiting debug line.

When I change line
https://github.com/joomla/joomla-cms/blob/4.0-dev/administrator/components/com_menus/forms/item.xml#L85
to

type="MenuParent"

all fine. But I don't think that this is a correct fix(?)

Linux works case sensitive concerning filenames. Mac and Win not. Ithink that's the reason why some of you couldn't confirm the issue(?)

avatar ReLater
ReLater - comment - 5 Feb 2018

See also related #19542 (comment)

avatar ReLater
ReLater - comment - 10 Feb 2018

Does anybody know if type values in xml manifests have to be camel-cased in the future (= matching file names)? See above #18633 (comment) .

If yes I could provide prs for this issue and #19542

avatar Bakual
Bakual - comment - 10 Feb 2018

I don't think values in XMLs should be case sensitive. Looks more like a bug to me.

avatar Fedik
Fedik - comment - 10 Feb 2018

I think, type="menuparent" it was not case sensitive, but after moving to name spacing it become case sensitive.
Autolader search for MenuparentField.php

maybe @laoneo have an idea

avatar mbabker
mbabker - comment - 10 Feb 2018

This is why we need a form registry and need to break the internal coupling toward filesystem paths or class namespaces.

avatar Fedik
Fedik - comment - 10 Feb 2018

This is why we need a form registry

do you mean a registry of a form components (fields, rules, etc)?
that would be cool, yes

avatar Fedik
Fedik - comment - 10 Feb 2018

@mbabker to do this for the library should be not a hard task, but any idea how it could work for extensions?
whether something like com_foobar/form/formRegistry.json wich can be loaded by FormRegistry class, would be sufficient?

avatar mbabker
mbabker - comment - 11 Feb 2018

No, we should not be creating arbitrary files that get read by a magic black box. We need to be working toward a configuration over convention based system where components can be service providers, not have hardcoded inbuilt convention based dependencies (and even some of the code written new for 4.0 continues to perpetuate that problem, i.e. all the "proxy to other app" logic that the component dispatchers have to somehow be aware of). How we get there is still to be determined because we keep treating components as things that should be loaded in isolation, but we need to be working that out.

avatar laoneo
laoneo - comment - 12 Feb 2018

Form files are not bound to a component, we need to keep that in mind here.

avatar mbabker
mbabker - comment - 12 Feb 2018

Neither is the registry concept. However, it does require that SOMETHING trigger the code required to add services to the registry.

If you're familiar with Symfony bundles, or Laravel packages, that is largely what we should be aiming to have components be at a very high level. Components should not be isolated application handlers (though they do provide infrastructure to process application events, including HTTP request handling). Components should be an integration point into Joomla for defining new services and architecture (services for the container, MVC layer interactions (data schema and interaction tools, controllers to process HTTP requests, etc.), form objects into a registry, JHtml helpers, in the case of Smart Search the indexer library, etc.).

avatar brianteeman brianteeman - change - 25 Mar 2018
Labels Added: J4 Issue
avatar brianteeman brianteeman - labeled - 25 Mar 2018
avatar franz-wohlkoenig franz-wohlkoenig - change - 7 Apr 2018
Status Information Required Discussion
avatar brianteeman brianteeman - change - 19 Aug 2018
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2018-08-19 10:23:36
Closed_By brianteeman
avatar brianteeman
brianteeman - comment - 19 Aug 2018

This is no longer reproducable as the type has been updated to camelcase

avatar brianteeman brianteeman - close - 19 Aug 2018

Add a Comment

Login with GitHub to post a comment