The addrulepath and addfield path missing from menu parameter xml #169
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: joomla/Component-Builder#169
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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?
So I manually added the validate attribute to my xml file and added my custom rule to the rule folder and it works fine for the config options and the view, but it breaks in the menu item xml because it's missing the addrulepath and addfield path
I think they should probably be added here:
I have great news on this feature request, please watch this tutorial.
Just a heads-up if you want to use the rule on a view (menu) the implementation is basically the same.
Thanks for the tutorial, I learned a few things that I hadn't added to my implementation, like the BOM thing. But the only way I was able to get it to work with my menu item was to add a rule path to the field in the xml. Without that it wasn't able to find the path to the rule. I discovered this by stepping through the code in the IDE. Adding this path fixed the problem because all the xml files have the path except the default.xml file.
Okay I see... I will add it to the next update, so the default will also have it.
For now the fix will be to add a few lines in the interpreter file at line 1352
replace
with
This should add the rule path to the default view option as well.
In Fact here is the whole function, so just update the whole function in the file:
Please test and let me know
Tested it and it works. Thanks.