mhoydis
06-12-2008, 07:20 PM
Hi. I'm trying to get wiki.pageexists to evaluate to TRUE. However, I cannot get it to work against pages I have which contain commas in the title. Also spaces.
I have a bunch of pages with titles similar to this...
/Shift Notes/2008-06-12, Thursday, Second Shift
URL looks like... http://hostname/Shift_Notes/2008-06-12%2c_Thursday%2c_Second_Shift
I've tried every variation of that title I can think of, but wiki.pageexists always evaluates to FALSE. I've tried it with underscores, using %2c for the commas, with a slash in front, trailing slash, and all combinations of those ideas.
Can someone help me out with the syntax trick to get this to work? I'm at my wits end on this one :( I bet it's something silly.
Ideally, when I figure this out in a static fashion, I want to do something like this...
wiki.pageexists(page.path.."/"..date.year(date.now).."-"..date.month(date.now).."-"..date.day(date.now)..", "..date.dayname(date.now)..", Second Shift")
I have a bunch of pages with titles similar to this...
/Shift Notes/2008-06-12, Thursday, Second Shift
URL looks like... http://hostname/Shift_Notes/2008-06-12%2c_Thursday%2c_Second_Shift
I've tried every variation of that title I can think of, but wiki.pageexists always evaluates to FALSE. I've tried it with underscores, using %2c for the commas, with a slash in front, trailing slash, and all combinations of those ideas.
Can someone help me out with the syntax trick to get this to work? I'm at my wits end on this one :( I bet it's something silly.
Ideally, when I figure this out in a static fashion, I want to do something like this...
wiki.pageexists(page.path.."/"..date.year(date.now).."-"..date.month(date.now).."-"..date.day(date.now)..", "..date.dayname(date.now)..", Second Shift")