Wordpress Plugins – Extensions

Just another WordPress.com weblog

Table of Contents Creator 1.6.4

Author: Mark Beljaars
Table of Contents Creator (TOCC) automatically generates a highly customizable dynamic site wide table of contents that is always up-to-date. All entries are navigable making your site very SEO friendly. TOCC can be configured to display static pages, blog entries and forum comments. Another great feature of TOCC is the ability to include anchor tags marked with a special class. This feature allows links to articles, downloads or even other sites to appear within the table of contents as if they are part of your site’s navigation

Upload the TOCC plugin to your /wp-content/plugins/ directory and activate it.
Edit the TOCC settings using the admin page located under settings.
Place <!– toc-creator –> anywhere on a page or use the page generator on the admin page. Use the HTML editor when placing the tag.

When I add a new page or post, do I need to tell TOCC?

No. TOCC will automatically add new pages, blog categories and entries, forum comments and links to the table of contents. A new table of contents is generated every time the page is displayed.

Where does the Summarizer get its text from?

The Summarizer is a great feature of TOCC that automatically produces a short summary of each page or post. It first attempts to retrieve the summary from the All in One SEO Plugin. If none was found, it then looks inside a custom META tag, then the post excerpt, then the post content. If all this fails, a message is displayed indicating that no description exists for this page or post. The summary is then stripped of any HTML tags and truncated to a configurable length before it is displayed.

Why is it that some static pages don’t display in the table of contents?

Private pages are not included in the table of contents. Furthermore, you can inhibit pages from displaying using the admin settings page.

What is an anchor link?

Anchor links are <a> tags that have been marked with a special class. For example, TOCC may be configured so that any anchor tags that include the text class=”tocc” will be included as a link in the table of contents. Note that the class identifier can be changed via the admin settings page. This feature may be used to include pages on other websites, download links, PDFs and so on.

Can I edit the way the table of contents is displayed?

Definitely! There are many options on the admin settings page that allow you to individualise the way the the TOC is displayed. TOCC also ships with a tocc.css file that can be customised to display different icons, text colors and so on. All individual elements within the TOC can be formatted within the css file.

Can I display more than one TOC with different options?

Yes you can, however you need to override the options using the trigger tag (AKA short tag). For example, <!– toc-creator show_menu=yes|icon_set=2|show_static=|@blog_exclude=5,20,3,15,85 –> will display a TOC with an options menu, the square icon set, no static pages and multiple excluded blog categories. The blog and post category IDs are shown within the TOC settings page. All TOC option names are listed in an array at the top of the source code.

The option syntax is as follows: text to the left of the equals sign is the option name, text to the right is the value (leave blank to disable the option), | separates options, and @ is used to indicate to the preprocessor that the option value is actually a comma separated array list.

I don’t want to allow my visitors to sort by author. How do I do this?

All pull-down menu entry texts are configured within the general options pane within the plugin settings page. To disable any option within the menu, simply delete the text after the comma. Do not remove the comma.

Some of my pages are place holders only. How do I stop TOCC from adding a link to these pages?

There are two ways to do this. First, you can exclude pages using the TOCC settings page. This will also exclude all children of the page and therefore may not suite all users. The other way is to allow TOCC to display the page, but not include a link to the page. This is done by setting a short tag override. To determine the ID of all pages you do not want to show links for, open the TOCC settings page and expand the Static Page Options pane. All pages should be listed here with their ID in brackets. To exclude links, modify the TOCC short tag as per the following example: <!– toc-creator @link_exclude=749,765 –>. This will not display links for pages with IDs of 749 and 765.

How do I add the TOC to the 404 page?

Within the WordPress theme editor, add the following line within the 404.php file… <?php if(function_exists(‘tocc_show’)) {tocc_show();} ?>. Note that this line can also be added to any page, post or template file.

I note that there is a page and category exclude option, but what if I only want to include a couple of pages or categories?

If you have many pages and categories, and you only want to include a couple of these in the TOC, it may be tedious to individually exclude all other categories or pages. Instead, you could use the @page_include and @blog_include short code overrides. For example <!– toc-creator @page_include=13,187|@blog_include=8 –> will only display pages with IDs 13 and 187 and categories with ID 8 only.

Is it possible to exclude specific posts from the TOC?

Yes. Use the @blog_postExclude short code override. For example, <!– toc-creator @blog_postExclude=23,31,45|show_postIDs=yes –> will exclude posts with IDs 23, 31 and 45. Post IDs can be determined by temporarily enabling the show_posIDs short code override. This will show the post ID next to each post in the TOC. Remove this override once you have determined the IDs of the posts to exclude.

Table of Contents Creator 1.6.4


June 6, 2010 - Posted by | download, extension, extensions, free, get, internet, plugin, plugins, Uncategorized, wordpress

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: