[Pmwiki-users] How To Change Valid Wiki Titles
Christian Ridderström
chr
Sat Jan 31 07:20:27 CST 2004
On Sat, 31 Jan 2004, Steven Leite wrote:
> Q: I want to be able to (allow) "&" character in my Wiki Titles. How do I
> do it? I think I need to modify one or more of the snippets below:
>
> $GroupNamePattern="[A-Z][A-Za-z0-9]+";
>
> $WikiWordPattern="[A-Z][A-Za-z0-9]*(?:[A-Z][a-z0-9]|[a-z0-9][A-Z])[A-Za-z0-9
> ]*";
>
> $FreeLinkPattern="{{(?>([A-Za-z][A-Za-z0-9]*(?:(?:[\\s_]*|-)[A-Za-z0-9]+)*)(
> ?:\\|((?:(?:[\\s_]*|-)[A-Za-z0-9])*))?)}}((?:-?[A-Za-z0-9]+)*)";
>
> $FragmentPattern="#[A-Za-z][-.:\\w]*";
>
> $PageTitlePattern="[A-Z][A-Za-z0-9]*(?:-[A-Za-z0-9]+)*";
>
> A: ?
I think '&' is one of the more difficult characters to use... (it's used
to separate arguments in URIs). Could you explain a bit more:
* Why do you want this specific character?
* Some examples of how you'd use it?
* Is it primarily in the title that you want it to appear?
Here is a crude solution, but only for links: Write this:
[[WikiWord Wiki & Word]]
> -----
>
> Q: I also want to change my file names (and thus, WikiTitles) to allow
> spaces, or rather, use the "_" (underscore) character for the actual
> TitleName and FileName, but display it on the screen as a " " (white-space).
> Is that easy to fix?
>
> A: ?
This should be relatively easy, but I don't know how. Try looking at the
PmWiki-documentation (and the cookboook, and the FAQ-section).
>
> -----
>
> Q: Is this mailing list available on Google or any other search engine?
> I'm concerned about my email address getting picked up by spam-bots or other
> evil things.
>
> A: ?
No :-(
(I'll e-mail Patrick about that separately)
/Christian
--
http://www.md.kth.se/~chr
More information about the pmwiki-users
mailing list