First non-Lib Dem Wordpress widget…

February 21, 2008: Version 1.2. Bug-fix to ensure that it works with the new datastructure in the latest versions of Wordpress. A huge thank you to Will Howells for fixing this.

September 16, 2006: Version 1.1. Bug-fix to ensure that it ‘remembers’ your root page when the Widget page is updated.

Here’s the first of two new Wordpress Widgets, and, for the first time, it’s not Lib Dem specific.

It lets you show a subsection of the pages of your Wordpress blog. The options page for the widget shows a drop-down box of all the pages in your blog. Select one of them and only pages below that will be displayed by the widget on the menu.

I’m using it on Make IT Policy to have a menu section that only shows the pages of the Make IT Policy policy paper.

You can find the Widget here.

If you already have widgets installed as part of your Wordpress installation, you can try this widget out yourself. All you need to do to use it:

  1. Download the ldpagehierarchy.zip file, extract the ldpagehierarchy.php file and save it or upload it into your widget plug-ins directory.
  2. Go into the ‘Plugins’ area of your Wordpress installation and activate the ‘Sub page hierarchy’ widget.
  3. Go into the ‘Sidebar Widgets’ section of the ‘Presentation’ area of Wordpress, and drag your new ‘Sub page hierarchy’ widget to the desired location.
  4. Hit the configure icon, select the page that is the parent of the pages you want to show in your page hierarchy and then close the configuration box.
  5. Hit ‘Save Changes’

er, that’s it.

If you don’t have widgets installed, head off to Automaticc’s Widgets project page and follow their extremely helpful instructions on how to install widgets and add them to your blog template.

You can find lots of useful widgets via the Wordpress Widgets blog.

11 Responses to “First non-Lib Dem Wordpress widget…”

  1. Josh Says:

    Great widget! I see this as being very useful in the site I am developing.

    I have created a Page hierarchy that is 2 levels deep (for now).

    I am curiouis to know what it would take to make the Head Page dynamic, therefore makeing the subPages display depending on what Page you have selected.

    best,
    Josh

  2. Martin Tod Says:

    Josh,

    Thanks.

    There’s a plug-in that shows pages below the current page at http://jaredquinn.info/software/wordpress-plugin/sublist/

    It would probably make sense to combine the two and have this as an option for my plug-in (or vice versa).

    Something for the to-do list! :-)

    Martin

  3. Brandon Says:

    Excellent addition to the widget catalogue. I agree with Josh, making this work with other top level pages would be ideal. If you ever get that working, I’ll put you on my Christmas card list.

  4. Selected Subpages « Wordpress Updates Says:

    [...] I just got an email from Martin about a new page hierarchy widget that does a neat job of showing the subpages of only the page you select. [...]

  5. DB Ferguson Says:

    I have a question - is it possible to have a second widget that does the same thing in the blog?

    I basically want this widget in my blog twice, for two different pages. Is this possible? Is it possible for you to do a quick tweak to the original widget to make it so that I can have more than one of them in my sidebar?

    Thanks!

  6. Nicolas Says:

    Hi,

    I have always used this widget with great pleasure. Now I have installed Wordpress 2.1, and it is bugging a little bit: hitting the ‘configure icon’, the Head Page combo is empty: I can not select the parent page, and therefore the widget becomes useless.

    Have anyone experienced such a thing ?
    If yes, any hint to solve this ?

    Thanks in advance !

  7. JohnL Says:

    Courtesy call here. Have anyone advised you that this plugin doesn’t work with WordPress 2.1? The ‘Head Page’ dropdown is very narrow and is empty.

  8. Martin Tod Says:

    John L / Nicholas,

    Many thanks for pointing this out. I didn’t know it was broken. I’ll look into it when I have a moment.

    D.B. Ferguson

    It’s probably quite a big tweak - although not impossible. It would be a easier to create a plug-in that let’s you put it into the main text. There are a couple of other things I’d like to do first - sorting the 2.1 problem - and allowing people to pick ‘this page’ as the home page…

  9. Nicolas Says:

    Hi Martin,

    ok waiting for your fix then: unless anyone has a workaround ? For the moment I kind of hardcode de sublist hierarchy, but it does not quite make it.

    If you realise this will be too hard/long to fiw, would you let us know ?

    Thanks for your work anyhow.

    Rgds.

  10. A resurgent Liberal » Blog Archive » Updated widget to show page hierarchies Says:

    [...] Many thanks to Will Howells for fixing the ldpagehierarchy.php widget. [...]

  11. Blog of Kittima » Blog Archive » Installed widgets and plugins Says:

    [...] Widgets & plugins: Scrobbler, Sub page hierarchy, WeatherIcon, SparkStats, Sandbox, และ Wunder สำหรับ SparkStats [...]

Leave a Reply

You must be logged in to post a comment.


creatine testosterone how do i order viagra online valium without a prescription discount viagra online cialis 20 lipitor order buy zanaflex does clomid work remeron remedy for hair loss accutane buy chloramphenicol antibiotic meloxicam tablets cialis online ordering how to relieve lower back pain diflucan pharmacy cheap online cialis where can i order viagra cheap online cialis information celebrex bupropion 150 mg dog medicine medicine for vomiting buying levitra buy discount cialis cialis clomid no prescription medications to help clot blood naturally increase breast size offers xenical diet hoodia gum buy paxil online small dog weight loss order indomethacin hoodia pill viagra without new gerd treatment sleep disorders drugs immune stimulants viagra online prescription flu treatment what is zyprexa medication levitra fat burning adhd treatment asthma treatment drugs levitra viagra prescription online online pharmacy viagra best cure for snoring sildenafil kamagra cialis purchase online parasite cleanser treatment for infant diarrhea generika levitra gout medicines buying cialis online cialis and viagra use levitra wellbutrin dosages claritin 10mg phentermine buy without a perscription hydroxyzine dose xanax order zocor snoring cure internal human parasites levitra 50mg hypnosis help study buy hyzaar discount drug viagra online viagra without prescription best online viagra scams diflucan fungus viagra prescription online buy red wine pill calcium carbonate levitra discount human parasite breast cancer drug treatment how to get viagra online dog ear problem effexor dosages zantac dose albuterol proventil buy levitra online estradiol pills antibiotics bronchitis buy viagra online cialis online motilium buy skin white spots lisinopril 5mg cheapest celebrex canada tadalafil levitra without a prescription prevention of heart attack viagra order online cheap celadrin best price for cialis side effects levitra cialis 5mg tablets buy breast enhancement gum treating a yeast infection best online viagra scams what is heart failure bph prostate get viagra prescription online finasteride dosage cold v flu nolvadex generic how to get a prescription for cialis breast cancer drugs new arthritis drug vitamin store contraception pill buy cialis online without prescription buy danazol cialis cod buy coq10 buy generic cialis online bph medications dog healthy teeth viagra purchase buy 5 htp snoring uk hoodia fast active ingredient cialis levitra online pharmacy sildenafil kamagra fluoxetine order medication without prescription itching ointment newest drug for depression cialis buy cialis online cialis buy cialis online what are beta-blockers how to buy viagra online top hair loss zestril medication dog calming pills prednisone interactions viagra order flonase benign prostatic hyperplasia buy condom amoxicillin tooth levothyroxine dosages omeprazole dosage where to buy cheap phentermine