You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be very good if start pages were excluded from the top10
My first attempt was to get a workaround by adding a request to the add-function in the file syntac.php:
public function render($mode, Doku_Renderer $renderer, $data) {
...
foreach($list as $item) {
if (auth_aclcheck($item['page'],'',null) < AUTH_READ) continue;
/** Modifikation, um die Startseiten auszublenden: **/
if (strpos($item['page'],'start') !== false) continue;
if (!page_exists($item['page'])) continue;
...
}
For I´m no php programmer, I don`t know if this syntax is really correct. And further-on it would be much better to set this behaviour by a new parameter in the {{top|...}} command.
Regards Juergen
The text was updated successfully, but these errors were encountered:
Although this issue is two years old, I've been looking at this lately.
The problem with using strpos in that way is that a page :articles:postart or :recipe:mosstartlets would also be excluded. Something like this might be better:
the index page name can be customized in DokuWiki config, so somewhere there's a variable which controls what that is, but I haven't yet looked for that
the wiki root page will still show up, since it will be presented as "start" only, so a second condition or a smarter regexp is needed
I'm not a PHP expert, nor am I well-versed in DokuWiki plugin structure - I'm just hacking about.
It would be very good if start pages were excluded from the top10
My first attempt was to get a workaround by adding a request to the add-function in the file syntac.php:
For I´m no php programmer, I don`t know if this syntax is really correct. And further-on it would be much better to set this behaviour by a new parameter in the {{top|...}} command.
Regards Juergen
The text was updated successfully, but these errors were encountered: