1 (edited by polyfragmented 2011-03-15 10:59:12)

Topic: [Hack, v3.0] Auto-open 'page options' (slug, tags, navigation, etc.)

This is a quick hack (not upgrade-safe!) for auto-opening the page options in the page edit section. I am currently setting up a v3.0 beta testing site so having the options for slugs, navigation, etc. open without having to click is a bonus for me. Haven't checked on v2.03.1.

The file to be edited is at /admin/template/js/jquery.getsimple.js, look for the comment

// edit.php

at line number 206 or thereabouts. Right below that comment, insert the following snippet which simply slides open the options and then toggles the state of the button with which you would normally open up the page options.

// START Auto-open page options on edit page load
    $("#metadata_window").slideToggle('fast');
    
    $("#metadata_toggle").toggleClass('current');    
// STOP

Maybe this is helpful for someone else, too. Enjoy.

Post's attachments

gs_forum_admin_edit_page_options-open.png
gs_forum_admin_edit_page_options-open.png 16.27 kb, 8 downloads since 2011-03-15 

You don't have the permssions to download the attachments of this post.

Re: [Hack, v3.0] Auto-open 'page options' (slug, tags, navigation, etc.)

I put this code into the small plugin Auto-open Page Options: it automatically opens the page options when editing pages.

I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.

Re: [Hack, v3.0] Auto-open 'page options' (slug, tags, navigation, etc.)

Thanks for that! Awesome.

Re: [Hack, v3.0] Auto-open 'page options' (slug, tags, navigation, etc.)

Cool!