Search the website and IRC logs
Search is currently not available.
| Year: | 2007 2008 2009 2010 2011 2012 | |
| Month: | Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec | |
| Day: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
| 00:47 | Tapier_ | hey |
| 00:56 | StefanoK1 | Hey |
| 09:40 | kraftb | good morning ! |
| 12:16 | HardPhuck | i have a gallery |
| 12:16 | HardPhuck | how do i set a class to evert fourth picture |
| 12:16 | HardPhuck | with TS |
| 12:16 | HardPhuck | every |
| 12:16 | HardPhuck | ATagParams with optionSplit? |
| 12:28 | HardPhuck | hmm optionSplit does not work on ATagParams |
| 12:31 | kraftb | that depends on the gallery |
| 12:31 | kraftb | if you have a string, containing let's say 10 images separated by comma, you can split it with stdWrap ".split" and then you can use the properties of ".split" which include optionSplit |
| 12:31 | HardPhuck | i use chgallery |
| 12:32 | kraftb | but if the gallery simply is doing a stdWrap on every picture, and is not putting the index of the image into some register you are messed up :( |
| 12:32 | kraftb | a solution would be - to change the code of the gallery, to put the index of the image into TSFE->register['whatever'] |
| 12:32 | HardPhuck | hmm |
| 12:32 | kraftb | and then do a structure like: |
| 12:32 | kraftb | ATagParams = |
| 12:34 | kraftb | ah ... damn. |
| 12:34 | HardPhuck | :) |
| 12:34 | kraftb | i just noticed "calc" in its "usual" way doesn't support "%" operator (modulo) |
| 12:34 | kraftb | else you could have done somethin like: if.isTrue.stdWrap.dataWrap = {register:index}%4 |
| 12:34 | kraftb | if.isTrue.prioriCalc=1 |
| 12:35 | kraftb | ever number dividable by 4: so 0, 4, 8, 12 would result in "0" ... modulo returns the remainder of a division |
| 12:36 | kraftb | I mean you can either "emulate" modulo by doing: number-((intval(number/4))*4) |
| 12:36 | kraftb | but thats rather complicated :( |
| 12:37 | HardPhuck | hmm :D |
| 12:38 | kraftb | so try it with 6 .... 6-((intval(6/4))*4) = 6-((intval(1.5)*4) = 6-(1*4) = 6-4 = 2 ... and 2 is the remainder of 6/4 |
| 12:38 | kraftb | you know what I mean ??? |
| 12:38 | HardPhuck | no :D |
| 12:38 | kraftb | in my case I simply extend stdWrap or tslib_content, and make "calc" believe in modulo ;) |
| 12:39 | HardPhuck | ATagParams.if.isTrue.... like htis? |
| 12:39 | kraftb | yes. or if.isFalse ... depends on your requirements |
| 12:39 | HardPhuck | okay let me try |
| 12:39 | HardPhuck | never done nothing with modulo |
| 12:42 | HardPhuck | http://paste.phlogi.net/gallery_config/ |
| 12:42 | HardPhuck | something like this? |
| 14:13 | Tapier_ | p |
| 18:09 | timdeluxe | somebody also watching the livestream from t3dd09? |
| 18:13 | timdeluxe | can someone check please, that it isnt me, who causes no audio in that stream? -> http://www.ustream.tv/channel/TYPO3-Developer-Days-2009 |
| 18:25 | timdeluxe | ah no need, there is audio again |
