Quantcast
Channel: DokuWiki
Viewing all articles
Browse latest Browse all 25296

faq:sidebar - old revision restored (2016-07-31 13:10)

$
0
0
1475482513current
Line 1:Line 1:
-__Curriculum Vitae__ +====== How do I add a sidebar? ====== 
-  + 
-**Nombre y Apellidos:** Kevin Segura Saez +If you're using [[template:dokuwiki|the new default template]] (or any other template which supports sidebars out of the box), you already have a sidebar functionality. If you are using a different template, there are basically two ways to add a sidebar functionality: 
-**Domicilio:** Avnd Juan XIII 24 5º4ª + 
-**Tel:** 466723441                                                 +  Either choose a template which already comes with a sidebar, see [[http://www.dokuwiki.org/template?plugintag=sidebar|templates tagged with 'sidebar']]. (There might be some which are missing the tag, so be sure to check out all of the [[:templates]].) 
 +  Or install a plugin which will add a sidebar to your template, see [[plugintag>sidebar|plugins tagged with 'sidebar']]. 
 + 
 +Using a template which includes a sidebar functionality is often a better choice, as that sidebar will already be optimised to fit into the template's design and layout. 
 + 
 +===== I have a sidebar functionality. How can I create or edit a sidebar now? ===== 
 + 
 +Most templates use a normal wiki [[:page]] called "sidebar" for the sidebar. Some make this configurable, so you can choose the name of the page. (E.g. since Adora Belle there is the [[config:sidebar]] config option which some templates support.) And others have several sidebars, each of which will have their own page, sometimes even depending on namespaces. 
 + 
 +In the most likely event that your sidebar is a page called "sidebar", you just need to [[:page#create_a_page|create it]]. Go to ''%%http://your-wiki.com/doku.php?id=sidebar%%'', click "Create this page", edit the page, save, and you're done. That's it, your saved changes will appear in your sidebar. 
 + 
 +===== How can I have an automatic navigation in my sidebar? ===== 
 + 
 +Best install one of the [[plugintag>menu|plugins tagged with 'menu']] or [[plugintag>navigation|plugins tagged with 'navigation']]. 
 + 
 +In many cases you will also need to add the ''%%~~NOCACHE~~%%'' [[:wiki:syntax#control_macros|macro]] when using a plugin which changes the sidebar's appearance per page or namespace. 
 + 
 +===== My sidebar doesn't update properly or highlights the wrong parts ===== 
 + 
 +If your sidebar contains dynamic elements (e.g. highlighting of the current page or opening of a sub list, like a lot of navigation plugins do), then you need to add the ''%%~~NOCACHE~~%%'' macro to your page to prevent [[:caching|caching]] of the sidebar. 

Viewing all articles
Browse latest Browse all 25296