IRC logs

20150803

Logs from channel #fedext on freenode - our official support channel.

IRC log range: 20150803*

20150803

  • 04:07:19 <mneuhaus> drlimbo: did you take a peek at my pull-request? i didn't include some automatic srcsets based on typoscript though, because nothing typoscript similar is done in vhs yet
  • 09:40:38 <Guest|75998> does anybody know whats wrong with this piece of code: <v:if stack="{0: '{iterator.cycle} % 3', 1: '==', 2: 0}">Hello</v:if> it does not return hello at all within my for loop with 7 results
  • 09:41:52 <NamelessCoder> Guest81064 did you ask the v:if.stack question?
  • 09:42:46 <Guest81064> yes!
  • 09:42:49 <NamelessCoder> if you did, and for everyone else: '{iterator.cycle} % 3' is not valid Fluid. Not yet, anyway.
  • 09:43:37 <NamelessCoder> it results in the following comparison stack: $result = ("3 % 3" == 0)
  • 09:44:12 <NamelessCoder> future Fluid will support mathematical operations in object accessor nodes but with a slightly different syntax: {iterator.cycle % 3}
  • 09:44:44 <NamelessCoder> what you need here and what works perfectly find: <f:if condition="{iterator.cycle} % 3">
  • 09:44:46 <Guest81064> ok is there a workarround?
  • 09:44:58 <NamelessCoder> s/find/fine
  • 09:46:11 <Guest81064> allright! but what if i need a multi condition like: {iterator.cycle} % 3 || {iterator.isFirst} ?
  • 09:47:29 <NamelessCoder> if I remember it right, v:if doesn't support modulo in conditions so that wouldn't work - but you are welcome to submit a feature request on github, asking for that to become supported. It shouldn't be too difficult (and it should replicate the f:if behavior of "0" actually meaning "TRUE".
  • 09:48:30 <Guest81064> ok i will do that! thank you very much for your help!
  • 09:49:15 <NamelessCoder> you're welcome!