Widget pour afficher les pages


Dans un site sur les Cordages Bateaux dont je m’occupe en partie, il a été choisi d’utiliser beaucoup de pages pour gérer le contenu du site. Ce choix des pages a plusieurs avantages :

  • Cohérent avec le fait que ce site utilise WordPress comme un CMS pour afficher du contenu plutôt statique.
  • Les pages permettent une gestion fine des hiérarchies (page principale et sous pages sur plusieurs niveaux).
  • Beaucoup de plugins permettent d’exploiter cette architecture (pour des menus, fil d’ariane…)

Ce grand nombre de page pose cependant un problème de navigation. Dans mon exemple le menu horizontal principal du haut liste les pages du sommet de la hiérarchie et les sous pages sont affichées au survol (menu déroulant). Cela fonctionne bien et quand on descend dans l’arborescence, un fil d’ariane permet de remonter vers la sortie (ou du moins vers les pages précédentes).

Par contre quand on est sur une sous-page donnée, on aimerait bien avoir une sorte de menu de navigation contextuel dans la barre latérale avec au moins l’affichage de 2 autres éléments :

  • Les autres pages du même niveau hiérarchique dans l’arborescence.
  • Les pages filles de la page actuelle si elles existent.

Les plugins de gestion des pages sont très nombreux dans WordPress, voici mes notes sur ceux que j’aurai testé avant de trouver mon bonheur.

Le widget de gestion des pages par défaut de WordPress

Ce widget affiche l’ensemble des pages du site. On peut exclure certaines pages si l’on veut. L’affichage obtenu n’est absolument pas contextuel et tout à fait inadapté à notre besoin.

Le plugin Sub Page Widget.

Voici sa page chez Extend. Ce plugin a l’air de ne plus être maintenu.

Normalement ce plugin permet d’afficher les sous pages de la page actuelle dans une colonne latérale. Il ne s’affiche pas quand la page est une page sans sous page.

Après test ce plugin ne permet pas d’afficher les pages du même niveau hiérarchiques et je n’ai pas du tout réussi à faire ce que je voulais.

Le plugin Flexi Pages Widget

Voici sa page chez Extend et celle de son auteur Srini.

Ce plugin fait bien ce qu’on lui demande. Les paramétrages sont simples et intuitifs :

widget pages wordpress flexi

widget pages wordpress flexi

Juste un regret : pas moyen de ne pas afficher les autres pages du premier niveau hiérarchique (celles sans parent) quand on est dans l’arborescence.

Les autres plugins.

Bien que la requête « display page widget » renvoie plus de 1000 résultats dans les plugins de WordPress, je vais en rester là dans mon article puisque le plugin « Flexi » fonctionne très bien.

Trackbacks Commentaires
  • traderman dit :

    Bonjour, j’ai été assez surpris de bonheur en voyant le site cordage bateau. Quel est le theme utilisé car il correspond exactement a ce que je cherche? Merci

  • I recently came across your article and have been reading along. I want to express my admiration of your writing skill and ability to make readers read from the beginning to the end. I would like to read newer posts and to share my thoughts with you.

  • gwen dit :

    Hi! Super plugin « Flexi Pages Widget », mais en mettant la fonction ‘liste déroulante’, je me retrouve avec une barre de recherche deux fois trop longue, et impossible de la diminuer. Il y a pourtant un code : $control_ops = array(‘width’ => ‘380’, ‘height’ =>  », ‘id_base’ => ‘flexipages’); , c’ est tout ce que j’ ai trouvé,et même avec firebug, rien…

  • gwen dit :

    enfin de compte, il faillait que je diminue un de mes titres…

  • Pour regler ce probleme il faut juste avoir des titres des pages pas trop long que ton espase side bar autrement dit 3 a 4 mots pour chaque titre de page et voila 🙂

  • Cavimaster dit :

    Il y a un plugin (page on widget) très simple et efficace qui permet d’afficher le contenu d’une page dans un widget. Juste l’extrait ou tout le contenu ou encore tout le contenu tronqué à X mots on peut encore affiche ou non le titre de la page…


  • Pascal dit :

    Bonjour j’ai un probleme avec flexi pages qui m’affiche un lien alors que j’ai une page vide (qui sert car elle a des sous pages).
    Que ce soit pages ou flexipages, j’ai le lien vers cette page vide qui est affiché (alors que le menu gere ça sans probleme)
    merci de votre aide

  • Ce site est vraiment un must merci pour toutes les infos}

  • I relish, cause I discovered exactly what I was looking for. You have ended my four day lengthy hunt! God Bless you man. Have a nice day. Bye

  • Please let me know if you’re looking for a article author for your blog. You have some really great articles and I think I would be a good asset. If you ever want to take some of the load off, I’d love to write some content for
    your blog in exchange for a link back to mine. Please
    send me an e-mail if interested. Thank you!

  • I almost never comment, however i did a few searching and
    wound up here Widget pour afficher les pages | WordPress
    tuto. And I actually do have 2 questions for you if it’s allright.
    Could it be simply me or does it look as if like a few of these comments appear like coming from brain dead individuals?
    😛 And, if you are writing on other places, I would
    like to follow anything fresh you have to post.
    Would you list of every one of your community sites like your Facebook page,
    twitter feed, or linkedin profile?

  • People across the globe are able to team up, build, fight, and compete.
    Don’t hesitate to contact the seller with any questions you might have.
    By looking around perhaps you may notice some issues, such as
    trees and shrubs and animals running around about.

  • Dwayne dit :

    Here is a list of things which we can do with your cold tool called Play – Station: Play your
    favorite preferred games. Walmart’s site has also jumped in with a $399
    pre-order price tag to join the mix of retailers.
    A unique gift for girl child who are ages nine to thirteen is a
    melody box.

  • The Playstation Move Bundle comes with a game and the motion
    sensing controller. Walmart’s site has also jumped in with a $399 pre-order price tag to join the mix of retailers.
    The selling prices of the games is below $10 bucks, significantly less than the Play – Station Portables payment
    selection of much less than $40 bucks per game.

  • I have to thank you for the efforts you have put in penning this site.
    I’m hoping to see the same high-grade blog posts from you
    in the future as well. In truth, your creative writing abilities has motivated me to get my
    own blog now 😉

  • Nicholas dit :

    Especially if you haven’t got something incredible to tell them EVERY time.
    Alternatively, they can be instantly shared with friends
    by being posted on Ovi Share. know what it takes to design and build superior concession trailers.

  • If you aare goinjg for finest contents like I do,
    just paay a visit this website daily because it provides quality contents, thanks

  • My programmer is trying to persuade me to move to .net from PHP.
    I have always disliked the idea because of the expenses.
    But he’s tryiong none the less. I’ve been using Movable-type on a variety of
    websites for about a year and am anxious about switching to another platform.
    I have heard good things about blogengine.net. Is there a way I can transfer all my wordpress
    posts into it? Any help would be greatly appreciated!

  • The Lord of Karma’s anything-but-fancy footwork would then proceed to cut off all mental momentum, leaving
    the Gemini mind-numbingly bored and impatiently disgusted.
    nuchal   nuclei   nudely   nudest   nudged   nudger   nudges
      nudies. shippers shipping shippons shipside shipways shipworm shipyard shirkers.

  • The next time you decide to go shopping for new clothes visit your closet instead. I believe I had a spiritual experience Saturday. Instead of spending a ton of money online or at the mall, I decided to visit my closet.
    Shopping online at favorite websites seemed like a fun way to spend Saturday morning. There was a ton of new clothes already in my shopping cart when I had to make a trip to my closet to get a trouser size. The shopping cart had James Perse T-shirts and cargo pants, Vince sweaters and Juicy Couture Bermuda shorts. I was having a ball as I usually do when I find a good sale or bargain.
    I was going to buy a new pair of James Perse parachute cargo pants when I needed to verify my size. So, low-and-behold, I walked into my closet to see which size I bought last month. That’s when I decided to take a closer look at the clothes hanging neatly in sections of pants, shorts, capris, blouses, dresses, T-shirts, jackets and coats. Actually, my closet looks like a well-organized section of a high-end department store. I’m in the designer handbag and purse business, so I make it a habit of collecting high-end fashion from every cool website and boutique possible.

  • image-fashion dit :

    My shoes are all neatly organized by Designer names and color-labeled on the outside of the box. My favorite sneaker collection is the Nike Rift in wild colors and patterns. Camper leather shoes are very comfortable so I have many neatly arranged red boxes on the shelves. Prada Sport shoes range from flat to platform, and they are all color marked and labeled. Hermes dress shoes get worn less, but nonetheless, they are neatly arranged on the shelf.
    I have a soft-spot for boots, so my collection of Henry Cuir, Prada, Ann Demeulemeester, Mosquito, Robert Clergerie, Camper, Miu Miu, Diesel, Michael KORS, UGG, and Ralph Lauren are all neatly labeled and waiting to be worn. They range from ankle height to over-the-knee style, and I wear them with just about anything when I’m in the mood for boots. My favorites are a new gaucho style from Brazil. And, of course, you can’t beat the light weight of Henry Cuir for warm weather.

  • keuser dit :

    My closet is really a fun place to visit and keep organized. All the Hermes designer purses are neatly stored in their orange boxes and labeled on the outside. Of course, my favorite of all the Hermes designer handbags are the impossible to source Birkin bags. The Hermes Market Bag is also a fun medium style and great to grab for daytime or evening wear.
    As I stood looking for the James Perse cargo pant size, I realized I had several things I had not worn with tags still attached. So, I began pulling items and holding them next to each other. Then, without hesitation, I began coordinating outfits from the closet’s contents. I found tops I forgot I had. I found double James Perse T-shirts in the same color and style! I was having the time of my life. All of a sudden I realized home shopping had a new meaning. Balenciaga and Dries Van Noten blouses were funkier than ever! Marc Jacobs, Yves Saint Laurent and Eskandar jackets were fashionable, timeless pieces. Robert Rodriguez skirts, crochet tops and gaucho pants had never looked so beautiful.

  • shit bricks dit :

    Can I simply just say what a comfort to uncover somebody who really understands what they’re talking about over the internet.

    You certainly realize how to bring a problem to light
    and make it important. More and more people have to read this and understand this
    side of the story. It’s surprising you’re not more popular since you
    definitely have the gift.

  • Playing water using Banzai water slide is much safer than bringing your children to swimming pool or even beach, this is the second reason you can count on.
    Furthermore, the third reason that you can count is that while your children playing Banzai slide, you can do your house tasks because you can place the slide in the backyard of your house.
    The Banzai falls water slide only has less than three meters height and that would be very safe to your children.

  • The materials used in the Banzai products making are the best materials that are rust free and have high durability. The Banzai product is movable and if you want to move it to other places you can do it by simply drag it to the new place by previously empty the water. Those are the reason number four and five.
    If you want to buy Banzai falls water slide, you can directly open the internet and search it. Many stores on the internet sell the water slide with various models. You can buy Double Drops Falls, Canon Blast Slide, and many other Banzai product types. All types of water slides are made by putting attention in the children safety. You should consider seriously to buy this product and make your children happy, that’s the biggest reason why you should by it.

  • Lester vous dit :

    by being posted on Ovi Share. know what chaussures Timberland it takes to design and build superior concession trailers

  • Lester vous dit :

    Après test ce plugin ne permet Nike Free 5.0 pas d’afficher les pages du même niveau hiérarchiques et je n’ai pas du tout réussi à faire ce que je voulais

  • pagodehoquoc dit :

    For affordable marine binos then look no further than the Oceana series Celestrom binoculars which come with a range finding dial and compass. However, if you want truly top notch marine binoculars then don’t make a purchase before checking out the Steiner Commander series which are salt water resistant, protected against environmental pressures, waterproof to 10 mtrs, long-life rubber armoured, auto focusing and guaranteed for 30 years, truly special.
    In this digital era, no range would be complete without digital binoculars. The Celestron Vistapix allows you to store pictures, download them onto a TV or laptop and print quickly and easily starting from around ?50.

  • With compact binoculars Celestron do have some strong competitors, even in the low price range including Nikon, Pentax and Olympus (who offer the widest choice), all good makes and all worth a look at. Canon do a compact IS binocular and Steiner make some excellent high quality compact binoculars ranging from about ?50 – ?300.
    If you want to get into astronomy but don’t want to spend a fortune Celestron do a range of affordable binoculars to get you started. The Skymaster series are priced as low as ?50 or, if you want a telescope then Celestron has a vast selection of low cost beginner models right up through to the top of the range.

  • rouletoujours dit :

    Cheap cookware sets are good because they do what they are made or designed to do, which is to cook the food. A food cooked in this type of sets would taste the same if you cooked the food in another sets. The sets you use don’t affect the taste of food. The taste of food depends on the cook. That is if the cook is good, the food would taste good. But if the cook is a bad cook, the food would taste horrible. So to make a food taste good, the cook has to add the different and right amount of spices. Then the cook has to stir the food properly to make sure that the spices mixes are dissipated around the food. it is not good if one part of the food has too much spice, and another part has little or no spice. This would leave a negative impression in the mind of the guest.

  • Help in the backfield has been hard to come by, as
    head coach Jim Zorn is on his third starting
    tailback, while the receiving corps has once again underachieved (like
    that is a surprise. He was the second in line in a series of great centers for the Raiders.
    The AFL was only in its’ infancy having been started in 1960.
    Hacienda del Sol Guest Ranch Resort is located at: 5501 N.
    Meanwhile the Washington redskins are on the opposite
    end of the fortune spectrum, in the midst of an utterly disappointing season that
    recently saw them get blasted by the Giants at home on Monday Night Football.
    Just ask the Tampa Bay Derby Darlins’ Sasha Haughtbich.
    The class costs $25 (price covers tequila, appetizers, and instruction) and is hosted in the Salud lobby lounge.

  • style jazz dit :

    Les autres pages du même chaussures Timberland niveau hiérarchique dans l’arborescence.

  • style jazz dit :

    So to make a food taste good, the cook has chaussures Timberland to add the different and right amount of spices

  • style jazz dit :

    the food would taste horrible. So to make nike tn a food taste good, the cook has to add the different and right amount of spices

  • castle clash dit :

    Now I am going away to do my breakfast, afterward having my breakfast coming again to read additional

  • When you first start using the pharmacy, make sure you get your
    Red Card tied to pharmacy rewards. These coupons
    are likely to be $10 off of an $25 purchase.
    I will attempt to outline some of the misconceptions, obstacles, causes and remedies that I have encountered.

  • Thank you, I have just been looking for information about this topic for a long time and yours is the greatest I’ve discovered till now. However, what concerning the conclusion? Are you positive concerning the source?|What i don’t realize is in reality how you are no longer really much more well-appreciated than you may be right now. You’re so intelligent.

  • Ultimately when you http://www.tifosibianconeri.fr ‘pier’ at the Pirotan Island it’s wise to be careful when you jump-off the water craft.

Réagissez à code xbox live gold