Add your comments, feature requests or whatever here.
I have read your turtorial and i have done all your points. But If i put the line<div class="page"><div id="sidebar"><?php tpl_sidebar_content(); ?></div>in my main.php I cann't see my content. I hope you can help me because your download version doesnt able to use ist with the newest dokuwiki (dokuwiki-2007-06-26b). Please anser! Here or with e-mail to wiki*at*jurtenrunde.de thanks!
![]()
Problem for PDA-Users: I tried the left-inside way, and with a pda makes a page break after the sidebar. So i need to scroll down until sidebar is finished, an then i can see the page content.
Anyways, thanks for coding und greetings from munich
(by Thomas, 15.10.2005)
How do other multi-column websites overcome this sort of problem? Would a skip to content link/button work? — Chris Smith 2005/10/15 14:57
Hello, I like to use this template with the newest dokuwiki (dokuwiki-2007-06-26b.tgz). But it doesn't work with it. What can I do that it work with the newest dokuwiki? Please write a comment here or a mail to me. Thank You!
Hi, Can you explain how it isn't working. It works fine for me. I am preparing an update to re-sync the template with changes made to the default template and to fix the footnote background problem. If you can provide me with details, I'll endeavour to sort the problem out and include any fixes in the update. — Chris Smith 2007/08/05 18:04
I would like to be able to put an absolute link (outside dokuwiki) in the sidebar and, when clicked on, open it in the main page. I can't get this to work, so far it only replaces both the sidebar and the main page…. Any ideas? Thanks – Styno 2005-10-16 14:03Thats a complex issue, for a number of reasons. The simple answer is to use an <iframe> where the page content is displayed and use the URL as the src for the iframe. Then it gets more complex for a whole host of reasons - e.g. Dokuwiki does some processing before it gets to the template and it expects a page id not an external url… — Chris Smith 2005/10/16 18:34Ok, thanks for the answer. I will try to adapt the 'include' plugin to embed the external page by using the <iframe> element. Could this be a good solution? – Styno 2005-10-17 11:17Check out the source plugin. There is a mod described down the page for importing html from an external source. A simple iframe plugin would be very straight forward. — Chris Smith 2005/10/17 14:54
plugin:iframe to be released shortly— Chris Smith 2005/10/17 16:09
Gee, you shouldn't have done that. Thank you very much! – Styno 2005-10-17 21:02
Take a look at my suggestion about namespace navigation at http://wiki.splitbrain.org/wiki:tpl:roundbox. – Andreas Nyholm
Will be included in the next release. Thanks for the suggestion. — Chris Smith 2005/10/27 02:19
Thanks a lot for your great template !
Is there a way to 'highlight' the curid in the sidebar (like in jan decaluwe template) ?
No. Jan caches a copy of the sidebar for each page, so different pages can have differences in their sidebars. This template caches the actual sidebar page, it will look the same on every page for which its used. — Chris Smith 2005/10/19 13:29
This sidebar template is great! I think it should be part of the main distribution.
I would like to disable the sidebar for the Index page. Is there a way to do this?
Not at present, though I guess it could be done with adding some extra decision making to the code which determins the body id. Are you sure you want the index in the main page. Perhaps it would be better if the index were solely displayed in the sidebar and the main page was unchanged. — Chris Smith 2005/10/27 02:19
Chris, thanks for the awesome functionality. My sidebar updates automatically as I add namespaces, which is just what I wanted. However, when a namespace is clicked in the sidebar I would like to call the intro page for that namespace and not the index page which is called currently. How do I change the sidebar so that the namespaces link to their intro pages and not their index pages? I need to change only the namespace links from id=&idx=namespace to id=namespace:intro in the sidebar — Kevin Laithwaite
the sidebar tpl looks good,but I can't download sidebar tpl from this place:http://www.cdsmith.plus.com/dokuwiki/template-sidebar.zip ,I am chinese doku user DEGcn ,maybe some problems with connection.would you like to send me a sidebar tpl copy by Emil ? thanks —FXCarl 2006/1/8 15:24Sent. — Chris Smith 2006/01/10 09:25
Hi Chris,
Is it possible the sidebar-dev template doesn't work together with the blog-plugin? When I install the new blog plugin, I can't see the sidebar anymore… koko
I don't know. I don't have the blog plugin running. You could try asking Esther or the mailing list — Chris Smith 2006/02/27 02:31hi, this problem is solved
Hi Chris, Is it possible the sidebar-dev needs an update today? I've pulled the patches from tonight and now my sidebar diappeared… any ideas?
Yes, an update is available. Changes in the standard template CSS increased the specificity of many styles meaning they are no longer being overridden by sidebar styles, the update corrects that and synchonrises the sidebar template with other changes to the default template.
Hey Chris, Is it possible to disable the sidebar for a given namespace? I want some namespaces to have no sidebar. Possible? How? Julio Carneiro 2006/04/17
Not without code modifications to the template itself. — Chris Smith 2006/04/28 11:17
Hi, when you use links in the sidebar, lets say index that will go to the index page. when i put a link on the same sidebar, lets say page it will go to the page of domain namespace. this works well, but when you are on the page of the domain, the index links automatically changes to domain/index or domain:index. so, what i am trying to tell is that the link changes with the namespaces. Like, on discussion the link discussion:games will lead to the games page of the discussion namespace. BUT, if there is an discussion:games:rpg, and you click on it,the discussion:games becomes discussion:games:rpg:discussion:games. the only way to fix this is if you add your wiki in to the interwiki.php site, so with every link you'll have to give the interwiki shortcut, like mywiki>discussion:games, the links stays correct then.
Try making the links absolute, ie. prefix them with a ":", so ":discussion:games". I'll take a look at what Esther's done with her include plugin to see if I can do something similar to translate sidebar relative links. However that might be not be a good idea, as one of the advantages of the sidebar is its normally sent straight from cache. Anyways I'll take a look at the problem. — Chris Smith 2006/04/28 11:17
Hey Chris, I just upgraded to dokuwiki-2006-03-09, and to your sidebar-2006-03-06. I see two problems I can't figure out how to fix: table of contents appears to the left of the TOC box, and the edit summary label appears at the right edge of the window, which pushes the text box to the next line. The minor edit checkbox is adjacent to the text box, but the label is also at the right edge. I can send you screenshots, if that helps. I see these problems with Safari and Firefox, but not with the default template. I've also checked that the generated HTML is identical. I'm not good enough at tracing the css to find the problem. Any hints? Thanks, — Peter Barnes 2006/05/03 22:34
Is it possible the browsers are using a locally cached CSS file rather than the updated version?
I don't think screenshots will help much. You could try a file comparison between the CSS file used by this wiki and that used by your wiki. This wiki doesn't have CSS compression turned on, apart from that its CSS is identical to that in the 2006-03-05 sidebar release. — Chris Smith 2006/05/07 18:01It is actually a bug I think. To fix it, replace the table of content section from design.css in the sidebar template by the one in the default template. Then, copy style.ini from the default template to sidebar. — Jean-Philippe Toupin 2006/06/16 12:32Just in case, I have gone through all of the important files by hand and synchronised them with the default template. There were only a few differences and nothing that would cause the effects described (e.g. only one difference in design.css was padding and the only differences in style.ini were the references to the two sidebar css files). I have updated the release package. If anyone is still having this problem would care to send me page snapshot + css file (please turn off DokuWiki CSS compression first), I'll do some more investigation. — Chris Smith 2006/06/19 18:02
In sidebar.css #sidebar a {
color: existing;
} makes the headings have a green color, like links, but headings are not clickable thus it can make people confused. — Nowotny 2006/05/17
Its as a result of changes in DokuWiki html - standard DokuWiki does the same - I think we need to come up with a patch for standard DokuWiki. — Chris Smith 2006/05/17 10:11
The current .zip and .tar.gz versions are different?
No, they're identical. — Chris Smith 2006/06/12 00:04
Hi Chris, I want to display a different sidebar within one namespace but not based on permission. It should work for every user. E.g. in namespace 'wiki' should display the sidebar 'wiki' and in all othter namespaces should display the standard sidebar. Do you have an easy solution? How could it work?
– Regards avag
Yes. Assume you have configured the template to use pages called "sidebar" as sidebar pages. Create a pagesidebar(in the root namespace, so basically without any namespace). That will be the sidebar that is shown everywhere but the wiki namespace. Create a pagewiki:sidebar(which will go in the wiki namespace). It will be displayed whenever anyone visits pages within the wiki namespace. — Christopher Smith 2006/09/22 18:51
I'm not quite sure if i'm posting at the right topic, but i'm also not sure where to post it, so, here it goes: can anybody tell me what should I do to put my site at the google list (i mean, if someone look for my URL, they'll find me)?? thanks
I'm always frustrated not to be able to edit the sidebar in one click or list the content of the current namespace easily (side feature).
I made a quick hack to add two links at the bottom of the sidebar to be able to do so. I think it should be using buttons rather than plain links, and maybe use new localized strings instead of the preexisting ones, but the idea was to make as few modifications as possible.
Anyway, here's the diff (hope this is the appropriate place):
diff -u lib/tpl/sidebar/tplfn_sidebar.php.orig lib/tpl/sidebar/tplfn_sidebar.php
--- lib/tpl/sidebar/tplfn_sidebar.php.orig 2006-06-28 13:22:46.000000000 +0200
+++ lib/tpl/sidebar/tplfn_sidebar.php 2006-06-28 13:28:35.000000000 +0200
@@ -36,7 +36,7 @@
// display the sidebar
function tpl_sidebar() {
- global $ID, $REV, $conf;
+ global $ID, $REV, $conf, $lang;
// save globals
$saveID = $ID;
@@ -50,11 +50,16 @@
}
// determine what to display
- if ($fileSidebar) {
- $ID = $fileSidebar;
- $REV = '';
- print p_wiki_xhtml($ID,$REV,false);
- }
+ if ($fileSidebar) {
+ $ID = $fileSidebar;
+ $REV = '';
+ print p_wiki_xhtml($ID,$REV,false);
+ print "<div class=\"sidebar-links\">[ ";
+ tpl_link(wl($ID,'do=edit'),$lang['btn_secedit']);
+ print " - ";
+ tpl_link(wl("",'idx=cr'),$lang['btn_index']);
+ print " ]</div>";
+ }
else {
global $IDX;
html_index($IDX);
diff -u lib/tpl/sidebar/sidebar.css.orig lib/tpl/sidebar/sidebar.css
--- lib/tpl/sidebar/sidebar.css.orig 2006-06-28 13:22:42.000000000 +0200
+++ lib/tpl/sidebar/sidebar.css 2006-06-28 13:25:55.000000000 +0200
@@ -158,6 +158,11 @@
#sidebar div.level4 {margin-left: 14px;}
#sidebar div.level5 {margin-left: 18px;}
+div.sidebar-links {
+ text-align: center;
+}
+
+
/* IE fixes (hide from IE Mac) \*/
* html .page .toc {height:1px} /* General Dokuwiki fix. IE needs this to always display TOC contents \*/
The result can be seen, for example, here (french wiki, but the links are there all the same).
Enjoy !
— Olivier Mehani 2006/06/28 12:40
Is there anyway to have all namespaces permanently expanded? I don't really like the behavior of seeing the index when clicking on the namespace name – the goal is always to go to a topic within the namespace, so seeing that intermediate page is a little confusing for my users. Our site is small, so permanently expanding everything would allow the users to go straight to the page they are interested in. Thanks for the dynamic TOC – we really like it.
i downloaded the current version 2006-Jun-19, in the sidebar.css file, for tag
#sidebar a.wikilink2 {
color: __darkgrey__;
}
i think the __darkgrey__ really should be __missing__ so that the same style is consistent with dokuwiki.
— qiang
I have recently upgrade to my dokuwiki install to latest release + sidebar template (rc2006-09-28) to enjoy indexmenu :). Then I noted in internet explorer a bad layout when the sidebar content is larger than the affected 20%.
In firefox the sidebar is just truncated on the right when the tree is larger than the left column which is nice; in ie, the sidebar content is displayed at the bottom of the page :( i tried to play with "clear" in css, but with no luck.
The best i could do is tweeking sidebar.css to enlarge the sidebar to 25% and try to keep the header short (i use the "Use first heading for pagenames").
Anybody has a better fix?
Chris posted me the solution:
add 'overflow:hidden' in sidebar.css, inside #sidebar.
test with ie 6 and firefox 1.0.6
— Thierry 2006/12/11 18:18
Any ideas? It was the latest stable Dokuwiki, just installed, and the latest sidebar. Mark Anthony Your browser has cached the dokuwiki stylesheet. Force it to retrieve a fresh copy by using shift-reload or ctrl-reload. — Chris Smith 2006/12/18 04:52
What's about the proper display of footnotes?? 1)
The have an sidebar
and there's no background!!2) knut_k [at] gmx [dot] de
At the top of my sidebar (and on this page's sidebar) I see the isolated word "hide" above and to the left of the edit button. This word can't be clicked so I'm not sure what it's doing there, and I haven't found its origin in a cursory look at the code. Is it intended to be a button for hiding the sidebar? Overall, thanks for the excellent template! — Jeff F. 2008/03/20
I think you're spot on; it appears to be printed in sidebar's main.php file, right next to tpl_sidebar_editbtn; perhaps this was indeed earmarked as a placeholder for something like tpl_sidebar_hidebtn, but was not commented out. Just remove it, and you should be fine. — Harley A. 2008/06/10
The tplfn_sidebar.php file ignores what you configure for the Sidebar Edit Btn Text; to fix this, open up the tplfn_sidebar.php file and change line 20 to read:
$lang['btn_sidebaredit'] = tpl_getConf('editbtntxt');
— Harley A. 2008/06/10