Link Directly to 'Browse' Tab in WP-Admin

0

I'm trying to link directly to the 'Browse' tab, so that my Editors can directly edit a POD's content from within the WP-Admin interface.

I'm currently using the following link: "/wp-admin/admin.php?page=pod-staff" but by default, this takes the user to the Edit tab.

Is there a way to link directly to the 'Browse' tab?

asked Sep 22 '09 at 3:33

ckpicker

20

add comment
enter at least 15 characters

6 Answers

0

In pods/manage_content.php, change

<pre> jQuery("#dialog").jqm(); </pre>

to

<pre> jQuery("#dialog").jqm();

// Remember the tab selection
var thetab = window.location.href.split("#")[1];
thetab = ("undefined" == typeof(thetab)) ? "edit" : thetab;
jQuery(".navTab[rel="+thetab+"Area]").click();

</pre>

Then, you can navigate directly to the Browse tab by going to "/wp-admin/admin.php?page=pod-staff#browse".

answered Sep 22 '09 at 11:30

logikal16

249

add comment
enter at least 15 characters
0

Awesome! Thanks!

answered Sep 22 '09 at 11:33

ckpicker

20

add comment
enter at least 15 characters
0

Ok - the page numbering on the 'Browse' tab is also messed up. Whenever I am browsing a list of records and click on page 2, it takes me back to the 'Edit' tab by default.

answered Sep 22 '09 at 11:37

ckpicker

20

add comment
enter at least 15 characters
0

D'oh. Okay, give this a try then:

<pre> jQuery("#dialog").jqm();

// Remember the tab selection
var thetab = window.location.href.split("#")[1];
if ("undefined" != typeof (thetab)) {
    jQuery(".navTab[rel="+thetab+"Area]").click();
}

</pre>

answered Sep 22 '09 at 11:43

logikal16

249

add comment
enter at least 15 characters
0

Actually - I remember this being an issue before I even implemented this code. Looks like a bug.

answered Sep 22 '09 at 11:45

ckpicker

20

add comment
enter at least 15 characters
0

Has anyone else experienced this?

answered Sep 22 '09 at 3:33

ckpicker

20

add comment
enter at least 15 characters