tips:perspective
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tips:perspective [2013-06-06 23:24] – 65.243.46.2 | tips:perspective [2014-04-14 19:39] (current) – 65.244.148.222 | ||
---|---|---|---|
Line 4: | Line 4: | ||
I've migrated my company' | I've migrated my company' | ||
- | **ToDo**: This script creates an " | + | **ToDo**: |
+ | * This script creates an " | ||
- | I found that the script was saving pages that originally had spaces in the name without spaces. | + | * I found that the script was saving pages that originally had spaces in the name without spaces. |
name = GetNode(fields, | name = GetNode(fields, | ||
doku_namespace = "" | doku_namespace = "" | ||
Line 15: | Line 16: | ||
else: | else: | ||
| | ||
- | </ | + | </ |
- | + | ||
- | with this code: | + | |
- | <code py> | + | |
doku_namespace = "" | doku_namespace = "" | ||
doku_name = "" | doku_name = "" | ||
doku_namespace = " | doku_namespace = " | ||
doku_name = GetNode(fields, | doku_name = GetNode(fields, | ||
+ | </ | ||
+ | |||
+ | * Found that the BOM messes up the conversion, and then a few more characters in my ten-year-old PerspectiveWiki weren' | ||
+ | s = s.replace(u' | ||
+ | s = s.replace(u' | ||
+ | s = s.replace(u' | ||
+ | s = s.replace(u' | ||
+ | s = s.replace(u' | ||
+ | s = s.replace(u' | ||
+ | s = s.replace(u' | ||
</ | </ | ||
- | |||
- | This will also allow you to search for a full page name with spaces in the search term instead of only being able to find the page by searching for the full name without spaces or one word from the page title. | ||
**Requirements**: | **Requirements**: | ||
Line 32: | Line 38: | ||
**Note**: | **Note**: | ||
- | After running this script, run the indexer.php script in dokuwiki\bin | + | After running this script, run the indexer.php script in dokuwiki\bin. This will vastly improve the search functionality. |
<code python> | <code python> |
tips/perspective.1370553874.txt.gz · Last modified: 2013-06-06 23:24 by 65.243.46.2