Index Page

Steve A's Avatar

Steve A

15 May, 2018 04:52 PM

I had a "Master Index Page" to all my other linked pages. It has disappeared. Is there a way to generate a single page that contains links to all the other pages?
Thanks,
Steve

  1. 1 Posted by Sarah on 15 May, 2018 09:06 PM

    Sarah's Avatar

    Hi Steve,

    Thanks for posting about this. Do you know how your Index page disappeared? Was it deleted?

    There is no integrated option in VoodooPad to generate a single page that contains all page links, however you could do this by using a JSTalk plugin.

    Here is a script that will help you do this:

    function main(windowController, document) {
       var keys = document.keys();
       for (i = 0; i < keys.length; i++) {
           print(keys[i]);
       }
    }
    

    If you have not done this before, here's how to do it:
    1. Create a new JSTalk page - you can name this page "Show Page List" or something related
    2. Copy the above script into that page
    3. Go to Plugins > JSTalk > Save Page as JSTalk Plugin...

    You'll be prompted to save a .jstalk file in the Script Plugins folder. After you've done that, the name of that page should show up as an option under Plugins. If you click that option, a small window should show up listing all page names in the current document. You can copy and paste that into your new designated Index page. The page names will automatically link.

    All of the page names will be lower case, but if you would like the first letter of each word to be capitalized, you can do this by selecting all of the text and going to Edit > Transformations > Capitalize.

    Let me know if this helps! And if you have any other questions or concerns I'll do my best to address them.

    Warm regards,

    Sarah
    Primate Labs Inc.

  2. 2 Posted by Steve Abdu on 16 May, 2018 03:43 AM

    Steve Abdu's Avatar

    Thank you Sarah, that worked just fine!

    I don’t know how the page disappeared. I have seen links to pages disappear before, but never the pages. Usually, I can just relink the pages and off I go. This time was different but you saved the day for me.

    Thanks again,

    Steve Abdu

  3. 3 Posted by Sarah on 16 May, 2018 03:01 PM

    Sarah's Avatar

    Hi Steve,

    Glad I could help!

    I'd like to take a closer look at this issue you are experiencing with links to pages disappearing. Are the page names being unlinked? Or are you losing the entire text of the link? Could you provide more detail into what you are experiencing when this happens?

    Also, what model of Mac and macOS version are you using? And just to confirm, are you updated to VoodooPad 5.2.0?

    Thanks,

    Sarah
    Primate Labs Inc.

  4. 4 Posted by Steve Abdu on 16 May, 2018 08:24 PM

    Steve Abdu's Avatar

    Sarah,

    Thanks again, you saved me hours of relinking!

    Occasionally, a link will disappear. I can usually select the dead link, right click and relink. It’s possible that the Index page became unlinked. There was also a copy of the linked Index page and I may have deleted the wrong page, leaving the copy incomplete and without reference to the page. The unlinking issue is something that I’ve run across maybe 8 or 10 times over the past 2 years.

    I’ve got all my pages linked now but if it should happen again, I’ll email you with the details.

    Regards,

    Steve Abdu

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac