Creating an intranet wiki for software developers and more general usage using
UseModWiki.
Using Apache Apache2 and
ActivePerl under Windows NT 4 and Windows 2000.
Now moved on to PmWiki due to its increased functionality, yet ease of installation.
Installed patches:
Patches I intend to install, or would like to see in the NextRelease (in addition to the ones above):
Wishlist:
- linked images, viz <a href=blahbah><img src=foofoo align=right></a>
- version 1.0
- option to make WikiNames not CaseSensitive?
- a search button after the search dialogue box
- Implemented this too. Used an image.
- a go to field where the name of a page can be entered
- ''I hacked the script, so I can enter the name of the new page to be created on the search field. I will post my Wiki site link soon, so you can see.
- <meta name="robots" content="noindex,nofollow"> to all pages that are not "data" pages, eg pages with action= etc and the RecentChanges page.
- better table syntax, including column spanning cells, alignment in cells and columns, and allowing formatting (eg lists) in table cells -- now here is an idea, lets allow html tables!.
- ability to specify a JavaScript file for every page in the same way that a CascadingStyleSheet? file can be specified.
I use
WinMerge to compare the patches I download with wiki.pl to integrate them correctly.
- See
- NextRelease
- WikiMarkupLanguage
Please see the comment at the bottom of
WikiPatches about posting the patch
[here], rather than us going off site to a link that may eventually fail. Cheers :-)
- Thanks David for your response and patches - always gratifying
- No problem. Below a small patch that will allow a new page creation by entering the name on the search field. A note should be added on the side, just like I did on Netbros (http://www.netbros.com/). Enjoy! -- DavidCollantes
sub DoSearch {
my ($string) = @_;
if (&SearchTitleAndBody($string) <= 0) { #PATCH
print "Location: $ScriptName?$string\n\n"; #PATCH
exit; #PATCH
} #PATCH
...
- And yet another. To add a search icon to the right of the search field (you can still the image from my site as well):
if (defined($search)) {
$text = $q->textfield(-name=>'search', -value=>$search, -size=>20, -class=>'fix');
$text .= " " . $q->image_button(-name=>'search', -src=>'/images/search.gif', -align=>'MIDDLE'); #PATCH
} else {
$text = $q->textfield(-name=>'search', -size=>20, -class=>'fix');
$text .= " " .$q->image_button(-name=>'search',-src=>'/images/search.gif',-align=>'MIDDLE');#PATCH
}
- David, where do I put this, I can't find defined($search) in my Wiki.pl. PS I really like your layout for Netbros. How did you put the js source on every page - your own patch?. I presume the js adds the style file.
- Ops, my bad, I have too many patches applied and forgot about one that affect the icon on the search field. Just go to "sub getsearchform" and do:
sub GetSearchForm {
my ($result);
$result = T('Search:') . ' ' . $q->textfield(-name=>'search', -size=>20)
. &GetHiddenValue("dosearch", 1) . " " . $q->image_button(-name=>'search', -src=>'/images/search.gif', -align=>'MIDDLE');
return $result;
}
- Sorry about it! Let me know if you get it working. About Netbros, yes, I am using a javascript (instead of a .css) to serve stylesheets. The modification is very easy, really. I can share the css_serve.js file with you if you want and give you some pointers on where to go to change the call on the code. Of course, I could also tar.gz my whole modified code and put it up for download :-)
- David - I got it going - good stuff. I would be interested in seeing your css_serve.js file. I'm reluctant to make huge changes to wiki.pl as I will want to integrate the new version when it appears. Hence I hope many of my suggestions will be incorporated.
- I do not see anything coming on 1.0 that I do not already have or that I want, that is why I will probably end up incorporating anything I like into my current one without startgin over.
- Can I turn this patch of yours into a sub page of WikiPatches?
- Sure, please, do. I posted another patch recently to split the search results/index on multiple pages. Pretty useful when you have thousands of pages. Also, I applied a little patch on my Wiki to limit search to three characters or more, but no less. Do you think anyone would be interested on that?. Cheers. -- DavidCollantes
The content of the css_serve.js is:
if (navigator.userAgent.indexOf("Win") != -1 & navigator.appName == "Microsoft Internet Explorer") {
var cssfilename = "pc_ie.css";
}
else if (navigator.userAgent.indexOf("Win") != -1 & navigator.appName == "Netscape" & navigator.userAgent.indexOf("Gecko") == -1) {
var cssfilename = "pc_ns.css";
}
else if (navigator.userAgent.indexOf("Win") != -1) {
var cssfilename = "pc.css";
}
else if (navigator.userAgent.indexOf("Linux") != -1) {
var cssfilename = "linux.css";
}
else {
var cssfilename = "mac.css";
}
document.write('<link rel="stylesheet" href="/css/' + cssfilename + '" type="text/css">');
Enjoy! -- DavidCollantes