Field Property "display" set to "menu" has no effect on menu item: XML for Menu item is incomplete #1083
Labels
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: joomla/Component-Builder#1083
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Steps to reproduce the issue
Set up a text field with property dropdown set to "display" and value set to "menu" (at the very bottom of the field configuration page, where the description says: "Display switch for dynamic placement in relation to the use of the field in menu and global configuration options. So the (config) option will only add the field to the global configuration area, (menu) will add the field only to the menu area."
Compile the component
Expected result
Menu item, where this field belongs to, gets a new tab added, where the text field can be filled in
Actual result
no tab is being added
System information (as much as possible)
Additional comments
I have a text field that adds a parameter to the a menu item. This parameter holds a category which is passed to the page, the menue item links to. I don't know, in which version of JCB this stopped working, It does work on 3.1.28 though.
Using JCB 3.2.0-beta5 in components created for J!4 and J!5 this seems to have no effect anymore, since the tab for the parameter in the menu item is gone.
Here is, how I set up the field. This did work for J!3:
This is how it is suppoesed to work:
On J!4 the tab for my category parameter is gone:
The xml file that is generated for the menu item by 3.2.0-beta5 (and 3.2.0-beta6) is missing the information for this field:
It should look like this:
I'll didn't test, if JCB 3.2.0-beta5 compiles this correctly for J!3 though, since I don't have a J!3 site to test this on atm. Do you need me to do so?
Field Property "display" set to "menu" has no effect on menu itemto Field Property "display" set to "menu" has no effect on menu item: XML for Menu item is incompleteHave you looked at the JCB tutorials?
I watched almost all of the tutorials, but this tutorial wasn't available when I first created the component so I accomplished it by passing a parameter as described above :). Doing this with categories seems logical and is tempting, but I think it would be quite a lot of work to switch to categories. Was the ability to pass parameters from a menu item to a site view, the way I did this removed?
I also updated my initial post, since my xml-examples didn't display - sorry for the inconvenience....
The tutorial is not just about categories, unless you've watch this tutorial from this point in the video and have implemented the linking correctly there is not much I can say more.
$this->input->getInt('id', 0);
to target your ID value.But custom with the
viewname_request_id
as name!Sermon Distributor Example Outcome:
This is the way to setup those kind of menus, once you can confirm that you've done that. Then we can look at JCB if it still does not work, until then JCB is not the issue. Just selecting
"display"="menu'
is not enough for this to work.In the compiler, this is how that field is detected.
ok, I found the reason: I had to rename my site view because there was a '_' in its name which caused trouble with namespacing, and in the component configuration where I define the tab field, the name didn't match anymore exactly, so the xml for the tab wasn't generated.
I apologize for the inconvenience :/
Never an inconvenience.. ;)
Feedback, and issues are critical to the success of JCB... please! The underscore in your view name should not cause the issue, since we have underscores all over JCB's views and even in many of the components we build. You will see that
_
s are everywhere... there must be another issue.Your feedback is the
greatest
profit we have in making JCB opensource, it is never an inconvenience 👍 since we are ever learning how to do and explain things better.What you've also help us realize once again is that this feature in JCB should be made easier and simpler. Thank you!
The way, this is done may not be obvious, but it is OK. The problem as with more issues that occur with the usage of JCB, is that the main documentation is by video. Don't get me wrong here: This is not a criticism. I can only imagine, how much work it would be to create a structured written documentation and I do not expect one...
I'm not a professional developer and I also don't work with JCB every day. But JCB enabled me to put together some awesome Joomla extensions and it's fun work with it and to get results. I just tend to have a hard time remembering how things were done and I have an even harder time to remember where the information was, that explained to me, how to do certain things :)