|
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
Discussion: DiscussionTab-Talk
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 ??
See Also
Contributors
CommentsSee discussion at DiscussionTab-Talk |