Replies: 1 comment 2 replies
-
Hi, I asked about this years ago... I think that @rica-carv found a workaround I am using The only way how I was able to do it: (It is just a screenshot from some plugin I have online - to see position) put this in init() and add method - just an example from searching github online, I have a better way somewhere (when I find it, I will add it here)
You can/could find this in many of my plugins. About the admin menu... in my plugins, I always separate the menu and admin UI part. It is not recommended and I create a folder admin. One of the main reasons is that I don't want to admin_config.php replaced by using a plugin builder repeatedly (it is needed with complex plugins). During that time I had a lot of versions of how to do it... my questions about this weren't answered. With each plugin, it was better and better. Unfortunately, I lost my backup, the only available sources are left on github. or look in "vstore" plugin for how to create a separate admin page for each admin menu item. Maybe you will get it. I didn't at that time, so I am using my way, |
Beta Was this translation helpful? Give feedback.
-
Creating a plugin with the plugin builder, if someone has a lot of database tables, the admin_config.php has a punch of Manage(list), and Create(create). It would be nice if we can remove the create, and just add it as a button on the list(Manage) page. Something simple like what the create page has with the Create/Cancel butt.
Example:
![Screenshot 2023-06-23 155522](https://private-user-images.githubusercontent.com/5818022/248404037-dd8e45b6-129a-4928-b899-e69904abcde3.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk4NzA1NzgsIm5iZiI6MTczOTg3MDI3OCwicGF0aCI6Ii81ODE4MDIyLzI0ODQwNDAzNy1kZDhlNDViNi0xMjlhLTQ5MjgtYjg5OS1lNjk5MDRhYmNkZTMuanBnP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxOCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMThUMDkxNzU4WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZGE3ODcyMjQxNzk0ZDE3Nzc3MmIxYTliY2NkNzMwMzFkYjdhOTBhNzNkMDcyZGI2ZThjZTZmY2EzYjlhZjhlYiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.EV4etLBL_U9YwvWhUGoEdbCsNYMw26SNYZgOdqsuY6M)
What it looks like:
What I want it to look like:
![example1](https://private-user-images.githubusercontent.com/5818022/248404083-6ff6af91-d773-4a37-a7ce-0cc0c6b7ab67.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk4NzA1NzgsIm5iZiI6MTczOTg3MDI3OCwicGF0aCI6Ii81ODE4MDIyLzI0ODQwNDA4My02ZmY2YWY5MS1kNzczLTRhMzctYTdjZS0wY2MwYzZiN2FiNjcucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxOCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMThUMDkxNzU4WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MTI0MDRkZDNhNjQzMTJiY2Y5NjliYmI5NjlmMzk2ZGIyNjA3Mjk1YzA0MzFhNjhmOWVjMGU5OGFhODBiZGQ0MyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.3AwmmgC2aAx8c036ngkWXHTD2fTZIHkZb-f6TPsJn4w)
I would try to just do it myself, but I have no clue where to look to do so, I would make a custom page with my own button, but again - I don't know where the template is for admin config's for plugins.
Beta Was this translation helpful? Give feedback.
All reactions