DokuWiki で特定のページだけサイドバーを非表示にする

例えば DokuWiki 内にアプリケーションページを作成した場合、サイドバーを非表示にしたいことがあります。
Bootstrap3 Template を使用している場合、DokuWiki のサイト設定から特定のパターンの名前空間でサイドバーを非表示にする設定が可能です。

なお、サイドバー以外の表示部品を非表示にしたい場合は、こちらの記事 を参考にしてみてください。

DokuWiki のサイト設定ページを開きます。

  • tpl»bootstrap3»showLandingPage (ページの周囲にサイドバーやパネルがない)ランディングページを有効にする
    • チェックを付けます。
  • tpl»bootstrap3»landingPages ランディングページ名(正規表現を入力)
    • “run” と入力します。
    • このサイトの場合、名前空間の最後が “run” という名称の場合、サイドバーを非表示にします。

アドレスバーに https://wws.jp/dokuwiki/run を入力してみてください。
今まで表示されていたサイドバーが非表示になっていることが確認できるでしょう。

<html><style>
h2.page-header {

font-weight: 600;
font-size: 2.4rem;
position: relative;
padding: 10px 0 10px 16px;
margin-top: 3rem !important;
margin-bottom: 2rem !important;

}
h2:before {

  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: #ccc;

}
div#disqus__thread {

width: 100% !important;

}
</style></html>

  • dokuwiki/hide_sidebar.txt
  • 最終更新: 2020/12/07 23:35
  • by admin