#silverstripe IRC Log

IRC log for 22 September 2014

All timestamps are in UTC.

1: [00:02:02] * muskie9 has joined #silverstripe
2: [00:02:03] * howardgrigg quit (Ping timeout: 272 seconds)
3: [00:04:51] * veb_ has joined #silverstripe
4: [00:06:59] * howardgrigg has joined #silverstripe
5: [00:08:07] * veb quit (Ping timeout: 245 seconds)
6: [00:11:27] * howardgrigg quit (Ping timeout: 245 seconds)
7: [00:20:42] <hailwood> Does the Silverstripe/Blog have any form of permalinks by default?
8: [00:23:18] <spronk> hmm
9: [00:23:34] <spronk> i dont remember it doing, but it probably does
10: [00:23:47] <spronk> hmm, how to get $something-with-a-hyphen in templat
11: [00:23:47] <spronk> e
12: [00:24:25] <hailwood> does {$something-with-hyphen} work?
13: [00:24:48] <spronk> didn't seem to
14: [00:24:48] <spronk> :(
15: [00:24:54] <spronk> maybe i messed it up....
16: [00:25:06] <spronk> yeah
17: [00:25:09] <spronk> template parse error
18: [00:28:12] <spronk> hmm
19: [00:28:19] <spronk> cant find any docs on this
20: [00:28:54] <spronk> according to the formal syntax it should work
21: [00:29:12] <spronk> ah
22: [00:29:14] <spronk> no it shouldn't
23: [00:29:15] <spronk> fuuuuu
24: [00:29:22] <Stomach> wrong way around spronk
25: [00:29:30] <spronk> ?
26: [00:29:33] <Stomach> $test_function maps to test-function in URL routing
27: [00:29:44] <Stomach> test_function() rather
28: [00:29:50] <spronk> im using restfulservice
29: [00:30:03] <spronk> have a property within an arraydata called item-description
30: [00:31:53] <Colin[pi]> do you really need the hyphens?
31: [00:32:03] <spronk> well
32: [00:32:05] <Colin[pi]> I'd rather avoid them to prevent possible problems
33: [00:32:07] <spronk> this is not my API
34: [00:32:10] <Colin[pi]> ah k
35: [00:32:19] <spronk> i wonder if i can transform them somehow
36: [00:32:30] <Colin[pi]> $IUsuallyCamelCaseVars
37: [00:32:37] <spronk> yeahh
38: [00:33:20] <spronk> well
39: [00:33:25] <spronk> im gonna call this a bug in RestfulService
40: [00:35:16] <Stomach> Colin[pi] - thats StudlyCaps
41: [00:36:01] <Colin[pi]> Stomach: oops, yes you're right
42: [00:36:30] <Stomach> or is it also camelcase
43: [00:36:39] <Stomach> probably both
44: [00:36:42] <Stomach> who cares
45: [00:36:44] * Stomach goes to lunch
46: [00:36:53] <Colin[pi]> wait well yeah.. StudlyCaps includes all variations of it
47: [00:37:20] <spronk> GOD DAMNIT
48: [00:37:55] * veb_ quit (Ping timeout: 272 seconds)
49: [00:38:08] * howardgrigg has joined #silverstripe
50: [00:41:37] <spronk> this is hideously annoying lol
51: [00:42:25] <Colin[pi]> client gives me corporate style guidelines... I look at current website... current website logo is totally in violation of style guidelines
52: [00:42:26] <Colin[pi]> >_<
53: [00:42:34] * veb has joined #silverstripe
54: [00:42:59] * howardgrigg quit (Ping timeout: 272 seconds)
55: [00:45:13] <spronk> lolmm
56: [00:45:17] <spronk> love it how that happens
57: [00:45:30] <spronk> i remember the designers where i used to work blatantly just ignored style guidelines
58: [00:45:56] <Stomach> I have to point out all the time on designers guideline documents that they aren't following their own guidelines within the document
59: [00:45:58] <Stomach> >_<
60: [00:46:17] <Stomach> "logo should always have at least 3cm space around it" or whatever spacing they decide is ALWAYS FUCKING WRONG
61: [00:47:34] <Colin[pi]> lol every time
62: [00:55:31] <spronk> FUUUUUCKKSSS SAKKKKKKEEEEEEEE
63: [01:07:09] <simon_w|work> subsites?
64: [01:08:00] <spronk> nah
65: [01:08:01] <spronk> this dumb api
66: [01:08:11] <spronk> so
67: [01:08:19] <spronk> it returns the currency code for items
68: [01:08:24] <spronk> and the price, as a decimal
69: [01:08:27] <spronk> but no currency symbol
70: [01:09:01] <spronk> so have to write some extra code to do that.
71: [01:10:37] <simon_w|work> Need to find my over pair of headphones
72: [01:10:42] <simon_w|work> The cable on this pair isn't long enough
73: [01:14:17] * jenniferaslan quit (Quit: jenniferaslan has left the room)
74: [01:18:40] <spronk> hate that
75: [01:21:16] * zippy has joined #silverstripe
76: [01:21:19] * veb has joined #silverstripe
77: [01:21:21] * veb quit (Remote host closed the connection)
78: [01:22:01] <simon_w|work> There's just enough slack for it to be useful if I slouch a little
79: [01:23:00] <simon_w|work> If I sit up straight, they get pulled out :(
80: [01:30:17] <spronk> :(
81: [01:30:20] <spronk> annoying
82: [01:30:53] <spronk> hmm
83: [01:31:02] <spronk> does SS template also change function scope?
84: [01:31:54] <spronk> yes it does
85: [01:31:55] <spronk> interesting
86: [01:32:37] <spronk> Class 'NumberFormatter'
87: [01:32:39] <spronk> not found
88: [01:32:40] <spronk> WHAT!?
89: [01:32:45] <spronk> WHERE MY NUMBERS FORMATS PHPZ?!
90: [01:33:34] * Ryan-Toast quit (Quit: Ryan-Toast)
91: [01:37:40] <irogue__> spronk: intl module probably not enabled
92: [01:37:49] <spronk> yeah
93: [01:37:49] <spronk> :(
94: [01:38:57] * howardgrigg has joined #silverstripe
95: [01:40:02] <spronk> hmm,
96: [01:40:13] <spronk> need some way to get this symbol from a currency code without using intl extension
97: [01:41:20] <simon_w|work> spronk, there's a bunch of stuff in Zend_Locale
98: [01:41:26] <simon_w|work> Currency field uses it, IRC
99: [01:41:37] * Ryan-Toast has joined #silverstripe
100: [01:41:52] * Ryan-Toast has left #silverstripe
101: [01:42:03] <spronk> ooo
102: [01:42:04] <spronk> good call
103: [01:43:25] * howardgrigg quit (Ping timeout: 260 seconds)
104: [01:43:43] * Ryan-Toast has joined #silverstripe
105: [01:44:25] <Ryan-Toast> Macs just work, rabble rabble
106: [01:47:53] * muskie9 is now known as _muskie9_
107: [01:48:54] * _muskie9_ quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
108: [01:52:54] <spronk> hmm
109: [01:53:16] <spronk> how to use zend_currency?
110: [01:53:57] <spronk> ah
111: [01:53:58] <spronk> have to require it in
112: [02:08:21] <ss23> spronk: I wanted to have a gif of you jumping on the 404 page
113: [02:08:22] <ss23> :(
114: [02:08:28] * Olliepop quit (Ping timeout: 246 seconds)
115: [02:08:44] <spronk> really?
116: [02:08:48] <spronk> i'll supply some footage!
117: [02:09:34] <irogue__> this is where I wish IRC was flowdock... quickly go back and edit to "gif of you wanking"
118: [02:09:43] <spronk> ss23, http://charmeusical.ucoz.com/_dr/3/66591775.gif
119: [02:09:51] <spronk> that's me, of course
120: [02:10:46] <ss23> lol spronk
121: [02:10:55] <ss23> I knew you were a yellowbelly no good coward, running away from your problems!
122: [02:10:59] <spronk> :D
123: [02:11:15] * Tanger has joined #silverstripe
124: [02:11:16] <spronk> oh for fucks sakes zend_currency
125: [02:11:21] <spronk> "No region found within the locale ''"
126: [02:11:23] <spronk> ?!?!?!!?!!?
127: [02:12:08] <ss23> lol
128: [02:12:12] <ss23> zend sucks
129: [02:12:16] <ss23> also I feel like vommiting this is unpleasant
130: [02:12:22] <spronk> ?
131: [02:13:10] <ss23> am sick
132: [02:13:11] <ss23> :(
133: [02:13:24] <ss23> I think I fucked up my insulin or something really bad, and I have a cough or some shit which might be related but hard to tell
134: [02:14:01] <spronk> haha
135: [02:14:03] <spronk> you are
136: [02:14:04] <spronk> the worst diabetic
137: [02:14:05] <spronk> ever.
138: [02:14:48] <Kingy> Ryan-Toast: was is you at burger fuel pulling the fingers?
139: [02:14:57] <Kingy> because that would make for a good 404 page
140: [02:15:04] <Ryan-Toast> Kingy: http://www.gfycat.com/BabyishShinyHarrier
141: [02:15:25] <Kingy> there you go ss23 ^
142: [02:15:35] <Kingy> Silverstripe: Fuck you all, eat burger fuel
143: [02:18:00] <ss23> lol
144: [02:18:23] <ss23> spronk: My doctor agrees in princple, but the numbers work out to me being a fucking amazing diabetic with some of the least health problems ever
145: [02:18:37] <ss23> haha Ryan-Toast
146: [02:19:27] <Colin[pi]> "could you send the logo as a JPEG so we can use it in our print media?"
147: [02:19:28] <Colin[pi]> "send the logo as a JPEG so we can use it"
148: [02:19:33] <Colin[pi]> "logo as a JPEG"
149: [02:19:34] <ss23> ....
150: [02:19:37] <Colin[pi]> "JPEG"
151: [02:19:39] <Colin[pi]> >______<
152: [02:19:40] <ss23> Colin[pi]: "No. Also you're fired."
153: [02:20:22] <Colin[pi]> ss23: these guys are paying me pretty well, I just need to educate them :)
154: [02:20:30] <ss23> Ah, if they're educatable it's good
155: [02:20:39] <Colin[pi]> ss23: yeah this client is pretty nice
156: [02:20:55] <Colin[pi]> I don't mind if they're willing to accept my advice
157: [02:21:11] <Ryan-Toast> Colin[pi]: http://needsmorejpeg.com/
158: [02:21:14] <ss23> fuccckkkkk, my flatmate isn't coming home till late, I have to find food for myself
159: [02:21:18] <Colin[pi]> ahaha I love that site r_hector
160: [02:21:19] <Colin[pi]> oops
161: [02:21:22] <Colin[pi]> Ryan-Toast
162: [02:21:25] <Colin[pi]> (damn tab)
163: [02:22:05] <crapwagon> can i give a data object a template so that in the cms editor when i'm editing the data object you see the preview next to it?
164: [02:22:31] <ss23> Hmm
165: [02:22:44] <ss23> Data objects don't have a preview, crapwagon
166: [02:22:47] <Colin[pi]> crapwagon: that's a really interesting question, never thought about that
167: [02:22:52] <ss23> You can view pages that have a dataobject on it, but not a dataobject itself
168: [02:22:57] <crapwagon> it'd be really useful for my client
169: [02:23:00] <ss23> (Or a controller)
170: [02:29:22] <crapwagon> another question, can i authenticate against silverstripe through a header or something?
171: [02:29:38] <crapwagon> i want to make a script for doing some tests
172: [02:31:08] <ss23> Can you not just make the script authetnicate?
173: [02:33:30] <irogue__> crapwagon: you can send basic auth
174: [02:35:21] <crapwagon> ss23: that's the question i was asking, i didn't know what irogue__ just said
175: [02:35:24] <crapwagon> so i'll just do that
176: [02:40:05] * howardgrigg has joined #silverstripe
177: [02:44:00] * micmania1 quit (Quit: micmania1)
178: [02:44:23] * howardgrigg quit (Ping timeout: 240 seconds)
179: [02:52:23] <zippy> was there something out there like select2, but lighter? It feels quite "big"
180: [02:53:30] <zippy> im a bit gutted phpstorm 8's pstorm command doesn't work very well now :(
181: [02:53:36] <UncleCheese> does anyone know where in the stack BBCodes get parsed?
182: [02:53:51] <ss23> UncleCheese: On Forum? Cause they're not part of sotck silverstripe stack are they?
183: [02:53:52] * micmania1 has joined #silverstripe
184: [02:54:01] <UncleCheese> no idea
185: [02:54:18] <ss23> zippy: I prefer stock select boxes. Prevents it being slow as shit and still looks reasonable, since it matches your OS theme
186: [02:55:59] <zippy> ss23: want to do some ajax lookups really
187: [02:57:32] <ss23> You can do that with a standard <select> right?
188: [02:57:36] <ss23> I do :O
189: [02:58:10] <adrexia> the onnes I know and have used are chosen, select2, and bootstrap select
190: [02:58:40] <adrexia> bootstrap is the lightest, but it lies in that you need a bunch of stuff from bootstrap for it to work
191: [02:58:44] <adrexia> can'
192: [02:58:49] <adrexia> t say I liked it much
193: [03:00:21] <irogue__> chosen is what SS uses within the CMS, iirc
194: [03:00:28] <adrexia> yep
195: [03:00:37] <adrexia> it's gotten a lot better since that version though
196: [03:01:13] <adrexia> fixed a lot of the issues that we fixed with custom code
197: [03:01:27] <zippy> adrexia: where are you from?
198: [03:01:45] <zippy> ss23: how do you allow the user to type in the select field to narrow it down?
199: [03:02:01] <irogue__> zippy: she's from silverstripeland, but left :(
200: [03:02:27] <adrexia> that ^
201: [03:03:04] <zippy> ah, https://github.com/adrexia
202: [03:03:46] <adrexia> zippy you could use an input field combined with a select. But it'd take a lot of custoim code
203: [03:03:58] <zippy> yea, I think i'll probably jsut go with chosen
204: [03:04:09] <adrexia> That would be my choice
205: [03:04:15] <simon_w|work> zippy, if you need to let people filter it down, your dropdown is probably too big
206: [03:04:31] <ss23> 15:01:46 < zippy> ss23: how do you allow the user to type in the select field to narrow it down?
207: [03:04:43] <ss23> That's a built in feature of browsers
208: [03:04:47] <zippy> simon_w|work: yes it will be too big, which is why I'll use select2 or chose to perform to queries to narrow it down
209: [03:04:54] <ss23> Have you literally never had a select and just typed "new" to get to new zealand? :O
210: [03:05:05] <zippy> ss23: yes, but I need it to do more than that :P
211: [03:05:19] <zippy> ie ajax requests, as I have some some 2-3 k records
212: [03:05:29] <adrexia> yeah
213: [03:05:37] <zippy> also match in any part of the title, not just the start
214: [03:05:40] <ss23> Sounds like you're using the wrong tool for the job
215: [03:05:53] <ss23> That's not a dropdown/select, that's an <input> with extra autocomplete shit
216: [03:06:09] <crapwagon> doesn't look super feasible eh http://doc.silverstripe.org/framework/en/reference/preview
217: [03:06:13] <adrexia> ss23 they amount to the same thing
218: [03:06:42] <ss23> Apart from they're not the same thing and they're implemented wildly differently and they're DIFFERENT?
219: [03:07:22] <adrexia> nope - you can implement them using slects
220: [03:07:37] <adrexia> the actual html interface is largely irrilevent
221: [03:07:47] <adrexia> except... you know, if you are using wscreen readers
222: [03:08:05] <adrexia> selects are more accessible than a list with links
223: [03:15:59] <zippy> having said that.... "Uncaught Error: Option 'ajax' is not allowed for Select2 when attached to a <select> element. " :)
224: [03:16:20] <adrexia> lols
225: [03:17:27] <ss23> Ordering pizza - Tender Wild Boar, Smoked Kumara with Fennel Seeds and Rosemary, Peckham's Apple Cider and Chestnut Sauce. Topped with strips of Pork Crackling
226: [03:17:30] <ss23> does that one sound good?
227: [03:18:03] <zippy> road kill / hillbillyish
228: [03:18:36] <ss23> mm
229: [03:18:41] <ss23> I'm thinking the kumara sounds gross
230: [03:20:04] <spronk> you mena
231: [03:20:06] <spronk> delicious
232: [03:20:14] * spronk just had some pepes mexican grill for lunch
233: [03:20:16] <spronk> www.pepes.co.nmz ftw
234: [03:20:26] <ss23> :(
235: [03:20:28] <ss23> I'm sick
236: [03:20:34] <Ryan-Toast> ss23: Step #1: pizza base. Steps #2 & #3: Tomato sauce and cheese.
237: [03:20:48] <spronk> nah
238: [03:20:52] <spronk> dont even bother with the pizza base
239: [03:20:59] <spronk> just toast some bread a bit
240: [03:21:04] <Ryan-Toast> Block of cheese in the oven.
241: [03:21:09] <spronk> exactly
242: [03:21:10] <spronk> DELICIOUS
243: [03:21:11] <ss23> ...
244: [03:21:14] <Ryan-Toast> eat with spoon
245: [03:21:20] <ss23> So I say this occasionally, I say I have no food at home
246: [03:21:28] <ss23> People think what I mean is "I have no food I want to eat at home"
247: [03:21:31] <Ryan-Toast> Directions unclear, everything’s on fire.
248: [03:21:31] <ss23> What I mean is I HAVE NO FOOD AT HOME
249: [03:21:37] <spronk> omg
250: [03:21:39] <spronk> ss23 was that guy on tv
251: [03:21:42] <spronk> with nothing in his fridge
252: [03:22:06] <ss23> I think my flatmate has lemon juice in there at the moment
253: [03:22:11] <ss23> He'll mix it with sugar and water when he's too lazy to get food
254: [03:22:17] <Ryan-Toast> everytime my cuboards are empty I got out and buy about $100 worth of snacks.
255: [03:22:27] <spronk> i
256: [03:22:34] <spronk> ve been buying those like kiddie packs of rice crackers
257: [03:22:38] <spronk> DELECTABLE
258: [03:22:42] <ss23> $100 of snacks lasts about ~5 days for me, and I can't be bothered buying stuff that often
259: [03:22:57] <Ryan-Toast> ss23: You need to diversify your snacks, son.
260: [03:24:53] <irogue__> need more ramen
261: [03:25:03] * micmania1 quit (Quit: micmania1)
262: [03:25:04] <Ryan-Toast> Strawberry poptarts, party pies (mini pies in packs of 25); immitation brand pringles, hundreds and thousand cookies; peanut slabs, mini pizzas; noodles by the assload.
263: [03:25:10] <ss23> Also, NSFW a bit, but hilarious
264: [03:25:14] <ss23> https://41.media.tumblr.com/9c1b1e01c80e2c8a2e0d3d9985526784/tumblr_n0imh2n28p1qgh75xo1_500.jpg
265: [03:25:32] <Ryan-Toast> ss23: Your job must suck :P
266: [03:25:33] <spronk> lawwwwl
267: [03:25:53] <ss23> I'd rather be conservative in my NSFW ratings than get some fired
268: [03:25:54] <ss23> :P
269: [03:26:02] <Ryan-Toast> ss23: fair enough.
270: [03:26:08] <Ryan-Toast> AKA shakira can
271: [03:26:20] <ss23> shakira can?
272: [03:26:33] <Ryan-Toast> the shakira chickien can thing
273: [03:27:00] <Ryan-Toast> ss23: https://i.imgur.com/zOrK6uW.jpg
274: [03:27:07] <spronk> omfg
275: [03:27:09] <spronk> why does the api search
276: [03:27:11] <spronk> not show Controller
277: [03:27:20] <ss23> spronk: FIX IT FIX IT FIX IT FIXI T
278: [03:27:25] <spronk> NO
279: [03:27:26] <spronk> YOU FIX IT
280: [03:27:27] <ss23> oh yeah, Ryan-Toast, hahahaha, I <3 it
281: [03:27:34] <ss23> spronk: I filed a bug for it
282: [03:27:39] <spronk> is Controller::curr deprecated?
283: [03:27:45] <spronk> it's all g, right?
284: [03:28:09] <ss23> you should be able to search for that if it's the bug I found :O
285: [03:28:17] <spronk> ?
286: [03:28:18] <ss23> Yeah
287: [03:28:19] <ss23> I can
288: [03:28:21] <ss23> http://api.silverstripe.org/3.1/class-Controller.html#_curr
289: [03:28:24] <ss23> I searched for it and go that
290: [03:28:31] <spronk> what did you search for?
291: [03:28:40] <ss23> Controller::curr
292: [03:28:51] <spronk> that works
293: [03:28:54] <spronk> but if you search for "Controller"
294: [03:28:55] <spronk> nothing shows
295: [03:29:01] <ss23> Yes
296: [03:29:07] <ss23> Well
297: [03:29:09] <ss23> Lots of stuff shows
298: [03:29:12] <ss23> But not Controller stuff
299: [03:29:15] <spronk> lol
300: [03:29:15] <ss23> THat's rtelated to the bug I raised
301: [03:29:16] <spronk> basically
302: [03:29:22] <spronk> the ony thing you want to see if you search for "Controller"
303: [03:29:28] <ss23> I'm not 100% sure how to fix it, I think it'll take 2x queries or something...
304: [03:29:34] <spronk> le sigh
305: [03:29:46] <spronk> just cache the list of classes and partial match search it
306: [03:29:53] <ss23> Anyway, it's workaroundable, as demonstrated by my fixing it, spronk, so probably just do that or fix it :D
307: [03:30:37] <spronk> or
308: [03:30:39] <spronk> bash you
309: [03:30:40] <ss23> Is the Hells gelato any good?
310: [03:30:42] <spronk> i prefer that option
311: [03:30:49] <ss23> spronk: GOOD LUCK I'M BEHIND 9001 BOXXYS
312: [03:33:10] <irogue__> ss23: you need Giapo
313: [03:34:19] <ss23> Ordering $25 of pizza? Better make it coke zero, don't wanna get fat.
314: [03:36:16] <simon_w|work> irogue__, eh, overhyped
315: [03:39:42] * cloph has joined #silverstripe
316: [03:40:01] * cloph_away quit (Ping timeout: 260 seconds)
317: [03:40:48] * micmania1 has joined #silverstripe
318: [03:40:56] * howardgrigg has joined #silverstripe
319: [03:45:12] * howardgrigg quit (Ping timeout: 245 seconds)
320: [04:00:49] * muskie9 has joined #silverstripe
321: [04:08:35] <Colin[pi]> I so hope that these are counterhoaxes and people are not really this dumb: http://www.escapistmagazine.com/news/view/137568-Wave-Hoax-Tells-iPhone-Users-to-Microwave-Their-Phones
322: [04:13:48] * muskie9 is now known as _muskie9_
323: [04:14:48] * _muskie9_ quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
324: [04:16:00] * pippy has joined #silverstripe
325: [04:41:50] * howardgrigg has joined #silverstripe
326: [04:46:14] * veb has joined #silverstripe
327: [04:46:32] * howardgrigg quit (Ping timeout: 258 seconds)
328: [04:49:32] * Sticks has joined #silverstripe
329: [04:51:14] * anselmdk has joined #silverstripe
330: [04:51:59] * anselmdk quit (Client Quit)
331: [04:52:01] <Sticks> Hi guys, is it possible to use different SS login forms depending on page/site being accessed in SS3.1? Example if the page has a Child, use this login form, else use that one.
332: [04:52:40] <willr> What’s the difference between login forms?
333: [04:53:18] * Shrike_Finland has joined #silverstripe
334: [04:53:50] <Sticks> I'm using the Opauth module. It attaches a tab with buttons to log in with Facebook or Twitter or whatever. I want to be able to selectively switch that tab on and off. I had a quick play with Authenticator::unregister_authenticator wasn't getting anywhere.
335: [04:54:48] * Shrike_Finland quit (Client Quit)
336: [04:57:35] <willr> unregister_authenticator would be one way to go or just chuck a CSS selector on the body and show / hide via CSS
337: [05:00:04] <Sticks> willr, could I put the unregister_authenticator in the page controller init function? Or does it have to be set in config?
338: [05:00:54] <willr> Haven’t used the module much myself so you could ask the guys behind it. init() might be too late for it
339: [05:02:03] <willr> Try it and see but if they’re using extensions sometimes by the time init is around she could be too late. You could use a RequestFilter to get in early as possible
340: [05:03:25] <Sticks> OK cool. I'll try to get in touch with the authors. If not the CSS trick could work. Cheers willr.
341: [05:03:45] * veb has joined #silverstripe
342: [05:05:27] <irogue__> otherwise be dirty and hide it with css :P
343: [05:07:40] * Colin[pi] is guilty of that trick sometimes :(
344: [05:08:02] <Colin[pi]> is there an option to turn it off? no? hmm could write an extension... change the code... ah fuck it, hide with CSS
345: [05:08:40] * hailwood quit (Ping timeout: 260 seconds)
346: [05:08:58] * willr quit (Quit: willr)
347: [05:09:33] <simon_w|work> Well, trying to unregister authenticators is really hard
348: [05:09:43] <Colin[pi]> mm
349: [05:10:01] <simon_w|work> Has to be done after it's registered, but before get_authenticators() is called
350: [05:10:35] <Colin[pi]> pretty small window of opportunity
351: [05:12:56] <spronk> hmm
352: [05:13:03] <spronk> why would a form field not retain it's submitted value?
353: [05:13:11] <spronk> i'm setting a value on construct time... and it always seems to come back to that
354: [05:13:37] <spronk> maybe its that i have the action in the controller but the form is a separate class...
355: [05:13:53] <Sticks> Turns out I can unregister it in the init() function of Page_Controller, but I can't unregister it in an extension of Page_Controller usind onBeforeInit or onAfterInit...
356: [05:13:55] <Colin[pi]> spronk: pretty sure I've had that problem too
357: [05:14:12] <spronk> Colin[pi], solution?
358: [05:14:22] <Colin[pi]> spronk: can't remember :(
359: [05:14:28] <simon_w|work> Sticks, should be able to use though extension hooks on Security though
360: [05:14:39] <spronk> D:
361: [05:14:41] <Colin[pi]> spronk: I think I kept investigating the execution further up the chain until I figured it out
362: [05:15:07] * micmania1 has left #silverstripe
363: [05:15:35] * Kingy is now known as Kingy[a]
364: [05:15:43] <Sticks> simon_w|work, Do you mean I should try extending Security rather than Page_Controller?
365: [05:16:03] <simon_w|work> Sticks, yeah
366: [05:16:20] <Sticks> Ah cool. I hadn't considered that. I'll give it a look.
367: [05:17:08] * Kingy[a] is now known as Kingy
368: [05:20:27] * Ryan-Toast quit (Quit: Ryan-Toast)
369: [05:20:32] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
370: [05:20:54] * UncleCheese has joined #silverstripe
371: [05:22:06] * UncleCheese quit (Client Quit)
372: [05:23:19] * irogue__ quit (Quit: Textual IRC Client: www.textualapp.com)
373: [05:27:44] * Kingy is now known as Kingy[a]
374: [05:36:57] <spronk> OMFG
375: [05:36:59] <spronk> does anyone have any idea
376: [05:37:02] <spronk> how to make a select box in chrome
377: [05:37:02] <ss23> OMG
378: [05:37:04] <spronk> obey line height?!
379: [05:37:07] <ss23> heh
380: [05:37:10] * ss23 backs away
381: [05:37:20] <spronk> i am sure they used to
382: [05:42:50] * howardgrigg has joined #silverstripe
383: [05:45:26] <spronk> oh ffs
384: [05:45:33] <spronk> seriously, has anyone else noticed a line-height bug in chrome?
385: [05:45:37] <spronk> for <select> elems?
386: [05:46:13] <Colin[pi]> spronk: screenie?
387: [05:46:36] <spronk> sec
388: [05:46:41] <spronk> maybe i'll jsfiddle..
389: [05:46:45] <Colin[pi]> k
390: [05:47:12] * howardgrigg quit (Ping timeout: 246 seconds)
391: [05:48:26] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
392: [05:49:38] <spronk> http://jsfiddle.net/0fegbzhu/1/
393: [05:49:43] <spronk> they should be the same height, right?
394: [05:50:00] <Colin[pi]> testing in chrome right?
395: [05:50:07] <spronk> mm
396: [05:50:10] <Colin[pi]> k one sec
397: [05:50:36] <spronk> because they are the same height in ie, ff
398: [05:50:45] <Colin[pi]> not in my FF
399: [05:51:18] <spronk> hmm
400: [05:51:21] <spronk> so they aren't
401: [05:51:31] <Colin[pi]> text field is 10px more
402: [05:51:42] <spronk> god i hate cs.
403: [05:51:43] <spronk> s
404: [05:51:46] <Colin[pi]> lel
405: [05:52:07] <Colin[pi]> http://i.imgur.com/Q3cUg29.gif
406: [05:52:16] <Colin[pi]> let me have a play with your css
407: [05:52:25] <ss23> twss
408: [05:57:55] <spronk> omfg
409: [05:57:57] <spronk> i cant even get them close
410: [05:57:59] <spronk> even with height
411: [05:58:10] <spronk> OH
412: [05:58:11] <spronk> MYFUCKING
413: [05:58:12] <spronk> GOD
414: [05:58:19] <spronk> BOX-SIZING!?
415: [05:58:26] <spronk> ARE YOU FUCKING KIDDING ME, CHROME?
416: [05:59:10] <Colin[pi]> yep that's what I was about to say
417: [05:59:24] <Colin[pi]> border-box dat shit
418: [05:59:32] <spronk> WHY DID THEY CHANGE THIS SHIT!?
419: [06:01:55] <Colin[pi]> spronkey: http://jsfiddle.net/0fegbzhu/3/
420: [06:02:03] <Colin[pi]> looks bit better?
421: [06:02:21] <spronk> yeah
422: [06:02:23] <spronk> have to put a height on
423: [06:02:24] <spronk> sigh
424: [06:02:28] <Colin[pi]> mm :\
425: [06:05:51] <Colin[pi]> it's almost 2015, and CSS still has probs with heights and vertical centering
426: [06:06:08] <spronk> i know
427: [06:06:13] <spronk> its fucking
428: [06:06:14] <spronk> absurd.
429: [06:06:20] <ss23> Send a pull request
430: [06:06:21] <ss23> ^.^
431: [06:06:25] <spronk> tbh
432: [06:06:31] <spronk> there should be one box model
433: [06:06:37] <spronk> the microsoft one
434: [06:06:42] <spronk> aaannnddd
435: [06:06:43] <spronk> there should be anchors.
436: [06:06:57] <spronk> and positioning relative to other elements
437: [06:07:02] <ss23> The microsoft box model was the better option
438: [06:07:18] <spronk> it was the only logical box model
439: [06:07:24] <Colin[pi]> https://twitter.com/iamdevloper/status/378533525928284160
440: [06:07:26] <spronk> the w3c box model is completely broken
441: [06:07:34] <spronk> because width: 100% + border 1px
442: [06:07:36] <spronk> ... :|
443: [06:07:41] * Adesso has joined #silverstripe
444: [06:08:05] <Colin[pi]> border-box is really how it should be
445: [06:08:09] <spronk> ya
446: [06:08:16] <Colin[pi]> by default.. but no, we had years of bullshit-box
447: [06:08:32] <spronk> yeah.
448: [06:08:37] <spronk> and now we're half fucked by it
449: [06:13:32] <simon_w|work> "Error: No controller: ngModel"
450: [06:13:37] <simon_w|work> Fuck you Angular!
451: [06:14:04] <Colin[pi]> sounds like angular is vying to be a candidate for the stats page
452: [06:16:45] <spronk> oo
453: [06:16:46] <spronk> yes
454: [06:16:46] <spronk> add it
455: [06:24:36] <simon_w|work> Gotta $scope.$apply everything or things explode
456: [06:25:00] <spronk> ugh
457: [06:25:01] <spronk> how do you get
458: [06:25:06] <spronk> an action in a form subclass
459: [06:25:14] <spronk> to... render as if it were in the controller that's calling the form?
460: [06:25:29] <simon_w|work> return array()?
461: [06:25:35] <spronk> i tried return $this->customise...
462: [06:25:42] <spronk> but it just comes back with a blank screen
463: [06:25:44] <simon_w|work> Yeah, that won't work
464: [06:25:57] <spronk> but why not!?
465: [06:26:03] <simon_w|work> Because $this is the Form
466: [06:26:12] <simon_w|work> So it tries to render the form
467: [06:26:19] <spronk> good point
468: [06:26:22] <spronk> $this->controller->?
469: [06:26:29] <simon_w|work> That would work too
470: [06:26:55] <spronk> uhghhhh
471: [06:27:06] <spronk> how do i get it to stop resetting values on submit?
472: [06:27:32] <spronk> why have i not had these problems before o-O
473: [06:32:39] <spronk> oh, you have to manually use loadDataFrom?
474: [06:32:44] <spronk> ... was that always the case?
475: [06:33:46] <simon_w|work> Yes
476: [06:33:57] <simon_w|work> It only gets reloaded for you if validation fails
477: [06:34:43] <spronk> ahhh that'l be why
478: [06:34:47] <spronk> no validator here
479: [06:42:08] <Adesso> Can anybody tell me how I get the Children (DataObjects) from a Page that has_many relation ?
480: [06:42:40] <Adesso> DataObject::get returns nothing .. ?
481: [06:43:51] * howardgrigg has joined #silverstripe
482: [06:47:16] <spronk> do you want the children
483: [06:47:19] <spronk> or do you want the has_many objects?
484: [06:47:33] <Adesso> just the children
485: [06:47:37] <spronk> $Children
486: [06:47:51] <spronk> in template
487: [06:47:52] <spronk> or
488: [06:47:55] <spronk> $this->Children() in code
489: [06:48:33] * howardgrigg quit (Ping timeout: 260 seconds)
490: [06:48:47] <Adesso> I tried this already with no results :(
491: [06:49:23] <spronk> so..
492: [06:49:27] <spronk> pastebin your code
493: [06:49:34] <simon_w|work> Home tiem!
494: [06:49:43] <ss23> Yay!
495: [06:50:21] <Adesso> http://pastebin.com/u/Adesso
496: [06:53:48] <Colin[pi]> safe travels simon_w|work
497: [06:54:57] <Adesso> spronk, like magic it just started working ... !?!
498: [06:55:08] <spronk> did you just save something in the sms? :)
499: [06:55:30] * Adesso looks at his phone ???
500: [06:56:16] <spronk> sms
501: [06:56:18] <spronk> err
502: [06:56:18] <spronk> cms
503: [06:56:19] <spronk> woops
504: [06:56:32] <Adesso> O.o ... phew
505: [06:56:42] <Adesso> thought I was going nutz ..
506: [06:56:50] <Adesso> Yes I have some objects ..
507: [06:57:13] <Adesso> I re-did a function in the Model of the Page Article Holder ..
508: [06:57:22] <Adesso> and added a var_dump
509: [06:57:33] <Adesso> and BAM... the Children came running in
510: [06:57:51] * Adesso feels real stupid somehow ..
511: [07:00:00] <Adesso> it would most likely be better if I make the Articles Pages..
512: [07:00:28] * Error404NotFound has joined #silverstripe
513: [07:00:31] <Adesso> cause now that I have the DataObjects .. I have to link to them, and they just don't have enough properties..
514: [07:00:46] <Adesso> URL... SEF...
515: [07:00:52] <Adesso> :/
516: [07:02:20] * howardgrigg has joined #silverstripe
517: [07:02:22] * SightUnseen has joined #silverstripe
518: [07:05:25] * ARNHOE has joined #silverstripe
519: [07:06:53] <spronk> hmm?
520: [07:07:09] <spronk> most of the time if it's something that you're going to display as a content item, it can generally be its own Page subclass
521: [07:07:48] <Adesso> would it be all that hard to add the values to the DataObject?
522: [07:08:14] <spronk> no not really
523: [07:08:18] <Adesso> I mean, maybe I can just copy the logic from the Page(Original) into the Class
524: [07:08:24] <spronk> just add them into $db
525: [07:08:33] <spronk> and create form items for them
526: [07:08:46] <spronk> the URL side of things is a bit different though
527: [07:08:47] <Adesso> sounds so easy when you say it ..
528: [07:09:04] <spronk> if you're using dataobjects only and want URLs for them you'll need some sort of controller
529: [07:09:38] <Adesso> .... that sounds like re-inventing the weel here
530: [07:09:48] <spronk> yeah
531: [07:09:49] <spronk> it kinda is
532: [07:09:50] <Adesso> maybe I should just change it to Pages ..
533: [07:09:55] <spronk> hence why its usually easier to just use Page subclass
534: [07:09:56] <spronk> mm
535: [07:10:08] <Adesso> point taken
536: [07:10:33] * Adesso slapps himself in the face for not listening
537: [07:10:45] * Adesso slaps Adesso around a bit with a large trout
538: [07:16:54] * SightUnseen has left #silverstripe
539: [07:18:11] * Robke has joined #silverstripe
540: [07:21:56] <spronk> Fatal error: Interface 'Flushable' not found
541: [07:21:57] <spronk> o_O
542: [07:24:13] * hailwood has joined #silverstripe
543: [07:26:18] * hailwood quit (Client Quit)
544: [07:29:44] <ss23> flush!
545: [07:29:45] <ss23> WAit
546: [07:29:46] <ss23> :
547: [07:29:47] <ss23> :O
548: [07:30:47] <spronk> seems to work now :/
549: [07:30:54] <spronk> was after a composer update
550: [07:39:37] <Adesso> on a DataObject one can access the a SS_DateTime field from a getCMSFields with dataFieldByName, how would one do this on a Page ?
551: [07:45:00] * stnvh has joined #silverstripe
552: [07:46:46] * Sticks quit (Read error: Connection reset by peer)
553: [07:52:12] * howardgrigg quit ()
554: [07:55:44] <Adesso> ok, so I have to create the extra Fields I have added instead of manipulating them like in the DataObject...
555: [07:56:10] * Adesso is trying to find the create for a SS_Datetime
556: [08:01:45] * kinglozzer has joined #silverstripe
557: [08:13:20] * SthNotTaken has joined #silverstripe
558: [08:13:46] * SthNotTaken has left #silverstripe
559: [08:23:23] * Pyblerghk has joined #silverstripe
560: [08:23:39] <Pyblerghk> 2 weeks to go, got all the slots filled in Zauberfisch?
561: [08:23:42] * Stomach quit (Quit: bye)
562: [08:24:40] * wmk has joined #silverstripe
563: [08:26:35] * stnvh quit ()
564: [08:38:23] <Adesso> Can anybody tell me what I am doing wrong in the getCMSFields in http://pastebin.com/8rGFRM5S
565: [08:38:40] <Adesso> I keep getting PHP Fatal error: Call to a member function getName() on a non-object
566: [08:38:45] <Adesso> WTF
567: [08:39:09] <Pyblerghk> Adesso: you've not got an object.
568: [08:39:13] <Pyblerghk> Basic OOP stuff.
569: [08:39:24] <Pyblerghk> probably got null or a boolean or something.
570: [08:40:09] <Adesso> so either $fields = parent::getCMSFields(); or $DateTimeField = new DateTimeField('CreateDate','Label'); is not returning a object
571: [08:40:20] <Pyblerghk> Adesso: but at a quick squizz over, I'd probably say it has something to do with this: http://api.silverstripe.org/3.1/class-DateTimeField.html
572: [08:40:26] * Adesso thought that these return Objects
573: [08:40:44] <Adesso> 404
574: [08:40:50] <Pyblerghk> Adesso: exactly ;P
575: [08:40:55] <Pyblerghk> http://api.silverstripe.org/3.1/class-DateField.html
576: [08:41:11] <kinglozzer> Lol, was wondering why my "spellcheck" thing for Solr returns stupid suggestions, like "ibnfrastructure" instead of infrastructure: turns out most of the documents are filled with typos :P
577: [08:41:23] <Pyblerghk> also, please use ClassYouWant::create()
578: [08:41:30] <Pyblerghk> not new ClassYouWant
579: [08:41:51] <Pyblerghk> makes life easier in the long run.
580: [08:42:12] <wmk> ack
581: [08:42:25] <Adesso> does the create call teh constructor ?
582: [08:42:27] <Adesso> the
583: [08:42:30] <Pyblerghk> Adesso: yes.
584: [08:42:35] <Pyblerghk> but via dependency injection
585: [08:42:41] <Adesso> ok
586: [08:43:00] <Pyblerghk> so you can configure what it is that gets returned via advanced options
587: [08:43:24] <Pyblerghk> no major difference with day to day usage, except that you can then chain.
588: [08:43:59] <Pyblerghk> as opposed to $blah = new Thing(); $blah->do()->stuff()->with->chaining();
589: [08:44:07] <Pyblerghk> you can do Thing::create()->do()->stuff()->with->chaining()
590: [08:44:45] <Pyblerghk> makes life a bit easier :>
591: [08:44:54] * UncleCheese has joined #silverstripe
592: [08:45:00] * Adesso is pondering how in the world he going to add a DateTimeField to a Fieldset...
593: [08:45:34] <Pyblerghk> FieldList I hope you mean
594: [08:45:56] <Pyblerghk> FieldList::create(DateField::create())
595: [08:46:03] <Adesso> *oops* Yes
596: [08:47:47] <Adesso> no chance of a DateTime hey ..
597: [08:47:53] <Pyblerghk> $fields = parent::getCMSFields(); $fields->addFieldToTab('Root.Main', $date=DateField::create(), 'Content'); $date->setConfig('showcalendar', true); return $fields;
598: [08:48:10] <Pyblerghk> Adesso: please, tell me where you got this idea of datetimefield?
599: [08:48:25] <Adesso> serious... only via addFieldToTab
600: [08:48:42] <Pyblerghk> no, that's pretty much what you already have, only simplified.
601: [08:49:20] * Shrike_Finland has joined #silverstripe
602: [08:50:09] <Pyblerghk> Adesso: oh, there is a datetime field. Well that'll learn me to use caps in the wrong place :<
603: [08:50:10] <Pyblerghk> http://api.silverstripe.org/3.1/class-DatetimeField.html
604: [08:50:19] <Adesso> Pyblerghk, I need a DateTimeField in my Project so that people can control the order of Articles..
605: [08:50:27] <Pyblerghk> http://api.silverstripe.org/3.1/class-DatetimeField.html
606: [08:50:37] <Adesso> 2 new Articles on the same day will only differ in time .. thus ..
607: [08:51:00] <Pyblerghk> Adesso: what you have should work, but one of the methods you're chaining is returning something unexpected.
608: [08:51:49] <Pyblerghk> probably either getDateField or getTimeField
609: [08:51:52] <Adesso> If I only knew what and where
610: [08:52:00] <Pyblerghk> well the error tells you what line.
611: [08:52:57] <Adesso> framework/forms/FieldList.php on line 423
612: [08:53:03] <Adesso> not really my code
613: [08:53:04] <Pyblerghk> and which line is that?
614: [08:53:12] <Pyblerghk> follow the stacktrace
615: [08:54:00] <Adesso> I would if I got one
616: [08:54:09] * Adesso looks at the blank page
617: [08:54:17] <irogue_> hello y'all
618: [08:54:19] <Adesso> the error is out of the apache log
619: [08:54:44] <Adesso> it's a Fatal.. so no trace
620: [08:55:47] * Adesso is now uncommenting everything and going at it line for line
621: [08:55:51] <irogue_> yep, that'd what i'd do
622: [08:55:56] * Error404NotFound quit (Ping timeout: 260 seconds)
623: [08:56:34] <irogue_> in fact I was doing it earlier today for the same error... if only I could remember what the issue turned out to be
624: [08:56:48] * Adesso $fields->insertBefore('Content',$DateTimeField);
625: [08:56:50] <Pyblerghk> Adesso: what version are you using?
626: [08:56:56] <Pyblerghk> 3.1.6 from website tarball?
627: [08:56:57] <Pyblerghk> composer?
628: [08:57:11] <Adesso> seems insertBefore could not find 'Content'
629: [08:57:14] <Adesso> sec ..
630: [08:57:15] <Pyblerghk> Adesso: ah, haha, are those arguments the wrong way around?
631: [08:57:37] <Pyblerghk> I'm pretty sure it's (Field, Before)
632: [08:57:45] <Pyblerghk> I'm pretty sure it's (Field, BeforeName)
633: [08:58:10] <irogue_> yes! that's what it was, Pyblerghk!!
634: [08:58:20] <Pyblerghk> heh, bummer.
635: [08:58:32] <irogue_> was an insertAfter in my case, but same difference
636: [08:58:40] <irogue_> now to see if that's what's causing Adesso's issues
637: [08:58:52] <Pyblerghk> it seems like pandering, but perhas a wee check before operating on the '$field' would be beneficial there :P
638: [08:58:55] <Pyblerghk> irogue_: ^
639: [08:59:02] <Pyblerghk> fixitfixitifixit
640: [08:59:03] * Shrike_Finland quit (Quit: Leaving.)
641: [08:59:10] <Pyblerghk> :P
642: [08:59:24] <Pyblerghk> I'm pretty sure I've done it before too
643: [08:59:26] <irogue_> heh, there's a guy walking up and down the street outside my house yelling at cars as they go past
644: [08:59:30] <irogue_> Meth: not even once
645: [08:59:34] <Pyblerghk> irogue_: haha
646: [08:59:50] <Pyblerghk> dat upside down b eh.
647: [09:00:23] <irogue_> ooh, i hear a siren coming, will it be popo coming for this guy?
648: [09:00:36] <Pyblerghk> xD
649: [09:00:40] <Pyblerghk> the hell do you live?
650: [09:00:50] <Pyblerghk> eastern west auckland?
651: [09:00:57] <irogue_> deep south
652: [09:01:04] <Pyblerghk> *suthestrn*
653: [09:01:12] <Pyblerghk> oh, south south akl?
654: [09:01:15] <irogue_> yup
655: [09:01:18] <Pyblerghk> the hell you doing down there?
656: [09:01:23] * Adesso is nowsure he is his own worst enemy..
657: [09:01:26] <Pyblerghk> how long does it take to commute
658: [09:01:32] <Pyblerghk> Adesso: ha
659: [09:01:34] <irogue_> Pyblerghk: 45min train trip
660: [09:01:47] <Adesso> seems the doc http://api.silverstripe.org/3.1/class-FieldList.html said insertBefore( FormField $item, string $name )
661: [09:01:48] <Pyblerghk> it happens, Adesso: many a time I've done teh same thing with php
662: [09:02:07] <Pyblerghk> although with php it's less consistent :P
663: [09:02:12] <Adesso> sorry to have wasted your time again..
664: [09:02:23] <Pyblerghk> explode op, string, implode array, op
665: [09:02:25] <irogue_> Pyblerghk: as for why, I've got a 2 bedroom standalone house for less than a shoebox apartment in the cbd :P
666: [09:02:27] <Pyblerghk> xD
667: [09:02:34] <Adesso> if anybody is going to be in Austria.. I#ll have to buy you a drink
668: [09:02:39] <Pyblerghk> irogue_: gawd, 'standalone'.
669: [09:02:41] <Pyblerghk> that's a real thing here.
670: [09:02:53] <irogue_> Adesso: you should go to the Europe meetup :P
671: [09:02:54] <Pyblerghk> like, you've fuck'n made it (or are a farmer) if you've got one.
672: [09:03:02] <Pyblerghk> Adesso: this is true. You should.
673: [09:03:05] <Pyblerghk> there will be wrokshops
674: [09:03:15] <Pyblerghk> and you'll get to meet a magic fish.
675: [09:03:41] <Adesso> uhm... are you guys drinking already ?
676: [09:03:51] <Pyblerghk> Adesso: You speak German right?
677: [09:03:53] <Adesso> SScreaming at cars and magic fish
678: [09:04:07] <Adesso> Pyblerghk... yup
679: [09:04:09] <Pyblerghk> Adesso: well, it's 9pm where irogue_ is :P
680: [09:04:17] <Pyblerghk> Adesso: so then tell me what Zauberfisch means ;)
681: [09:04:21] <irogue_> Adesso: do you know of the Europe SilverStripe meetup?
682: [09:04:31] <Adesso> ok .. then he is allowed to
683: [09:04:32] <Pyblerghk> also, http://silverstripe-europe.org
684: [09:04:37] <irogue_> Adesso: in Linz on 3-4 Oct
685: [09:04:44] <Pyblerghk> get there
686: [09:04:56] <Adesso> I am going to Linz
687: [09:04:59] <Pyblerghk> where abouts in G-manny are you?
688: [09:05:08] <Pyblerghk> Adesso: already, or as of now?
689: [09:05:10] <Adesso> and yes.... Zauberfish is indeed magic fish..
690: [09:05:12] <irogue_> Pyblerghk: austria not germany :P
691: [09:05:22] <Adesso> well, it's close enough
692: [09:05:27] <Pyblerghk> irogue_: yes but Adesso is in Germany
693: [09:05:33] <Adesso> they speak almost 100% German
694: [09:05:38] <Pyblerghk> mmhmm
695: [09:05:47] <Adesso> I am going down with the train..
696: [09:05:47] <Pyblerghk> but will probably be speaking English during the conf.
697: [09:05:51] <irogue_> unlike switzerland
698: [09:05:54] <Adesso> I really hope so
699: [09:05:57] <Pyblerghk> hahahaahhahaha swiss
700: [09:05:58] <irogue_> damn french
701: [09:06:06] <Pyblerghk> everyone I've met from Switzerland has been gay.
702: [09:06:17] * Adesso does not want to learn SS in German..
703: [09:06:25] <wmk> Adesso, you're from Austria?
704: [09:06:26] <Pyblerghk> you won't.
705: [09:06:32] <Pyblerghk> Safa.
706: [09:06:35] <Adesso> no no no
707: [09:06:38] * Adesso is a safie
708: [09:06:47] <wmk> bulgaria?
709: [09:06:50] <Pyblerghk> lol
710: [09:06:51] <Adesso> XD
711: [09:06:54] <Pyblerghk> no, RSA
712: [09:06:56] <irogue_> I'm surprised Ingo isn't going
713: [09:06:58] <Adesso> Bingo
714: [09:07:04] <Pyblerghk> and not the returned services association :P
715: [09:07:12] <Pyblerghk> but in fact the Republic of South Africa
716: [09:07:15] <Pyblerghk> .za
717: [09:07:17] <Pyblerghk> etc
718: [09:07:18] <irogue_> he could present in german :P
719: [09:07:34] <Pyblerghk> irogue_: Ingo is in NZ though atm right?
720: [09:07:43] <ss23> Sam isn't!
721: [09:07:48] <Pyblerghk> yeah, I know that.
722: [09:07:57] <irogue_> Pyblerghk: yup
723: [09:08:01] <Pyblerghk> he was all "bro come along we'll get beer!"
724: [09:08:06] <Pyblerghk> and I was all "fuck."
725: [09:08:20] <irogue_> lol
726: [09:08:26] * Adesso is still giving out some Beer to anybody that might attend ;)
727: [09:08:34] <wmk> Adesso, where?
728: [09:08:39] <Adesso> that is from the #
729: [09:08:56] <Pyblerghk> almost as much as I was this morning when I got to work and found the food I accidentally left in the fridge over the weekend that I was planning to eat for breakfast had gone well off
730: [09:09:04] <Adesso> Just one word of Free Beer .. .and everybody is like O.o What? Where
731: [09:09:20] <Pyblerghk> the twitter?
732: [09:09:23] <Pyblerghk> oh the chan
733: [09:09:25] <Pyblerghk> derp
734: [09:09:31] <wmk> Adesso, was just out for a morning coffee....
735: [09:09:41] <Pyblerghk> is it Irish?
736: [09:09:46] <irogue_> lol
737: [09:09:47] <Adesso> wmk, in Linz
738: [09:09:53] <wmk> no, cappucchino
739: [09:09:58] <Pyblerghk> fuck, why haven't I been to ireland yet? The birds are hotter I hear.
740: [09:10:00] <wmk> Adesso, you come to Linz? cool.
741: [09:10:05] <Adesso> Well it is 11am already .. getting ready for Lunch actually
742: [09:10:11] <Pyblerghk> oh yeah, look at that.
743: [09:10:13] <Pyblerghk> huh
744: [09:10:26] <wmk> Adesso, one minute and it's 11:11
745: [09:10:31] <Pyblerghk> 10:10
746: [09:10:33] <Pyblerghk> atm
747: [09:10:41] * spronk2 has joined #silverstripe
748: [09:10:42] <Adesso> yup
749: [09:10:45] <wmk> Pyblerghk, but it's still G'Morning(UGT)
750: [09:10:48] <Adesso> SchnapsZahl
751: [09:10:57] <Pyblerghk> 21:10 for irogue_ :P
752: [09:11:07] <Pyblerghk> areet wmk
753: [09:11:08] <marbus90> fuck the timezones, use UTC and be happy...
754: [09:11:24] <marbus90> he veb how ya doin?
755: [09:11:30] <wmk> Adesso, in austria we have Freibier: https://www.stiegl.at/de/sortiment/haupt-sortiment/stiegl-freibier-alkoholfrei
756: [09:11:34] <veb> err
757: [09:11:37] * veb shrugs
758: [09:11:40] <veb> yourself?
759: [09:11:40] <Pyblerghk> fuck utc, move to the world leader in leading the world and just live in the future
760: [09:11:43] <veb> still puking?
761: [09:11:54] <marbus90> nah, that was days ago
762: [09:11:59] <Pyblerghk> wmk: but then what's the point?
763: [09:12:00] <veb> right
764: [09:12:01] <Pyblerghk> :P
765: [09:12:06] <veb> losing track of itme sorry
766: [09:12:08] <irogue_> hmm, I want dessert
767: [09:12:10] <marbus90> puking went with the IV
768: [09:12:15] <veb> PM me if you wanna talk more
769: [09:12:18] <Pyblerghk> veb: puking? o.0
770: [09:12:19] <wmk> Pyblerghk, the point of "free beer"?
771: [09:12:24] <marbus90> so, just waiting for my dad to pick me up...
772: [09:12:26] <veb> (busy) and PMs are useful
773: [09:12:34] <irogue_> "code red 18"... whoa
774: [09:12:41] <Pyblerghk> well, some PM's, not the newly re-elected one though.
775: [09:12:43] <Pyblerghk> ;P
776: [09:12:49] <irogue_> lights and sirens response to a headache
777: [09:12:52] <irogue_> that's gotta be a bad headache
778: [09:12:52] * Adesso regrets his statements.... I Have created a shitstorm .... aaaahhhh
779: [09:13:19] <Pyblerghk> don't worry Adesso, it's confined to a teacup
780: [09:13:21] <wmk> Adesso, np. Nothing against the talks around midnight, when all NZs are online
781: [09:13:27] <Pyblerghk> or a coffeemug, or something
782: [09:13:28] <marbus90> my client doesn't do all that well with querys to users w/o bouncer :)
783: [09:13:41] <Adesso> ;P
784: [09:13:47] * Adesso takes a smokebreak
785: [09:13:51] <marbus90> or it was just the bad wireless here
786: [09:19:22] <irogue_> hrmm, my fridge is too good at its job
787: [09:19:33] <wmk> so cold?
788: [09:19:36] <irogue_> it's on the least cold setting, but my pepsi gets ice in it
789: [09:19:47] <wmk> defect?
790: [09:19:54] <irogue_> I think it might be
791: [09:19:55] <Pyblerghk> irogue_: is it a Beka?
792: [09:19:59] <Pyblerghk> those things are shit.
793: [09:20:07] <irogue_> Pyblerghk: nah, Haier
794: [09:20:10] <irogue_> aka F&P
795: [09:20:11] <Pyblerghk> as are repairmen over here though.
796: [09:20:16] <Pyblerghk> irogue_: yeh, heh.
797: [09:20:26] <Pyblerghk> f&p dun went gone down in leaderhips.
798: [09:20:45] <Pyblerghk> started concentrating on moar money rather than moar product.
799: [09:20:49] <Pyblerghk> err
800: [09:21:04] <Pyblerghk> best money for company, rather than best product in industry
801: [09:21:12] <irogue_> Pyblerghk: well, they're playing it fairly smart with the branding thing
802: [09:21:17] <Pyblerghk> yeh
803: [09:21:28] <Pyblerghk> haier are F&P made in China, right?
804: [09:21:31] <irogue_> yup
805: [09:21:46] <Pyblerghk> yeh, but everyone knows that, heh.
806: [09:22:26] <Pyblerghk> so anyway, had a fridge that just froze everything (fridge freeze that was really freezer and bigger freezer)
807: [09:22:49] <Pyblerghk> repair guy comes around, looks at it (doesn't even test anything, literally just put eyes on it), took off, ordered part.
808: [09:22:58] <Pyblerghk> comes around and fits a new control board
809: [09:23:01] <irogue_> that was like with my old car
810: [09:23:04] <Pyblerghk> fridge still freezes shit.
811: [09:23:22] <Pyblerghk> orders another part after actually figuring out what was wrong... turns out it's a common issue for that model.
812: [09:23:29] <Pyblerghk> the fridge BURNS OUT THE WIRES
813: [09:23:34] <Pyblerghk> that go to the thermostat
814: [09:23:35] <irogue_> onsite mechanic turned up, went "oh, one of these" and 'fixed' it with no parts - didn't even open the hood
815: [09:23:44] <Pyblerghk> so it sits on FREEZE EVERYTHING all the time.
816: [09:23:56] <Pyblerghk> irogue_: and by hood you mean bonnet right?
817: [09:24:01] <irogue_> yup
818: [09:24:07] <Pyblerghk> good.
819: [09:24:13] <irogue_> he literally fixed it by turning the key
820: [09:24:19] <irogue_> for a really long time
821: [09:24:30] <Pyblerghk> so anyway, chap replaced wires. literally just replacement part. Not an improved part or anything.
822: [09:24:40] <Pyblerghk> So now 3 months later it's back to feezing everyhgin
823: [09:24:44] <Pyblerghk> fuck'n useless.
824: [09:25:03] <irogue_> turns out 95 Bluebirds, at around 100k, start to flood themselves every time they're started. so if you turn the car off within the first 5 minutes of turning it on, it's still flooded and won't start next time
825: [09:25:03] <Pyblerghk> Beko fridge - not even once.
826: [09:25:26] <Pyblerghk> yeah well that's what you get for owning a nissan :P
827: [09:25:30] <Pyblerghk> xD
828: [09:25:31] <irogue_> yep, never again
829: [09:25:49] <irogue_> Pyblerghk: sounds a bit like Samsung appliances
830: [09:25:50] <Pyblerghk> My car floods. But it's an easy fix. Start it with foot on the floor.
831: [09:26:01] <Pyblerghk> because carby.
832: [09:26:15] <Pyblerghk> only really does it in summer though.
833: [09:26:18] <Pyblerghk> when hot.
834: [09:26:37] <irogue_> a fuckload of their washing machines got recalled here cos of a combination of two things - they hadn't made the electronics area waterproof, and they leaked
835: [09:26:47] <Pyblerghk> irogue_: and then they caught on fire.
836: [09:26:51] <Pyblerghk> I know, my old man had one.
837: [09:26:51] <irogue_> yep
838: [09:26:56] <Pyblerghk> choice of recall or fix.
839: [09:27:01] <Pyblerghk> got it fixed.
840: [09:27:03] <irogue_> both fairly important things for a washing machine
841: [09:27:15] <irogue_> or any machine revolving around a combination of water and electronics
842: [09:27:24] <Pyblerghk> yeah, and fires.
843: [09:27:36] <irogue_> hmmmm
844: [09:27:39] <irogue_> is this guy drunk or high
845: [09:27:52] <Pyblerghk> both?
846: [09:28:05] <irogue_> took a few steps, then stopped and danced for a bit. rinse and repeat
847: [09:28:06] <Pyblerghk> south auckland man :<
848: [09:28:40] <irogue_> this camera was a great investment for entertainment
849: [09:28:48] <Pyblerghk> at least 8 action items in a single ticket. FUCK THIS TICKET
850: [09:30:31] * Robke quit (Ping timeout: 246 seconds)
851: [09:30:58] <Pyblerghk> so this morning for breakfast I drank a smoothie.
852: [09:31:18] <Pyblerghk> but it was the one that my shit fridge froze, so I brought it to work, then forgot about it for the rest of the week.
853: [09:31:33] <Pyblerghk> This afternoon might get ... unpleasant :<
854: [09:31:38] * Tanger quit (Quit: Tanger)
855: [09:32:19] <irogue_> https://goo.gl/maps/AROnL <-- can't argue the convenience of my house tho. rather short walk to the train station, bus station and mall (which has the essentials, New World and a bakery)
856: [09:33:02] <kinglozzer> Any tips for telling specific version of a 2.x site? silverstripe_version is, predictably, empty
857: [09:33:20] <irogue_> check the changelog
858: [09:33:40] <kinglozzer> Good idea!
859: [09:33:49] <irogue_> sapphire/docs/en/changelogs
860: [09:33:56] <irogue_> latest one in there will usually give it away
861: [09:34:06] <kinglozzer> Shit. No docs/ dir :(
862: [09:35:25] <irogue_> ok, so pre docs merge, which was 2.4.6
863: [09:36:58] <kinglozzer> Okay, and it's definitely 2.4, not 2.3, as the payment module says 2.4
864: [09:37:09] <kinglozzer> Well, that's a start :P
865: [09:37:11] <irogue_> so early 2.4
866: [09:37:11] <kinglozzer> Thanks irogue_
867: [09:37:16] <irogue_> definitely in need of upgrade :P
868: [09:37:45] <irogue_> wtf was that a rabbit that just hopped across the road
869: [09:38:17] <irogue_> nope, just a cat moving in a very rabbit-like fashion
870: [09:38:29] <kinglozzer> Yeah just inherited this irogue_ :P
871: [09:38:32] <kinglozzer> Wish me luck D:
872: [09:40:24] <irogue_> luck!
873: [09:41:53] <kinglozzer> Okay, so it's 2.4.4 or 2.4.5
874: [09:45:05] <Adesso> Pyblerghk so I tried your way, with $fields::create(TextField::create('Heading','Heading'));
875: [09:45:12] <Adesso> but it's not showing up..
876: [09:45:21] <Adesso> not sure how to chain the insertBefore part
877: [09:51:22] <irogue_> Adesso: $fields::create doesn't make sense
878: [09:52:15] <irogue_> assuming you already have $fields, it'd just be $fields->insertBefore(TextField::create('Heading','Heading'), 'BeforeThisField')
879: [09:52:29] <wmk> Adesso, $tab->insertBefore($field, $insertBefore);
880: [09:52:53] <wmk> Adesso, it may be that the params for insertBefore changed from 2.x to 3.0
881: [09:52:58] <Adesso> using it after a $fields = parent::getCMSFields();
882: [09:53:32] <wmk> so $fields->insertBefore($field, 'Content') instead of vice versa like in your paste
883: [09:54:59] * Adesso keeps making everybody cnfused
884: [09:55:50] <Pyblerghk> Adesso: not $fields::create
885: [09:56:15] <Pyblerghk> literally ClassNameOfTheThingYouWant:::create($constructer, $args, $if, $any)
886: [09:57:26] <Pyblerghk> $fields->addFieldToTab('Root.Main', $datetimefield = DatetimeField::create('Name', 'Title'), 'Content')
887: [09:57:59] <Pyblerghk> kinglozzer: well if it's empty that means it's at least 2.4.6
888: [09:58:09] <Pyblerghk> after 2.5 it was all sec patches iirc.
889: [09:58:20] <Adesso> got it Pyblerghk.... Class::create(Constructor, $arg...)
890: [09:58:53] <Pyblerghk> kinglozzer: 2.4.5 had silverstripe_version populated.
891: [09:58:58] <Pyblerghk> must be 2.4.6
892: [09:59:12] <kinglozzer> Pyblerghk: 2.4.8 according to changelogs: http://doc.silverstripe.org/framework/en/changelogs/2.4.8
893: [09:59:27] <Pyblerghk> [10:38] <irogue_> nope, just a cat moving in a very rabbit-like fashion
894: [09:59:33] <Pyblerghk> usually means it's been run over :<
895: [10:00:59] <kinglozzer> Ah, it's 2.4.7
896: [10:01:02] * veb has joined #silverstripe
897: [10:01:22] <Pyblerghk> Adesso: yeah, difference between static call and a method call on an instance.
898: [10:01:45] * Adesso thinks he is starting to understand it ...
899: [10:01:49] <Pyblerghk> kinglozzer: by 'empty' do you mean blank, or blah blah blah $URL blah bl $VERSION or whatver it is
900: [10:01:57] <Adesso> I was just really confused at how everything was put together
901: [10:02:10] <Pyblerghk> Adesso: yeah, create is a static call that uses late static binding to figure it all out.
902: [10:02:15] * Adesso hopes that it makes click soon ..
903: [10:02:16] <kinglozzer> Pyblerghk: $URL$
904: [10:02:20] <kinglozzer> That's the contents ^^
905: [10:02:29] <Pyblerghk> kinglozzer: yeah, so not 'blank' then.
906: [10:02:42] <Pyblerghk> if blank that must have happened around 2.4.9 or soemthing I was gonna say
907: [10:02:44] <Pyblerghk> so yeah
908: [10:02:50] <Pyblerghk> it's probably 2.4.7
909: [10:03:03] <irogue_> 2.4.7 was a very popular build
910: [10:03:05] <kinglozzer> Yeah just checked the git diffs to be sure, it is
911: [10:03:07] <Pyblerghk> 8 was a sec update after 3 was released iirc, as with 9 and 10
912: [10:03:22] <Pyblerghk> 2.4.7 was about last largely used 2.4
913: [10:04:38] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
914: [10:06:43] <irogue_> Adesso: a few examples for your reference :) http://pastie.org/9583484
915: [10:08:04] <irogue_> untested so there could be mistakes :P
916: [10:10:16] * ARNHOE_ has joined #silverstripe
917: [10:10:37] <Adesso> looks good... so I could then also give a array to insertBefore... with many TextFields ?
918: [10:10:51] <Adesso> or is this only for AddFieldToTab
919: [10:11:11] * wracu has joined #silverstripe
920: [10:12:14] <irogue_> Adesso: oops, good catch - that should be addFieldsToTab (fields, plural)
921: [10:12:45] <Adesso> ok .. but beside the plural mistake
922: [10:12:45] * ARNHOE quit (Ping timeout: 258 seconds)
923: [10:13:02] <Adesso> can insertBEfore also manage a Array ?
924: [10:13:28] * Adesso is working on breaking his thingy again ... he he
925: [10:13:54] <irogue_> Adesso: no, needs to be addFieldsToTab, can't use an array with insertBefore or insertAfter
926: [10:14:39] <irogue_> but the last argument in addFieldsToTab is the field to add it before, so it achieves the same thing
927: [10:15:30] <Adesso> so if I want to use the array notation.. I have to use the addFieldsToTab constructor
928: [10:15:33] <Adesso> got it ;)
929: [10:16:20] <irogue_> yep
930: [10:20:39] <Adesso> Works well ;)
931: [10:27:17] <Adesso> and now to get back to the first Question again ...
932: [10:27:29] <Adesso> since this is now a Page and no DataObject anymroe ..
933: [10:27:47] <Adesso> I can't use ::get to get the Children ..
934: [10:28:07] <Adesso> and $Children does not work, as they are not in the Tree..
935: [10:28:22] <Adesso> so how do I get to the Related Articles in the Holding Page ?
936: [10:28:45] <Adesso> now that it is a Page
937: [10:29:53] <Adesso> the two pages in Question are Article and ArticleHolding http://pastebin.com/u/Adesso
938: [10:33:19] <wracu> whats the best way to reference a file in a php class? I'm not getting the file in test that I see in dev..
939: [10:35:00] * Adesso thinks maybe it yould be permissions
940: [10:36:03] * Adesso just found http://api.silverstripe.org/3.1/tree.html -----Halleluja--------
941: [10:36:17] <Adesso> I am seeing angels and shit man..
942: [10:36:26] <Adesso> this should be the first thing a noob gets
943: [10:38:03] <wracu> ta
944: [10:39:05] <Adesso> ok.. angels are gone again .. :(
945: [10:45:29] * Adesso doesn't get why $Members = Page::get('Article'); return nuttin
946: [10:46:56] <Adesso> $Members = $this::get('Article'); also blank ..
947: [10:48:27] <Adesso> ok... let me state it like this
948: [10:48:52] <Adesso> if you create a Page of type Page and give a many relation to another Page
949: [10:49:07] <Adesso> then add Children in the holding Page
950: [10:49:28] <Adesso> How are you suppose to get the Children in the Front-End
951: [10:49:39] <irogue_> Adesso: $this->NameOfRelationship()
952: [10:49:51] <Adesso> The backend uses the GridFieldConfig_RelationEditor
953: [10:54:54] <wmk> Adesso, what do you want to achieve?
954: [10:55:11] <Adesso> just display the article summary ..
955: [10:55:16] <Adesso> nuttin really special
956: [10:55:40] <wmk> Adesso, any recent paste of your code available? DataObject, Template etc...
957: [10:55:41] <Adesso> the only diffrence is that instead of having the PArticles all in the SiteTree.. they are just related to the Landing Page
958: [10:55:50] <Adesso> and this is proving to be a reall struggel .
959: [10:56:02] <Adesso> let me update my paste again
960: [10:56:12] <wmk> are all related articles also published? if not try a ?stage=Stage to your url
961: [10:56:55] * wmk tends to recommend xdebug to see what's going on
962: [10:57:56] * Adesso uses Linux
963: [10:58:30] <Pyblerghk> [11:13] * Adesso is working on breaking his thingy again ... he he
964: [10:58:33] <Pyblerghk> oh you!
965: [10:58:39] <Pyblerghk> You should take care of your thingy!
966: [10:58:57] <wmk> rofl
967: [10:59:17] <wmk> Adesso, xdebug is a php step debugger, works on linux, too ;)
968: [11:00:43] <Pyblerghk> Adesso: stop thinking of other relations as 'children'
969: [11:01:03] <Pyblerghk> call the relation name $this->RelationName()
970: [11:01:27] <Pyblerghk> or, again you mixed up static and instance calls
971: [11:01:39] <Pyblerghk> RelationsClassName::get()...
972: [11:02:04] <Pyblerghk> hint: if you have a dollar sign and a double colon, you're _probably_ doing it wrong.
973: [11:02:30] <Adesso> I updated the stuff again http://pastebin.com/u/Adesso
974: [11:03:04] <Pyblerghk> article is still a page, I'm confused.
975: [11:03:26] <Adesso> It'S the ArticleHolder
976: [11:03:36] <Adesso> that is where the Articles will be display
977: [11:03:44] <Adesso> 'ed
978: [11:03:48] <irogue_> Adesso: $this->Articles()
979: [11:03:51] <irogue_> quite simple ;)
980: [11:04:50] <Adesso> but in the DataObject, the gut used Article..
981: [11:04:53] <Pyblerghk> which stems from private static $has_many = array('Articles' => 'ClassNameOfArticleObject')
982: [11:05:05] <Pyblerghk> Adesso: yeah again not really following.
983: [11:05:20] * spronk2 quit (Quit: spronk2)
984: [11:05:25] <Pyblerghk> Page IS a DataObject.
985: [11:05:28] <Pyblerghk> it's the same.
986: [11:05:33] <Pyblerghk> $this->Articles()
987: [11:06:02] <Pyblerghk> or: Articles::get()->filter('ArticleHolderID' => $this->ID)
988: [11:06:11] <irogue_> but do the former ;)
989: [11:06:15] <irogue_> the latter is ugly
990: [11:06:16] <Pyblerghk> yep.
991: [11:07:07] <Adesso> somehow I understand Articles::get()->filter('ArticleHolderID' => $this->ID) better
992: [11:07:22] <Pyblerghk> Adesso: they're basically the same.
993: [11:07:22] <irogue_> why?
994: [11:07:27] <irogue_> $this->Articles() is easy!
995: [11:07:40] <Adesso> but I don't know what it does
996: [11:07:40] <Pyblerghk> $this->Articles() is all the Articles, that belong to $this
997: [11:07:46] <Pyblerghk> yes you do!
998: [11:07:52] <Adesso> well now I do
999: [11:07:56] <Pyblerghk> think about relations, not 'magic methody logic'
1000: [11:08:40] <Pyblerghk> :)
1001: [11:08:50] <Pyblerghk> Adesso: what is lunch in German?
1002: [11:08:51] <Adesso> well... either way.. I still am not getting the Children..
1003: [11:09:08] * Adesso has to just get this one before he goes for Lunch
1004: [11:09:12] <Pyblerghk> Adesso: again you used that ambiguious term 'children'
1005: [11:09:26] <Adesso> ok ok .. the related Objects then
1006: [11:09:43] <Pyblerghk> Children when talking about pages... children are literally child nodes in the tree.
1007: [11:09:52] <Pyblerghk> where ParentID = $this->ID
1008: [11:09:54] <Adesso> ok .. I'll stop with the kids ..
1009: [11:10:05] <Adesso> consider them orphans now ..
1010: [11:10:06] <Pyblerghk> so when you just have relations (which the child parent one is)
1011: [11:10:09] <Pyblerghk> ...
1012: [11:10:13] <Adesso> gone .. out of the Family and aout of the picture
1013: [11:10:13] <Pyblerghk> you just use relations
1014: [11:10:15] <Adesso> ;)
1015: [11:10:30] <Pyblerghk> well... if they're orphans they're not related to anything, so they'll not show up.
1016: [11:10:36] <Pyblerghk> ;P
1017: [11:10:45] <Adesso> Noooo
1018: [11:10:47] <Pyblerghk> still got my picture handy?
1019: [11:10:50] <Adesso> that's not what I ment
1020: [11:10:57] <Pyblerghk> breathe and look at that :P
1021: [11:11:02] <Adesso> please ... I really get it
1022: [11:11:05] <Adesso> I do
1023: [11:11:07] <wmk> Adesso, where do you try to call the "menbers" method?
1024: [11:11:17] <Adesso> in the View
1025: [11:11:20] <Pyblerghk> Adesso: maybe... start from the top and tell me what you're trying to do
1026: [11:11:21] <wmk> in a template?
1027: [11:11:30] <Adesso> <% loop $members %>
1028: [11:11:36] <wmk> this won't work
1029: [11:11:44] <Pyblerghk> Adesso: so by 'children' you mean Members?
1030: [11:12:05] <wmk> well, Members is also an ambigous term ;)
1031: [11:12:09] <Pyblerghk> well
1032: [11:12:15] <wmk> as there is a Member object for registered users of your ss install
1033: [11:12:16] * Adesso thinks he found the next part in SS he does not get yet
1034: [11:12:18] <Pyblerghk> not really. They're site members, folks with logins.
1035: [11:12:49] <Pyblerghk> Adesso: so you've got a landing page, which shows all articles, and an article page that shows articles for that 'category'
1036: [11:12:57] <wmk> Adesso, you'll need a method "getMembers" or whatever which will be called from your template <% loop Members %>
1037: [11:13:15] <Pyblerghk> in future, probably easier to call it ArticlesSection and ArticleCategory or something ;P
1038: [11:13:23] <Pyblerghk> The hardest thing in programming is naming things :<
1039: [11:13:28] <irogue_> http://pastie.org/9583651
1040: [11:13:30] <wmk> though if you just want to adress the related Article Objects in your ArticleHolder template
1041: [11:13:31] <irogue_> ^ Adesso
1042: [11:13:35] <irogue_> that is literally all you need to do
1043: [11:13:37] <wmk> use <% loop Articles %>
1044: [11:14:01] <wmk> cause you already have the $Articles defined in your has_many
1045: [11:14:03] <Pyblerghk> yeah, unless he actually means Members :<
1046: [11:14:18] <wmk> Pyblerghk, from his paste he means the related objects
1047: [11:14:21] <irogue_> Adesso: silverstripe handles the relationship for you, you don't need to create a method to get it :)
1048: [11:14:25] <Pyblerghk> yeah, seems more like it
1049: [11:14:41] <wmk> irogue_, yup. this is what i tried to explain.
1050: [11:14:43] <Pyblerghk> irogue_: Adesso in fact if you do create a method for the relation... you'll probably break it.
1051: [11:15:17] <Pyblerghk> rembmer what I told you last week Adesso: relationships are defined in that array ['Name' => 'Class']
1052: [11:15:21] <Pyblerghk> you use the name, always.
1053: [11:15:57] <Pyblerghk> it's like javascript in a way... { RelatedThingName: function(){getalltherelatedthings()} }
1054: [11:16:07] <wmk> yeah, that's the magic of silverstripe
1055: [11:16:10] <Pyblerghk> just think of it magically setting that up in the background
1056: [11:16:16] <Pyblerghk> :>
1057: [11:16:22] <Adesso> ok... so even simpler
1058: [11:16:24] <Pyblerghk> wmk: what is German for lunch?
1059: [11:16:30] <wmk> Mittagessen, Pyblerghk
1060: [11:16:36] <Pyblerghk> Sweet
1061: [11:16:42] <Pyblerghk> I'm gonna get me some Mittagessen.
1062: [11:16:45] <Pyblerghk> :>
1063: [11:16:48] <wmk> Pyblerghk, "Guten Appetit"
1064: [11:16:52] <Pyblerghk> :D
1065: [11:16:53] <irogue_> Pyblerghk: the wonders of german - literally "midday eat"
1066: [11:17:02] <wmk> irogue_, yup.
1067: [11:17:04] * Adesso Ok.. The nI do Lunch
1068: [11:17:23] <Pyblerghk> Mittagessen all the things!
1069: [11:17:26] <Pyblerghk> come back with a fresh mind :>
1070: [11:17:40] <Pyblerghk> irogue_: do you like my picture?
1071: [11:18:40] <Pyblerghk> http://paste2.org/ksJXbwt9
1072: [11:18:42] <Pyblerghk> irogue_: ^
1073: [11:18:50] <Pyblerghk> copy and paste that and open it
1074: [11:18:51] <irogue_> I remember in German class, the teacher explained Mittagessen, and the stupid kid in the class said "then what's afternoon tea?"
1075: [11:19:12] <Pyblerghk> Haha
1076: [11:19:18] <wmk> irogue_, it's 5o clock somewhere?
1077: [11:19:25] <Pyblerghk> UAT
1078: [11:19:30] <Pyblerghk> universal afternoon time.
1079: [11:19:31] <wmk> uat?
1080: [11:19:32] <Pyblerghk> ;P
1081: [11:19:36] <wmk> LOL
1082: [11:19:43] <irogue_> "uh... Nachmittagessen" the teacher said, to which the student replied "what does that mean?"
1083: [11:19:52] <Pyblerghk> LOL
1084: [11:20:00] <Pyblerghk> not midday eat?
1085: [11:20:09] <irogue_> nach = after
1086: [11:20:12] <Pyblerghk> ah
1087: [11:20:17] <wmk> more like Nachmittagstee
1088: [11:20:18] <Pyblerghk> mit = with
1089: [11:20:24] <Pyblerghk> I remember that much
1090: [11:20:40] <wmk> Pyblerghk, afterwithday?
1091: [11:20:44] <irogue_> wmk: yeah, but that doesn't illustrate the point as well. plus there's no tea consumed at afternoon tea time :P
1092: [11:20:46] <Pyblerghk> Chappy in the bottle shop was telling me it was vodka mit energy drink...
1093: [11:21:04] <Pyblerghk> which he though I didn't understand, even though the words (and context) are so similar it's pretty much not even a thing
1094: [11:21:06] <irogue_> (this isn't the UK after all)
1095: [11:21:30] <wmk> or little wing
1096: [11:21:59] <Pyblerghk> so he yelled out to another chap 'what is mit in english' which came back 'with' and he then said "it's vodka with energy" and I was all 'yeah, I got that the first time' :P
1097: [11:22:29] <irogue_> I like Vodka and Red Bull, but only when I've run out of Jägermeister
1098: [11:22:41] <Pyblerghk> kinda like Schweinefleisch is pretty obviously pork, even though I've never learnt any German :P
1099: [11:22:46] * spronk2 has joined #silverstripe
1100: [11:22:59] <irogue_> ugh
1101: [11:23:01] <irogue_> i should be in bed
1102: [11:23:06] <spronk2> same
1103: [11:23:07] <spronk2> but fuck that
1104: [11:23:08] <Pyblerghk> anyway, I'm getting hungry, and yes, you should sleep.
1105: [11:23:10] <Pyblerghk> spronk2: haha
1106: [11:23:11] <irogue_> I have to be at work by *9* tomorrow
1107: [11:23:14] <Pyblerghk> still work from home eh?
1108: [11:23:18] <spronk2> yeah
1109: [11:23:24] <spronk2> variable hours ftw
1110: [11:23:24] <Pyblerghk> LUCKY FOR SOME
1111: [11:23:35] <spronk2> though i have to be contactable from 8:30
1112: [11:23:39] <Pyblerghk> although, you have the disadvantage of working from home :<
1113: [11:23:45] <spronk2> which really just means, phone on LOUD so that itwakes me up
1114: [11:23:51] <Pyblerghk> hah
1115: [11:23:58] <Pyblerghk> anyway
1116: [11:24:02] <Pyblerghk> some kind of sandwich awaits
1117: [11:24:30] <irogue_> spronk2: and don't get drunk while you're on call like ss23
1118: [11:24:45] <spronk2> loool
1119: [11:24:47] <spronk2> did he?
1120: [11:25:58] <irogue_> at a previous job I got a callout while high as a kite
1121: [11:26:41] <irogue_> boss called and said "things are broken, need you to go fix" and I said "happy to, but I uh... can't drive right now"
1122: [11:27:02] <irogue_> so he picked me up and took me to client's site :P
1123: [11:33:54] * oetiker has joined #silverstripe
1124: [11:36:53] <Pyblerghk> irogue_: the boss did?
1125: [11:40:03] <wmk> cool boss
1126: [11:40:07] * Pyblerghk reads again
1127: [11:40:15] <Pyblerghk> oh right yeah duh
1128: [11:40:23] <wmk> i guess that's the only disadvantage if you're your own boss
1129: [11:40:33] <wmk> you cannot pick you up
1130: [11:41:11] <spronk2> that all depends on how high you are
1131: [11:41:31] <Pyblerghk> lol
1132: [11:47:41] <wmk> is there a standard dir for putting templates that are called via renderWith (e.g. from a getFoo method) ?
1133: [11:47:48] <wmk> inside a module
1134: [11:47:59] <wmk> just /templates/ or more templates/Includes ?
1135: [11:54:12] * Azure quit (Read error: Connection reset by peer)
1136: [11:54:48] <Pyblerghk> wmk: nah, just wherever
1137: [11:54:54] <Pyblerghk> afaik
1138: [11:55:12] <Pyblerghk> iirc you can prequalify a renderWith by specifying Layout/templatename
1139: [11:55:22] <Pyblerghk> or Includes/templatename
1140: [11:55:28] * Azure has joined #silverstripe
1141: [11:55:31] <Pyblerghk> but not sure of that
1142: [11:55:47] <wmk> ok. i don't like to get my main template dir cluttered with those snippets
1143: [11:56:06] <wmk> nor do i like it when i have to overwrite a modules template there...
1144: [11:57:22] <wmk> and it seems i have to flush all the time i change a template in /themes/mytheme/templates/ directly
1145: [11:57:39] <Pyblerghk> wmk: just put them in another subfolder
1146: [11:57:52] <Pyblerghk> makes no difference to template engine, so long as they're found somewhere
1147: [11:58:03] <wmk> but then i guess it's not grabbed but the original modules template
1148: [12:04:12] <Pyblerghk> well, unsure about that. Best to just try it really and see.
1149: [12:04:18] <Pyblerghk> Not a huge deal :>
1150: [12:06:42] <wmk> ;)
1151: [12:09:47] * ss31noob has joined #silverstripe
1152: [12:12:19] <ss31noob> is there a way in silverstripe to identify which pagetype does a specific widget being used?
1153: [12:13:08] * Colin[pi] quit (Ping timeout: 244 seconds)
1154: [12:13:17] * Shrike_Finland has joined #silverstripe
1155: [12:13:45] * Shrike_Finland1 has joined #silverstripe
1156: [12:18:05] * Shrike_Finland quit (Ping timeout: 260 seconds)
1157: [12:18:52] * wracu quit (Ping timeout: 246 seconds)
1158: [12:20:36] <ss31noob> is there a way in silverstripe to identify which pagetype does a specific widget being used?
1159: [12:20:48] <Shrike_Finland1> Hi, is it possible to strip all / override /ignore page.ss elements on new pagetype?
1160: [12:21:18] <Shrike_Finland1> I need a page, whic do not print out menus, or anything except things I set up on new pagetype
1161: [12:32:31] <wmk> Shrike_Finland1, not by default
1162: [12:33:04] <wmk> but you can define a main template for your pagetype in /themes/mytheme/templates
1163: [12:33:24] <wmk> i normally use helper functions to define if e.g. a sidebar should be shown
1164: [12:36:02] <Shrike_Finland1> As my all pages extends Page, can I extend pages parent (sitetree) somehow instead of page?
1165: [12:37:23] <wmk> of course.
1166: [12:37:32] <wmk> if you don't need any fields defined in Page
1167: [12:37:50] <Shrike_Finland1> Yes, I do not need anything from original Page
1168: [12:37:53] * spronk2 quit (Quit: spronk2)
1169: [12:39:43] <wmk> It doesn't matter if you extend from Page or SiteTree, you'll need a template witout menus etc. for your page type
1170: [12:39:59] <wmk> directly in your templates dir
1171: [12:40:02] <Shrike_Finland1> Normally I call menu on page
1172: [12:40:07] <Shrike_Finland1> Yes
1173: [12:40:48] <wmk> you can also overwrite getMenu() in your page type and return false...
1174: [12:41:01] <wmk> then an if statement in the template.
1175: [12:41:15] <wmk> though an own template would be the clearest solution.
1176: [12:41:37] <Shrike_Finland1> Ok, I'll do it that way
1177: [12:41:49] <wmk> the only downside: if you ever change something in your main Page template you'll have to change it in the other main template, too
1178: [12:42:23] <wmk> i'd go and do all global css, javascript, headers etc. in an Include template
1179: [12:42:36] * UndefinedOffset has joined #silverstripe
1180: [12:46:02] * Adesso quit (Ping timeout: 245 seconds)
1181: [12:46:47] <Shrike_Finland1> Why TinyMCE strips empty tags? try to add Font-Awesome icons with <i class="fa fa-check-square-o"></i>, but Tiny removes them completely if there is no content, like <li><i class="fa fa-check-square-o"></i>content_here</li>
1182: [12:47:15] <wmk> Shrike_Finland1, i guess there's a tiny setting somewhere to disable this feature.
1183: [12:47:30] <wmk> which is a feature for clean html
1184: [12:48:10] <Shrike_Finland1> 'extended_valid_elements' => "+li[i]" I added this in config.php, and that helped to print it if there is content.
1185: [12:48:38] <Shrike_Finland1> But without content, it is still a problem
1186: [12:48:46] <Pyblerghk> ss31noob: wiget is many_many to widget holder, which is has_one page, iirc
1187: [12:49:04] <Pyblerghk> you'll have to traverse the relations to figure it out, but it should be able to be done.
1188: [12:49:24] <Pyblerghk> Shrike_Finland1: just make a new file
1189: [12:49:32] <Pyblerghk> templates/YourPage.ss
1190: [12:49:38] <Pyblerghk> with only $Layout in it
1191: [12:50:01] <Pyblerghk> or... move the templates/Layout/template.ss to just templates/tempalte.ss
1192: [12:50:34] <wmk> Shrike_Finland1, try "i[*]"
1193: [12:50:47] <wmk> like on http://www.phoca.cz/documents/16-joomla/769-joomla-3-tinymce-stop-removing-empty-tags
1194: [12:51:31] <Shrike_Finland1> Publerghk: I think it still gets some stuff from Page.ss, which includes top, header, nav etc. -> I need white, blank page :)
1195: [12:51:43] <Shrike_Finland1> wmk: thanks, I'll test that.
1196: [12:52:26] <wmk> Shrike_Finland1, if you still get some stuff from /themes/yourtheme/templates/Page.ss there's something wrong with your template place
1197: [12:53:49] <Pyblerghk> Shrike_Finland1: no, it shouldn't get a thing
1198: [12:54:04] <Shrike_Finland1> Ok, I'll have to test it.
1199: [12:54:23] <Pyblerghk> a main tempalte is the main template, Layout is the layout. If you're overriding the main (where head and stuff are usually defined) then it shouldn't come out in your new copy. If it is, flush ;)
1200: [12:54:37] <Pyblerghk> Tutorial #2 man! :P
1201: [12:54:49] <Shrike_Finland1> :D
1202: [12:55:06] <wmk> or use return $this->renderWith('PageType') in your controller action
1203: [12:55:17] <Shrike_Finland1> I have two Page.ss (inside Layout and inside tempaltes)
1204: [12:55:20] <Shrike_Finland1> templates
1205: [12:55:33] <wmk> Shrike_Finland1, we mean the main template inside templates
1206: [12:55:34] * muskie9 has joined #silverstripe
1207: [12:55:35] <Shrike_Finland1> I think that is a problem
1208: [12:55:47] <wmk> tem-plilates?
1209: [12:55:53] <Shrike_Finland1> :D
1210: [12:57:03] <kinglozzer> Guise. Document many_many SiteTree. What's the best way of finding all pages that have one or more documents related to them?
1211: [12:57:55] <kinglozzer> Hmm, thinking about it, can I use: Document::get()->Pages() ?
1212: [12:58:14] <wmk> Document::get() returns a DataList
1213: [12:58:22] <wmk> you'd have to loop over it
1214: [12:59:14] <kinglozzer> Wait, Document::get()->relation('Pages')
1215: [12:59:20] <kinglozzer> That's the one I think :D
1216: [12:59:50] * hailwood has joined #silverstripe
1217: [12:59:59] * Adesso has joined #silverstripe
1218: [13:00:19] <wmk> re Adesso
1219: [13:00:25] <wmk> got a good lunch?
1220: [13:00:28] * Adesso the terror is back >:)
1221: [13:00:33] <Pyblerghk> :D
1222: [13:00:34] <Adesso> yes, thanks
1223: [13:00:51] <Adesso> Turkish
1224: [13:00:57] <wmk> Adesso, then you have to rename your nick to AdISso
1225: [13:01:22] <Pyblerghk> http://www.youtube.com/watch?v=Vppbdf-qtGU
1226: [13:02:23] <wmk> Pyblerghk, yeah
1227: [13:06:28] <Adesso> ok... so I have now copied this http://pastie.org/9583651#1,9
1228: [13:06:36] <Adesso> and created 2 articles to my CMS
1229: [13:06:47] <Adesso> and the frontend is empty...
1230: [13:07:14] <wmk> are the articles related to the articleHolder?
1231: [13:07:21] <wmk> can you see them in backend in the grid?
1232: [13:07:46] <wmk> DID YOU FLUSH?
1233: [13:07:57] <Adesso> yes and yes
1234: [13:08:07] <Adesso> after a log-out and log in
1235: [13:08:17] <Adesso> I find the Pages also in the SiteTree....
1236: [13:08:24] <Adesso> not a wanted feature
1237: [13:09:12] <Adesso> plus they both have a DRAFT tag to them ..
1238: [13:09:16] <Adesso> ???
1239: [13:09:24] <Adesso> WTF
1240: [13:09:32] <wmk> ah, the pages are not published?
1241: [13:09:49] <Adesso> publish them.. and voila ..
1242: [13:10:03] <Adesso> but this is not what I wanted at all
1243: [13:10:23] <wmk> Adesso, why did you subclass Page ? do you need any special feature from SiteTree / Page?
1244: [13:10:36] <wmk> do you need it accessible via a cool URL ?
1245: [13:10:41] <Adesso> I needed the URL stuff
1246: [13:10:51] <Adesso> yes.. as this will be indexed
1247: [13:11:14] <wmk> if you don't need versioning ....
1248: [13:11:14] <Adesso> and SEF/SEO is important
1249: [13:11:23] <wmk> SEO is overestimated
1250: [13:11:37] <Adesso> well, it is a requirement
1251: [13:11:58] <Adesso> This morning I had them as DataObjects... and all was well
1252: [13:12:11] <Adesso> but then I relized that I need the URL functions
1253: [13:12:18] <Adesso> so I mangeled it to a Page..
1254: [13:12:21] <wmk> Adesso, have a look here: http://addons.silverstripe.org/add-ons/silverstripe/dataobjectaspage
1255: [13:12:24] <Adesso> and now I have them in the Tree
1256: [13:13:44] <Adesso> wmk and what will this give me ?
1257: [13:14:19] <wmk> As listed here: http://www.ssbits.com/tutorials/2012/dataobject-as-pages-the-module/
1258: [13:14:31] <wmk> URLSegment based DataObjects with MetaTitle and Description built in.
1259: [13:14:33] <wmk> and much more
1260: [13:14:42] <Pyblerghk> Adesso: I'm not sure you want pages, really.
1261: [13:14:51] <Pyblerghk> oh, oh, oh, I know!
1262: [13:14:55] <Pyblerghk> uhh
1263: [13:15:03] <wmk> Pyblerghk, the dataobject as pages module may help?
1264: [13:15:13] * Adesso feels like he is playing Ping Pong
1265: [13:15:18] <Pyblerghk> https://github.com/NightJar/talk-silverstripe_intro
1266: [13:15:23] * muskie9 quit (Ping timeout: 272 seconds)
1267: [13:15:29] <Pyblerghk> clone it, open it in browser, follow your nose.
1268: [13:15:32] <Pyblerghk> ask questions.
1269: [13:16:04] <wmk> Adesso, there are so many ways to achieve the goal
1270: [13:16:06] <Pyblerghk> wmk: fuck do as pages :<
1271: [13:16:28] <Pyblerghk> I mean, yes and no.
1272: [13:16:33] <Pyblerghk> personally no, but I can see the benefit
1273: [13:16:36] <Pyblerghk> for others.
1274: [13:16:47] <wmk> Pyblerghk, this is not my sexual orientation ;)
1275: [13:16:52] <Pyblerghk> wmk: haahaha
1276: [13:16:59] <Pyblerghk> WHY NOT o.o
1277: [13:17:11] <Pyblerghk> you an SS dev or what!?
1278: [13:17:11] <Pyblerghk> :P
1279: [13:18:05] * muskie9 has joined #silverstripe
1280: [13:18:43] <wmk> Pyblerghk, is there a working version of the talk? i only see the sources on github
1281: [13:18:52] <Pyblerghk> that IS the working version.
1282: [13:18:55] * Adesso is going to give this dataobjectaspage a spinn
1283: [13:19:06] <Pyblerghk> wmk: you git clone that/repository
1284: [13:19:12] <Pyblerghk> then you double click silverstripe.html
1285: [13:19:23] <wmk> *sigh*
1286: [13:19:30] <wmk> ok
1287: [13:19:32] <Pyblerghk> Adesso: good luck! with limited understanding it could add confusion.
1288: [13:19:39] <Pyblerghk> wmk: what do you mean by 'working' ?
1289: [13:19:52] <Pyblerghk> hosted?
1290: [13:19:57] <wmk> jup
1291: [13:20:02] <Pyblerghk> a video of chap giving talk?
1292: [13:20:06] <Pyblerghk> ah, well no to both :<
1293: [13:20:09] <wmk> i can see in my browser without cloning repo...
1294: [13:20:17] <Pyblerghk> you can?
1295: [13:20:22] <Pyblerghk> o.0
1296: [13:20:33] <Pyblerghk> how? hacker!
1297: [13:20:34] <wmk> i mean a version i can view in my browser w/o cloning
1298: [13:20:35] <Pyblerghk> :P
1299: [13:20:44] <wmk> pschorr!!
1300: [13:20:49] <Pyblerghk> oh, yeah nah. not really. Sorry!
1301: [13:20:59] <Adesso> ok... Pyblerghk then I'll try talk-silverstripe_intro
1302: [13:21:05] <Pyblerghk> it's not a large repo though
1303: [13:21:10] <Pyblerghk> fast clone, then clickty click, job done.
1304: [13:21:18] <Pyblerghk> you don't need to put it in a web server.
1305: [13:21:26] <Pyblerghk> so long as firefox can read filesystem, no issue.
1306: [13:21:28] <Pyblerghk> :>
1307: [13:21:32] <Pyblerghk> well, or chrome, or whatever
1308: [13:22:30] * muskie9 quit (Ping timeout: 258 seconds)
1309: [13:22:39] * Shrike_Finland1 quit (Quit: Leaving.)
1310: [13:22:40] <Pyblerghk> Adesso: it'll make less sense without someone talking through it, but hopefully the example it runs through can help you understand a bit.
1311: [13:23:06] <Pyblerghk> it's reasonably similar to what you're trying to do.
1312: [13:23:15] <Pyblerghk> Adesso: ps. Down first, then right ;)
1313: [13:23:31] <Pyblerghk> ie. down until you can't down, then right. then down... etc.
1314: [13:23:35] <Adesso> Cloning in Progress
1315: [13:24:01] <Pyblerghk> If you're lucky that Nightjar chap sometimes drops into the channel.
1316: [13:24:23] * Adesso rubs the new wolly sheep he has cloned ...
1317: [13:24:28] <Pyblerghk> o.0
1318: [13:24:39] <Pyblerghk> What are you, a Kiwi? xP
1319: [13:24:44] <Adesso> LOL
1320: [13:24:56] <Adesso> just trying to get some attention
1321: [13:25:01] <Adesso> works
1322: [13:25:43] <wmk> Templerschaf?
1323: [13:27:52] <wmk> damn, i should update my server to use [] instead of array()
1324: [13:28:26] <Pyblerghk> wmk: 5.4 onwards iirc
1325: [13:28:29] <Pyblerghk> (php)
1326: [13:28:51] <wmk> yup. but debian stable still has 5.3 by default
1327: [13:28:52] <Pyblerghk> also, it must be said I don't code with [], I'm still on 5.3
1328: [13:28:57] <Pyblerghk> yeah, it's a bit shit like.
1329: [13:29:11] <wmk> but reading the code in the talk it looks so elegant
1330: [13:29:19] <Pyblerghk> hehe, it does a bit eh.
1331: [13:29:27] <wmk> "trough the eyes of ruby" like
1332: [13:29:46] <Pyblerghk> o.0 have you SEEN ruby syntax? most messed up shit ever!
1333: [13:32:27] * Shrike_Finland has joined #silverstripe
1334: [13:32:58] * Shrike_Finland quit (Client Quit)
1335: [13:33:30] <wmk> Pyblerghk, but the talk doesn't cover the URL stuff for blog pages
1336: [13:34:27] <Pyblerghk> wmk: define 'url stuff'?
1337: [13:34:41] <Pyblerghk> you mean like custom routes?
1338: [13:34:51] <Pyblerghk> using the title instead of the id?
1339: [13:34:52] <Pyblerghk> etc?
1340: [13:36:22] <wmk> yup
1341: [13:36:42] <wmk> SEO for dataobjects
1342: [13:36:51] <wmk> (and don't tell me to f*** SEO)
1343: [13:36:56] <Pyblerghk> wmk: I have a module for that
1344: [13:37:13] <Pyblerghk> hahaha, you know me too well.
1345: [13:37:21] <wmk> Pyblerghk, quite some time
1346: [13:37:45] <wmk> but for URLSegment i thought DO-As-Pages could be a time saver
1347: [13:37:49] <Adesso> Looking at the code for the Talk.. it is pretty much what I had this morning ..
1348: [13:37:56] <Adesso> almost 100% the same
1349: [13:38:15] <wmk> yup, without URLSegment for your DataObject
1350: [13:38:19] <Adesso> my only Problem was that I needed this URL Segment stuff
1351: [13:38:33] <wmk> there are some solutions for that around
1352: [13:38:42] <wmk> as you're not the first with this problem....
1353: [13:38:46] <Adesso> That and the Metadat was all I really needed
1354: [13:39:23] * Adesso looks arounf... really the first to have this type of request ..
1355: [13:39:44] <Adesso> am I that diffrent
1356: [13:39:47] <wmk> metadata....
1357: [13:39:51] <Adesso> don't answer that
1358: [13:39:59] <Adesso> ye.. metadata
1359: [13:39:59] <Pyblerghk> to be fair, the most reason I say that is because 'SEO' is some twat sitting at a desk with 0 clues telling a dev how to do their job
1360: [13:40:09] <wmk> Pyblerghk, you're time to tell him what to do w/ metadata
1361: [13:40:11] <Pyblerghk> SEO is 100% common sense, 1% magic.
1362: [13:40:18] <Adesso> true
1363: [13:40:34] <Pyblerghk> but an 'SEO' person will tell you that it's 99% magic, 516378537357452% configurable.
1364: [13:40:35] <Adesso> but common sense is normally not a property of a SEO expert
1365: [13:40:39] <wmk> Best SEO: write a good text your customers love
1366: [13:40:43] <Pyblerghk> basically.
1367: [13:41:04] <Pyblerghk> which is why I kick off when someone goes IT NEEEEEEDS TO HAVE THIS AND THAT AND ALL THE OTHER THINGS
1368: [13:41:09] <Adesso> so then I guess I will roll back to the mornings version ..
1369: [13:41:24] <Adesso> and then try and figure out how to to this URL Segment and MetaData
1370: [13:41:30] <Pyblerghk> and duplicate data, and not enough keywords, and too many backlinks, and not enough backlinks at the same time, and all that kinda shit.
1371: [13:41:44] <wmk> basically you'll need a way to tell your template to get the MetaData
1372: [13:41:51] <Pyblerghk> they can F off. But stuff like using a title in the URL, that's common sense.
1373: [13:42:00] <wmk> which is either done SiteTree or ContentController
1374: [13:42:14] <Pyblerghk> that's OK. It's not _necessary_ for 'SEO', but it's nice to have from a UX kinda viewpoint.
1375: [13:42:33] <Adesso> (o Y o) is nice to have
1376: [13:42:38] <Pyblerghk> but anyway... I have a nice module for tits.
1377: [13:42:39] <Pyblerghk> err
1378: [13:42:42] <Pyblerghk> boobs
1379: [13:42:44] <Adesso> :D
1380: [13:42:46] <Pyblerghk> umm, fuck, where was I?
1381: [13:43:00] <Pyblerghk> oh, I have a module for routes by title.
1382: [13:43:03] <wmk> Pyblerghk, YMMD!
1383: [13:43:04] <Pyblerghk> I can upload it tonight.
1384: [13:43:30] <wmk> Pyblerghk, please ;)
1385: [13:43:35] <Pyblerghk> wmk: can do!
1386: [13:43:39] * Otterpocket has joined #silverstripe
1387: [13:43:46] <Adesso> I would like to look at it too
1388: [13:43:51] <wmk> you mean the module with all those cat pictures...=
1389: [13:43:59] <Adesso> Nooooooooooo
1390: [13:44:02] <Pyblerghk> I have a shitload of modules I need to upload. Been planning to clean them up and upload, but I think I should probably just uplaod and clean later :P
1391: [13:44:28] <Pyblerghk> wmk: so you've been reading about the mad catter?
1392: [13:45:05] <wmk> mad hatter?
1393: [13:45:10] <Pyblerghk> no, mad catter!
1394: [13:45:36] <wmk> hmm, no
1395: [13:48:04] <wmk> Adesso, http://api.silverstripe.org/3.1/class-SiteTree.html#_MetaTags <- this is where metatags are normally generated.
1396: [13:48:29] <Pyblerghk> (see slidesilverstripe.html#/6/15 )
1397: [13:48:29] <wmk> go and tell your DataObject to also generate Metatags
1398: [13:48:36] <Pyblerghk> wmk: ^
1399: [13:49:02] <wmk> ah
1400: [13:49:04] <wmk> this one
1401: [13:49:07] <Pyblerghk> :P
1402: [13:49:11] * Adesso just trashed his DB by deleting to many tables ..
1403: [13:49:24] <Pyblerghk> hehe, dev/build SUDDENLY FIXED
1404: [13:49:26] <Pyblerghk> :D
1405: [13:49:49] <Adesso> nope .. dev/build even has a error
1406: [13:50:01] <wmk> delete the DB, rebuild from scratch
1407: [13:50:16] <Adesso> I think SiteTree was important
1408: [13:50:27] <Adesso> oops
1409: [13:50:38] <wmk> gimme a B
1410: [13:50:41] <wmk> gimme an A
1411: [13:50:44] <wmk> gimme a C
1412: [13:50:49] <wmk> gimme an KUP
1413: [13:51:01] <Adesso> rebuilding is not so bad
1414: [13:51:32] <wmk> Adesso, there are also some ways to add some demo data on building the first time
1415: [13:51:46] <wmk> so you can easily destroy the DB and rebuild for developing
1416: [13:52:56] <spronk> hmm
1417: [13:53:05] <spronk> how to get a link in the Visibility fieldset..
1418: [13:53:24] <Pyblerghk> what?
1419: [13:53:50] <spronk> in settingsfields
1420: [13:54:32] <Pyblerghk> getfieldbyname
1421: [13:54:32] <spronk> it isn't named...
1422: [13:54:34] <spronk> hmm
1423: [13:54:36] <Pyblerghk> is it not?
1424: [13:54:37] <spronk> or is it
1425: [13:54:43] <Pyblerghk> get something in it, then get th eparent composite
1426: [13:54:52] <spronk> aha
1427: [13:54:53] <spronk> good plan
1428: [13:55:04] <Pyblerghk> ... then name it :P
1429: [13:56:13] <spronk> ugh
1430: [13:56:26] <spronk> $fields->fieldByName('ShowInMenus')
1431: [13:56:28] <spronk> NADA
1432: [13:56:42] <Pyblerghk> spronk: Tab.Blah.ShowInMenus
1433: [13:56:46] <spronk> mm
1434: [13:57:25] <spronk> damnit
1435: [13:57:27] <spronk> hmm
1436: [13:57:32] <spronk> how the fuck to get it!?
1437: [13:57:45] <Pyblerghk> dataFieldByName
1438: [13:58:04] <Pyblerghk> ('Settings.ShowInMenus')
1439: [13:58:59] <spronk> nerp
1440: [13:58:59] <spronk> hmm
1441: [13:59:03] <spronk> its hidden
1442: [13:59:07] <spronk> where is it set up..
1443: [13:59:52] <spronk> $visibility = new FieldGroup(
1444: [13:59:52] <spronk> 2062 new CheckboxField("ShowInMenus", $this->fieldLabel('ShowInMenus')),
1445: [13:59:52] <spronk> 2063 new CheckboxField("ShowInSearch", $this->fieldLabel('ShowInSearch'))
1446: [13:59:52] <spronk> 2064 ),
1447: [13:59:55] <spronk> RAGE
1448: [14:00:49] <ss23> go to fucking bed, spronk
1449: [14:00:50] <ss23> jesus
1450: [14:00:55] <spronk> eh
1451: [14:00:55] * Adesso just discovers the down button on the Talk Page o.O
1452: [14:01:02] <spronk> SS23
1453: [14:01:02] <Adesso> and the Mad Catter
1454: [14:01:05] <spronk> HOW FUCK TO GET THIS FIELD?!
1455: [14:01:10] <ss23> um
1456: [14:01:34] <ss23> Can you get all fields then foreach it until you get the one you want, spronk?
1457: [14:01:40] <spronk> law
1458: [14:01:41] <spronk> l
1459: [14:01:46] <spronk> SO 1999 MAN
1460: [14:02:04] <Pyblerghk> wow, dafuq you doing up ss23 ?
1461: [14:02:09] <Pyblerghk> do they not make you work or something?
1462: [14:02:26] <spronk> YESGOT IT
1463: [14:02:36] <Pyblerghk> *drumroll please*
1464: [14:03:48] <Pyblerghk> *cymbal noise*
1465: [14:03:54] <Pyblerghk> spronk: -.-
1466: [14:03:59] <Pyblerghk> late to your own party here...
1467: [14:04:01] <spronk> SEC
1468: [14:05:39] <spronk> haha
1469: [14:05:40] <spronk> fuck i'm dumb
1470: [14:05:47] <spronk> insertAfter works to
1471: [14:05:47] <spronk> o
1472: [14:05:54] <spronk> WHY DID I NOT CONSIDER THIS PREVIOUSLY
1473: [14:06:09] <wmk> sounds painfully
1474: [14:06:11] <ss23> Pyblerghk: Sorry, being sick today, not doing great :(
1475: [14:06:44] <spronk> its too late.
1476: [14:06:52] <kinglozzer> How dafuq do you filter on a many_many? I have Document many_many tags, want to get documents that have tags 1 & 2, for example
1477: [14:07:10] <kinglozzer> Can't do Tag::get()->filter(<ids>)->relation('Documents'); as my list of documents is already filtered :/
1478: [14:07:24] <spronk> what do you mean documents is already filtered?
1479: [14:07:28] <spronk> list of
1480: [14:07:29] * zfmf has joined #silverstripe
1481: [14:08:29] <kinglozzer> Well, documents many_many tags, and documents many_many pages. In the search, user can specify multiple tags and multiple pages
1482: [14:08:53] <kinglozzer> Idk how to filter based on the IDs of each
1483: [14:09:03] <spronk> can't you just...
1484: [14:09:13] <spronk> Document.Tags ?
1485: [14:09:25] <kinglozzer> Idk, that might be what I'm looking for spronk ;)
1486: [14:09:25] <kinglozzer> sec
1487: [14:09:35] <spronk> and uuusseeee the multi match filter
1488: [14:10:31] <kinglozzer> Unknown column 'Document.Tag' in 'where clause' :(
1489: [14:10:33] <spronk> oh, which is apparently deprecated in favour of the normal ExactMatchFilter
1490: [14:10:36] <spronk> .Tags
1491: [14:10:37] <spronk> ?
1492: [14:10:40] <kinglozzer> +s
1493: [14:10:42] <spronk> whats relation name
1494: [14:10:43] <spronk> oh?
1495: [14:10:44] <spronk> hmm
1496: [14:10:45] <kinglozzer> Tags
1497: [14:10:52] <spronk> wait
1498: [14:10:57] <spronk> paste the filter expression
1499: [14:11:15] <kinglozzer> $documentList = $documentList->filter('Document.Tags', $tagIDs);
1500: [14:11:24] <kinglozzer> ($tagIDs = Tag::get()->filter('Title', $tags)->column('ID');)
1501: [14:11:35] <spronk> where'd $documentList come from?
1502: [14:11:41] <kinglozzer> DMSDocument::get();
1503: [14:11:49] <spronk> try
1504: [14:12:18] <spronk> $documentList->filter('Tags.ID, $tagIDs)
1505: [14:12:32] <kinglozzer> spronk: <333333
1506: [14:12:39] <kinglozzer> :D
1507: [14:12:46] <spronk> :D
1508: [14:12:50] <kinglozzer> Thanks!
1509: [14:12:53] <spronk> np
1510: [14:15:55] <kinglozzer> Next "wtf" moment (that I don't really care about, just an observation):
1511: [14:16:03] <kinglozzer> $page = SiteTree::get_by_id($stageID); // NULL
1512: [14:16:16] <kinglozzer> $page = SiteTree::get()->byID($stageID); // Page
1513: [14:16:17] <kinglozzer> dafuq?
1514: [14:16:30] <kinglozzer> I guess get_by_id() doesn't include child classes, but meh
1515: [14:17:11] <spronk> yeah
1516: [14:17:16] <spronk> i dont really understand why get_by_id exist
1517: [14:17:17] <spronk> s
1518: [14:18:11] <kinglozzer> Mm, I thought it looked like the sort of method that'd be deprecated. Still seems to be fairly widely used though :/
1519: [14:19:44] <spronk> which is probably why its there lol
1520: [14:20:08] <Pyblerghk> kinglozzer: because get_by_id is deprecated.
1521: [14:20:10] <Pyblerghk> afaik
1522: [14:20:16] <Pyblerghk> was 2.4
1523: [14:20:22] <kinglozzer> Pyblerghk: Deprecated in master?
1524: [14:20:24] <spronk> isnt marked as deprecated
1525: [14:20:31] * Adesso has his DataObject back and working
1526: [14:20:31] <Pyblerghk> DataObject::get_by_id('BlahClass')
1527: [14:20:41] <Adesso> there goes another day... swoosh
1528: [14:20:43] <Pyblerghk> spronk: kinglozzer probably because a dickload of modules would stop working.
1529: [14:20:54] <spronk> man
1530: [14:20:57] <spronk> ss has some pretty bad baggage
1531: [14:20:57] <Pyblerghk> Adesso: did those talk slides help you at all>
1532: [14:20:58] <Pyblerghk> ?
1533: [14:21:03] <Pyblerghk> spronk: yeh it does.
1534: [14:21:07] <Pyblerghk> it's known issues.
1535: [14:21:16] <Pyblerghk> the older you are, the more baggage you got.
1536: [14:21:19] <Adesso> Pyblerghk, yes, alot... really simple
1537: [14:21:28] <Pyblerghk> AYE WORDDERP
1538: [14:21:35] <Pyblerghk> Adesso: really?
1539: [14:21:39] <kinglozzer> Pyblerghk: Not even deprecated in master :| https://github.com/silverstripe/silverstripe-framework/blob/master/model/DataObject.php#L3088-L3103
1540: [14:21:40] <Pyblerghk> wow, that's good to hear :)
1541: [14:21:51] <Pyblerghk> kinglozzer: yeah I am just assuming here, it's 2.4 code.
1542: [14:22:04] <Pyblerghk> if it's not been deprecated, there must be a reason. Perhaps ask the devlist?
1543: [14:22:17] <Adesso> well... I still have to get the MetaData and SiteURL stuff... but for now, I am done.. First I have to get the Template done
1544: [14:22:21] <Pyblerghk> ask/search
1545: [14:22:31] <Pyblerghk> Adesso: I can help you with the url stuff.
1546: [14:22:34] <kinglozzer> The only advantage I can see is that DataObject::get_one is "cached" (in the sense that it stores the DataObject it retrieves)
1547: [14:22:38] <Pyblerghk> but you'll have to wait until tomorrow
1548: [14:22:50] <Adesso> yup..
1549: [14:22:53] <Pyblerghk> :>
1550: [14:22:55] <Adesso> Tomorrow is another day
1551: [14:23:21] <Pyblerghk> I guess I'll die, another day *worst bond intro ever*
1552: [14:24:05] <Pyblerghk> which is a shame, since it's Tamahori's one.
1553: [14:24:17] <Pyblerghk> iirc
1554: [14:24:49] <spronk> mmlol
1555: [14:27:03] * Shrike_Finland has joined #silverstripe
1556: [14:27:17] <kinglozzer> Pyblerghk: I always get muddled up with the Pierce Brosnan ones, is that the ice palace one?
1557: [14:27:41] <spronk> yeah
1558: [14:27:43] <kinglozzer> Or the one with the evil newspaper guy and the boat
1559: [14:27:47] <Zauberfisch> sorry wmk I just don't get around to check hotels
1560: [14:28:00] <spronk> goldeneye = lazor satellite
1561: [14:28:05] <kinglozzer> No, that's Tomorrow Never Dies
1562: [14:28:06] <spronk> tomorrow never dies = newspaper guy and boat
1563: [14:28:09] <kinglozzer> ^^
1564: [14:28:14] <spronk> world is not enough = guy with no feeling and bullet in face
1565: [14:28:20] <spronk> die another day = sparkly asian jaguar guy
1566: [14:28:22] <kinglozzer> Ha, yeah that's a good one
1567: [14:28:40] <spronk> ICARUS
1568: [14:28:42] <spronk> thats it
1569: [14:28:52] * UndefinedOffset quit (Read error: Connection reset by peer)
1570: [14:30:26] * UndefinedOffset has joined #silverstripe
1571: [14:31:18] <Pyblerghk> kinglozzer: yeah, car fight on the snow one.
1572: [14:31:24] <Pyblerghk> North Korea.
1573: [14:31:30] <spronk> also with a giant space lazor
1574: [14:31:33] <spronk> more or less
1575: [14:31:33] <Pyblerghk> bad guy with diamonds stuck in his face.
1576: [14:31:59] <Pyblerghk> kinglozzer: evil newspaper guy and boat was the one before, Tomorrow never dies iirc
1577: [14:32:09] <Pyblerghk> before that was Goldeneye
1578: [14:32:10] <spronk> i liked TND
1579: [14:32:12] <Pyblerghk> iirc
1580: [14:32:21] <Pyblerghk> spronk: CHRISTMAS CUMS TWICE
1581: [14:32:25] <spronk> o_O
1582: [14:32:34] <Pyblerghk> pretty sure the whole movie was one long set up for that joke.
1583: [14:32:37] <spronk> lawl
1584: [14:32:52] <Pyblerghk> Dr.Christmas Jones (Denise Richards in a tank top with no bra)
1585: [14:32:58] <spronk> oh
1586: [14:33:03] <spronk> world is not enough
1587: [14:33:05] <spronk> mm
1588: [14:33:06] <Pyblerghk> which... when you're 16 xD
1589: [14:33:14] <spronk> yeah
1590: [14:33:19] <spronk> denise was a baaabe when I was 16.
1591: [14:33:21] <Pyblerghk> oh yeah, world is not enough. I dun got confused.
1592: [14:33:47] <spronk> between starship troopers and the world is not enough, phwoar. my teen years.
1593: [14:34:06] <spronk> omfg she sucks at acting.
1594: [14:34:21] <Pyblerghk> mm, TND fits between WINE and DAD
1595: [14:34:25] <Pyblerghk> JUST LIKE YOUR MOTHER
1596: [14:34:27] <Pyblerghk> xD
1597: [14:34:37] <spronk> nah
1598: [14:34:45] <spronk> GE -> TND -> WINE -> DAD
1599: [14:34:54] <spronk> sorry to bust your joke bro
1600: [14:35:00] <spronk> ha
1601: [14:35:01] <Pyblerghk> fuck you :<
1602: [14:35:06] <spronk> best dad joke ever on election day
1603: [14:35:11] <Pyblerghk> oh?
1604: [14:35:15] <spronk> "IM JUST GOING DOWN TO VOTE BE BACK IN TWO TICKS"
1605: [14:35:20] <Pyblerghk> LULZ
1606: [14:35:24] * spronk obliterates with laughter
1607: [14:35:27] <Pyblerghk> dad jokes best jokes
1608: [14:35:41] <Pyblerghk> just like simple yet elegant puns
1609: [14:35:50] <Pyblerghk> best joke ever: magical tractor
1610: [14:36:07] <Pyblerghk> it was driving down the road, then it turned into a field!
1611: [14:36:13] <spronk> hahaaa
1612: [14:36:39] <spronk> http://www.reddit.com/r/dadjokes ftw
1613: [14:36:39] <spronk> anyone
1614: [14:36:42] <spronk> anyway*
1615: [14:36:46] <spronk> SLEEP BECKONS
1616: [14:37:29] <Pyblerghk> righto, glhf
1617: [14:38:08] <spronk> CHOW
1618: [14:39:18] <wmk> though i think most ppl coming already have hotels checked ...?
1619: [14:40:08] <wmk> depending on weather i could use hotel fiat
1620: [14:42:09] <ss23> baby get shakey
1621: [14:44:10] <ss23> Aha, not a particularly small one, glad it was quite far away, 5.6 :D
1622: [14:44:14] <ss23> Damn eathquakes
1623: [14:44:15] <Pyblerghk> wmk: where are you coming from?
1624: [14:44:21] <wmk> from home
1625: [14:44:26] <Pyblerghk> lol
1626: [14:44:30] <Pyblerghk> which city?
1627: [14:44:51] <wmk> Hallstatt, Austria
1628: [14:45:05] <Pyblerghk> wow, looks pretty
1629: [14:45:15] <wmk> but was born in my neatherbavarian homeland neather bavaria
1630: [14:45:53] <ss23> ...
1631: [14:45:57] <ss23> IS THAT WHERE THE CAKE COMES FROM? :D
1632: [14:46:14] <wmk> no, it's LAKE Hallstatt
1633: [14:46:23] <wmk> cake is Linz
1634: [14:46:25] <ss23> ... but... Barvaria? Barvarian?
1635: [14:46:27] <ss23> ;_;
1636: [14:46:42] <Pyblerghk> ss23: it's where some supreme hells come from.
1637: [14:46:44] <wmk> neather bavaria is a part of bavaria.
1638: [14:46:49] <Pyblerghk> or is there an extra e?
1639: [14:46:50] <wmk> more kind of liquid cake
1640: [14:46:50] <Pyblerghk> idk.
1641: [14:46:58] <Pyblerghk> helles?
1642: [14:47:01] <ss23> Hmm
1643: [14:47:02] <wmk> or Weizen
1644: [14:47:08] <ss23> Long story short, I'd love some cake right now
1645: [14:47:18] <wmk> in munich is also a brewery called "Hacker"
1646: [14:47:20] <Pyblerghk> never would have guessed
1647: [14:47:30] <Pyblerghk> Augistina was great :>
1648: [14:47:44] <Pyblerghk> Augustina* ?
1649: [14:47:47] <Pyblerghk> one of them like.
1650: [14:48:06] <wmk> Augustiner is good...
1651: [14:48:16] <wmk> though there are so many small breweries with good beer
1652: [14:48:26] <wmk> even in austria
1653: [14:50:28] <Pyblerghk> er* that's right, it was -er, not -a
1654: [14:50:36] <Pyblerghk> that caught me out when I was there too.
1655: [14:50:39] <Pyblerghk> I expected it to be -a
1656: [14:50:53] <Pyblerghk> it's ocktoberfest atm right?
1657: [14:51:00] <Pyblerghk> that confuses me, since it's not october
1658: [14:51:43] * muskie9 has joined #silverstripe
1659: [14:52:22] * Adesso quit (Quit: EOD)
1660: [14:52:39] <wmk> yup. confuses me, too
1661: [14:53:05] <wmk> i was there once, nothing for me
1662: [14:59:09] <kinglozzer> ss23: You're a Solr expert, right? (you're the only guy I've ever seen that has used it)
1663: [14:59:34] <ss23> no
1664: [14:59:36] <ss23> no god no
1665: [14:59:48] <ss23> I'm going to bed and please never ask me about solr I have ptsd
1666: [14:59:49] <kinglozzer> Any idea why $this->addFilterField('ID'); results in nothing being returned for any searches, but $this->addFulltextField('ID'); works fine? :P
1667: [14:59:55] <kinglozzer> Hahahaha
1668: [15:10:43] * ss31noob quit (Ping timeout: 246 seconds)
1669: [15:16:56] <Pyblerghk> gawd, fuck. You make something for a client (not me personally) and then they're all "oh thanks that's great" and continue never using it, not even once.
1670: [15:17:29] <Pyblerghk> because then years later I inherit the project, and find that there's a glaring (huge) price difference between what's on screen and what's on paper AND NO ONE HAS EVER BROUGHT IT UP
1671: [15:18:41] <wmk> is there a built in function to use a Title as a <a name=""> ??
1672: [15:18:48] <wmk> e.g. strip spaces, umlauts etc...
1673: [15:18:57] <wmk> something i can call in the template
1674: [15:19:37] * zfmf quit ()
1675: [15:30:12] * Shrike_Finland quit (Quit: Leaving.)
1676: [15:32:40] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
1677: [15:34:01] * ARNHOE_ quit ()
1678: [15:34:45] * muskie9 has joined #silverstripe
1679: [15:42:01] <Pyblerghk> wmk: uhh .XML ?
1680: [15:42:05] <Pyblerghk> .HTTPATTR?
1681: [15:42:12] <Pyblerghk> there is something /similar/
1682: [15:42:18] <Pyblerghk> not sure if exactly what you want.
1683: [15:42:32] <Pyblerghk> if not though... Blahthing extends Extension{} applies to StringField, jbo done
1684: [15:42:54] <wmk> did a method that returns the value put through URLSegmentFilter
1685: [15:43:07] <wmk> though an extension for StringField is more useful...
1686: [15:43:12] * crapwagon quit (Remote host closed the connection)
1687: [15:45:03] <Pyblerghk> wmk: URLATT() ?
1688: [15:45:36] <Pyblerghk> or HTMLATT
1689: [15:45:50] <Pyblerghk> http://api.silverstripe.org/3.1/class-Varchar.html
1690: [15:45:53] <wmk> doesn't strip spaces...
1691: [15:46:10] <Pyblerghk> URLATT might though
1692: [15:46:22] * jenniferaslan has joined #silverstripe
1693: [15:46:23] <wmk> URLSegmentFilter does what i want
1694: [15:46:40] <Pyblerghk> :>
1695: [15:46:40] <wmk> i don't need a 2-way encoding / decoding
1696: [15:48:49] <wmk> plus: it changes umlauts to basic chars
1697: [16:03:23] * kinglozzer quit ()
1698: [16:33:44] * Otterpocket quit (Quit: WeeChat 0.4.1)
1699: [16:38:30] * Pyblerghk quit ()
1700: [17:05:34] * wmk quit (Ping timeout: 272 seconds)
1701: [17:16:03] * muskie9 quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
1702: [17:39:30] * gelignite has joined #silverstripe
1703: [18:02:57] * muskie9 has joined #silverstripe
1704: [18:09:38] * oddnoc has joined #silverstripe
1705: [19:08:36] * Shrike_Finland has joined #silverstripe
1706: [19:26:55] * irogue_ quit ()
1707: [19:41:44] * ss31noob has joined #silverstripe
1708: [19:43:08] <ss31noob> hi guys.. i have a pagination in one of my widgets.. when i go to the page two.. it loads okay.. but when i go to the next pages.. it now appends the /ProgressiveJackpotWidget_Controller/index'+jQuery(this).attr('href')
1709: [19:43:46] <ss31noob> any idea why? im expecting that it should be something like test.com?start=2 etc..
1710: [19:52:31] * auto9 has joined #silverstripe
1711: [19:57:44] * azureRaven has joined #silverstripe
1712: [20:02:44] * Kingy[a] is now known as Kingy
1713: [20:05:09] * Stomach has joined #silverstripe
1714: [20:13:13] * jsirish has joined #silverstripe
1715: [20:16:21] <jsirish> has anyone gotten the microsoft web platform installer to work? I'm getting a 404 error when it tries to download the package
1716: [20:16:44] * veb has joined #silverstripe
1717: [20:18:34] * SphereSilver has joined #silverstripe
1718: [20:21:02] * Olliepop has joined #silverstripe
1719: [20:36:53] * UndefinedOffset quit (Quit: Leaving.)
1720: [20:37:43] * Ryan-Toast has joined #silverstripe
1721: [20:49:52] * jsirish quit (Ping timeout: 246 seconds)
1722: [21:01:45] <ss31noob> hi guys.. anyone up to help me in my issue right now?
1723: [21:02:21] <ss31noob> http://www.sspaste.com/paste/show/5420892325769 this is the sample code i have for my pagination in a widget
1724: [21:02:42] <ss31noob> when im trying to do the next page.. it doesnt display the data needed.. anyone knows about this?
1725: [21:03:53] * hailwood quit (Ping timeout: 240 seconds)
1726: [21:05:02] * UncleCheese has joined #silverstripe
1727: [21:07:48] <SphereSilver> I'm not seeing it, but then again, I'm quite tired
1728: [21:09:14] * Colin[pi] has joined #silverstripe
1729: [21:10:25] * jedateach has joined #silverstripe
1730: [21:11:08] <Stomach> ss31noob - the pagination should have the link in it
1731: [21:11:20] <Stomach> so you should be able to just call it as the href
1732: [21:11:30] <ss31noob> yeah i do have..
1733: [21:11:57] <Stomach> and then you will need to return something in the index function
1734: [21:12:33] <ss31noob> when i click any page at first.. it works okay.. but then when i click another page.. it now appends the /JackpotWidget_Controller/index in the href..
1735: [21:12:46] <ss31noob> which shouldnt be the case
1736: [21:12:51] <Stomach> like if ($this->getRequest()->isAjax()) { return $this->customise(array('MicrogramingJackpotsItems' => $this-> MicrogramingJackpotsItems()))->renderWith('MicrogramingJackpotsItemsTemplate'); }
1737: [21:13:33] <Stomach> ohhhh
1738: [21:13:51] <Stomach> you need to rebind your handler then - does the return have the pagination within it?
1739: [21:14:26] <jedateach> For those interested, here is why mod pagespeed isn’t working with SilverStripe 3: https://github.com/silverstripe/silverstripe-framework/issues/3501
1740: [21:14:53] <ss31noob> Stomach, what do you mean?
1741: [21:15:51] <Stomach> does the response have the pagination controls within them
1742: [21:15:52] * hailwood has joined #silverstripe
1743: [21:16:06] <Stomach> if so, then when you add response to the html, there will be no binding for jquery
1744: [21:16:19] <Stomach> so you have to rebind the ajax handler
1745: [21:16:55] * micmania1 has joined #silverstripe
1746: [21:18:38] <ss31noob> this is my jquery related with that.. http://www.sspaste.com/paste/show/54208d375c853
1747: [21:20:31] * veb has joined #silverstripe
1748: [21:20:53] * UncleCheese quit (Quit: Textual IRC Client: www.textualapp.com)
1749: [21:21:04] * UncleCheese has joined #silverstripe
1750: [21:21:16] <UncleCheese> Yeah! Fuck it! http://www.youtube.com/watch?v=rYcSqIuqkz4
1751: [21:21:53] <Stomach> ss31noob - so naively you could do something like http://sspaste.com/paste/show/54208dfecb2b3
1752: [21:23:05] <Stomach> oh fuck it I'm actually probably wrong
1753: [21:23:08] <Stomach> adrexia - help? :D
1754: [21:23:15] <Stomach> Ryan-Toast - you might know too
1755: [21:23:26] <Ryan-Toast> Stomach: hmm?
1756: [21:24:24] <Stomach> ss31noob has a problem with an ajax jquery implementation not rebinding handlers when he loads data in
1757: [21:24:33] <Stomach> so first click does ajax, second click doesnt
1758: [21:24:57] <Ryan-Toast> Is he repopulating the pagination?
1759: [21:26:08] <Ryan-Toast> If so you need to bind the click to the document
1760: [21:26:28] <Ryan-Toast> i.e $(document).on("click”,”.foo”,function(e){});
1761: [21:26:40] <Stomach> I started reading about binding and got confused - so basically you just bind one level above
1762: [21:26:49] <Stomach> here I am rebinding everything specifically all the time...
1763: [21:26:49] <Ryan-Toast> bind to the document
1764: [21:27:10] <Ryan-Toast> Stomach: That’s fine as long as it’s not generated content
1765: [21:27:58] * oddnoc quit (Quit: beer:30)
1766: [21:28:03] <Stomach> Ryan-Toast - it is, I have a "handleRebinding" function I call on page load and every time some ajax runs
1767: [21:28:06] <Stomach> whoops
1768: [21:28:12] * Stomach goes back to jquery school
1769: [21:28:14] <Ryan-Toast> Stomach: :P
1770: [21:28:38] <Ryan-Toast> It used to be that you would use the .live() method, but it was awful and they depreciated it :
1771: [21:28:50] <ss31noob> Ryan-Toast, yeah it was deprecated already.
1772: [21:28:53] <ss31noob> so im using .on now
1773: [21:28:56] <Ryan-Toast> binding the on() method to the document is much better
1774: [21:29:33] <ss31noob> can you help me on this? this is my jquery for the pagination.. http://www.sspaste.com/paste/show/54208d375c853
1775: [21:30:37] <Stomach> basically I think you change the top line to
1776: [21:30:37] <Stomach> jQuery(document).on('click', '.widget_pagination a', function(e){
1777: [21:30:45] <Ryan-Toast> yarp
1778: [21:31:11] <Ryan-Toast> |I recommend giving your anchor tags a class too, it’s much faster than using inheritence.
1779: [21:33:50] * Phlunk3 has joined #silverstripe
1780: [21:36:49] <ss31noob> i tried your recommendation and still the same.. :|
1781: [21:37:15] <ss31noob> jQuery(document).on('click', '.widget_pagination a.progressive-link-pagination', function(e){ ... }
1782: [21:37:33] * veb_ has joined #silverstripe
1783: [21:40:17] * veb quit (Ping timeout: 245 seconds)
1784: [21:48:33] * azureRaven quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
1785: [21:51:48] * veb has joined #silverstripe
1786: [21:52:28] * veb_ quit (Ping timeout: 260 seconds)
1787: [21:53:24] * muskie9 is now known as _muskie9_
1788: [21:53:24] * _muskie9_ quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
1789: [21:54:27] * muskie9 has joined #silverstripe
1790: [21:56:48] * gelignite quit (Quit: http://bit.ly/nkczDT)
1791: [22:03:22] * jedateach has left #silverstripe
1792: [22:08:04] * SphereSilver quit (Remote host closed the connection)
1793: [22:09:56] * Shrike_Finland quit (Quit: Leaving.)
1794: [22:10:44] * auto9 quit (Read error: Connection reset by peer)
1795: [22:12:11] * auto9_ has joined #silverstripe
1796: [22:12:48] * azureRaven has joined #silverstripe
1797: [22:19:46] <Ryan-Toast> ss31noob: just do .progressive-link-pagination no need for the other biz.
1798: [22:23:02] <ss31noob> it's still not rebinding.. :| i can still get the value that i put in the url in ajax..
1799: [22:29:03] * muskie9 is now known as _muskie9_
1800: [22:29:03] * _muskie9_ quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
1801: [22:29:57] <Ryan-Toast> ss31noob: what does your javascript look like atm?
1802: [22:31:03] <ss31noob> http://www.sspaste.com/paste/show/54209e39cdc8c
1803: [22:31:16] <ss31noob> that js is included right now in the template of the widget..
1804: [22:31:31] <Ryan-Toast> ss31noob: anything in the console?
1805: [22:32:57] <ss31noob> nothing.. the first load of the page.. when i click any page.. ajax works okay.. but when i click again on another page.. the link of the page is now appending the value of the url in ajax (/Pagination_Controller/index?start=2)
1806: [22:34:46] <Ryan-Toast> Interesting.
1807: [22:35:57] <Ryan-Toast> ss31noob: You’re only reloading part of the page, right?
1808: [22:36:08] <ss31noob> yes.. just the widget part
1809: [22:36:10] <Ryan-Toast> . jackpotsList isn’t your body?
1810: [22:37:32] <ss31noob> jackpotList is part of the widget template
1811: [22:39:13] <ss31noob> http://www.sspaste.com/paste/show/5420a020b59c3
1812: [22:41:08] <Colin[pi]> morning all
1813: [22:41:22] <simon_w|work> Work tiem!
1814: [22:42:37] * azureRaven quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
1815: [22:43:09] * azureRaven has joined #silverstripe
1816: [22:52:44] * pippy_ has joined #silverstripe
1817: [22:55:52] * pippy quit (Ping timeout: 246 seconds)
1818: [22:56:37] <Colin[pi]> I have started my CMS reskin project: PREPARE YOUR BODIES
1819: [22:57:15] <UncleCheese> aye?
1820: [22:57:31] <Colin[pi]> it's gonna be super sweet
1821: [22:58:59] <Ryan-Toast> Colin[pi]: you can use mine as a base just to get all the selectors that you need
1822: [22:59:05] <Ryan-Toast> and remove all the styling
1823: [22:59:12] <Stomach> CMS reskin is super sweet until you want to use another module :D
1824: [22:59:13] <Colin[pi]> Ryan-Toast: but that takes all the "fun" out of it :P
1825: [22:59:19] <Ryan-Toast> Colin[pi]: “Fun"
1826: [22:59:43] <Ryan-Toast> Colin[pi]: I may work on mine too :D
1827: [22:59:48] <Ryan-Toast> cms-hi-five
1828: [23:01:57] <Ryan-Toast> Colin[pi]: Naw, going to work on my shortcode generator instead
1829: [23:02:47] <Colin[pi]> Stomach: what do you mean? another module that affects the look and feel?
1830: [23:02:57] <ss23> I'm sick
1831: [23:03:01] <ss23> Colin[pi] starts reskin project
1832: [23:03:02] <ss23> Conicidence?
1833: [23:03:04] <Colin[pi]> ss23: we've known for a long time
1834: [23:03:10] <ss23> haha
1835: [23:03:23] <Stomach> Colin[pi] - yeah, though they arent that common
1836: [23:03:28] <ss23> Fuck, what on earth did I do on Friday...
1837: [23:03:34] <Colin[pi]> what's yours look like again Ryan-Toast?
1838: [23:03:40] <Colin[pi]> the CMS that is :P
1839: [23:03:45] <Ryan-Toast> Colin[pi]: Ah, one sec
1840: [23:04:04] <Colin[pi]> I'm going for flat, since that's the current flavour
1841: [23:05:47] <Ryan-Toast> Colin[pi]: http://i.imgur.com/Y2dkksT.jpg
1842: [23:06:11] <Colin[pi]> looks pretty nice
1843: [23:06:28] <Ryan-Toast> Could be better, some things don’t follow the dsame design pattern
1844: [23:06:37] <Ryan-Toast> but cbf
1845: [23:07:03] <Colin[pi]> I like the difference between the top level tabs and the ones under
1846: [23:07:18] <Colin[pi]> contrast, or whatever
1847: [23:07:42] <Colin[pi]> mine will end up kinda similar I think, also going for white icons on the left
1848: [23:08:20] * veb_ has joined #silverstripe
1849: [23:08:33] <Ryan-Toast> Colin[pi]: I just have an if statement in my scss that swaps them from darrk to light. Was thinking of changing all the icons in the CMS to fonts, like adrexia and I were talking about.
1850: [23:08:48] <Colin[pi]> mm that'd be pretty sweet
1851: [23:10:11] <ss23> 11:04:04 < Colin[pi]> I'm going for flat, since that's the current flavour
1852: [23:10:13] <ss23> so confirmist...
1853: [23:10:29] <ss23> I'm just glad it's not transparent/rounded, which got so incredibly overdone
1854: [23:10:32] <ss23> :/
1855: [23:10:36] <Colin[pi]> mm
1856: [23:10:42] <Ryan-Toast> The design trends are moving to material design, I think it will be next year’s trend.
1857: [23:10:42] <ss23> Faster to render flat too
1858: [23:10:43] <ss23> :D
1859: [23:10:43] * veb quit (Ping timeout: 272 seconds)
1860: [23:10:48] <Colin[pi]> but lets be honest, gradients are right out now
1861: [23:10:52] <ss23> Bring back pinstripes.
1862: [23:11:01] <Ryan-Toast> Colin[pi]: gradients are coming back
1863: [23:11:06] <Ryan-Toast> just in a different way
1864: [23:11:07] <Colin[pi]> what? noo
1865: [23:11:19] <ss23> In the ironic not actually back way?
1866: [23:11:47] <Colin[pi]> I liked gradients before they were uncool and then cool again
1867: [23:11:50] <ss23> lol
1868: [23:12:08] <Ryan-Toast> very subtle gradients.
1869: [23:12:17] <Ryan-Toast> not like a few years ago.
1870: [23:13:08] <Ryan-Toast> biz like this: http://www.electricmainline.co.uk/
1871: [23:14:49] <Colin[pi]> mm subtle
1872: [23:17:32] <Colin[pi]> Ryan-Toast: where's the filter panel in your skin?
1873: [23:17:42] <Ryan-Toast> Colin[pi]: hmm?
1874: [23:19:01] <Colin[pi]> on the left: http://imgur.com/p08HeJF just hidden in your screenie?
1875: [23:19:19] * ss31noob quit (Ping timeout: 246 seconds)
1876: [23:19:36] <Colin[pi]> wait nm
1877: [23:19:45] <Ryan-Toast> Colin[pi]: lol
1878: [23:19:49] <Colin[pi]> different page view than what I'm looking at :P
1879: [23:20:32] <Colin[pi]> Ryan-Toast: was it easy to reskin GridField or icky?
1880: [23:20:56] * nikob has joined #silverstripe
1881: [23:21:01] <Ryan-Toast> Colin[pi]: icky
1882: [23:21:11] <Colin[pi]> mm thought as much :(
1883: [23:21:23] <Ryan-Toast> Colin[pi]: almost 100 lines.
1884: [23:23:59] * veb_ is now known as veb
1885: [23:24:02] * veb quit (Changing host)
1886: [23:24:03] * veb has joined #silverstripe
1887: [23:26:47] <Colin[pi]> wow I didn't know east asian censorship also applied to technology: http://i01.i.aliimg.com/wsphoto/v0/1987687713_2/Best-seller-with-Free-shipping-for-100pcs-lot-Dock-Charger-Sync-Charging-Staion-Dock-Cradle-for.jpg
1888: [23:26:53] <Colin[pi]> WHAT SHAPE IS THAT CONNECTOR? ;P
1889: [23:27:32] * azureRaven quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
1890: [23:29:17] <nikob> Hey ppl, anyone able to tell me why SiteTreeURLSegmentField() appends stage=stage to my url, even though the page is published? & when I click on the link, it 404's.
1891: [23:35:26] <adrexia> I think its also set in session
1892: [23:35:40] <adrexia> you need to append stage=Live
1893: [23:35:59] <adrexia> not sure why it 404's
1894: [23:37:08] <nikob> hmm
1895: [23:37:43] <nikob> it even appends stage=Stage when I reload the cms page with stage=live
1896: [23:38:36] <nikob> and interestingly opening the url without the stage=Stage does work.
1897: [23:38:47] <adrexia> is the page published?
1898: [23:39:19] <nikob> yep
1899: [23:39:49] <nikob> $this->isPublished() returns true at-least
1900: [23:40:34] <nikob> that's why I don't understand why the urlsegment field wants to direct me to the stage site.
1901: [23:40:43] <adrexia> tried opening the cms in incognito?
1902: [23:40:50] <nikob> yep, same thing
1903: [23:41:14] <adrexia> filter the sitetree by published and see if it looks the same
1904: [23:41:47] <adrexia> oh wait - the url segment always sdends you to stage I think
1905: [23:42:14] <adrexia> the one in the cms on editpage, at least
1906: [23:42:44] <nikob> hmm
1907: [23:42:58] <nikob> it's worth noting I'm editing these pages below a model admin
1908: [23:43:24] <adrexia> even in the cmseditform they have stage=Satge affixced
1909: [23:45:11] <nikob> I think I need to make them dataobjects instead of pages
1910: [23:48:26] <adrexia> it will make your life easier
1911: [23:51:16] * willr has joined #silverstripe
1912: [23:51:31] * willr has left #silverstripe
1913: [23:52:07] * willr has joined #silverstripe
1914: [23:52:07] * willr quit (Changing host)
1915: [23:52:07] * willr has joined #silverstripe
1916: [23:52:18] <willr> That’s better.
1917: [23:52:47] <ss23> o.o
1918: [23:55:02] <ss23> http://placekitten.com/ for easier webdev
1919: [23:55:35] <nikob> I just noticed it wasn't giving me the save/publish button when edited from the model admin either
1920: [23:55:47] <nikob> just save
1921: [23:56:55] <nikob> thanks for the help adrexia
1922: [23:58:32] <adrexia> nikob, there are modules that can help with that
1923: [23:58:33] <adrexia> https://github.com/icecaster/silverstripe-versioned-gridfield
1924: [23:59:02] <adrexia> but its still an uphill battle

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