Breukie’s Pages Widget for Wordpress

Because I recently decided to port my complete website to a wordpress based, or blog based website, I needed a better way to use the wp_list_pages function as a navigation menu.
I could not really find what I needed, so I wrote my own little widget to display my pages the way I wanted. Resulting in this one, Breukie’s Pages Widget.
Because I later on found a cool plugin named: Page Link Manager plugin by Garrett Murphey. I now also use that plugin and made my widget compatible with his plugin. Now you don’t even need to change any code if you use his plugin and/or the default wp_list_pages function.

Like my other widget (Breukie’s Links Widget), it is a pretty simple widget, but hope it will do the trick for you too!

Description

Breukie’s Pages Widget is a Wordpress pages widget, to replace the standard links widget by Automattic. This widget displays pages on your sidebar using the wp_list_pages function, utilizes several available parameters like sort and exclude pages so you can use it as a page navigation menu. You can also set up to 9 intances of this widget in your sidebar(s) and this widget will also work together with the Page Link Manager plugin by Garrett Murphey without modifying any code.

Requirements

Only tested on Wordpress 2.1+, but it should work on previous versions of Wordpress that use the wp_list_pages function.

Support

Any questions like support, bug reports, feature requests or any of this kind for this widget, can be posted in my forum. To post a message there, log in with your account, or register first if you do not have one. Still … I am curious what you think of this widget, so feel free to comment 8-)

Installing

  1. Unzip to wp-content/plugins/widgets.
  2. Go to WP admin -> plugins and activate Breukie’s Pages Widget.
  3. Go to WP admin -> presentation -> sidebar widgets, to add the widget to your sidebar(s).
  4. Select how many Breukie’s Pages Widgets you want to show and/or setup the parameters of the widget.
  5. If you are updating from an earlier version, deactivate, delete old version, upload new version and activate it.

Version History

Version 2.3

  • Made wordpress 2.1 compatible.

Version 2.2

  • Cleaned up and corrected Read Me File.

Version 2.1

  • Added Read Me File.

Version 2.0

  • Bug fix.
  • Some small translations from dutch to english.
  • Made my widget Page Link Manager plugin compatible.
  • Finishing touches.

Version 1.5

  • Bug fix.
  • Cleaned up code.
  • Added all other parameters.

Version 1.0

  • Added most parameters.

Download

Breukie’s Pages Widget v2.3 - downloaded 3038 times.

Posted on zondag, maart 25th, 2007 at 9:56 pm
Filed under Categories: Hersenspinsels, Websites.
Using Tags: , , , , .
Follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.
Add this blog article to any of the social bookmarking sites below

These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • StumbleUpon
  • Technorati
  • Spurl
  • Reddit
  • De.lirio.us
  • Fleck
  • Furl
  • NewsVine
  • Slashdot
  • Facebook
  • Google
  • NuJIJ
  • TwitThis
Comments

30 Responses to “Breukie’s Pages Widget for Wordpress”

  1. Weblog Tools Collection » Blog Archive » WordPress Plugin Releases for 3/26 Says:

    [...] Breukie’s Pages Widget is a Wordpress pages widget, to replace the standard pages widget by Automattic. [...]

  2. Chris Says:

    Hi Arnold!

    How do I add the Pages Widget to my Sidebar? What kind of code do I have to insert in the sidebar.php?

    Cheers
    Chris

  3. breukie Says:

    Hi Chris,

    Install instructions for my widget are in the post above.
    To insert the Pages Widget in your sidebar, you do not need to add any code to your sidebar, it makes the code you want for you. That is the fun part with those things ;-)
    Just upload the widget to your widget folder and activate the widget in your dashboard.
    After that you go in your dashboard to “Presentation” –> “Sidebar Widgets”, setup your widget(s) and see the magic.

    If you do not have a widget folder in you /wp-content/plugins folder (or a widget.php in that folder) go to automattic.com, where you can get it.

    If you do have the widget folder and widget.php and also uploaded and activated my widget but it still doesn’t work, check if you have a code like (without the space between the first < and the ?)

    < ?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(1) ) : else : ?>

    in your wp-content/themes/{your_theme}/sidebar.php (open it with a texteditor not word), to make your sidebar.php widget ready. You can also download themes that are widget ready by default, if you can’t work it out.

    HTH

  4. Breukie’s Pages Widget for WordPress » D’ Technology Weblog — Technology, Blogging, Gadgets, Fashion, Life Style. Says:

    [...] more info and download…. [...]

  5. Chris Says:

    Thanks a lot for your detailed instructions, Arnold! I have now implemented your widget and it is exactly what I needed! Great work.
    Unfortunately, IE 6 breaks my design when the link text of one of the sidebar links is too long. It also puts bullets in front of the link menu headers (h2). I have no clue why the line-break which worked fine before doesn’t work with the sidebar widget. Problem is with IE 6.0.2 Any ideas? The site I am refering to is: http:/www.stefflhof.at/gesundheitsbauernhof/
    THX
    Chris

  6. WeblogToolsCollection Español » Blog Archive » Plugins de WordPress publicados 26/3 Says:

    [...] Breukie’s Pages Widget es una página de widgets para WordPress, para reemplazar la página estandard de Automattic. [...]

  7. breukie Says:

    Hi Chris,

    Your problems have to do with your design (CSS), not the widget.

    You could even set and change a couple of parameter in my widget for this, but you might not solve your problem completally. In your case I would go to your stylesheet of your theme (style.css mostly) and go to the the id’s and classes that you use for your sidebar.
    Also check the css for other parts, mainly the style for your lists.
    The id’s and classes I use for my widget are: for id “breukies-pages-{number_of_breukiespageswidget}” and for the class “widget widget_breukiespages”
    Setting only the widget class the way you want it (wich works for every good widget) should be enough, depending on your stylesheet. You are furthermore using the class “page_item” for your lists (the < ul > and < li >).
    The first part of this post should do it allready, but setting all the others correctly would help too, at least the page_item and your sidebar styles ;-)
    Check it all, but also remember that with lists for example, Firefox has CSS options that do not work in IE and the other way around. You can check codes for that at almost any CSS help website.

    HTH

  8. WP Plugins April 4, 2007 « Blogtology Says:

    [...] Breukie’s Pages Widget is a Wordpress pages widget, to replace the standard pages widget by Automattic. [...]

  9. תוספים לוורדפרס 29-30.4.07 : הבלוג של אח”×™ דקר Says:

    [...] Breukie’s Pages Widget - ווידג’ט המחליף את ווידג’ט העמודים המגיע עם וורדפרס, הווידג’ט מאפשר מיון ופילטרים על הדפים המוצגים. ניתן גם לייצר עד 9 מופעים שלו. [...]

  10. Peter Lurie Says:

    Hi Arnold!

    I really love the widgets. A suggestion for the Pages one… could you perhaps have an “include” page field, as I usually want to break down the multiple instances into a few pages, so specifying the ones I WANT would make more sense.

    Any response to that?

    Dank u wel!
    Peter in Munich

  11. Jeff Kee Says:

    Hey, great stuff. Except I’m having one problem. The “Child Of” attribute does not seem to work for me.. it displays all the pages, although from my understanding, if I put in “19″ in teh childof attr, it should only display pages that are subpages of 19.

    Am I doing something wrong?

  12. WP Plugins DB » Plugin Details » Breukie's Pages Widget Says:

    [...] Visit [...]

  13. Herrin Says:

    Hey there. Awesome plugin . have been using this one for a while now3 and works beautifully for controlled navigation on a site. Doesn’t work with wp 2.2.1 as yet though. You are probably aware of that but just wondering if you could send me a quick email when you get this one compatible. Thanks again. Herr

  14. David Says:

    I use this with WP 2.21, and so far OK. Keep up the excellent work, another handy plugin, well done.

  15. Will Humes Says:

    Hi:

    I have been trying to get your pages widget to work in the way I want for several hours now. I admit I’m a novice at programming, but I have gone to the wp list pages website to try to figure things out I haven’t been able to. You see, I too use the Page Link Manager plug-in so that my top menu (like yours) only includes certain pages. What I would like to be able to do, however, is also include one of your page widgets to list all of the pages in a hierarchical and indented fashion (as you also do on your blog under “Navigate.” No amount of fooling around with the code has made this work for me. If you have some time, can you help? I would really appreciate it. My blog is found at http://onethingiknow.net. Thanks

  16. Kevin Dobo Says:

    I installed the Pages Widget, activated it and placed it in my widgets. It displays OK except that none of the options are updated, no matter what I use. I can’t sort differently, change the title_li or do anything else. The variables simply aren’t being read.
    I noticed your instructions said to put the php file in plugins/widgets, but I don’t have that folder structure in 2.2.1… is that necessary since widgets are now built-in?

    Thanks!

  17. twiggle Says:

    I’m having troubles getting the arguments to work in this pages widget since 2.2.1 and it’s driving me mad.

    It worked so perfectly before!

    Thanks for checking into it!

  18. Andreas Says:

    Hello Breukie!
    I have WP 2.2.1 DE. After installing your PageWidget, I have two new pages widgets on my site - http://www.andreas-bender.de/wordp/ - thats ok… so long.
    But in the options of your PageWidgets at Sidebar-Arrangement I can change anything without any effect on my site.
    I have installed your LinkWidgets too and the same problems.
    I know, you have only tested with WP 2.1, but maybe an other user have the thame problems.
    regards
    Andreas

  19. srinig.com - ‘Flexi Pages Widget’ for WordPress Says:

    [...] doesn’t have many options… the ‘SubPages widget‘, and to an extent ‘Breukie’s Pages Widget‘ can be used to accomplish this, but they don’t exactly do what I wanted. I wanted only [...]

  20. Dean Says:

    Hi, I can’t get the exclude pages option to work. I put a list of pages in the textbox separated by commas, ie: 3,7,9 but it doesn’t work.

    What’s the proper syntax for that option?

  21. mnrmn Says:

    report:

    using WP2.0.11 and it works well, only that it doesn’t exclude any other pages. every other page shows the sidebar when i just want to show the sub-pages related to the same page ONLY. hmmm.

  22. Mark Says:

    I’m having difficulty with the ‘exclude page’ feature of the sidebar widget. I wan’t the following page left off the menu. http://www.mywebsite.com/?page_id=34

    What should I type in to the field in the popup? I’ve tried and tried different options.

    Thanks in advance,

    Mark

  23. tekanji Says:

    Do you have an plans on fixing your plugins? I run them on many of my sites, but I’ve had to downgrade to Pages 2.2, Links 2.4, and Categories 2.0 in order to have them run properly with 2.2.1 and above.

  24. Chris Says:

    Thanks for the free plugin, much appreciated!

    If I have quick question:

    How do I display links in one part of the nav bar (widget) and not in the other?

    Thanks,

    Chris

  25. Breukie’s Pages Widget_Wordpress plugin Says:

    [...] Plugin Homepage [...]

  26. Joan Says:

    Hi,

    I installed the widget, no problem. I understand that I can use it more than once on the sidebar. (I want one for Pages, another for Articles). I see how to name the widget, but I don’t understand how to use it multiple times. Your instructions would be appreciated.

    Thanks.
    Joan

  27. Says:

    [...] might say that it’s very similar to Breukie’s Pages Widget. Yes, it might be. But for some strange reason the plugin didn’t work on my WordPress [...]

  28. Tom Says:

    There is an issue with using the plugin with WP2.5. None of the custom parameters have any effect on the output. I tracked this down to the $number argument in function widget_breukiespages($args, $number = 1) being assigned no value. If I insert the line $number = 1 at the beginning of the function, the problem is solved. However, I can only use one single instance of the widget in my theme.

  29. Breukie’s Pages Widget for Wordpress Says:

    [...] Breukie’s Pages Widget for Wordpress von Arnold Breukhoven erstetzt das Pages Widget von Aotomattic. Das Widget nutzt die wp_list_pages Funktion und bietet mehr Optionen als das Standard Widget. Bookmarks setzen: Diese Icons verlinken auf Bookmark Dienste bei denen Nutzer neue Inhalte finden und mit anderen teilen können. [...]

  30. breukie Says:

    To all users of this plugin.
    My apologies, I haven’t updates my website, let alone my plugins for a long while. To be more exact, my last update was 2 more than 2 years ago.
    The issues described in your comments are known to me and will be solved. I am now in the progress of updating and upgrading my website and after that will update my plugins too.

    To all of you I’d like to day: I am sorry for the inconvenience :-)

    Please keep in mind that these plugins are free and to donwload just because it might help you and I like to share it with you all.

Leave a Reply