• Thought I’d paste some of our plugin modifications here, in case you might add them to the trunk’s code.

    /plugins/table-of-contents-plus/toc.php:78

    $this->path = plugins_url( '', __FILE__ );

    The plugin’s reliance on WP_PLUGIN_URL means that SSL throws errors.

    /plugins/table-of-contents-plus/toc.php:325

    wp_register_style( 'toc-screen', $this->path . '/screen.css', array(), '1211' );
    wp_register_script( 'toc-front', $this->path . '/front.js', array('jquery'), '1211', true );

    Put the script in to the footer, version stamp the version you’re using whenever you update. The option to put the script at the bottom could come from the Settings page. The version number is semi-important when upgrading the plugin on servers that cache aggressively.

    /plugins/table-of-contents-plus/toc.php:1426

    $html .= '<ul class="toc_list"><li><a href="#">'.get_the_title().'</a></li>' . $items . '</ul></div>' . "\n" . $items . '</ul></div>' . "\n";

    This adds the title of the page to the TOC. Again, a nice option from the Settings page. This suits our heading structure well. Perhaps there’s another way to include the page’s <h1> on the TOC?

    http://wordpress.org/extend/plugins/table-of-contents-plus/

Viewing 1 replies (of 1 total)
  • Plugin Author Mike

    (@conjur3r)

    1211 introduced the %PAGE_TITLE% variable which you can place at the desired position of the TOC title to do exactly what you wanted with the last change. See the changelog.

    Good point re SSL and caching.

Viewing 1 replies (of 1 total)
  • The topic ‘Some changes we made, that you might consider’ is closed to new replies.