Needs work
Project:
PEAR Wiki Filter
Version:
6.x-1.0-beta1
Component:
User interface
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 May 2008 at 05:41 UTC
Updated:
16 Sep 2009 at 08:27 UTC
Jump to comment: Most recent file
Comments
Comment #1
deviantintegral commentedI don't think it should be a problem. All you should have to do is have the PEAR filter be of a lower weight than the table of contents / heading to anchors filters. That way, the PEAR filter will generate HTML from the wiki markup, which can then be parsed by this module.
Give it a try, and please post your results!
--Andrew
Comment #2
Pushkar Gaikwad commentedI am having same problem with TOC 6.1 + pear wiki filter. I am not getting the correct weight of TOC, Headings of Anchors and pear wiki filter. which shud get more value ?
I tried all the combos but The table is Not showing any of the links. I have tried all, ==Headin==, ===Heading=== combos, but the table shows nothing. But when I uses h1, h2 tags, it works !
How can I fix this problem ?
I am using drupal 6 and obviously TOC 6.1 module :) I didn't realized this is a 5.x issue, but still it shud be fine that I posted here
Comment #3
Pushkar Gaikwad commentedok I checked the source and I have got the filters right. I can also see h2 tags parsing as
and ==Heading== tags parsing as
so I don't see what's the probelm here ?
Comment #4
deviantintegral commentedIt looks like the PEAR module is actually stripping out the tableofcontents tag during it's process stage. What's happening is that the tag is present during the prepare stage, so the filter is run, and it generates the appropriate HTML. But, when it gets to the final replace of the tag with the table, the tag isn't present. So, you'll need to find out if there is a way to have HTML comments be allowed through the PEAR wiki filter, or find out if there is a reason why they are stripped out.
--Andrew
Comment #5
CompShack commentedTable of Content module doesn't work with Mediawiki Formatting no matter how you order the input format. I have tried with no success.
Comment #6
Pushkar Gaikwad commentedbut the source code correctly shows toc1, toc2, toc3 for pear filter tags ?
So where can be the problem ?
Comment #7
CompShack commentedNot sure really but if you can't get this module to work, you can use the mediawiki syntax [[toc]] to achieve almost the same thing!
Comment #8
deviantintegral commentedThe problem is that PEAR Wiki is stripping out anything which looks like an HTML comment, so the Table is generated but not inserted. You need to find an way to make PEAR wiki's module allow HTML comments, or use CompShack's suggestion.
--Andrew
Comment #9
Pushkar Gaikwad commentedWow, I had no idea [[toc]] was there :) though when I uses [[toc]], it don't show a table like toc module but just shows all the links in a simple way. (must be CSS problem) like this -
Link 1
Link 2
Link 3
Link 4
Is this is a known problem ? how can I fix it so [[toc]] tags works with proper formatting ?
Comment #10
CompShack commentedya, mine doesn't show in a table like this module does either. Not sure if it is an issue or if this is just the way it is supposed to be! That would be a question to post on the http://drupal.org/project/pearwiki_filter module.
If you end up posting a question there, please let us know the answer here :)
Thanks!
Comment #11
Pushkar Gaikwad commentedWell there is a june 2007 same issue http://drupal.org/node/150067 which is not resolved but anyway I bumped it in hope of some reply
Comment #12
agentdcooper commentedi running into this same issue --- [[toc]] is not the greatest solution here =( any other fixies for this one?
Comment #13
agentdcooper commentedHere we go, an official "support request" from me this time { wether the quality is good, that is questionable =) }
ISSUE AT HAND: Drupal Table of Contents module's (non-)functionality with PEAR Wiki Filter + MediaWiki (the additional PEAR Text_Wiki package)
I have tried implementing the "fix" which has been touted here by one or two people = "lower weight than the table of contents / heading to anchors filters", but no matter WHICH way I (me, "mr. break it") organize the weights for my MediaWiki Input Format filters, I have NEVER once gotten the current Drupal module Table of Contents "Official release" v6.x-2.1 dated 2008-Apr-22 to play nice, and 'actually' display ANYTHING where the Table of Contents should be where I put the code "<\!--tableofcontents-->" at (ignore back-slash). This now appears to be a problem only with that SPECIFIC version of Table of Contents module I mention, when combo'd with the PEAR Wiki Filter + MediaWiki package.
Here's my system config ;;
- I am running Drupal 6.2 on Slackware Linux 12.1 box
- PHP v5.2.6
- Apache v2.2.8
;; Drupal modules of relevance, enabled on current Drupal install ;;
* tableofcontents-6.x-2.x-dev dated 2008-Jun-27 :: downloaded it yesterday, beings 7/8/08
* PEAR Wiki Filter 6.x-1.0-beta1 dated 2008-Jan-01 :: downloaded it yesterday, beings 7/8/08
* Text_Wiki_Mediawiki package from CVS :: downloaded it yesterday, beings 7/8/08 (obtained by running "cvs -d :pserver:cvsread@cvs.php.net:/repository checkout -d Text pear/Text_Wiki/Text" in my '/var/www/htdocs/drupal-6.2/modules/pearwiki_filter' folder on)
* Wikitools 6.x-1.0
* freelinking 6.x-1.4
* some other modules, but not of much concern for this post
Name Weight
Inline images -10
Headings to Anchors -9
Table of Contents -8
PEAR Wiki Filter -7
freelinking filter -6
Using the above weirght arrangement for my MediaWiki Input Format filters, using Drupal module tableofcontents-6.x-2.x-dev dated 2008-Jun-27, I NOW CAN ACTUALLY GET A proper collapsible mediawiki-style table of contents shown!!
BUT (that's meant to be read as a BIG BUT!)
It has all these friggin' CRAZY characters, and no actual href links are working when clicking anything in the ToC box! CLICK HERE, I took a screenshot of it! This is the pitcure of the ToC it builds, I can reproduce this EVERYTIME with the current development version of ToC Drupal Module, and ONLY this one will show in place of the "<\!--tableofcontents-->" code (ignore back-slash), in my experience (and others on this board seem to have similar problems... and [[toc]] just isn't what I am after, as the ORDERED LIST portion of the ToC that code produces is being cut off =( - I only get straight href links, with no styling -- meaning, it's not displaying any "ol" tags (( ordered list ))
If anyone has questions for me/needs more info, feel free to post here, or email me -- my account here on Drupal.org is 'agentdcooper' ... thanks in advance!
-peace-
agentdcooper
Comment #14
deviantintegral commentedAnyone else tried the patch at #11? Assuming it works, then the way around this would be to make the actual tag match a configurable variable. I'd be willing to commit a patch should someone write it :).
--Andrew
Comment #15
khyatipandit commentedi have a problem regarding mediawiki kindly help me out...i have installed mediawiki standalon and its working fine i mean all the tags are working fine but...when i integrate it with a my drupal mediawiki module the image link [[Image :Example.jpg ]] is not working and my internal link tag is also not working [[]] its not working it shows the link as it is [[]].i have followed all the steps given on the site http://stephenondrupal.blogspot.com/2007/10/set-up-wiki-with-drupal-5.ht... help me out its urgent...
Comment #16
khyatipandit commentedThe problem is a one with images on mediawiki i am unable to get the images on the on drupal by using the standalone mediawiki..could anyone please help me...its syntax is[[Image:Example.jpg]] and internal links are also not working.please help me out
Comment #17
deviantintegral commented@khyatipandit: You stole this issue from the queue it's supposed to be in! Please create a new issue in the MediaWiki support queue, instead of editing one for a completely different issue.
--Andrew
Comment #18
khyatipandit commentedIt got posted two times by my mistake i didnot copied it...
Comment #19
michellezeedru commented+1
Comment #20
gmmurugan commentedi cant work out tables and specific colours for last record and even borders from Wiki
any patch?
Comment #21
asb commentedTable support is broken for a long time (e.g. #243903: Tables and MediaWiki Syntax, #298225: Simple table formatting leaves |- artifact when rendered)
Greetings, -asb