custom button in a single view: +New #800
Replies: 2 comments 3 replies
-
Yes at the moment this is indeed the case. So since I can't tell what any button will do, I assume all buttons need existing item and so is placed outside the scope of new items. Not that we can't improve this... but this is how it works now. All the times so far in the past when I needed it to work on new none existing item, I used the code replacement method. See this tutorial:
|
Beta Was this translation helpful? Give feedback.
-
I used this code to insert a button: PHP DOCUMENT METHOD: |
Beta Was this translation helpful? Give feedback.
-
I created a custom button in an admin view for the single view. It work perfectly when I edit the single view, but not when I click on +New (item). Somehow, in view.html.php & addToolBar(), the custom button is not inserted in "if ($isNew)".
I do make a mistake that the custom button is not inserted in "if ($isNew)" ?
Beta Was this translation helpful? Give feedback.
All reactions