This is an old revision of the document!
The template can be widely configured via the Configuration Manager or manually edit the <dokuwiki>/conf/local.php
file, including a line like:
$conf['tpl']['bootstrap3']['fluidContainerBtn'] = '1';
(This adds a button to turn on / off fluid layout. See the fluidContainerBtn option below.)
Option | Description | Default Value |
bootstrapTheme | Bootstrap theme | default |
bootswatchTheme | Select a theme from Bootswatch.com | spacelab |
customTheme | Insert URL of custom theme | null |
showThemeSwitcher | Show Bootswatch.com theme switcher in navbar | 0 |
hideInThemeSwitcher | Hide themes in theme switcher | null |
useLocalBootswatch | Use the local Bootswatch directory. This option is useful in “intranet” DokuWiki installation | 1 |
Option | Description | Default Value |
sidebarPosition | DokuWiki Sidebar position (left or right ) | left |
rightSidebar | The Right Sidebar page name, empty field disables the right sidebar.
The Right Sidebar is displayed only when the default DokuWiki sidebar is enabled and is on the left position (see the sidebarPosition configuration). If do you want only the DokuWiki sidebar on right position, set the sidebarPosition configuration with right value | rightsidebar |
leftSidebarGrid | Left sidebar grid classes col-{xs,sm,md,lg}-x (see Bootstrap Grids documentation) | col-sm-3 col-md-2 |
rightSidebarGrid | Right sidebar grid classes col-{xs,sm,md,lg}-x (see Bootstrap Grids documentation) | col-sm-3 col-md-2 |
Option | Description | Default Value |
inverseNavbar | Inverse navbar | 0 |
fixedTopNavbar | Fix navbar to top | 0 |
showTranslation | Display translation toolbar (require Translation Plugin) | 0 |
showTools | Display Tools in navbar | always |
showHomePageLink | Display Home-Page link in navbar | 0 |
showUserHomeLink | Display User Home-Page link in navbar | 1 |
hideLoginLink | Hide the login button in navbar. This option is useful in “read-only” DokuWiki installations (eg. blog, personal website) | 0 |
individualTools | Split the Tools in individual menu in navbar | 0 |
showIndividualTool | Enable/Disable individual tool in navbar | user,site,page |
showSearchForm | Display Search form in navbar | always |
showAdminMenu | Display Administration menu | 0 |
useLegacyNavbar | Use legacy and deprecated navbar.html hook (consider in the future to use the :navbar hook) | 0 |
showNavbar | Display navbar hook | always |
Adds Schema.org markup to enable basic support for semantic data. For full support use the :plugin:semantic plugin.
Option | Description | Default Value |
semantic | Enable semantic data | 0 |
schemaOrgType | Schema.org type (Article , NewsArticle , TechArticle , BlogPosting , Recipe ) | Article |
Option | Description | Default Value |
fluidContainer | Enable the fluid container (full-width of page) | 0 |
fluidContainerBtn | Display a button in navbar to expand container | 0 |
pageOnPanel | Enable the panel around the page | 1 |
tableFullWidth | Enable 100% full table width (Bootstrap default) | 1 |
tableStyle | Table style | striped,condensed,responsive |
showLandingPage | Enable the landing page (without a sidebar and the panel around the page) | 0 |
landingPages | Landing page name (insert a regex) | (intro) |
showPageTools | Enable the DokuWiki-style Page Tools | always |
showPageId | Display the DokuWiki page name (pageId) on top | 1 |
tocCollapseSubSections | Collapse all sub-sections in TOC to save space | 1 |
showBadges | Show badge buttons (DokuWiki, Donate, etc) | 1 |
showLoginOnFooter | Display a “little” login link on footer. This option is useful when hideLoginLink is on | 0 |
useGravatar | Load Gravatar image | 0 |
Option | Description | Default Value |
tocAffix | Affix the TOC during page scrolling | 1 |
tocCollapseSubSections | Collapse all sub-sections in TOC to save space | 1 |
Option | Description | Default Value |
showDiscussion | Display discussion link in tools menu | 0 |
discussionPage | Discussion page name (default is discussion:@ID@ , where @ID@ placeholder replace the current page name), empty field disable the link | discussion:@ID@ |
Option | Description | Default Value |
showCookieLawBanner | Display the Cookie Law banner on footer | 0 |
cookieLawBannerPage | Cookie Law banner page name | cookie:banner |
cookieLawPolicyPage | Cookie Law policy page name | cookie:policy |
The Cookie Law Banner Notice add a cookie called cookieNoticeAccepted
to use in your JavaScript/PHP code (eg. to add Google Analytics only when the user accept the policy).
JavaScript Snippet:
if (DokuCookie.getValue('cookieNoticeAccepted')) {
// Your JS code (eg. in userscript.js or in 3th-party plugin)
}
PHP Snippet:
if ( ! (get_doku_pref('cookieNoticeAccepted', null)
|| get_doku_pref('cookieNoticeAccepted', '')) ) {
// Your PHP code (eg. in 3th-party plugin)
}
Option | Description | Default Value |
useGoogleAnalytics | Enable Google Analytics | 0 |
googleAnalyticsTrackID | Tracking ID | null |
googleAnalyticsAnonymizeIP | Anonymize the IP address of visitors | 0 |
googleAnalyticsNoTrackAdmin | Disable tracking for the Admin users | 1 |
googleAnalyticsNoTrackUsers | Disable tracking for all logged users | 0 |
googleAnalyticsNoTrackPages | Disable tracking for specified pages (insert a regex) | null |
googleAnalyticsTrackActions | Track DokuWiki actions (edit, search, etc) | 0 |
Option | Description | Default Value |
browserTitle | DokuWiki browser title (default is @TITLE@ [@WIKI@] , where @TITLE@ placeholder replace the current page title and @WIKI@ replace the DokuWiki name) - see title config | @TITLE@ [@WIKI@] |
browserTitleShowNS | Display the previous page name of current page on the browser title | 0 |
browserTitleCharSepNS | Character separator for every namespaces on browser title | - |
browserTitleOrderNS | Set the order of namespaces | normal |
Option | Description | Default Value |
showPageInfo | Show page info (e.g., date, author) | 1 |
pageInfo | Display/Hide page info elements | filename,extension,date,editor,locked |
pageInfoDateFormat | Date format | dformat |
showPageIcons | Display useful icons (print, share link, send mail, etc.) on page | 0 |
pageIcons | Select the icons to display | social-share,feed,send-mail,print,help |
socialShareProviders | Select the social share links to display | facebook,google-plus,linkedin,pinterest,whatsapp,twitter |
tagsOnTop | Move all Tags on top of the page, beside the page-id (require Tag Plugin) | 1 |
useAnchorJS | Use AnchorJS | 1 |