Viewing 4 reply threads
  • Author
    Posts
    • #5884
      fr3dxel
      Member

      First 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 present

      I’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

    • #5896
      Steve
      Keymaster

      @fr3dxel– Welcome to the Piklist community!

      Unfortunately, custom tables will not be release until after v1.0 is finished. We are currently working on unit tests and bug fixes, and holding off on new features.

    • #5923
      fr3dxel
      Member

      ty 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 Parameters

      yes i know. never understimate the stupidity of some of yours readers.

    • #5924
      Steve
      Keymaster

      You can check out this file in the plugin which creates the Welcome page for Piklist.
      piklist/parts/admin-pages/welcome.php

      You’ll notice the page parameter in the comment block. I think that’s what you need.

      Let us know if you still have questions.

    • #5925
      fr3dxel
      Member

      Steve 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 structure

      Really sorry to have wasted your time
      Hopefully this will be of some utility to others

      Keep on with your work
      Piklist rocks !!!

Viewing 4 reply threads
  • The topic ‘admin custom table crud’ is closed to new replies.