We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Wiki: Table of Contents for articles

Development and Programming

Les McKeown's avatar
Les McKeown
133 posts
18 years ago
Les McKeown's avatar Les McKeown

Done 😊

       
Derek Jones's avatar
Derek Jones
7,561 posts
18 years ago
Derek Jones's avatar Derek Jones

Odd. Replace the plugin you downloaded with this one and see if that fixes it.

       
Les McKeown's avatar
Les McKeown
133 posts
18 years ago
Les McKeown's avatar Les McKeown

Your genius strikes again…works great!

Thanks, Derek, I really appreciate it.

Kind regards,

Les


Les McKeown FCA, President & CEO Predictable Success(tm) Everything you need to achieve consistent, profitable growth

LEARN ABOUT IT… ===> http://PredictableSuccess.com

GET IT……….. ===> http://GetPredictableSuccess.com

       
Derek Jones's avatar
Derek Jones
7,561 posts
18 years ago
Derek Jones's avatar Derek Jones

sigh that means I need to get around to finishing v0.3 up and releasing it. 😖

Glad it worked for you!

       
Brion's avatar
Brion
3 posts
18 years ago
Brion's avatar Brion

I’m interested in your TOC plugin for a project I’m working on that incorporates a Widget for an RSS feed. When I clicked on the RSS link at your developers wiki I got some unexpected results:

       
Derek Jones's avatar
Derek Jones
7,561 posts
18 years ago
Derek Jones's avatar Derek Jones

Er…what were the unexpected results? And how does that relate to what you’re wanting to use the TOC plugin for?

       
Brion's avatar
Brion
3 posts
18 years ago
Brion's avatar Brion

Sorry to leave that hanging, I was interrupted by a phone call.

I went to view the TOC live example you have on your site (it’s just what I need!) then clicked on the RSS link in the left nav bar to see how it renders, and it shows the Template parsing order, formatting, etc. The RSS reader I’m using is Safari version 2.0.4

       
Derek Jones's avatar
Derek Jones
7,561 posts
18 years ago
Derek Jones's avatar Derek Jones

Ah, that’s the way the wiki feeds work. They are tied to the wiki’s recent changes (hence Special:Recentchanges_RSS and Special:Recentchanges_Atom). So the RSS feed would show you a list of the most recently changed articles, and in most news readers, the Atom feed would show none, as there haven’t been any changes made in a long time.

       
Brion's avatar
Brion
3 posts
18 years ago
Brion's avatar Brion

Ahh! Those are individual entries! Forgive me because I’m an idiot. You have a articles containing code and at first look it threw me.

I’m never gonna get the hang of this.

       
Derek Jones's avatar
Derek Jones
7,561 posts
18 years ago
Derek Jones's avatar Derek Jones

:lol:

       
Jeff Ricks's avatar
Jeff Ricks
99 posts
18 years ago
Jeff Ricks's avatar Jeff Ricks

I can’t seem to find the answer I need so I’m posting this S.O.S.

I’ve installed this plugin and it works unless I specify anything but default formatting. If I specify Textile, for instance, it’s as if the wiki_toc plugin isn’t even installed. Below is my code for specifying Textile:

class Wiki_toc {

    /* -------------------------------------
    /*  User Modifiable Class Variables
    /* -------------------------------------*/
    
    var $formatting        = 'Textile';            // Formatting plugin you wish to use, first letter capitalized. e.g. 'Markdown', 'Textile', etc.
    var $toc_tag           = '[TOC]';                // Tag you wish to use in your articles to place the table of contents
    var $heading           = 'Table of Contents';    // Heading you'd like the table of contents to have
    var $separator         = '<hr >';                // XHTML to separate the table of contents from the article

…and yes, I do have both the TOC and textile plugins installed. Textile seems to work just fine when I select it as the formatting option instead of wiki_toc. I’m using EE 1.5.2 by the way. Any suggestions?

       
Jeff Ricks's avatar
Jeff Ricks
99 posts
18 years ago
Jeff Ricks's avatar Jeff Ricks

Seems to be working now, and I haven’t a clue what I did to cause it to work…or what I was doing to keep it from working. Anyoo, it works! Sorry for the false alarm!

       
Mark R. Adams's avatar
Mark R. Adams
9 posts
18 years ago
Mark R. Adams's avatar Mark R. Adams

The TOC creates anchors to heading/subheadings in the text. Is there a way to create a “top” link through this plugin, or can we (should we) simply create “top” links using HTML?

       
Derek Jones's avatar
Derek Jones
7,561 posts
18 years ago
Derek Jones's avatar Derek Jones

You could certainly modify the plugin to create both the anchor and the link, but it’s also perfectly acceptable to do that with pMcode/HTML in your article.

       
alex7's avatar
alex7
130 posts
17 years ago
alex7's avatar alex7

Beautiful. Unfortunately it’s working only with Latin characters in headings. Is it possible to make it work with Cyrillic or any other “nonlatin” language, like it works in similar function of Mediawiki?

       
1 2 3

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.