Extension talk:CategoryTree/Archive 04

From mediawiki.org

2010[edit]

Put the sidebar tree at top[edit]

Possible? --MisterLambda 00:09, 22 January 2010 (UTC)Reply
I want the same put the Category sidebar on top, over the standard navigation 79.219.220.220 15:31, 28 January 2010 (UTC)Reply

[+] Will not work in Mediawiki:Sidebar[edit]

Here's my page -> Click and if I have the category tree in the sidebar, it will NOT work.. But if i put in the main page, then category tree on the sidebar WILL work.. but ONLY for that page.. (In my site, the first page has on it, all other pages dont)

Why is this? How can you fix it? Thanks...

209.172.30.187 07:52, 1 February 2010 (UTC)Reply


Edit: Blarg, now THAT Doesnt even work if Categorytree Is in the main page @_@

209.172.30.187 08:16, 1 February 2010 (UTC)Reply

BUG FOUND[edit]

The reason for this is that this extension produces incompletely closed <div>...</div> sections :-( Here is a HTML example that it produces for the browser:

        <div class=" CategoryTreeTag">
         <div class="CategoryTreeSection">
          <div class="CategoryTreeItem">
           <span class="CategoryTreeBullet">
            <span class="CategoryTreeToggle" style="display: inline;" onclick="if (this.href) this.href='javascript:void(0)'; categoryTreeExpandNode('XYZ',{"mode":0,"hideprefix":20,"showcount":false,"namespaces":false},this);" title="expand">
             [<b>+</b>]
            </span>
           </span>
           <a class="CategoryTreeLabel  CategoryTreeLabelNs14 CategoryTreeLabelCategory" href="/wiki/Category:XYZ">XYZ</a>
          </div>

Note that two closing </div> elements are missing at the end. This can screw up your whole skin when using this extension in the sidebar.

And the missing tags also make it impossible to use the <categorytree> tag in a bulleted list: The following example will totally screw up your generated page:

        * <categorytree mode=categories depth=0>MyCategory1</categorytree>
        * <categorytree mode=categories depth=0>MyCategory2</categorytree>

Category Tree with memcached[edit]

We have a problem with memcached and CategoryTree. When we change the name of a page, the CategoryTree entry is not updated. Has anyone any experience with this constellation?

How to add MediaWiki:categorytree-member-num to an category without printing it?[edit]

Is there any way to add MediaWiki:categorytree-member-num to an category without printing the category in the tree? I tried <noinclude>[[Category:test]]</noinclude> but the CategoryTree extension won't respect the noinclude! --Danwe 19:41, 17 February 2010 (UTC)Reply

Still no way to add the page to a category. I think the extension really should check for noinclude tags to make this possible! --Danwe 14:44, 3 June 2010 (UTC)Reply

sorry - diesmal auf deutsch[edit]

...was muß ich machen, um aus dem http-link "http://de.wikipedia.orgindex.php/?title=User:Ulli_Purwin" den entsprechenden funktionierenden link zu erhalten - oder besser noch: wäre es nicht ein leichtes für dich, diesen deadlink im script funktionsfähig "umzubiegen"? gruß, --Ulli Purwin 00:10, 18 February 2010 (UTC)Reply

Why is [+] printed when there is no subcategories?[edit]

Great extension! But, why are the [+] visible even for categories without subcategories? It creates some confusion. Too bad it seemes no one is supporting this extension. :/ --P.Nilsson 14:04, 29 March 2010 (UTC)Reply

This seems to be fixed in svn:

Revision 66987  - Directory Listing
Modified Fri May 28 02:15:44 2010 UTC (4 weeks, 5 days ago) by tstarling
* (bug 23682) Don't allow people to expand subtree when it's known to be empty, this is inefficient.
* Fixed a bug causing the "+" link to be shown even when the number of subcategories is zero, due to the DBMS returning a string instead of an integer, causing triple-equals comparison to fail.

But the svn changes don't work with 1.15.1 Maybe we could get a snapshot with those changes? Monkeyboydad 6/30/2010

The fix above does seem to correct the [+] appearing instead of [x] issue. However, when using the "Depth" option, the extension still auto-expands the "no subcategories" node/message which takes up a lot of space and makes the overall tree less usable/readable. --OverSurge 18:46, 3 November 2010 (UTC)Reply

Tree Menu does not work when running on Windows XP using IE or Firefox[edit]

After installing Firebug plugin on Firefox discovered that the path for baseDir on line 66 was not getting converted from a windows path to a Linux path. (path contained "\" instead of "/". Modified the code on line 66 from "$this->baseDir" to "$this->baseUrl".

Problem on Colorado[edit]

We had to remove this from w:en:Colorado as it was causing excessive page loading times and timeouts. Is this a problem with this extension or a misuse of it on an inappropiate article? Exxolon 21:30, 9 August 2010 (UTC)Reply

Manually Sort Order[edit]

Is there any way for me to manual sort the order in which the pages show up in the Category Tree. Its not chronological (ie by date).... but it still has an order (like a textbook with various sections and chapters)

I may be misunderstanding what you want to do, but I use {{DEFAULTCATEGORYSORT:Name}} on the subcategories to specify what name it should use to order by, and it still orders like I want it to once I installed this extension. Might that be the answer you're looking for? -James3mg 05:26, 9 September 2010 (UTC)Reply

Default output when empty[edit]

Is it possible to output a "Empty" or "Nothing found" default text if the category is empty? Duskey 20:43, 26 August 2010 (UTC)Reply

Possible to show all categories in a tree?[edit]

Is it possible to show all categories in a tree without adding them all to a master category? I would ideally like to see Special:Categories as a tree, and subcategories of a given category as a tree rather than list on that category's page. --John.james 03:17, 7 September 2010 (UTC)Reply

Depth setting of 0 on a category page[edit]

I installed this extension in order to have my category pages list the number of subcategories and pages under them, not really for the expanding tree. Based on the documentation, it seemed that setting $wgCategoryTreeDefaultOptions['depth']='0'; in LocalSettings.php would do what I was looking for, based on the statement that, "0 means only the root node". But it still allows each subcategory to expand one level, just as if I'd set the depth option to "1" instead. I also tried setting it to '-1', just in case, but it still behaved as if I'd set it to 1.

Is this a bug, or is there any other way of just listing the numbers according to MediaWiki:Categorytree-member-num and preventing any node expansion? Thanks James3mg 05:19, 9 September 2010 (UTC)Reply

Database error in dev-snapshot[edit]

09/09/2010 - 22:23 german time

Hello,

I just installed the latest dev-snapshot (Revision 72682) of Category Tree via Subversion. All the files are in the extension folder and I added the two lines with ajax enable and that require once in my LocalSettings. Nevertheless as soon as I want to see a Category Tree e.g. via the categorytree-tag, I receive the following message:


Es ist ein Datenbankfehler aufgetreten. Der Grund kann ein Programmierfehler sein. Die letzte Datenbankabfrage lautete: (SQL-Abfrage versteckt) aus der Funktion „CategoryTree::renderChildren“. Die Datenbank meldete den Fehler „1054: Unknown column 'cl_type' in 'where clause' (localhost)“. Von „../wiki/index.php/Spezial:Kategorienbaum“

Best regards Sera

Addition: I installed CategoryTree-MW1.16-r62678 now and that seems to work fine :)

Bugzilla Comment to the Problem SBachenberg 12:13, 13 September 2010 (UTC)Reply

Smaller font of categorytree in sidebar using vector in MW1.16[edit]

Hi,

In http://www.deurnewiki.nl I recently upgraded from MW1.15 to MW1.16 using the vector style. Unfortunately the font on the categorytree in the sidebar differs from other texts in the sidebar.
Anybody know how can I set the font smaller using vector? I seeked but did not find a solution yet. Thank you in advance... --Gjtokkel 17:44, 19 September 2010 (UTC)Reply

[+] button does not show up in Opera 10.62[edit]

It is actually happening right here on MediaWiki. I am running Ubuntu and can not even see [+] button under Opera, but can under Firefox. I realize the configuration is not typical, but Opera is as JS compliant as you can get, so something is wrong with the extensions.

Sicvolo 22:04, 5 October 2010 (UTC)Reply

What is max depth on my wiki?[edit]

The instructions says it is set by $wgCategoryTreeMaxDepth, but how do I check the value of this variable at my wiki? __Meco 22:48, 18 October 2010 (UTC)Reply

Well, are you looking to do it through the server (if you have access) or while using the wiki. If the latter, here's a method you could use:
  • Try pressing [+] on multiple levels, in multiple places. Usually you will hit the same level of depth, regardless of which tree you follow, unless there is no sub-categories. For example:

.

Bud0011 03:23, 22 October 2010 (UTC).Reply

How to put MaxChildren in options as the "depth" param for example?[edit]

Help please. I need to make one short tree and bigger version. The short one is on a title, and the bigger one is under URL "More..." --Tarasius.ua 15:17, 26 October 2010 (UTC)Reply

how to set showcount as default?[edit]

I'm searching is possible on how to set showcount true as default? i'm find but can't figure it out how to do that from localsetting.php please tell me..

I don't this it is possible to do so from the localsettings.php. From a wiki page, you could put showcount="on", like so:
<categorytree showcount="on">Manual</categorytree>
Bud0011 20:49, 16 November 2010 (UTC).Reply
Thank you for your answer, but how is it possible like category:Top_level
There is show count ex. 1C 2P etc. Thanks for the answer
There is nothing that i know of that can do that automatically. You could try to do something manually, using

{{PAGESINCATEGORY:categoryname}} to generate the number of pages in a specific category, but the content placed inside

<categorytree ... > ... </categorytree>

is pretty much done by the extension itself. You could put an request for them to change the extension to include the feature, but i recommend creating a new section in order to do so. Include in it: What you are asking the Extension to do, and how you think it would be best implemented (on the sever, developer, client or user side). Bud0011 22:33, 16 November 2010 (UTC).Reply

== Possible to have showcount using the . I have the following in my local settings file: $wgCategoryTreeSidebarRoot = 'Categories'; $wgCategoryTreeDefaultOptions['mode'] = 'all'; $wgCategoryTreeForceHeaders = true; I basically want to beable to have pages display from the tree in the sidebar, not just sub-categories. Thanks for the help. Reborn 13:09, 13 January 2011 (UTC)Reply

unexpanded categories by default?[edit]

How do I show all of my categories unexpanded? I want only my top level categories to appear and users can expand them for sub categories if they need to. Also, how do I show categories expanded only to the second level categories by default?

Getting pages to display on sidebar[edit]

Hi there.
Currently I have the tree placed in the sidebar however it only wants to show up with the sub-categories in the bar unlike on the sidebar page where it shows pages too.
I have the following in the sidebar:
<categorytree mode=all>Categories</categorytree>.
I have the following in my local settings file:
$wgCategoryTreeSidebarRoot = 'Categories';
$wgCategoryTreeDefaultOptions['mode'] = 'all';
$wgCategoryTreeForceHeaders = true;
I basically want to beable to have pages display from the tree in the sidebar, not just sub-categories.
Thanks for the help. Reborn 13:09, 13 January 2011 (UTC)Reply

Nevermind, got it working at last with mode set to all. Reborn 13:14, 13 January 2011 (UTC)Reply
Great, but how? I don't have wikitext in the MediaWiki:Sidebar do you? Thanks --Kcd 01:07, 21 February 2011 (UTC)Reply

css warning - Firefox 3.6[edit]

Warning: Error in parsing value for 'cursor'. Declaration dropped.

Source File: http://.../wiki/extensions/CategoryTree/CategoryTree.css?5

Line: 22

cursor: hand; /* hack for MSIE 5.0 and 5.5 */

SVN Locked[edit]

svn: Working copy '/mnt/upload6/private/ExtensionDistributor/mw-snapshot/branches/REL1_16/extensions' locked
svn: run 'svn cleanup' to remove locks (type 'svn help cleanup' for details)

On 1.16.x snapshot 81.224.129.180 21:31, 24 January 2011 (UTC)Reply

Category link when a named category is not found[edit]

I have made a little modification to the CategoryTree.i18n.php file, so when the requested category is not found, e.g when using the {{#categorytree:my category}} parser function, it will show a link to the given category name, as it turned out that it will even show me this message if the category text doesn't exist, but it holds some pages. I haven't done any deeper testing, as I don't use this extension in the sidebar and such, but if it works well, I think it can be a nice add-on. The patch is made against http://svn.wikimedia.org/svnroot/mediawiki/tags/REL1_16_1/extensions/CategoryTree, r81251

Index: CategoryTree.i18n.php
===================================================================
--- CategoryTree.i18n.php       (revision 81251)
+++ CategoryTree.i18n.php       (working copy)
@@ -46,7 +46,7 @@
        'categorytree-no-subcategories' => 'no subcategories',
        'categorytree-no-parent-categories' => 'no parent categories',
        'categorytree-no-pages'         => 'no pages or subcategories',
-       'categorytree-not-found'        => 'Category <i>$1</i> not found',
+       'categorytree-not-found'        => 'Category <i>[[:Category:$1|$1]]</i> not found',
        'categorytree-error'            => 'Problem loading data.',
        'categorytree-retry'            => 'Please wait a moment and try again.',
 );

Control over the categorytree display order[edit]

The items listed in the categorytree at Category:WikiProject Geographical coordinates are displayed in a mysterious order. I would like them to be displayed alphabetically. James3mg notes above "I use {{DEFAULTCATEGORYSORT:Name}} on the subcategories to specify what name it should use to order by."Extension talk:CategoryTree#Manually Sort Order "Category:Articles with unknown geocoordinates" now displays on the bottom of the noted categorytree below . I tried using variations of {{DEFAULTCATEGORYSORT:Name}} at Category:Articles with unknown geocoordinates and Category:WikiProject Geographical coordinates participants to get at least the two of them to display alphabetically in the order, but DEFAULTCATEGORYSORT had no effect. There is some discussion about sort at Help:Category, but that seems to be about something else. How can I get the items listed in the categorytree at Category:WikiProject Geographical coordinates to be displayed alphabetically? -- Uzma Gamal 06:38, 6 February 2011 (UTC)Reply

Never mind. It appears that several of the categories used the pipe space [[Category:WikiProject Geographical coordinates| ]] that messed up the sort order. Mysterious order resolved.-- Uzma Gamal 07:19, 6 February 2011 (UTC)Reply