]> sipb.mit.edu Git - ikiwiki.git/blob - doc/forum/Spaces_in_wikilinks.mdwn
Added a comment
[ikiwiki.git] / doc / forum / Spaces_in_wikilinks.mdwn
1 [[!meta date="2007-07-02 13:21:29 +0000"]]
2
3 # Spaces in WikiLinks?
4
5 Hello Joey,
6
7 I've just switched from ikiwiki 2.0 to ikiwiki 2.2 and I'm really surprised
8 that I can't use the spaces in WikiLinks. Could you please tell me why the spaces
9 aren't allowed in WikiLinks now?
10
11 My best regards,
12
13 --[[PaweB|ptecza]]
14
15 > See [[bugs/Spaces_in_link_text_for_ikiwiki_links]]
16
17 ----
18
19 # Build in OpenSolaris?
20
21 Moved to [[bugs/build_in_opensolaris]] --[[Joey]]
22
23 ----
24
25 # Various ways to use Subversion with ikiwiki
26
27 I'm playing around with various ways that I can use subversion with ikiwiki.
28
29 * Is it possible to have ikiwiki point to a subversion repository which is on a different server?  The basic checkin/checkout functionality seems to work but there doesn't seem to be any way to make the post-commit hook work for a non-local server?
30
31 > This is difficult to do since ikiwiki's post-commit wrapper expects to
32 > run on a machine that contains both the svn repository and the .ikiwiki
33 > state directory. However, with recent versions of ikiwiki, you can get
34 > away without running the post-commit wrapper on commit, and all you lose
35 > is the ability to send commit notification emails.
36
37 > (And now that [[recentchanges]] includes rss, you can just subscribe to
38 > that, no need to worry about commit notification emails anymore.)
39
40 * Is it possible / sensible to have ikiwiki share a subversion repository with other data (either completely unrelated files or another ikiwiki instance)?  This works in part but again the post-commit hook seems problematic.
41
42 --[[AdamShand]]
43
44 > Sure, see ikiwiki's subversion repository for example of non-wiki files
45 > in the same repo. If you have two wikis in one repository, you will need
46 > to write a post-commit script that calls the post-commit wrappers for each
47 > wiki.
48
49 ----
50
51 # Regex for Valid Characters in Filenames
52
53 I'm sure that this is documented somewhere but I've ransacked the wiki and I can't find it.  :-(  What are the allowed characters in an ikiwiki page name?  I'm writing a simple script to make updating my blog easier and need to filter invalid characters (so far I've found that # and , aren't allowed ;-)).  Thanks for any pointers.  -- [[AdamShand]]
54
55 > The default `wiki_file_regexp` matches filenames containing only
56 > `[-[:alnum:]_.:/+]`
57
58 > The titlepage() function will convert freeform text to a valid
59 > page name. See [[todo/should_use_a_standard_encoding_for_utf_chars_in_filenames]]
60 > for an example. --[[Joey]]
61
62 >> Perfect, thanks! 
63 >>
64 >> In the end I decided that I didn't need any special characters in filenames and replaced everything but alphanumeric characters with underscores.  In addition to replacing bad characters I also collapse multiple underscores into a single one, and strip off trailing and leading underscores to make tidy filenames.  If it's useful to anybody else here's a sed example:
65 >>
66 >>     # echo "++ Bad: ~@#$%^&*()_=}{[];,? Iki: +_-:./ Num: 65.5 ++" | sed -e 's/[^A-Za-z0-9_]/_/g' -e 's/__*/_/g' -e 's/^_//g' -e 's/_$//g'
67 >>     Bad_Iki_Num_65_5
68 >>
69 >>--[[AdamShand]]
70
71 # Upgrade steps from RecentChanges CGI to static page?
72
73 Where are the upgrade steps for RecentChanges change from CGI to static feed?
74 I run multiple ikiwiki-powered sites on multiple servers, but today I just upgraded one to 2.32.3.
75 Please have a look at
76 <http://bsdwiki.reedmedia.net/wiki/recentchanges.html>
77 Any suggestions?
78
79 > There are no upgrade steps required. It does look like you need to enable
80 > the meta plugin to get a good recentchanges page though.. --[[Joey]]
81
82 # News site where articles are submitted and then reviewed before posting?
83
84 I am considering moving a news site to Ikiwiki. I am hoping that Ikiwiki has a feature where anonymous posters can submit a form that moderators can review and then accept for it to be posted on a news webpage (like front page of the website).
85
86 > Well, you can have one blog that contains unreviewed articles, and
87 > moderators can then add a tag that makes the article show up in the main
88 > news feed. There's nothing stopping someone submitting an article
89 > pre-tagged though. If you absolutely need to lock that down, you could
90 > have one blog with unreviewed articles in one subdirectory, and reviewers
91 > then move the file over to another subdirectory when they're ready to
92 > publish it. (This second subdirectory would be locked to prevent others
93 > from writing to it.) --[[Joey]]
94
95 Also it would be good if the news page would keep maybe just the latest 10 entries with links to an archive that make it easy to browse to old entries by date. (Could have over a thousand news articles.)
96
97 > The inline plugin allows setting up things like this.
98
99 Plus users be able to post feedback to news items. If anonymous, they must be approved first. I'd prefer to not use normal "wiki" editor for feedback.
100
101 Any thoughts or examples on this? Any links to examples of news sites or blogs with outside feedback using ikiwiki?
102
103 Thanks --[[JeremyReed]]
104