Hi Dan, Thank you for testing this. I'll try on a brand new install and come back to you about the results. It may indeed come from some server customization or escaped quotes. Cheers, Tiffany/Maelite
Le lundi 19 octobre 2015 12:47:01 UTC+2, Dan a écrit : > > I would consider this a bug, but a strange one. I copied your exact code > to test.nicepage, and set the data var, and I got completely different > output--exactly what it is supposed to be (see below). I did this both on > my local server and two different webservers. So the problem is either some > custom code in your installation or some server setting that causes your > installation to work differently. > > I'd suggest first starting with a vanilla install of BoltWire. Then we can > figure out whether it is your customizations or your server. Either way, > you may have to do a little digging to find the solution. It's very > difficult to debug something I can't replicate. I may be able to point you > to a couple locations in the code to check (ie, the BOLTargs > functions)--but want to verify it's not your customizations first. > > Cheers, > Dan > > inlist=true "+" > inlist=true '+" > inlist=true '+' > inlist=true "+' > inlist=true "+ > inlist=true '+ > inlist=true +' > inlist=true +" > inlist=true + > equal=true "+" > equal=true "+' > equal=true '+' > equal=true '+ > equal=true "+ > equal=true '+" > equal=true +" > equal=true +' > equal=true + > > On Mon, Oct 19, 2015 at 4:55 AM Tiffany Grenier <[email protected] > <javascript:>> wrote: > >> Hi, >> >> I just noticed that depending on whether I surround parameters by single >> or double quotes, I get different results. >> Let's say I have a page some.nicepage with a data variable cat of value >> "normal,office". In thepage, I have the following content: >> inlist=[if inlist list="{:cat}" find="normal"]true "+"[if] >> inlist=[if inlist list='{:cat}' find="normal"]true '+"[if] >> inlist=[if inlist list='{:cat}' find='normal']true '+'[if] >> inlist=[if inlist list="{:cat}" find='normal']true "+'[if] >> inlist=[if inlist list="{:cat}" find=normal]true "+[if] >> inlist=[if inlist list='{:cat}' find=normal]true '+[if] >> inlist=[if inlist list={:cat} find='normal']true +'[if] >> inlist=[if inlist list={:cat} find="normal"]true +"[if] >> inlist=[if inlist list={:cat} find=normal]true +[if] >> equal=[if equal "{page}" "nicepage"]true "+"[if] >> equal=[if equal "{page}" 'nicepage']true "+'[if] >> equal=[if equal '{page}' 'nicepage']true '+'[if] >> equal=[if equal '{page}' nicepage]true '+[if] >> equal=[if equal "{page}" nicepage]true "+[if] >> equal=[if equal '{page}' "nicepage"]true '+"[if] >> equal=[if equal {page} "nicepage"]true +"[if] >> equal=[if equal {page} 'nicepage']true +'[if] >> equal=[if equal {page} nicepage]true +[if] >> Then my output is: >> inlist= >> inlist= >> inlist=true '+' >> inlist= >> inlist= >> inlist=true '+ >> inlist=true +' >> inlist= >> inlist=true + >> equal=true "+" >> equal= >> equal=true '+' >> equal=true '+ >> equal= >> equal= >> equal= >> equal=true +' >> equal=true + >> So far, I thought I could use any of these options (or at least any of >> them having the same type of quotes for both arguments) with the same >> result. >> What strucks me is that inlist does not work with ", while equal does... >> Is there something I missed in the documentation, or is this a bug? >> >> Cheers, >> Tiffany >> >> -- >> You received this message because you are subscribed to the Google Groups >> "BoltWire" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> Visit this group at http://groups.google.com/group/boltwire. >> For more options, visit https://groups.google.com/d/optout. >> > -- You received this message because you are subscribed to the Google Groups "BoltWire" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/boltwire. For more options, visit https://groups.google.com/d/optout.
