Tagged: admin, CRUD, custom table
- This topic has 4 replies, 2 voices, and was last updated 5 years, 12 months ago by
fr3dxel.
-
AuthorPosts
-
-
February 9, 2016 at 10:08 am #5884
fr3dxelMemberFirst of all best compliments for the great code you provided.
Piklist is a great time saver and looks as an awesome promising software!I searched the posts archive and found a 2014 post on this topic.
It seems that at that time those features wasnt still presentI’d like to know if there is a piklist way to show an admin page with CRUD features for a custom wp table
thankyou for your committment
-
February 10, 2016 at 10:57 pm #5896
-
February 13, 2016 at 7:00 pm #5923
fr3dxelMemberty very much for you reply.
I have to change my question then.
I’m trying to make a new admin menu voice.
Very much like piklist about/welcome page.I start by adding in my plugin php:
add_filter('piklist_admin_pages', 'my_custom_admin_pages'); function my_custom_admin_pages($pages) { $pages[] = array( 'page_title' => __('Page title') ,'menu_title' => __('Menu title') ,'capability' => 'manage_options' ,'menu_slug' => 'mycustomadminpages' ,'menu_icon' => MY_PLUGIN_URL.'imgs/my-icon.png' ,'page_icon' => MY_PLUGIN_URL.'imgs/my-icon.png' ,'single_line' => true ,'default_tab' => 'Basic' ); return $pages; }that correctly create the ‘Menu title’ menu button (with correct icon)
I miss how to specify that /parts/admin-pages/mycustompage.php will be the target of ‘Menu title’ menu button link.
Currently it displays a blank page with ‘Page title’Sorry for the silly question but I think that could integrate your documentation page
Documentation: Settings / Admin Page Parametersyes i know. never understimate the stupidity of some of yours readers.
-
February 15, 2016 at 1:01 am #5924
SteveKeymasterYou can check out this file in the plugin which creates the Welcome page for Piklist.
piklist/parts/admin-pages/welcome.phpYou’ll notice the
pageparameter in the comment block. I think that’s what you need.Let us know if you still have questions.
-
February 15, 2016 at 7:40 am #5925
fr3dxelMemberSteve thankyou very much.
I saw the welcome page and ironically I displayed it in my new admin section.
Now I realize I cannot display MY page because I forgot to add
Plugin Type: Piklist
in my plugin
all other functions worked well. Not the folder structureReally sorry to have wasted your time
Hopefully this will be of some utility to othersKeep on with your work
Piklist rocks !!!
-
-
AuthorPosts
- The topic ‘admin custom table crud’ is closed to new replies.