Monahon, Peter B. a écrit :
Peter Blaise says: After searching for a solution (MediaWiki.org and Google) and not finding one, I thought I'd explore this myself. I can add special:allpages to the navigation menu, but I can't add any of the sub-pages that any user can select from within special:allpages, such as all talk pages and so on. It seems that special:allpages brings all pages only in the namespece = 0, but if I want to just see talk pages, and that's namespace = 1, how would I add a link to that in the navigation menu?
It looks like there is a problem in function wfEmptyMsg** with the "&" url special char. So for now, you can't use & symbol in sidebar.
instead (while waiting someone to find a solution or someone to tell it's an intended feature or someone to tell I'm wrong), if you need that link, you can add it directly in your skin :
open /skins/monobook.php and look for
<ul> <?php foreach($cont as $key => $val) { ?> <li id="<?php echo Sanitizer::escapeId($val['id']) ?>"<?php if ( $val['active'] ) { ?> class="active" <?php } ?>><a href="<?php echo htmlspecialchars($val['href']) ?>"<?php echo $skin->tooltipAndAccesskey($val['id']) ?>><?php echo htmlspecialchars($val['text']) ?></a></li> <?php } ?>
<!--Then add this-->
<li id="n-alltalk"> <a href="http://our-wiki-url/mediawiki/index.php?title=Special:Allpages&from=&namespace=1"> Discussion/talk index </a> </li>
<!--Then the skin continues-->
</ul>
**see function buildSidebar(), lines 1642-1643 in skin.php for mediawiki 1.10.0 : if (wfEmptyMsg($line[0], $link)) link = $line[0];
$link = http://yourwiki/Somepage returns true while http://yourwiki/Somepage&someaction returns false.
Should I fill a bugzilla request for this or is it intentional ?