• My current back end plugin page displays a list similar to the following:

    ID     Some head    Another head   etc.
    ------ ------------- --------- ----------- <edit button>
    ------ ------------- --------- ----------- <edit button>
    ------ ------------- --------- ----------- <edit button>
    ------ -------------- --------- ---------- <edit button>

    When I click the <edit button> I would like to be transferred to a new page where the current entry values are grabbed and displayed in <input and <textarea> boxes. So the person can change the values he needs to without copy and pasting each value again.

    Make sense?

    So the setup would look something like this:

    ----              ----
    |some| ---------> |new |
    |link|            |page|
    |    |            |    |
     ----              ----
    
    My current        My new
    single            single
    plugin            plugin
    admin backend     backend
    page...           page...

    The problem is, how do I link to another page? How do you add multiple pages to a back end plugin page without adding menu items?

    Any Advice would be appreciated.

    Thank you!

    [Moderator Note: No bumping. If it’s that urgent, consider hiring someone instead.]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Snaphaan

    (@snaphaan)

    I have linked to another file called edit.php.

    <td><a href="<?php echo plugin_dir_url(__FILE__).'edit.php?name='.$slname ?>">Edit</a>

    It works. But now I am taken out of the WP dashboard area onto a new page. Is there any way to link up with a page that stays on the dasboard?

    Thread Starter Snaphaan

    (@snaphaan)

    I GOT IT!!

    Well, sort of.

    I created a normal submenu item for the plugin’s main admin menu. I then linked to it like so:

    <a href="<?php echo admin_url().'admin.php?page=SL_edit&name='.$slname ?>">Edit</a>

    This subpage displays a new form with the values of the particular entry displayed in the edit boxes.

    It’s so stupid and simple but what got me confused is why I am using submenu items instead of “just another page”.

    I will give a working code example when I have the time for those beginners who might want something similar.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Multiple plugin setup pages without menu items’ is closed to new replies.