Replies: 2 comments 3 replies
-
FYI ... I've found that I had some permission settings (Admin View >> Settings >> Permissions) that I thought might be causing the issue, but I have remove them and still no Apply/Save button. I also removed all Linked Views and still no change (although I didn't expect Linked views to cause any change - just trying almost anything right now). BTW ... here's what a 'working' admin view's view.html.php file's addtoolbar function looks like:
protected function addToolBar()
Here is what the one that is NOT working looks like:
I'm at quite a loss as to why JCB is creating such a small here for the first instance and why the second is so involved. I think I've disabled almost all of the settings specific to this non-working page, and I've removed what I could. I also tried to replicate the smaller, working code in place of the longer, non-working code, but that resulted in the toolbar not appearing at all. Any explanation as to why JCB is building 2 completely different toolbar functions would be appreciated. |
Beta Was this translation helpful? Give feedback.
-
BTW ... "it will require some custom coding to be added" ... do you mean custom code to JCB or just to the component? If it is in the component, if you can give me a rough explanation I should be able figure that out. (Or point me to Joomla docs that might explain the problem/solution). |
Beta Was this translation helpful? Give feedback.
-
I created an admin for a component well over a year ago and need to make adjustments, but having problem solving a basic issue.
On the admin view (in front-end), the only buttons that appear are "Save & Close" and "Close".
I need to have a "Save" (or "Apply") button to the form, as well as a Save & New and Save as Copy.
I can't figure out WHY these buttons are not appearing in the toolbar.
I've looked into the view's view.html.php file (on the front-end), but the code in the addToolBar() function appears to be identical to another form that I have that IS showing all the toolbar buttons (other than the obvious difference for the name of the view in each of the code areas).
The only difference that I can see (other than different fields and some postsave code), is that the form that does not display the save/apply toolbar button has a couple liked views on the form.
Also, the problem form, at the end of the view.html.php >> addToolBar() function has:
$this->toolbar = JToolbar::getInstance();
which is not in the other view's file.
I was able to manually get the apply button to work by adding:
JToolBarHelper::apply('book.apply', 'JTOOLBAR_APPLY');
within the first if clause ( ... ::checkString($this->referral)) section.
The apply button then appeared, but just functioned the same as a SAVE & CLOSE button, always returning the user to the previous screen (closing the form).
I'm not at all sure why this might be happening, unless it is related to the linked views on this form.
If anyone has ANY ideas where to look next, please let me know as I've been trying to track this down for a couple days.
And I'm not sure if this is somehow a JCB issue or just a Joomla code issue.
Beta Was this translation helpful? Give feedback.
All reactions