Forums

Jump-to plugin (6 posts)

  1. John
    Member
    Posted 7 years ago #

    Hi,

    I made a (very) simple plugin to add a drop-down 'jumpto' box on multi-page posts. It can be found, along with a demonstration, at http://www.urbangiraffe.com/2005/03/13/jumpto/

    Maybe someone else will find it useful!

  2. AntonioRojilla
    Member
    Posted 7 years ago #

    Yes, I find it useful, but I have a problem with it: I'm trying to do a printable version of my posts and when a post have multiple pages I have used this code (I found it in these forums) to show all the content at the same time:

    <?php if ($posts) { foreach ($posts as $post) { start_wp(); ?>
    <?php $numpages; ?>
    <?php the_title(); ?>
    <?php for ($page = 1; $page <= $numpages; $page++) { ?>
    <?php the_content(); ?>
    <?php } } } ?>

    It works, but I get the drop-down box just after the cotent of everypage, so can you please help me?

    How can I do so your plugin can know that the printable page is not multipage or how can I do so I can show in my posts the select form from a function so it is not always in the content? Something like this:

    <?php jumpto(); ?>

    I don't know if you understan me, but I hope so! Thanks anyway for a gret plugin, I really like it!

  3. davidchait
    Member
    Posted 7 years ago #

    Interesting approach! Similar in 'presumed need' to my CG-PageName plugin (which allows you to have a Table of Contents of links, though now that I've seen yours I can imagine a dropdown selector) -- though I took the approach of using the <!--nextpage--> users already had to enter, and made it into <!--nextpage:Some Page Title-->.

    Glad to see there's some other people thinking of WP in more 'CMS' usage patterns! Keep up the good work!

    -d

  4. AntonioRojilla
    Member
    Posted 7 years ago #

    Hi David! I visited your site and saw your pagination method at this location:

    http://www.chait.net/index.php?p=2&page=1

    Nice work!

    Is your code public? Can it be found in the codex or any plugin repository? I would like to give it a try...

    Thanks in advance!

  5. AntonioRojilla
    Member
    Posted 7 years ago #

    Ops! I didn't notice you are the CG-PowerPack's developer... I installed it sometime ago just for a test and right now I was navigating through the files and I found that PageName is included... Time to chek it!

  6. AntonioRojilla
    Member
    Posted 7 years ago #

    Mmmm... I forgot to say: THANKS FOR THE WORK!

    Also, about my first question here, does anyone have any idea on how to get rid of the jumpto drop down form when printing a page? This is, how can I tell the plugin not to show that select list?

    Thanks in advance!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.