Extension talk:Hierarchy

Instructions about templates
I wanted to mention to you that it would be more clear in your instructions on the mediawiki site if you named the 'Template:Hierarchy header' 'Hierarchy header' because in your examples, you call , not. Anyone messing around with this stuff should understand what transclusions are but I thought I would let you know the inconsistencies.

Is there any site where this extension can be seen in action?
No, sorry. But you can install it on a test site and follow the usage sample to try it out. --Fernando Correia 15:42, 1 February 2007 (UTC)

Do you think this extension will work on MW 1.6.7?
Regards, Aretai 11:04, 5 February 2007 (UTC)


 * Well, it might. But I cannot verify that. My focus is to support the newest version. Only one way to find out... --Fernando Correia 11:31, 5 February 2007 (UTC)

OK have had a try. Some minor problems with: CREATE TABLE `mywikidb`.`hierarchy` ( `Id` int( 10 ) unsigned NOT NULL AUTO_INCREMENT,  `IndexArticleId` int( 10 ) unsigned NOT NULL ,  `TocLevel` int( 10 ) unsigned NOT NULL ,  `TocNumber` varchar( 255 ) NOT NULL ,  `TocText` varchar( 255 ) NOT NULL ,  `Sequence` int( 10 ) unsigned NOT NULL ,  `ArticleId` int( 10 ) unsigned NOT NULL ,  `PreviousArticleId` int( 10 ) unsigned NOT NULL ,  `NextArticleId` int( 10 ) unsigned NOT NULL ,  `ParentArticleId` int( 10 ) unsigned NOT NULL ,  PRIMARY KEY ( `Id` ) ,  KEY `IndexArticle` USING BTREE( `IndexArticleId` , `Sequence` ), KEY `ArticleId` ( `ArticleId` ) ) ENGINE = MYISAM DEFAULT CHARSET = latin1;

Got an error 1064 - think some problems with KEY? What version of MySQL does your extension support? Aretai 14:41, 8 February 2007 (UTC)


 * MySQL version 5. Take a look, you have to replace `mywikidb` for the name of your database. --Fernando Correia 15:35, 8 February 2007 (UTC)

Yes I know:) I've already replaced it. Well will try again, however probably just need to update my software Aretai 09:45, 9 February 2007 (UTC)


 * Probably this error is more related to MySQL than to MediaWiki. If at all possible try to update PHP, MySQL and MediaWiki. --Fernando Correia 10:40, 9 February 2007 (UTC)

Is it possible to include (the first N levels of) the hierarchy in the sidebar?
--wimh 13:49, 8 May 2007 (UTC)

Allow less than 4 items
It would be nice to remove the limitation of at least 4 items in the index. This may lead to confusion when users try to build the index incrementally. Probably a _TOC_ used internally in the index function could do it. --Fernando Correia 13:24, 9 March 2007 (UTC)

Subordinate pages in the navigation box (resolved)
Great extension! It works fine for me. However, it would be great to have the subordinate pages listed in the navigation box as well, instead of them only being displayed in the footer. 130.83.196.179 16:44, 6 March 2007 (UTC)


 * Thanks for the feedback. I agree that this would be a good idea. Probably showing as an indented bulleted list. There could be an option to have these pages on the footer, in the box, or both. --Fernando Correia 18:39, 6 March 2007 (UTC)

I have hacked the extension so as to include subordinate pages in the navigation box, can send you the modified file if you are interested. 130.83.196.179 14:36, 7 March 2007 (UTC)


 * Sure, please do! You can post it here or email it to me. --Fernando Correia 16:58, 7 March 2007 (UTC)


 * Thank you for your contribution, Felix! Version 1.1.0 is released. --Fernando Correia 17:01, 8 March 2007 (UTC)

Alternate text in index
Nice extension which helps me a lot. One thing I'm missing is to use another text in the index than the link, something like Piped Links. When using ... &lt;index&gt; [[ Top Page ]

Sample Chapter
... I get a link to Sample_Chapter, instead of Chapter1

Tried also this form a (b) but this gives an error in $page_url = $title->escapeLocalURL; Thanks for your help. --Daniel 11:26, 9 March 2007 (UTC)


 * I agree. I've already had this need also. I think this can be allowed with a little tweaking in the parser. This form should be easy to allow: == Sample Chapter == --Fernando Correia 11:11, 9 March 2007 (UTC)

That was fast! You think you might adopt this? Knowing this, I could already start using this form in my pages. Thanks --Daniel 12:25, 9 March 2007 (UTC)


 * Talk about fast. By the timestamps, it seems I'm answering them before you ask them! :-)


 * I'd definitely like to have this feature. Maybe I can take some time to take a look at it today. No promises, though. In the meantime you can create a page redirect to have an alternate name. --Fernando Correia 12:20, 9 March 2007 (UTC)

Table prefixes
It seems the extension does not work when table prefixes are used. --Fernando Correia 18:47, 4 April 2007 (UTC)


 * I haven't seen any problems using this extension and table prefixes so far (only tested on a very limited demo site), off course the CREATE TABLE statement should be altered so that the hierarchy-table has the same prefix as the other tables --wimh 13:46, 8 May 2007 (UTC)

Contributors
Source code contributors:
 * Fernando Correia: Original contributor.
 * Felix Froehlich: Subordinate pages in navigation box; separating text before embedded subordinate pages list.

1.1.0
Release date: 2007-03-08
 * FEATURE: Full "breadcrumb" of superior pages in the navigation box.
 * FEATURE: Optional subordinate pages in the navigation box.
 * FEATURE: Optional embedded subordinate pages list.
 * FEATURE: Separating text between the page content and the embedded subordinate pages list.
 * FEATURE: Automatic adjustment of navigation box width.
 * FEATURE: German translation.

1.0.0
Release date: 2007-02-01
 * Initial release.