Forum OpenACS Development: Re: XoWiki URL Cleanup

Collapse
5: Re: XoWiki URL Cleanup (response to 1)
Posted by Dave Bauer on
For this 1. For spaces to be represented by "_" (like in Wikipedia's Mediawiki) and not "+" (like in xowiki)

perhaps we can add a paraeter or someting, to automatically change spaces in the name to underscore. I think that is the best solution if we want to disallow spaces in the url name of the pages.

Collapse
8: Re: Re: XoWiki URL Cleanup (response to 5)
Posted by Gustaf Neumann on
there should be certainly a warning, when a user has already some entry "a_b" and adds "a b". i added this behavior to xowiki in cvs head. This translation feature is turned on per xowiki folder, when the following line is added to the folder object:

set subst_blank_in_name 1

after some testing, we could make it the default behavior, if there is interest and not too many negative gotchas for this.

Collapse
Posted by Carl Robert Blesius on
Thanks Gustaf. We updated xowiki today and my first test was not successiful, but I will try again during daylight hours.

Here is what I added to the folder object:

#######
# this is the payload of the folder object

set subst_blank_in_name 1
set index_page "en:DOM"
#######

I will double check if we got the change and report if it is not a local issue.

Here are some relevant links from the Wikipedia for reference:

http://en.wikipedia.org/wiki/Wikipedia:Naming_conventions_(technical_restrictions)#Plus

http://en.wikipedia.org/wiki/Help:Page_name#Ignored_spaces.2Funderscores

http://en.wikipedia.org/wiki/Wikipedia:Canonicalization

Collapse
Posted by Carl Robert Blesius on
After the switch the bracketed links are rendered to point to + separated names, even after renaming the files.

Here is what I did:

1. Made the change
2. Created a new page named "new page"
3. Linked to that page using [[new page]]

Here is what happened:

1. new page was created as "new_page"
2. link points to "new+page"

Collapse
Posted by Gustaf Neumann on
1 and 2 is as intended, the intention was to refer to a page with [[new_page]], since 2 creates the page with its canonical name "new_page". the canonical name is used for the url as well, your hated "+" signs are gone.

however, i agree, that with the switch turned on, it makes sense to to allow both notations [[new page]] and [[new_page]]. Get it from CVS head.