#silverstripe IRC Log

IRC log for 7 April 2013

All timestamps are in UTC.

1: [00:11:00] * popeshoe has joined #silverstripe
2: [00:17:00] <simon_w|air> Zauberfisch, that's pretty much what First() does, along with evaluating the query
3: [00:18:00] <Zauberfisch> thanks for confirming it
4: [00:26:00] * joelpittet quit (Ping timeout: 260 seconds)
5: [00:29:00] * joelpittet has joined #silverstripe
6: [00:35:00] * eikonos quit (Remote host closed the connection)
7: [00:43:00] * eikonos has joined #silverstripe
8: [00:43:00] * eikonos quit (Changing host)
9: [00:43:00] * eikonos has joined #silverstripe
10: [00:44:00] * joelpittet quit (Remote host closed the connection)
11: [00:51:00] * popeshoe quit (Quit: This computer has gone to sleep)
12: [01:15:00] * joelpittet has joined #silverstripe
13: [01:17:00] * LoveDuckie quit (Ping timeout: 255 seconds)
14: [01:33:00] * houleness has left #silverstripe
15: [01:33:00] * houleness has joined #silverstripe
16: [02:14:00] * eikonos quit (Ping timeout: 260 seconds)
17: [02:21:00] * eikonos has joined #silverstripe
18: [02:21:00] * eikonos quit (Changing host)
19: [02:21:00] * eikonos has joined #silverstripe
20: [03:22:00] * cloph_away1 has joined #silverstripe
21: [03:24:00] * cloph_away quit (Ping timeout: 258 seconds)
22: [03:28:00] <willr_> simon_w - think it would be a suitable API change to update the Text modify methods to return instances rather than strings so you could chain - $Field.Summary(1).NoHTML for instance
23: [03:29:00] * Motoservo quit (Remote host closed the connection)
24: [03:29:00] <willr_> well in PHP at least, template engine might already work fine since it casts
25: [03:32:00] <ss23> Seems fine, and wouldn't even break BC if it has a __toString right?
26: [03:35:00] <willr_> ...
27: [03:35:00] <willr_> ss23 would have to check the tests but yeah, should be backwards compatibe without a problem. Just checking before I go to the effort :p
28: [03:35:00] <ss23> When is 3.1 going into feature lock btw?
29: [03:36:00] <ss23> Is that the wrong thing to ask?
30: [03:36:00] <willr_> heh yeah this might be a 3.2 thing. 3.1 should have already been locked but hey
31: [03:36:00] <ss23> So it's not locked yet, right?
32: [03:36:00] <ss23> Well I mean, just the other week they were making more BC breaks in 3.1
33: [03:36:00] <willr_> Well should be locked but people just keep throwing things in
34: [03:36:00] <ss23> o.o
35: [03:37:00] <willr_> It was feature lock 3 weeks ago..
36: [03:38:00] <ss23> haha
37: [03:38:00] <willr_> Well I got an email some time ago about it at least.. Once RC1 is released Ingo will get stricter about it
38: [03:39:00] <willr_> Haven't talked to see what people are up to but I'd imagine that RC1 will be out sometime this month.
39: [03:43:00] <simon_w|air> willr_, it would have to be all or nothing, across all objects
40: [03:44:00] <willr_> Not just string related objects?
41: [03:48:00] <simon_w|air> Consistency and all that
42: [03:49:00] <simon_w|air> Datetime objects get used even more than string ones
43: [04:17:00] * howardgrigg has joined #silverstripe
44: [04:44:00] * howardgrigg quit (Remote host closed the connection)
45: [04:50:00] * ss-log has joined #silverstripe
46: [05:36:00] * simon_w|air quit (Quit: This computer has gone to sleep)
47: [05:41:00] <dd> blog question: i have MyBlogEntry extends BlogEntry
48: [05:41:00] * dd has joined #silverstripe
49: [05:41:00] <dd> hello
50: [05:42:00] <dd> but when I add $default_sort = 'Date DESC' or try to sort() MyBlogEntry by Date it fails saying it can't find the Date field
51: [05:42:00] <dd> which is on BlogEntry
52: [05:47:00] * Error404NotFound has joined #silverstripe
53: [05:49:00] * simon_w|air has joined #silverstripe
54: [05:56:00] * dd quit (Quit: Page closed)
55: [06:13:00] * ajshort has joined #silverstripe
56: [06:22:00] * DigNZ has joined #silverstripe
57: [07:18:00] * Motoservo has joined #silverstripe
58: [07:25:00] * SightUnseen has left #silverstripe
59: [07:25:00] * SightUnseen has joined #silverstripe
60: [08:26:00] * ajshort quit (Quit: ChatZilla 0.9.90-rdmsoft [XULRunner 18.0.2/20130201065344])
61: [08:55:00] * Shrike_Finland quit (Ping timeout: 252 seconds)
62: [09:04:00] * LoveDuckie has joined #silverstripe
63: [09:38:00] * gopi1410 has joined #silverstripe
64: [09:39:00] * gopi1410 quit (Remote host closed the connection)
65: [09:55:00] * willr_ quit (Quit: willr_)
66: [09:59:00] * Shrike_Finland has joined #silverstripe
67: [10:08:00] <Shrike_Finland> Hi, is there a way to check if sitetree/mainmenu contains certain pagetype and if is, then do something? Building a menu with submenu based on mobile/desktop and actual pagetype.
68: [10:15:00] <simon_w|air> Shrike_Finland, <% if $List('Type').Filter('ParentID', 0) %>
69: [10:17:00] <Shrike_Finland> simon_w|air: that's great! Thanx, again.
70: [10:22:00] <Shrike_Finland> Can ParentID be also ChildID ?
71: [10:23:00] <Shrike_Finland> To filter all 'Type' childs out from menu
72: [10:25:00] <simon_w|air> So you want to skip pages in a submenu of a particular class?
73: [10:25:00] <Shrike_Finland> Yep, all childrent that have "Foo" as a parent pagetype
74: [10:27:00] <simon_w|air> Why not just skip Foo type pages when building the menu? Something like <% loop Menu(1).Filter('ClassName', 'Foo') %>
75: [10:27:00] <Shrike_Finland> let's test that...
76: [10:36:00] <Shrike_Finland> Should it work also on loop Children? Like this: http://pastebin.com/Tmz0DqL9
77: [10:37:00] <simon_w|air> yeah
78: [10:37:00] * SightUnseen has joined #silverstripe
79: [10:46:00] <Shrike_Finland> Somehow it does not seem to kick in. Might the problem be that there is no 'Foo' on Children loop but it's on Menu(1) level. Does it check if parent is 'Foo' inside Children loop or is it impossible to check in that state?
80: [10:47:00] * SightUnseen quit (Ping timeout: 256 seconds)
81: [10:52:00] <simon_w|air> That's what the filter on Menu is for
82: [10:53:00] <simon_w|air> Or, you could change <% if Children %> to <% if $ClassName != 'Foo' && $Children %>
83: [10:54:00] <simon_w|air> depending on how you want your menu
84: [10:56:00] * simon_w|air sleeps
85: [11:02:00] * zfmf has joined #silverstripe
86: [11:13:00] * SightUnseen has joined #silverstripe
87: [11:17:00] * SightUnseen quit (Ping timeout: 256 seconds)
88: [12:13:00] * SightUnseen has joined #silverstripe
89: [12:18:00] * SightUnseen quit (Ping timeout: 248 seconds)
90: [12:29:00] * Error404NotFound quit (Ping timeout: 245 seconds)
91: [12:43:00] <travis-ci> [travis-ci] silverstripe/sapphire#1926 (3.1 - fb17f43 : Ingo Schommer): The build passed.
92: [12:43:00] * travis-ci has left #silverstripe
93: [12:43:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/6125326
94: [12:43:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/700453b7dc78...fb17f43878de
95: [12:43:00] * travis-ci has joined #silverstripe
96: [12:43:00] * Error404NotFound has joined #silverstripe
97: [12:47:00] * Zauberfisch has joined #silverstripe
98: [12:47:00] * Zauberfisch quit (Quit: Zauberfisch)
99: [12:53:00] * priithansen has joined #silverstripe
100: [13:14:00] * SightUnseen has joined #silverstripe
101: [13:18:00] * SightUnseen quit (Ping timeout: 264 seconds)
102: [13:20:00] * Error404NotFound quit (Read error: Connection reset by peer)
103: [13:21:00] * Error404NotFound has joined #silverstripe
104: [13:24:00] * Error404NotFound quit (Read error: Connection reset by peer)
105: [13:24:00] * Error404NotFound has joined #silverstripe
106: [13:59:00] * gelignite has joined #silverstripe
107: [14:13:00] * Error404NotFound quit (Read error: Connection reset by peer)
108: [14:14:00] * SightUnseen has joined #silverstripe
109: [14:19:00] * SightUnseen quit (Ping timeout: 252 seconds)
110: [14:25:00] * UncleCheese has joined #silverstripe
111: [14:30:00] * Error404NotFound has joined #silverstripe
112: [14:37:00] <Zauberfisch> hey UncleCheese
113: [14:37:00] <Zauberfisch> your event calendar module is ported to ss3, right?
114: [14:37:00] <UncleCheese> yeah
115: [14:38:00] <Zauberfisch> just asking because someone was looking for a ss3 calendar module yesterday
116: [14:38:00] <UncleCheese> the master branch is 3.0
117: [14:39:00] * zfmf has left #silverstripe
118: [14:42:00] * Error404NotFound quit (Read error: Connection reset by peer)
119: [14:44:00] <UncleCheese> yeah it's pretty good
120: [14:51:00] * Error404NotFound has joined #silverstripe
121: [15:15:00] * SightUnseen has joined #silverstripe
122: [15:19:00] * SightUnseen quit (Ping timeout: 246 seconds)
123: [15:23:00] * Error404NotFound quit (Read error: Connection reset by peer)
124: [15:58:00] <dd> hello
125: [15:58:00] <dd> it always returns 'odd'
126: [15:58:00] * dd has joined #silverstripe
127: [15:58:00] <dd> is there a reason why $EvenOdd wouldn't work inside a loop of a PaginatedList in SS3?
128: [15:58:00] * UncleCheese quit (Quit: UncleCheese)
129: [16:02:00] * priithansen quit (Remote host closed the connection)
130: [16:15:00] * SightUnseen has joined #silverstripe
131: [16:18:00] <dd> actually, EvenOdd works inside the loop but not if it's in an included file inside that loop
132: [16:19:00] <dd> does <% include %> introduce a new scope when it is used inside a loop?
133: [16:20:00] * SightUnseen quit (Ping timeout: 264 seconds)
134: [16:34:00] <Zauberfisch> dd sort of, try doing <% include TheFile MyEvenOdd=$EvenOdd %> and then use $MyEvenOdd in the include file
135: [16:37:00] <dd> Zauberfisch: that worked, thanks
136: [16:41:00] * chillu has joined #silverstripe
137: [16:43:00] * travis-ci has left #silverstripe
138: [16:43:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/6129761
139: [16:43:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/91477617e696...5c7ceee9020a
140: [16:43:00] <travis-ci> [travis-ci] silverstripe/sapphire#1927 (master - 5c7ceee : Ingo Schommer): The build passed.
141: [16:43:00] * travis-ci has joined #silverstripe
142: [16:45:00] * dd quit (Quit: Page closed)
143: [17:16:00] * SightUnseen has joined #silverstripe
144: [17:16:00] * priithansen has joined #silverstripe
145: [17:20:00] * SightUnseen quit (Ping timeout: 245 seconds)
146: [17:34:00] * popeshoe has joined #silverstripe
147: [17:45:00] * Guest14527 quit (Read error: Connection reset by peer)
148: [18:01:00] * popeshoe quit (Quit: Leaving)
149: [18:16:00] * SightUnseen has joined #silverstripe
150: [18:21:00] * SightUnseen quit (Ping timeout: 255 seconds)
151: [18:35:00] * ARNHOE has joined #silverstripe
152: [18:53:00] <ARNHOE> chillu: Are you aware of Boolean casting Nice in ModelAdmin isn't doing his translation. It has the _t function and Yes/No are translated in the nl.yml file
153: [18:56:00] <ARNHOE> chillu: Actually, I see the bug. In the translation only 1 and 2 is being translated. I have added YES, and now its being translated. How should I pull request this?
154: [18:59:00] <ARNHOE> chillu: PING PING PING, sorry :( Here is the issue, https://github.com/silverstripe/sapphire/issues/1736. I guess you will have a very quick fix for that.
155: [19:10:00] * SightUnseen has joined #silverstripe
156: [19:11:00] * ARNHOE quit (Remote host closed the connection)
157: [19:13:00] * SightUnseen has left #silverstripe
158: [19:21:00] * ARNHOE has joined #silverstripe
159: [19:30:00] * simon_w|air quit (Quit: This computer has gone to sleep)
160: [19:42:00] * ARNHOE quit (Remote host closed the connection)
161: [20:05:00] * zfmf has joined #silverstripe
162: [20:17:00] * SightUnseen has joined #silverstripe
163: [20:22:00] * SightUnseen quit (Ping timeout: 260 seconds)
164: [20:25:00] * zfmf quit (Remote host closed the connection)
165: [20:26:00] * zfmf has joined #silverstripe
166: [20:28:00] * zfmf quit (Remote host closed the connection)
167: [20:28:00] * zfmf has joined #silverstripe
168: [20:28:00] * zfmf quit (Remote host closed the connection)
169: [20:29:00] * zfmf has joined #silverstripe
170: [20:29:00] * zfmf quit (Remote host closed the connection)
171: [20:34:00] <Pyromanik_> Zauberfisch, that question, good answer, but it's a hackaround
172: [20:34:00] <Pyromanik_> there's a bug with scope on includes
173: [20:34:00] <Pyromanik_> very annoying.
174: [20:35:00] * nickmolhoek has joined #silverstripe
175: [20:35:00] <Pyromanik_> none of the template globals work, etc. $Top.Title will throw an error iirc.
176: [20:35:00] * SightUnseen has joined #silverstripe
177: [20:35:00] * SightUnseen has left #silverstripe
178: [20:35:00] * nickmolhoek quit (Remote host closed the connection)
179: [20:36:00] <Pyromanik_> :)
180: [20:36:00] <Pyromanik_> But I didn't know I could pass variables in like that, that's cool.
181: [20:36:00] * nickmolhoek has joined #silverstripe
182: [20:40:00] <simon_w> Globals should work, it's just a new scope stack
183: [20:42:00] * zfmf has joined #silverstripe
184: [20:43:00] * priithansen quit (Quit: priithansen)
185: [20:43:00] * zfmf quit (Remote host closed the connection)
186: [20:51:00] <Pyromanik_> hmm, yeah you're right.
187: [20:51:00] <Pyromanik_> getting confused with what is and isn't global.
188: [20:52:00] <Pyromanik_> or rather globals that deal with scope rather than those that do not.
189: [20:53:00] * Pyromanik_ is now known as Pyromanik
190: [21:06:00] * DigNZ1 has joined #silverstripe
191: [21:06:00] * DigNZ1 quit (Remote host closed the connection)
192: [21:06:00] * DigNZ1 has joined #silverstripe
193: [21:08:00] <simon_w> Oh looky at that. 3.1's SSViewer is getting support for something that we've got in 2.4. How cute.
194: [21:10:00] * pippy_ is now known as pippy
195: [21:18:00] * SightUnseen1 has joined #silverstripe
196: [21:22:00] * SightUnseen1 quit (Ping timeout: 245 seconds)
197: [21:28:00] <Zauberfisch> simon_w ^^
198: [21:29:00] <simon_w> You didn't know about $Me?
199: [21:33:00] * SightUnseen1 has joined #silverstripe
200: [21:33:00] * SightUnseen1 quit (Client Quit)
201: [21:55:00] <Zauberfisch> yes I did, but I was not sure it worked in this context so I did not mention it
202: [21:55:00] <simon_w> It always works! :p
203: [22:08:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/sapphire/builds/6136412
204: [22:08:00] * travis-ci has joined #silverstripe
205: [22:08:00] <travis-ci> [travis-ci] chillu/sapphire#123 (pulls/theme-enabled - 7121fc3 : Ingo Schommer): The build passed.
206: [22:08:00] <travis-ci> [travis-ci] Change view : https://github.com/chillu/sapphire/compare/9e84d2627055...7121fc3f85fc
207: [22:08:00] * travis-ci has left #silverstripe
208: [22:24:00] <Pyromanik> ?
209: [22:24:00] <Pyromanik> <simon_w> Oh looky at that. 3.1's SSViewer is getting support for something that we've got in 2.4. How cute.
210: [22:24:00] <Pyromanik> what is it?
211: [22:24:00] <simon_w> Inequalities
212: [22:24:00] <Pyromanik> != ?
213: [22:25:00] <simon_w> <, <=, >=, >
214: [22:25:00] <Pyromanik> last I tried that in 2.4 it had a nervous breakdown.
215: [22:26:00] <Pyromanik> shit :<
216: [22:26:00] <Pyromanik> also < and > work in 3.0
217: [22:26:00] <simon_w> And you probably also couldn't chain very well
218: [22:26:00] <Pyromanik> haven't tried >=
219: [22:26:00] <simon_w> Nope
220: [22:26:00] <Pyromanik> well yeah, I used one just the other day and it worked as expected.
221: [22:26:00] <Pyromanik> oh wait
222: [22:26:00] <Pyromanik> no I didn't
223: [22:26:00] <Pyromanik> haha, well played
224: [22:27:00] <Pyromanik> iirc
225: [22:27:00] <simon_w> https://github.com/silverstripe/sapphire/blob/3.0/view/SSTemplateParser.php.inc#L341
226: [22:27:00] <Pyromanik> > and < worked in 2.4 from memory, but >= and <= had 'mares.
227: [22:28:00] <simon_w> Nope
228: [22:30:00] <simon_w> I probably made a regex that let them work, but wasn't in stock 2.4
229: [22:31:00] <clodeindustrie> hey
230: [22:31:00] * Jeremy_ is now known as clodeindustrie
231: [22:31:00] <Pyromanik> ah yeh
232: [22:31:00] * Jeremy_ has joined #silverstripe
233: [22:31:00] <Pyromanik> all dem regex
234: [22:31:00] <Pyromanik> :<
235: [22:32:00] <Pyromanik> hi
236: [22:32:00] <clodeindustrie> I'm still trying to make that TagField module work :)
237: [22:32:00] <clodeindustrie> I am supposed to be able to use requirements::javascript in a TextField class ?
238: [22:40:00] <simon_w> Where are you trying to use it?
239: [22:41:00] <clodeindustrie> https://github.com/chillu/silverstripe-tagfield/blob/master/code/TagField.php#L110
240: [22:41:00] <clodeindustrie> it's used there but it doesn't seem to be included when the page renders
241: [22:41:00] <clodeindustrie> the tag field displays fine though
242: [22:44:00] <simon_w> Which files aren't being included? Is the module in a tagfield folder? Do the paths exist?
243: [22:45:00] <clodeindustrie> I'll check the path
244: [22:45:00] <clodeindustrie> the required files aren't, but now that you mention it I must have been a bit too trusty with the dude who made that module
245: [22:48:00] <Pyromanik> make sure the folder is named correctly
246: [23:06:00] * gelignite quit (Quit: http://bit.ly/nkczDT)
247: [23:15:00] * SightUnseen1 has left #silverstripe
248: [23:15:00] * SightUnseen1 has joined #silverstripe
249: [23:22:00] * DigNZ1 quit (Quit: DigNZ1)
250: [23:30:00] * travis-ci has left #silverstripe
251: [23:30:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/6138413
252: [23:30:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/125edeb12ecb...915582a54c53
253: [23:30:00] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#328 (3.1 - 915582a : Ingo Schommer): The build passed.
254: [23:30:00] * travis-ci has joined #silverstripe
255: [23:41:00] * simon_w|air has joined #silverstripe
256: [23:42:00] <simon_w> Oh hello there, simon_w|air
257: [23:43:00] <simon_w> This is when I have a conversation with myself, right?
258: [23:58:00] <simon_w|air> That requires me to have something to say though
259: [23:58:00] <Pyromanik> 2.4
260: [23:58:00] <Pyromanik> simon_w, how do I make custom i18n calls in a template?
261: [23:58:00] <simon_w|air> <% _t() %> ?
262: [23:58:00] <Pyromanik> simon_w, yes
263: [23:59:00] <Pyromanik> but how to make fr_FR work?
264: [23:59:00] <Pyromanik> etc
265: [23:59:00] <Pyromanik> <% _t('SITEMAP', 'Site Map') %>
266: [23:59:00] <Pyromanik> mysite/lang/fr_FR/fr_FR.php
267: [23:59:00] <Pyromanik> I get that part
268: [23:59:00] <simon_w|air> $lang['fr_FR']['TemplateName.ss']['SITEMAP'] = 'Whatever';

These logs were automatically created by ss-log on irc.freenode.net.