|
Cookbook /
DiscussionTabSummary: Provide a skin with a "discussion" tab and "article" tab, etc.
Version:
Prerequisites: Last tested on PmWiki version: pmwiki-2.0.11
Status:
Maintainer: NeilHerber, MarcSeibert
Category: WikipediaSuite, Comments
NoteThis one works for me but it's not well coded I think. I am not a programmer and I haven't the time to improve my small php knowledge to get it work better. Maybe someone find it useful. If there is some help to improve this publish it or send me an email. MarcSeibert GoalProvide a tabbed skin with the possibility to have an "discussion"-tab and an "article"-tab as a kind of backlink to the Main Article. (It's similar to the tabs in MediaWiki but there are a few other possibilities to use this:
and maybe some more ... SolutionI modified Cookbook/CommentPageLink to work in a skin.tmpl . The original script only works as markup - but some skins would need an action . Also I changed the separator for the creation of the new discussionpage from "-" to the string "-Discuss-". Include disctab.phpΔ to your local config.php Then edit the skin.tmpl to get some tabs. In monobook.tmpl you have to paste something like this: <!--function:DefineAction browse Artikel | $ScriptUrl/$BaseName--> <!--function:DefineAction discuss $[Diskussion]-->
Todo
action=discuss is implemented now - but the recipe cant highlight the discussiontab yet - didn't find the fault. Can someone help ??
CommentsYou can include an inputform like CommentBox in the Comment.GroupHeader or Comment.GroupFooter. If you want to have a special describtion for non-existing discussionpages ( like: "There is no discussion for this articel") paste the following line to the end of your config.php $DefaultPageTextFmt = '(:include $Site.DefaultPageTemplate:)'; Then you can customize the look of your (:if group Comments:)
There is no discussion for this article \\
You can start one here ... \\
(:commentboxchrono:)
(:if:)
(:if ! group Comments:)
{$Name} doesn't exist. \\
You can describe it [[{$Name}?action=edit| here]]
DiscussionI had done some work on it and had satisfatory results. Note: Pm also has some plans to implement a discussion/talk like feature. May its worth waiting.
~V.Krishn I have modified disctab for my own needs, disctab_2.phpΔ :
--Jacky 31 Mar 2006 The installation of disctab is very unclear. For example, where do the two lines of code under 'Solution' go in monobook.tmpl?? Can someone please give clear step-by-step description?? Thanks! --Sameer 25 Jul 2007 See Also
Contributors
|