#silverstripe IRC Log

IRC log for 6 July 2015

All timestamps are in UTC.

1: [00:00:57] <antmas> Hailwood: waht do you mean, you could do the same but the shipping price field is just a selectable index
2: [00:00:59] <antmas> ?
3: [00:01:48] <Hailwood> Ah righto, so one of the constraints needs to be > 0. so in this case I've just set MaxWeight to 5000KG and now I am getting a list of the shipping options heh
4: [00:02:10] * spronk has joined #silverstripe
5: [00:02:12] <antmas> :)
6: [00:02:17] <antmas> spronk: o/
7: [00:02:31] <spronk> lo lo
8: [00:02:54] * Stomach quit (Quit: zzz)
9: [00:03:35] <zippy> spronk: o/
10: [00:03:57] <zippy> only just lunch time and I think I am ready to finish for the week..
11: [00:04:48] * Stomach has joined #silverstripe
12: [00:05:18] <antmas> zippy: that's why you don't start Monday with a math problem
13: [00:05:19] <antmas> :D
14: [00:05:27] <zippy> :P
15: [00:07:09] <Kingy> not even midday yet :(
16: [00:07:54] * adrexia quit (Quit: Ex-Chat)
17: [00:08:06] * adrexia_ is now known as adrexia
18: [00:18:52] <irogue_> Cheddam: burgerfuel? :P
19: [00:19:07] * helenclarko has joined #silverstripe
20: [00:19:15] <helenclarko> o/
21: [00:20:59] <Stomach> hey helenclarko \o
22: [00:26:36] <helenclarko> Is the forum being DDOS'd or something?
23: [00:26:47] * glenn-bautista has joined #silverstripe
24: [00:30:37] <Cheddam> irogue_ have you already gone D:
25: [00:31:07] <Ryan-Toast> Best way to merge two datalists?
26: [00:34:32] * vanny has joined #silverstripe
27: [00:36:38] <vanny> Hi Guys, im having a dopey moment.
28: [00:37:45] <vanny> If I run DB::Query() and it could use different queriers, how can I get the column names
29: [00:51:34] <camfindlay> ss.org seems to be running hella-slow today. Have logged ticket with ss23
30: [00:52:05] <ss23> >ss23
31: [00:52:05] <ss23> PLS
32: [00:52:08] <ss23> brett is looking at it
33: [00:52:20] <ss23> It's probably Stojg doing testing again
34: [00:53:41] <adrexia> 'testing' == DDOS ?
35: [00:54:18] <ss23> He prefers to call it "testing how fast these files can be transfered from the server"
36: [00:54:54] <antmas> doesn't really sound testing :P
37: [00:55:01] <antmas> like*
38: [00:57:16] <adrexia> hahha
39: [00:57:38] <adrexia> DDOS is shorter
40: [00:59:04] <antmas> man, cannot wait for Wet Hot American Summer
41: [00:59:34] * glenn-bautista quit (Quit: Leaving.)
42: [01:01:08] <Kingy> you want summer antmas
43: [01:01:10] * adrexia_ has joined #silverstripe
44: [01:01:20] * adrexia_ quit (Client Quit)
45: [01:02:08] <antmas> Kingy: always :D
46: [01:02:15] <antmas> but that show looks amazing
47: [01:03:21] * zagoodwin quit (Ping timeout: 246 seconds)
48: [01:03:48] <vanny> It is hot Texas Summer here, actually, not as hot as usual
49: [01:04:58] * adrexia quit (Ping timeout: 272 seconds)
50: [01:09:18] * antmas quit (Ping timeout: 246 seconds)
51: [01:13:58] * veb has joined #silverstripe
52: [01:19:09] * glenn-bautista has joined #silverstripe
53: [01:19:17] * zippy quit (Quit: Textual IRC Client: www.textualapp.com)
54: [01:20:34] * Stomach quit (Quit: zzz)
55: [01:21:01] <DanaeNZ> SS Shop + omnipay + PxPay: anyone had issues with anything caching the returnURL?
56: [01:23:02] * helenclarko quit (Ping timeout: 246 seconds)
57: [01:25:47] * camfindlay quit (Quit: camfindlay)
58: [01:31:07] * Stomach has joined #silverstripe
59: [01:38:00] * ss-helper quit (Remote host closed the connection)
60: [01:38:00] * DanaeNZ quit (Quit: DanaeNZ)
61: [01:38:12] * ss-helper has joined #silverstripe
62: [01:41:12] * camfindlay has joined #silverstripe
63: [01:42:09] * antmas has joined #silverstripe
64: [01:47:31] * stecman quit (Quit: This computer has gone to sleep)
65: [01:50:20] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
66: [01:50:58] * stecman has joined #silverstripe
67: [01:51:13] * adrexia has joined #silverstripe
68: [01:56:32] <Ryan-Toast> Stomach: Did heyday bribe you to star every single one of his repos? :P
69: [01:56:44] <Stomach> Ryan-Toast - I helped build them
70: [01:57:09] <Ryan-Toast> Stomach: Shhh, Stevie. No lies here.
71: [01:57:23] <Stomach> https://github.com/heyday/heystack/graphs/contributors
72: [01:57:24] <Stomach> !
73: [01:57:25] <Stomach> hah
74: [01:58:14] <Ryan-Toast> Stomach: http://i.imgur.com/GA38N6w.png
75: [01:58:24] <Stomach> lol
76: [01:59:03] * UncleChe_ quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
77: [02:00:02] <Stomach> http://i.imgur.com/ttRi6r9.png
78: [02:00:30] <Ryan-Toast> lolololol
79: [02:00:40] <Ryan-Toast> +10
80: [02:00:43] <antmas> that sad little #4
81: [02:00:44] <Ryan-Toast> TAKE YOUR POINTS
82: [02:01:00] <Stomach> stecman - antmas is harrassing you online
83: [02:01:10] <Stomach> better take him to court under the new cyber bullying laws
84: [02:01:23] <Ryan-Toast> Get Pao involved.
85: [02:01:32] <irogue_> bahaha
86: [02:01:38] * DanaeNZ has joined #silverstripe
87: [02:02:10] * Tanger has joined #silverstripe
88: [02:02:16] <antmas> XD
89: [02:02:19] <Stomach> man reddit loves drama
90: [02:02:29] <Ryan-Toast> People like drama**
91: [02:02:30] <irogue_> today is a good day to be in the wellington office
92: [02:02:36] <antmas> reddit felt like it was 14 this last week
93: [02:02:37] <stecman> I suspect there will be consequences
94: [02:02:40] <antmas> so many people crying
95: [02:02:45] <irogue_> https://dl.dropboxusercontent.com/u/4618071/airnz.jpg
96: [02:09:51] <Stomach> hmm consequences
97: [02:09:55] <Stomach> and everything went quiet
98: [02:09:57] <Stomach> FANCY THAT
99: [02:11:44] <Ryan-Toast> Hmm?
100: [02:11:45] <antmas> :D
101: [02:20:25] <DanaeNZ> >>;
102: [02:20:53] * UncleCheese has joined #silverstripe
103: [02:36:40] * veb quit (Quit: veb-irc: &)
104: [02:46:25] <Ryan-Toast> Stomach: IMS looks good :)
105: [02:46:30] * veb has joined #silverstripe
106: [02:49:44] * gordon has joined #silverstripe
107: [02:49:48] * gordon is now known as nontgor
108: [02:53:05] <ss-helper> RFC-3: Client-side dependency management - https://groups.google.com/d/msg/silverstripe-dev/2sc3B31vrMg/5g4bqrft_pYJ
109: [02:57:08] <Stomach> Ryan-Toast - I hate everything we do now lol
110: [02:57:11] * vanny quit (Quit: Page closed)
111: [02:57:15] <Ryan-Toast> Stomach: lol.
112: [02:57:16] <Ryan-Toast> Why?
113: [02:57:24] <Stomach> cause it can always be better :\
114: [02:57:50] <Ryan-Toast> Everything can always be better.
115: [03:06:22] * adrexia quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
116: [03:11:53] <spronk> anyone read the rfc4?
117: [03:13:07] <antmas> 3 or 4 spronk ? looking at the one above
118: [03:13:14] <spronk> it says 3
119: [03:13:18] <spronk> but its now 4
120: [03:13:22] <spronk> but yes, the client side deps one
121: [03:13:22] <antmas> ah right
122: [03:13:35] <spronk> wondering whether there will be any repercussions for projects that already use npm for managing their own dependencies
123: [03:14:45] <antmas> yeah other than that potentially, it seems pretty good
124: [03:14:51] <antmas> +100 for cms load times
125: [03:15:50] <spronk> mm
126: [03:16:24] <antmas> would be nice to be able to at least see which ones (js) are out of date
127: [03:16:30] <antmas> then npm update
128: [03:16:31] <antmas> etc
129: [03:16:38] * Sticks has joined #silverstripe
130: [03:17:27] <antmas> ooooh what's this npm shrinkwrap
131: [03:18:01] <antmas> oh, locking
132: [03:18:02] <antmas> herp
133: [03:19:01] <antmas> spronk: what repercussions can you think of?
134: [03:19:12] <spronk> well
135: [03:19:18] <spronk> just management around updating your local deps
136: [03:19:22] <spronk> like
137: [03:19:27] <spronk> what if SS needs to lag behind for whatever reasons
138: [03:19:39] <spronk> or yknow
139: [03:19:45] <Hailwood> Hey guys, class KnowledgeBase extends Page { private static $allowed_children = ['KnowledgeBaseArticle']; } <- Why would it not be showing in the create page screen, I've done a dev/build?flush=all I've done a ?flush=all on /admin/pages/add so I'm stuck now
140: [03:19:46] <antmas> you mean it needs older dep versions?
141: [03:19:50] <spronk> what if you're depending on a client side version i.e. 3.0.2
142: [03:19:51] <spronk> but ss needs 2.0.x
143: [03:19:52] <spronk> or something
144: [03:20:21] <spronk> if SS CMS uses npm in the root dir it seems like that could become an issue
145: [03:20:54] <antmas> possibly, you'd have to be careful not to npm update al the things
146: [03:21:05] <spronk> yeah thats sorta what i'm getting at
147: [03:21:48] <antmas> could you not shrinkwrap the ones you don't want updated?
148: [03:21:57] <antmas> or is that not how that works?
149: [03:22:30] <antmas> idk
150: [03:25:31] <antmas> gotta run folks, good evening o/
151: [03:25:43] <spronk> hmm
152: [03:25:44] <spronk> im not sure
153: [03:25:56] <spronk> i've only ever used shrinkwrap in the context of package.json as a whole
154: [03:26:01] <antmas> mm
155: [03:26:04] <spronk> dno if you can do it for certain deps only... anyone else got any idea?
156: [03:26:11] <antmas> pretty sure there is a way
157: [03:26:11] * helenclarko has joined #silverstripe
158: [03:26:18] * antmas quit (Quit: Page closed)
159: [03:26:43] <Hailwood> Never mind, the dev/build didn't finish - I wish ss made it more obvious - say a red header - if it failed
160: [03:29:34] <irogue_> yeah, tho it'd probably have to go the other way
161: [03:29:43] <irogue_> i.e. start red, go green once success
162: [03:30:01] <irogue_> cos there are some fatal errors that can't be caught so there'd be no way to actively change anything once the error occurred
163: [03:36:47] <simon_w> All errors can be caught!
164: [03:37:17] <simon_w> hhvm.error_handling.call_user_handler_on_fatals=1
165: [03:42:55] <Stomach> so - I imagine that the package.json would be in the cms/ and framework/ folders
166: [03:43:35] <Stomach> but going down a builder path means Requirements is now redundant
167: [03:43:37] <Stomach> which is great
168: [03:43:39] <Stomach> and bad
169: [03:43:42] <Stomach> but mostly great
170: [03:43:47] * adrexia has joined #silverstripe
171: [03:45:31] <Hailwood> irogue_, That's a good point. Include some JS at the bottom of the dev/build that changed the styles to green/default blue
172: [03:46:10] <irogue_> yep
173: [03:48:18] * UncleChe_ has joined #silverstripe
174: [03:48:43] <Hailwood> Hmm, anyone have a good solution for finding pages - specifically Page -> {Many_Many} -> Tag (Tags {Many_Many} Page). I have an array of possible tag titles. I want to get all pages that are tagged with at least one of the tag titles, ordered by the number of matches that page has (so if the page is tagged with 4/5 of the tag titles in the array then it should be ordered first)
175: [03:48:50] <Hailwood> Any quick solutions?
176: [03:50:31] <irogue_> heh, yet another Samsung washing machine trying to burn down a house http://www.nzherald.co.nz/nz/news/article.cfm?c_id=1&objectid=11476543
177: [03:55:50] <spronk> damn koreans
178: [03:57:50] <irogue_> fourth house fire in NZ i've heard about now caused by one of those samsung washing machines
179: [03:57:58] <spronk> shiet..
180: [03:58:43] <simon_w> They've been recalled by Samsung
181: [03:58:59] <Hailwood> Ok, so I've worked out the SQL I need to get the page IDs and in the correct order. So is anyone able to help me translate this raw SQL into SS speak so I end up with a DataList of KnowledgeBaseArticles? https://gist.github.com/hailwood/17817d1fb1d144303358
182: [04:00:03] <Stomach> DB::query("LOL")
183: [04:00:21] <spronk> hmm
184: [04:00:26] <spronk> product recalls could be handled much better
185: [04:00:31] * spronk thinks there should be an app for that.
186: [04:02:42] <irogue_> simon_w: yeah, of course. still a bit shit though cos recalls generally aren't done very well.
187: [04:02:48] <irogue_> if you don't read the newspaper, you probably won't know about it
188: [04:03:30] <irogue_> occasionally companies go above and beyond for the sake of their reputation, but most of the time they put an ad in the herald and go "job done"
189: [04:13:45] * vanny has joined #silverstripe
190: [04:21:18] * glenn-bautista quit (Quit: Leaving.)
191: [04:26:25] * simon_w quit (Ping timeout: 256 seconds)
192: [04:27:59] * simon_w has joined #silverstripe
193: [04:28:20] <vanny> howdy
194: [04:28:23] <adrexia> YES! https://github.com/silverstripe/silverstripe-framework/issues/4372
195: [04:29:53] <Stomach> adrexia - thought you might like that one
196: [04:29:55] <Stomach> :D
197: [04:30:05] <Stomach> doesn't go far enough though.
198: [04:30:10] <adrexia> Been talking about it for a while, but haven't done anythign about it
199: [04:30:38] <adrexia> Stomach do you watch the stuff that comes through framework or something?
200: [04:30:45] <adrexia> :D
201: [04:30:57] <Stomach> I watch too much shit :D
202: [04:31:03] <adrexia> I wouldn't have had the guts to suggest putting it in root
203: [04:31:15] <adrexia> but that would be the nicest place for it
204: [04:31:18] <spronk> ?
205: [04:31:28] <spronk> root?
206: [04:31:45] <adrexia> outside cms and framework
207: [04:31:55] <spronk> oh
208: [04:31:57] <spronk> i dno
209: [04:32:06] <spronk> if SS could keep up with the times, sure
210: [04:32:20] <adrexia> yeah
211: [04:32:20] <spronk> but shrinkwrap will cause issues with forward thinking projects
212: [04:37:39] <adrexia> My guess is that if you put something like that it will get update precisely because people need to use it for up to date things
213: [04:37:44] <adrexia> *updated
214: [04:40:22] <irogue_> adrexia: its nice having david craig and scott both 100% on framework/cms UX/frontend stuff now. shit is happening.
215: [04:43:18] <spronk> adrexia yeah, maybe
216: [04:43:24] <spronk> chicken and egg a bit though
217: [04:52:29] * glenn-bautista has joined #silverstripe
218: [05:02:38] <adrexia> yeah, it is
219: [05:02:54] <adrexia> it really really needs it
220: [05:06:57] * helenclarko quit (Ping timeout: 246 seconds)
221: [05:14:14] * Vedran__ has joined #silverstripe
222: [05:14:34] <Vedran__> Hi there, I have gone from local dev to staging and I am getting a error: Fatal error: Invalid opcode 153/1/8. in .../framework/main.php on line 117
223: [05:15:25] <Stomach> you have an opcode cache running which isn't compatible with your php version
224: [05:15:29] <Stomach> likely APC
225: [05:15:30] * Hailwood quit (Quit: Leaving)
226: [05:15:36] <adrexia> Things I don't want to find in a php file " * The pagination is quite configurable, but at the same time gives a consistent
227: [05:15:36] <adrexia> * look and feel to all pagination."
228: [05:15:44] <adrexia> not your job php, go home
229: [05:15:48] <Stomach> but more likely eAccelerator or something
230: [05:17:03] * Stomach quit (Quit: zzz)
231: [05:18:41] <Vedran__> thanks simon_w
232: [05:18:43] <Vedran__> eek
233: [05:18:51] * vanny quit (Ping timeout: 246 seconds)
234: [05:19:01] <Vedran__> *thanks Stomach who is no longer here :/
235: [05:22:29] * DanaeNZ quit (Quit: DanaeNZ)
236: [05:27:11] * sneha has joined #silverstripe
237: [05:27:53] * irogue_ quit (Quit: Textual IRC Client: www.textualapp.com)
238: [05:28:48] * vanny has joined #silverstripe
239: [05:28:52] * Ryan-Toast quit (Quit: Ryan-Toast)
240: [05:34:55] <sneha> Hello
241: [05:36:41] * veb quit (Quit: veb-irc: &)
242: [05:39:25] <sneha> In swipestripe module - How can we add an input field for product variation. I have Greeting Cards product in which user can provide a customized message to print it in card during Add To Cart process. I've added the field in the Cart form by updateFields() function. but where it'll be stored and how to display that in Order information?
243: [05:39:43] * UncleChe_ quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
244: [05:42:10] <sneha> sorry I meant in Product Form not Cart Form.
245: [05:43:57] * adrexia quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
246: [05:44:35] * micmania1 quit (Quit: micmania1)
247: [05:47:35] * simon_w quit (Quit: Ping timeout: your mum)
248: [05:49:21] * stecman quit (Quit: This computer has gone to sleep)
249: [05:49:37] * stecman has joined #silverstripe
250: [06:02:39] * glenn-bautista quit (Quit: Leaving.)
251: [06:03:13] * camfindlay quit (Quit: camfindlay)
252: [06:11:10] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
253: [06:17:23] * r_hector has joined #silverstripe
254: [06:19:40] * stecman quit (Quit: This computer has gone to sleep)
255: [06:21:03] * ss-helper quit (Ping timeout: 244 seconds)
256: [06:22:40] * adrexia has joined #silverstripe
257: [06:23:28] * ss-helper has joined #silverstripe
258: [06:24:58] * Tanger quit (Read error: Connection reset by peer)
259: [06:25:53] * Tanger has joined #silverstripe
260: [06:27:20] * spronk quit (Quit: I may need a longer sleep timer...)
261: [06:37:54] * darjus01 has joined #silverstripe
262: [06:38:07] <darjus01> morning
263: [06:42:08] <darjus01> then making dropdown in object to link with custom page, is it better to make relationship with Page or SiteTree?
264: [06:44:05] * Hailwood has joined #silverstripe
265: [07:04:27] * swaiba has joined #silverstripe
266: [07:06:55] * veb has joined #silverstripe
267: [07:22:45] * Stomach has joined #silverstripe
268: [07:31:40] * Stomach quit (Quit: zzz)
269: [07:32:46] * vanny quit (Quit: Page closed)
270: [07:35:32] * micmania1 has joined #silverstripe
271: [07:36:03] * Vedran__ quit ()
272: [07:37:12] * simon_w has joined #silverstripe
273: [07:37:23] * Shrike_Finland has joined #silverstripe
274: [07:42:15] * Cheddam quit (Quit: My Mac has gone to sleep. ZZZzzz…)
275: [07:58:16] * micmania1 quit (Ping timeout: 246 seconds)
276: [07:59:53] * GioVdK has joined #silverstripe
277: [08:03:58] * Sticks quit (Quit: Leaving)
278: [08:04:47] * Sticks has joined #silverstripe
279: [08:05:26] * kinglozzer has joined #silverstripe
280: [08:08:41] * Sticks quit (Client Quit)
281: [08:14:43] * micmania1 has joined #silverstripe
282: [08:14:47] * micmania1 has left #silverstripe
283: [08:16:35] * arnhoe has joined #silverstripe
284: [08:18:34] * aditya_ has joined #silverstripe
285: [08:19:42] <aditya_> http://www.sspaste.com/paste/show/559a3a153dc9f
286: [08:20:20] <aditya_> i have this hard coded html but i want to loop through photos from my slider dataobject class how?
287: [08:23:15] <adrexia> is your slider object attached to your page?
288: [08:23:27] <adrexia> (has_one etc ?)
289: [08:23:50] * adrexia if so, you should be able to do to something like this: https://github.com/adrexia/silverstripe-gumby/blob/master/templates/Includes/Slider.ss
290: [08:26:46] <adrexia> so... <% loop Slides %> $Title etc<% end_loop %>
291: [08:27:08] <adrexia> or <% with Slider %><% loop Slides %> $Title etc<% end_loop %> <% end_with %>
292: [08:27:37] <adrexia> depending on whetehr your page has a has_many to S:ides, or a has_one to a slider that has_many Slides
293: [08:29:17] * spronk has joined #silverstripe
294: [08:40:27] * Shrike_Finland quit (Quit: Leaving.)
295: [08:53:19] <ss-helper> SilverStripe form pagination - http://stackoverflow.com/questions/31241338/silverstripe-form-pagination
296: [08:56:16] * r_hector quit (Remote host closed the connection)
297: [09:04:06] * bemusedrat has joined #silverstripe
298: [09:11:00] * arnhoe_ has joined #silverstripe
299: [09:13:18] * arnhoe quit (Read error: Connection reset by peer)
300: [09:13:50] * arnhoe has joined #silverstripe
301: [09:14:48] * arnhoe__ has joined #silverstripe
302: [09:17:54] * arnhoe_ quit (Ping timeout: 276 seconds)
303: [09:18:04] * arnhoe quit (Ping timeout: 250 seconds)
304: [09:24:19] * UncleCheese has joined #silverstripe
305: [09:38:01] * aditya_ quit (Quit: Page closed)
306: [09:40:45] * Stomach has joined #silverstripe
307: [09:42:32] * Audlex has joined #silverstripe
308: [09:42:51] * Audio quit (Ping timeout: 255 seconds)
309: [09:47:59] * nontgor quit (Ping timeout: 265 seconds)
310: [09:52:49] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
311: [10:00:36] * nontgor has joined #silverstripe
312: [10:02:28] * Stomach quit (Quit: zzz)
313: [10:06:50] * Stomach has joined #silverstripe
314: [10:10:40] * zlinux has joined #silverstripe
315: [10:11:17] * guci0 has joined #silverstripe
316: [10:11:19] <guci0> Hello Moto!
317: [10:15:10] * zlinux quit (Ping timeout: 248 seconds)
318: [10:20:22] * marvanni has joined #silverstripe
319: [10:21:15] * cloph has joined #silverstripe
320: [10:21:54] * Stomach quit (Quit: zzz)
321: [10:22:15] * cloph_away quit (Ping timeout: 276 seconds)
322: [10:27:51] <marvanni> Something I don’t understand… I use setTemplate on a FormField subclass, that is theme specific. First thing that comes to mind, is putting the MyCustomTemplate.ss in theme/mytheme/templates/forms
323: [10:28:36] <marvanni> wont work.. then I try to put the template in Includes, like framework also has tome formfield templates stored.
324: [10:28:43] <marvanni> wont work either.
325: [10:29:13] <marvanni> only when I put the template in themes/mytheme/templates/ the template gets picked up…
326: [10:30:02] <marvanni> And thats a weird place to put FormTemplates, if you ask me.. Apart from the fact if I should store FormTemplates in my theme…
327: [10:32:10] <marvanni> see also this one http://stackoverflow.com/questions/23142265/cant-get-my-custom-template-to-work-with-my-custom-subclass
328: [10:32:18] * veb quit (Quit: veb-irc: &)
329: [10:34:41] <sneha> In swipestripe module - How can we use an input field for product variation? I have Greeting Cards product in which user can provide a customized message, to print it in card, during Add To Cart process. I've added the field in the Product form by updateFields() function. but where it'll be stored and how to display that in Order information?
330: [10:53:40] * ss-helper quit (Remote host closed the connection)
331: [10:53:57] * ss-helper has joined #silverstripe
332: [11:15:07] <adrexia> marvanni - I have experienced all sorts of odd behaviour with forms.
333: [11:15:37] <marvanni> I have commented on an existing issue on github : https://github.com/silverstripe/silverstripe-framework/issues/3051
334: [11:16:01] <adrexia> however, if you just want to override an exiting form field you can put it in theme/forms/ without using render with
335: [11:16:12] <adrexia> *exisiting
336: [11:16:36] <adrexia> well, that wasn't quite it either, I give up
337: [11:16:54] * SH__ has joined #silverstripe
338: [11:16:59] <marvanni> yes, but I don’t want form templates in themes/mytheme/templates root folder
339: [11:17:29] <SH__> I just found out that you can set FormAction class to output button tags instead of input tags. Awesoooome
340: [11:18:21] <adrexia> I yeah, I know - I mean you should be able to not use renderwith and put it in /mytheme/templates/forms
341: [11:19:07] <adrexia> that issue you commented on I suspect it because they aren't overriding public function FieldHolder
342: [11:19:30] <kinglozzer> marvanni: I've done similar recently TextField::create('Name', 'Name')->setTemplate('ContactForm_TextField'); with the template in /themes/mytheme/templates/forms and it seems to work
343: [11:19:38] <kinglozzer> The problem I had was with the holders
344: [11:19:48] <kinglozzer> The holder has to be one level up :/
345: [11:20:01] <adrexia> yeah. and top level form templates seem to need to be in templates/
346: [11:20:08] <adrexia> which is a bit annoying
347: [11:20:26] <adrexia> they behave a bit like pages do
348: [11:20:58] * UncleCheese has joined #silverstripe
349: [11:21:36] <marvanni> kinglozer, i did the same, but it doesn’t work :)
350: [11:22:32] <adrexia> what form field are you subclassing?
351: [11:22:35] <darjus01> how to put language chooser in dataobject grid view, like in sitetree? I am using ransalateble module
352: [11:22:39] <ec8or> how long has SilverStripe Platform been up?
353: [11:23:38] * zlinux has joined #silverstripe
354: [11:24:10] <ec8or> sounds like a nice way of offloading hosting... got a fairly big project coming up I want to use SilverStripe for
355: [11:24:11] <marvanni> im not subclassing, CheckboxSetField::create('Specialisations', '', $myList)->setTemplate('ThemeSpecificCheckboxSetField');
356: [11:25:02] <adrexia> actually... from memory it was a bit weird. The form field was found fine with a custom Form template but not at all with the standard Form.ss
357: [11:25:19] <adrexia> you'd expect them to at least have the same result
358: [11:26:59] <adrexia> do you need the setTemplate?
359: [11:27:23] <adrexia> are you using it across themes?
360: [11:28:26] <adrexia> or maybe not for all Checkboxes?
361: [11:32:00] <marvanni> Just one CheckBoxSetField that is different for that specific template in one form.. All others need to be rendeded with the default templates. for now I stick it in the root folder. its ugly, but not a showstopper..
362: [11:32:24] * adrexia nods
363: [11:33:55] <adrexia> hmm, I just tried it and it worked too
364: [11:33:57] <adrexia> :-/
365: [11:34:10] <adrexia> in templates/forms/ThemeSpecificCheckboxSetField.ss
366: [11:34:46] <marvanni> which ss version?
367: [11:34:55] <adrexia> 3.1. lemme check
368: [11:35:10] <adrexia> ...dev
369: [11:35:18] <adrexia> so latest 3.1 I guess
370: [11:35:41] <adrexia> not much here though. one theme, not custom form templates
371: [11:35:52] <adrexia> *no custom form templates
372: [11:36:14] <adrexia> and no other theme based form templates
373: [11:36:31] <adrexia> *form field
374: [11:36:57] <marvanni> ehm… there might be a difference, I think of now… I use Config::inst()->update('SSViewer', 'theme', $theme); in Page::init() … that might be an edge case…
375: [11:38:13] <marvanni> im on 3.1.12 atm….
376: [11:38:33] <adrexia> yeah, maybe try it without that and see what happens?
377: [11:42:04] <SH__> Hey has anyone had the issue where they write $debug in templates, and see all the fields, but when writing a field ($Title), they dont appear=?
378: [11:42:09] <marvanni> hm, no difference…
379: [11:43:34] * Shrike_Finland has joined #silverstripe
380: [11:45:16] <marvanni> nvm, ik will check it out later on.. for now its ok…
381: [11:45:42] <adrexia> kinglozzer it looks like chosen isn't on npm at all: https://github.com/harvesthq/chosen/issues/1433
382: [11:46:01] <adrexia> though adding things is pretty easy, from memeory
383: [11:47:00] * lerni_ has joined #silverstripe
384: [11:47:21] <adrexia> or, alternatively, there are like a million unofficial versions of it there https://www.npmjs.com/search?q=chosen
385: [11:47:36] <adrexia> or like 700ish
386: [11:49:04] <adrexia> we'd probably have to plus 1 the thread, make out own npm, and wait
387: [11:49:18] <adrexia> *on npm
388: [11:50:08] <adrexia> https://www.npmjs.com/package/chosen-jquery-browserify seems the most likely of the current npm'ed chosen's
389: [11:54:51] * Hailwood quit (Remote host closed the connection)
390: [12:09:24] * SH__ quit (Ping timeout: 246 seconds)
391: [12:11:30] * sneha quit (Ping timeout: 246 seconds)
392: [12:14:56] * sneha has joined #silverstripe
393: [12:15:57] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
394: [12:16:05] * sneha has left #silverstripe
395: [12:20:10] * sneha has joined #silverstripe
396: [12:21:39] * guci0 quit (Ping timeout: 246 seconds)
397: [12:28:32] * UndefinedOffset has joined #silverstripe
398: [12:33:20] * benjhocking1 has joined #silverstripe
399: [12:35:35] * benjhocking quit (Ping timeout: 252 seconds)
400: [12:49:03] <kinglozzer> adrexia: Ah cool. Yeah I dunno if we'd roll our own... we have no guarantee that the others will continue to be updated
401: [12:49:12] <kinglozzer> Though I guess it's easy enough to swap out if not
402: [12:56:06] <marvanni> Any Nice idea to have a SomePage_Controller action always render thru index() ?
403: [13:02:11] <marvanni> ah, just this as $url_handlers seems to work… '$Action//$ID/$OtherID' => 'handleIndex',
404: [13:04:31] <marvanni> hmx..
405: [13:04:53] <swaiba> if you are still there ec8or I can say that platform is only within last few months
406: [13:05:17] <swaiba> I'm signed up and starting to use it and can tell it is brand new :)
407: [13:14:34] * adrexia quit (Quit: Textual IRC Client: www.textualapp.com)
408: [13:24:49] * keroberos quit (Ping timeout: 246 seconds)
409: [13:27:17] * bemusedrat quit (Quit: Leaving)
410: [13:37:32] * spronk quit (Quit: I may need a longer sleep timer...)
411: [13:38:31] * keroberos has joined #silverstripe
412: [13:38:47] * zlinux_ has joined #silverstripe
413: [13:39:30] * zlinux quit (Ping timeout: 265 seconds)
414: [13:40:08] * spronk has joined #silverstripe
415: [13:40:35] <ec8or> swaiba: cool
416: [13:45:03] * zlinux has joined #silverstripe
417: [13:45:18] * zlinux_ quit (Ping timeout: 248 seconds)
418: [13:47:43] * spronk quit (Quit: I may need a longer sleep timer...)
419: [13:53:31] * Webdoc has joined #silverstripe
420: [13:53:38] <Webdoc> Hi
421: [13:54:08] <Webdoc> Is there a easy code if i wanna control dataobject id number lets say 15
422: [13:54:35] <marvanni> if ($do->ID == 15)
423: [13:54:58] <Webdoc> in template code?
424: [13:55:05] <kinglozzer> <% if $ID = 15 %>
425: [13:55:22] <Webdoc> yes tihis is if this i know
426: [13:55:30] <Webdoc> this i mean
427: [13:55:42] * zlinux_ has joined #silverstripe
428: [13:55:47] <Webdoc> <% if $ID = 15 %> it means if is thsi id
429: [13:55:53] <Webdoc> but i need to control
430: [13:56:04] <Webdoc> not ask if it as id 15
431: [13:56:05] * zlinux quit (Ping timeout: 252 seconds)
432: [13:56:10] <kinglozzer> Webdoc: I assume you mean <% with %> ?
433: [13:56:20] <Webdoc> with works in 2.4
434: [13:56:21] <Webdoc> ?
435: [13:56:35] <kinglozzer> Ah, no
436: [13:56:41] <kinglozzer> So probably <% control List.Filter('ID', 15) %> {$Title}... etc <% end_control %>
437: [13:56:46] <kinglozzer> ?
438: [13:57:08] <Webdoc> i have dataobject in dataobject manager i need to control childern dataobjects of dataobject id 15
439: [13:58:14] <kinglozzer> Webdoc: You can't just get "DataObject" 15, there could be many different classes of DataObject that have an ID of 15
440: [13:58:29] <kinglozzer> You need to get a list of all the objects that you're managing, then filter down to the one you want
441: [13:58:36] <kinglozzer> It will be much easier to do that in your controller
442: [13:58:57] <Webdoc> My dataobject is Named product and i have productvariatins as dataobject
443: [13:59:35] <Webdoc> the product dataobject id 15 productvariations is what i wanna show if there is any variations added
444: [13:59:48] <Webdoc> so i added the if productvarintion else endif
445: [14:00:25] <Webdoc> it all works just need to know how i can control the product id 15 do show its variations
446: [14:05:24] * sneha quit (Quit: Page closed)
447: [14:07:34] * zlinux has joined #silverstripe
448: [14:08:27] * zlinux_ quit (Ping timeout: 276 seconds)
449: [14:13:17] * Shrike_Finland quit (Quit: Leaving.)
450: [14:14:18] * zlinux_ has joined #silverstripe
451: [14:14:48] * zlinux quit (Ping timeout: 264 seconds)
452: [14:20:31] * zlinux_ quit (Ping timeout: 244 seconds)
453: [14:20:41] * zlinux has joined #silverstripe
454: [14:25:01] * zlinux quit (Ping timeout: 246 seconds)
455: [14:27:34] * catcher has joined #silverstripe
456: [14:28:17] * zlinux has joined #silverstripe
457: [14:38:23] * zlinux_ has joined #silverstripe
458: [14:38:36] * zlinux quit (Ping timeout: 244 seconds)
459: [14:53:56] * ss-helper quit (Remote host closed the connection)
460: [14:54:10] * ss-helper has joined #silverstripe
461: [14:55:38] * Webdoc quit (Quit: Page closed)
462: [15:29:04] * arnhoe__ quit ()
463: [15:38:38] * zlinux has joined #silverstripe
464: [15:39:13] * zlinux_ quit (Ping timeout: 246 seconds)
465: [15:52:27] * lerni_ quit (Remote host closed the connection)
466: [16:09:41] * swaiba quit (Remote host closed the connection)
467: [16:10:29] * _hschillig has joined #silverstripe
468: [16:12:23] <_hschillig> Hey is there anyway to nest a template inside of a template? I'm building a single-page website. And I'm looping through Menu(1) to list all the pages as sections on the homepage. But some sections have their own page template.. So there are files listed under my Layout folder.. I'm not sure on how to include these in the loop. Right now I have this as my Homepage template: http://pastebin.com/2ugEVZqd
469: [16:12:23] <_hschillig> The homepage is using the Homepage template type.. the first item I'm working on is About.. which has it's own page type as well. Any guidance would be very appreciated!
470: [16:21:20] <kinglozzer> _hschillig: I've done this before - I created my own method to render the contents of $Layout
471: [16:21:21] <kinglozzer> sec
472: [16:22:45] <kinglozzer> _hschillig: https://gist.github.com/kinglozzer/1929c854e33a0fb92ab5
473: [16:25:24] <kinglozzer> _hschillig: That's what I used for http://www.huntleyspence.co.uk/
474: [16:28:08] <_hschillig> Ah thank you! :)
475: [16:31:06] * kinglozzer home time
476: [16:31:08] <kinglozzer> ciao!
477: [16:31:08] * kinglozzer quit ()
478: [16:50:43] * SphereSilver quit (*.net *.split)
479: [16:50:59] * SphereSilver has joined #silverstripe
480: [16:51:22] * darjus01 quit (Quit: Leaving)
481: [17:21:41] * SphereSilver quit (Quit: Bye now!)
482: [17:21:59] * UndefinedOffset quit (Quit: Leaving.)
483: [17:32:24] * UndefinedOffset has joined #silverstripe
484: [17:36:04] * GioVdK quit (Ping timeout: 246 seconds)
485: [17:57:00] * lerni_ has joined #silverstripe
486: [18:01:58] * UndefinedOffset quit (Quit: Leaving.)
487: [18:09:13] * UndefinedOffset has joined #silverstripe
488: [18:10:26] * lerni_ quit (Remote host closed the connection)
489: [18:14:39] * _hschillig quit (Quit: Leaving.)
490: [18:28:30] * lerni_ has joined #silverstripe
491: [18:39:43] * UndefinedOffset quit (Quit: Leaving.)
492: [18:40:39] * UndefinedOffset has joined #silverstripe
493: [18:56:13] * lerni_ quit (Remote host closed the connection)
494: [19:00:20] * Stomach has joined #silverstripe
495: [19:01:19] * SphereSilver has joined #silverstripe
496: [19:04:01] <SphereSilver> Is there a way to add a field to EVERY dataobject?
497: [19:07:58] <Stomach> extension
498: [19:08:11] <Stomach> put it on DataObject
499: [19:08:13] <SphereSilver> I thought so, but no :(
500: [19:08:18] <Stomach> oh dang
501: [19:08:19] <Stomach> :D
502: [19:08:20] <SphereSilver> It's not picking up the statics
503: [19:08:28] <SphereSilver> Fields are not created :|
504: [19:08:34] <Stomach> SomeClass extends MySpecialDataObject
505: [19:08:35] <Stomach> ?
506: [19:08:48] <Stomach> probably the only way :(
507: [19:08:54] <SphereSilver> Hmmm, too much work for frikkin' 40 DO's
508: [19:12:19] <SphereSilver> Wait.... I have an IDE to do that for me!
509: [19:15:20] <SphereSilver> Hmmm, ExtendedDataObject doesn't create my tables either.
510: [19:19:15] * UndefinedOffset quit (Quit: Leaving.)
511: [19:27:48] * benjhocking1 quit (Read error: Connection reset by peer)
512: [19:27:58] * UndefinedOffset has joined #silverstripe
513: [19:30:14] <SphereSilver> I'm afraid my wish won't come true. That quite bigtime sucks.
514: [19:32:39] * lerni_ has joined #silverstripe
515: [19:32:48] <SphereSilver> Really nobody? :'(
516: [19:32:48] * Stomach quit (Quit: zzz)
517: [19:33:00] <SphereSilver> Awww, come on, it shouldn't be that hard to accomplish! :'(
518: [19:36:46] * ss-helper quit (Ping timeout: 248 seconds)
519: [19:37:28] * gelignite has joined #silverstripe
520: [19:40:25] * ss-helper has joined #silverstripe
521: [19:45:28] * lerni_ quit (Remote host closed the connection)
522: [19:55:59] * lerni_ has joined #silverstripe
523: [19:58:09] <zlinux> SphereSilver: which version of SilverStripe?
524: [19:58:19] <SphereSilver> tlatest stable
525: [20:13:01] * UndefinedOffset quit (Quit: Leaving.)
526: [20:30:30] * veb has joined #silverstripe
527: [20:33:40] * Stomach has joined #silverstripe
528: [20:37:07] * vanny has joined #silverstripe
529: [20:39:16] <vanny> Hi all.
530: [20:39:41] <vanny> is there a way to loop through all the items of an array object and get the column headers
531: [20:40:28] * helenclarko has joined #silverstripe
532: [20:42:48] <vanny> for example, if I return an array, and it may contain different details, I want to get all the column names, and then get all the information
533: [20:44:25] <Stomach> SphereSilver - they wont create the data tables for each object
534: [20:44:41] * Stomach there will just be an ExtendedDataobject table where the data is stored
535: [20:45:18] <SphereSilver> Yeah, that breaks it, because the objects aren't in that DB, plus they have conflicting ID's because they already exist at the moment
536: [20:45:33] <SphereSilver> So I'd probably have to make some intermediate.
537: [20:45:41] <helenclarko> o/
538: [20:47:35] * lerni_ quit (Remote host closed the connection)
539: [20:48:53] * Stomach_ has joined #silverstripe
540: [20:50:44] * Stomach_ quit (Client Quit)
541: [20:51:20] * Stomach_ has joined #silverstripe
542: [20:51:23] * Stomach quit (Ping timeout: 264 seconds)
543: [20:54:50] * DanaeNZ has joined #silverstripe
544: [20:58:58] * stecman has joined #silverstripe
545: [21:03:05] * veb quit (Quit: veb-irc: &)
546: [21:05:27] * veb has joined #silverstripe
547: [21:06:49] * Ryan-Toast has joined #silverstripe
548: [21:09:29] * glenn-bautista has joined #silverstripe
549: [21:11:14] * Azure has joined #silverstripe
550: [21:18:30] <SphereSilver> I don't want an intermediate object. It's only an extra layer.
551: [21:18:38] * SphereSilver starts looking for a working workaround
552: [21:18:55] <SphereSilver> Besides hacking into the core ofcourse.
553: [21:23:03] * micmania1 has joined #silverstripe
554: [21:26:35] * Ryan-Toast quit (Quit: Ryan-Toast)
555: [21:28:18] * Stomach_ quit (Quit: zzz)
556: [21:30:26] * veb quit (Quit: veb-irc: &)
557: [21:35:24] * Cheddam has joined #silverstripe
558: [21:37:56] * veb has joined #silverstripe
559: [21:38:21] * zlinux quit (Ping timeout: 255 seconds)
560: [21:38:48] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
561: [21:40:18] * adrexia has joined #silverstripe
562: [21:43:27] <Kingy> morning
563: [21:44:27] * UncleCheese has joined #silverstripe
564: [21:56:05] * veb quit (Quit: veb-irc: &)
565: [21:57:01] * Ryan-Toast has joined #silverstripe
566: [22:01:47] * irogue has joined #silverstripe
567: [22:03:19] * Stomach has joined #silverstripe
568: [22:03:43] <irogue> hey DanaeNZ, oh master of YAML
569: [22:03:50] * DanaeNZ starts
570: [22:03:54] <DanaeNZ> WHowaht?
571: [22:04:07] * veb has joined #silverstripe
572: [22:05:22] <irogue> Wondering if you can give me any advice on grabbing a value out of a yaml config. Specifically I want to grab the values ('cache' and 'html') out of this line https://github.com/silverstripe-labs/silverstripe-staticpublishqueue/blob/1.1/_config/staticpublishqueue.yml#L8
573: [22:05:47] <DanaeNZ> You wanna access those in the Extension?
574: [22:06:22] <irogue> I want to access those in an entirely seperate class - something that isn't related to SiteTree or FilesystemPublisher
575: [22:06:40] * PenguinMan98 has joined #silverstripe
576: [22:06:58] <irogue> so I'll need to do so through the Config system, not just by accessing the relevant private static
577: [22:07:51] <PenguinMan98> Do I really need to build an ArrayList of ArrayData of the form "i => 1, i=>2, i=>3." in my php and pass that to the .ss template to loop 3 times?
578: [22:08:08] <irogue> unfortunately in this (old) version of staticpublisher there's no statics methods or anything for grabbing those details
579: [22:08:47] * micmania1 quit (Quit: micmania1)
580: [22:09:06] * micmania1 has joined #silverstripe
581: [22:11:39] <DanaeNZ> irogue : I vaguely recall you can just willy nilly chuck values in yaml
582: [22:11:41] <DanaeNZ> http://sspaste.com/paste/show/559afc431d844
583: [22:11:52] <DanaeNZ> Would something like this work? Not 100% sure what you’re going for
584: [22:12:06] <DanaeNZ> Then you’d just use your usual method to get the “somevar” array
585: [22:12:36] <irogue> don't really wanna hack core though :/
586: [22:13:23] <DanaeNZ> Oh, looking again at the original
587: [22:14:03] <DanaeNZ> Hmmm
588: [22:14:19] <irogue> https://github.com/silverstripe/silverstripe-cms/blob/3.0/code/staticpublisher/FilesystemPublisher.php#L20-28
589: [22:15:04] <DanaeNZ> right that makes more sense
590: [22:15:18] <PenguinMan98> I mean.. it works, sure. but it feels like I'm doing something wrong
591: [22:15:21] <irogue> the issue is that they aren't accessible and are being set by the constructor
592: [22:16:00] <irogue> but my build task needs to know where to find the cache files as it is doing a RecursiveDirectoryIterator over them
593: [22:16:23] <irogue> for reference, I'm fixing https://github.com/silverstripe-labs/silverstripe-staticpublishqueue/issues/27
594: [22:16:48] <DanaeNZ> One option: do a weird hacky thing in your PHP where you get the literal string value of that extensions array, and extract the values between those parantheses
595: [22:17:03] <DanaeNZ> which I’m sure in the config manifest it exists
596: [22:18:27] <adrexia> PenguinMan98 are you looping nothing? Just want 3 iterations of the same html?
597: [22:18:37] <DanaeNZ> yeah, the manifest does something similar: framework/core/manifest/ClassManifest.php:391
598: [22:19:05] <DanaeNZ> eh maybe not in that spot
599: [22:19:44] <DanaeNZ> that’s what I’d do anyway. It would for sure get you the right values without having to hack up the protected properties
600: [22:20:00] <irogue> yep, thats probably what I'll do
601: [22:21:51] <PenguinMan98> adrexia: Almost. I do want to print the loop index 0, 1, 2 on the successive lines
602: [22:22:15] <adrexia> Hmm... weirdly I've never needed to do taht before
603: [22:22:43] <adrexia> $Pos would do a similar thing to the index there
604: [22:23:21] <adrexia> I might no it manually. and create an include if I was worried about code repetition
605: [22:23:26] <adrexia> *do it
606: [22:23:31] <DanaeNZ> Yeah, check out the looping docs http://docs.silverstripe.org/en/3.2/developer_guides/templates/syntax#looping-over-lists
607: [22:23:38] <PenguinMan98> But how to tell the .ss to loop just 3 times?
608: [22:24:03] <PenguinMan98> in php this is ridiculously easy.
609: [22:24:12] <PenguinMan98> But it seems in .ss this is arduous
610: [22:24:13] <adrexia> yeah
611: [22:24:28] <adrexia> loop's are thought of as a way to loop datasets I suppose
612: [22:24:36] * simon_w|air has joined #silverstripe
613: [22:24:40] <adrexia> I mean
614: [22:25:06] * Hailwood has joined #silverstripe
615: [22:25:08] <adrexia> you could loop a entirely useless dataset you have soemwhere else, limit to 3, and you're done
616: [22:25:14] <adrexia> but that's a total hack
617: [22:25:17] <irogue> you could easily enough create a generic method that you specify the number of times to, and it just creates an ArrayList with that many values
618: [22:25:27] <PenguinMan98> Well, I don't have time to really debate it. If I must do it this way then I must. I just wanted to whine that .ss templating could be better if you let us break out and use PHP where we need to.
619: [22:25:35] <adrexia> all of that seems a bit silly
620: [22:25:39] <DanaeNZ> PenguinMan98: what are you hoping to achieve?
621: [22:25:47] <PenguinMan98> Building a pagination list
622: [22:25:49] <adrexia> pretty complex for just three times
623: [22:25:51] <Hailwood> Morning everyone
624: [22:26:03] <irogue> PenguinMan98: you know that SS has pagination support already, right?
625: [22:26:11] <DanaeNZ> PenguinMan98: for a silverstripe DataList? They have a pagination thing already
626: [22:26:20] <adrexia> yeah... that all comes with it
627: [22:26:36] <DanaeNZ> http://docs.silverstripe.org/en/3.2/developer_guides/templates/how_tos/pagination/
628: [22:27:06] <irogue> I was really trying to figure out what use case would require looping the same data an arbitrary number of times
629: [22:27:31] <adrexia> If I encountered a temapleting language that suddenly broke out into php, I would curse the developer who wrote it
630: [22:27:40] <DanaeNZ> adrexia: ExpressionEngine
631: [22:27:46] <adrexia> fuckers
632: [22:27:50] <DanaeNZ> inorite
633: [22:28:11] <adrexia> irogue - me too
634: [22:28:16] <PenguinMan98> I have a nested ArrayList
635: [22:28:24] <PenguinMan98> Can it paginate a Nested ArrayList?
636: [22:28:25] <adrexia> I mean... three boxes or something
637: [22:28:30] <adrexia> but I'd do that by hand :D
638: [22:28:53] <DanaeNZ> PenguinMan98: yeah pretty sure, pass that ArrayList into your PaginatedList constructor
639: [22:29:15] <DanaeNZ> What is your ArrayList of though?
640: [22:29:39] <irogue> yeah it can paginate any SS_List, both DataList and ArrayList implement SS_List
641: [22:29:40] <PenguinMan98> The outer list is indexed by date and contains an inner arraylist of flight results for that date
642: [22:30:14] <DanaeNZ> irogue: +1
643: [22:30:20] <irogue> and what of that data are you wanting to paginate?
644: [22:30:30] <PenguinMan98> the flights
645: [22:31:00] <DanaeNZ> If it’s ajax or something using PaginatedList might be a little overkill - default functionality is to reload the page
646: [22:31:22] <PenguinMan98> I don't care at this point, it just needs to work and be prettier than my hacky solution
647: [22:31:31] <PenguinMan98> they want me to use the bootstrap one
648: [22:31:41] <PenguinMan98> but that means I have to print out LI's with the page numbers
649: [22:31:55] <PenguinMan98> which in SS is not intuitive nor easy
650: [22:32:11] <DanaeNZ> ok here is what you do
651: [22:32:14] <irogue> PenguinMan98: PaginatedList can do that
652: [22:32:30] <irogue> I've implemented pagination using PaginatedList + Bootstrap countless times
653: [22:32:34] <DanaeNZ> Read the docs and scroll to the template part: http://docs.silverstripe.org/en/3.2/developer_guides/templates/how_tos/pagination/
654: [22:32:51] <PenguinMan98> thank you
655: [22:32:58] <DanaeNZ> Replace the bits and pieces in there with the appropriate bootstrap HTML
656: [22:33:13] <DanaeNZ> So you’ll have vars like $PageNum
657: [22:33:16] <DanaeNZ> $Pos
658: [22:33:24] <DanaeNZ> $NotFirstPage
659: [22:33:26] <DanaeNZ> etc
660: [22:33:59] <DanaeNZ> you can also change the number of items displayed per “page"
661: [22:34:05] <DanaeNZ> default is 10
662: [22:34:28] <DanaeNZ> That’s also mentioned in the docs
663: [22:34:28] <adrexia> "
664: [22:34:28] <adrexia> I've implemented pagination using PaginatedList + Bootstrap countless times"
665: [22:34:30] <adrexia> me too
666: [22:34:30] <PenguinMan98> it says create and SS_List
667: [22:34:35] <PenguinMan98> is ArrayList the same thign?
668: [22:34:51] <DanaeNZ> It implements SS_List as irogue said before
669: [22:34:57] <adrexia> plus umm... just steal this: https://gitlab.cwp.govt.nz/cwp-themes/default/blob/master/templates/Includes/Pagination.ss
670: [22:34:59] <DanaeNZ> So yes it will work
671: [22:35:08] <DanaeNZ> adrexia: booya
672: [22:35:38] <simon_w|air> PenguinMan98, SS_List is an interface, ArrayList is an implementation
673: [22:35:47] <irogue> I love the public CWP repos. They're a treasure trove of sample code :P
674: [22:35:53] <simon_w|air> (DataList being the other one)
675: [22:36:06] <DanaeNZ> PenguinMan98: in adrexia ’s example, it is already in the scope of PaginatedPages, unlike the example in the docs
676: [22:36:10] <PenguinMan98> It's just.. I have the ArrayList already working to print out the data on the page. I don't want to break that.
677: [22:36:12] <DanaeNZ> So bare that in mind
678: [22:36:16] <simon_w|air> irogue, would be nicer if they weren't stuck with 5.3 though :p
679: [22:36:18] <adrexia> yep. I think they filled a gap that used to be there is example code for that sort of stuff
680: [22:36:21] <DanaeNZ> PenguinMan98: too bad
681: [22:36:26] <PenguinMan98> f*&*
682: [22:36:29] <DanaeNZ> You’ll learn more
683: [22:36:43] <adrexia> simon_w|air dreams are free
684: [22:36:44] <adrexia> ;)
685: [22:36:56] <DanaeNZ> if you hardcode it you will definitely run into problems later on, it’s not scalabel at all
686: [22:37:01] <simon_w|air> adrexia, would be nice if SS wasn't stuck on 5.3 because of CWP too :p
687: [22:37:03] <DanaeNZ> scalable(
688: [22:37:04] <DanaeNZ> *
689: [22:39:37] <adrexia> simon_w|air lol
690: [22:39:47] <adrexia> what are you smoking? ;)
691: [22:39:51] <irogue> simon_w|air: personally, I feel like 4.0 should jump to minimum 5.6, and the last major version of 3.x should be considered LTS and CWP just run on that until they're willing to upgrade PHP
692: [22:40:19] <simon_w|air> irogue, 4.0 should jump to 7 (since it's going to need to change for it anyway) :p
693: [22:41:04] <irogue> simon_w|air: possibly, though that depends what the state of 7 is
694: [22:41:28] <irogue> knowing the PHP project they'll still be arguing about something pointless and it won't be released yet. and I say that knowing how long it'll be before SS4 is a thing
695: [22:41:47] <simon_w|air> irogue, I suspect PHP7 will be out before 3.2
696: [22:42:17] <simon_w|air> It's hit alpha, so is past most of the arguments about what does and doesn't go into it
697: [22:43:00] * catcher quit (Ping timeout: 264 seconds)
698: [22:45:21] <PenguinMan98> Boss says, screw that. Just implement the bootstrap manually
699: [22:45:39] <PenguinMan98> so, thanks but I gotta dash and code this up
700: [22:45:47] <irogue> lol, bosses
701: [22:45:55] * PenguinMan98 quit (Quit: Page closed)
702: [22:46:44] <DanaeNZ> u____u;;
703: [22:46:53] * micmania1 quit (Quit: micmania1)
704: [22:47:08] <DanaeNZ> Screw that scalable and dynamic code, implement this hard coded one instead!
705: [22:47:15] <DanaeNZ> why bosses why
706: [22:47:39] <irogue> y'all seen the draft 3.3 UI?
707: [22:48:58] <irogue> https://dl.dropboxusercontent.com/u/4618071/stripey-cms.png
708: [22:49:09] <irogue> the left nav really needs to be flattened to match the rest =/
709: [22:49:23] <irogue> looks weird now
710: [22:49:44] <DanaeNZ> I’m assuming the left nav is gonna be flattened too
711: [22:50:05] <DanaeNZ> tabs are nice now though
712: [22:50:22] <DanaeNZ> and the breadcrumbs at the top are way more compact
713: [22:51:52] <irogue> I'd like to kill off the <hr>s between each field, never been a fan of those
714: [22:52:05] <DanaeNZ> are they hr or borders?
715: [22:52:21] <simon_w|air> Semantically the same
716: [22:52:49] <adrexia> DanaeNZ:
717: [22:52:49] <adrexia> Screw that scalable and dynamic code, implement this hard coded one instead!
718: [22:52:56] <adrexia> yay! technical debt!
719: [22:53:49] <adrexia> 'the left nav really needs to be flattened to match the rest =/'
720: [22:53:51] <adrexia> agree
721: [22:53:54] <Ryan-Toast> We should just use pseudo elements for the hrs
722: [22:54:32] <adrexia> they are those old style border + show things
723: [22:54:43] <adrexia> + shadow
724: [22:55:08] <adrexia> but yeah - they have historically be a right pain to get consistent
725: [22:55:15] <adrexia> ditching them would feel nice
726: [22:55:41] <adrexia> it would also make the tabs more obvious
727: [22:56:09] <adrexia> I'm not a fan of the darker blue for the filter
728: [22:56:23] <Ryan-Toast> adrexia: I just get rid of the shadows: http://i.imgur.com/QRHITdC.png
729: [22:56:25] <adrexia> but since I don't often use filter's, I'm willing to ignore that one
730: [22:56:41] <adrexia> I'd get rid of the lot
731: [22:56:54] <adrexia> too much unneeded segregation
732: [22:57:16] <Ryan-Toast> It looks a little weird without them imo
733: [22:57:23] <adrexia> more padding?
734: [22:57:30] <Ryan-Toast> Could do
735: [22:57:42] <Ryan-Toast> It’s a fine line :/
736: [22:57:58] <adrexia> true
737: [22:58:08] <adrexia> maybe just an almost invisible color :D
738: [22:58:26] <adrexia> opacity: 0.1 or soemthing ;)
739: [22:58:28] <Ryan-Toast> Nah, harsh light sources and gradients pls
740: [22:58:30] <Ryan-Toast> ;)
741: [22:58:35] <DanaeNZ> if everything was aligned it would be way easier to look at
742: [22:58:40] <Ryan-Toast> Agreed.
743: [22:59:11] <adrexia> bwhaha
744: [22:59:44] <adrexia> aligned, how?
745: [22:59:58] <Ryan-Toast> adrexia: same widths I’m guessing?
746: [23:00:08] <adrexia> oh! in your example?
747: [23:00:22] <simon_w|air> Ugh, github's search so shit
748: [23:00:24] <adrexia> they look pretty aligned in the other one
749: [23:00:27] <UncleCheese> how do you debug a redirect loop?
750: [23:00:35] <simon_w|air> "Your query contains a character that is ignored"
751: [23:00:45] <UncleCheese> are there any logs of what urls are going back and forth?
752: [23:00:49] <simon_w|air> UncleCheese, find what's causing the redirects
753: [23:00:52] <simon_w|air> access logs
754: [23:00:53] <DanaeNZ> Once you start putting uploadfields and long HTMLEditroFields in it starts looking messy
755: [23:01:03] <adrexia> you can watch it in dev tools
756: [23:01:07] <adrexia> network
757: [23:01:12] <DanaeNZ> Also Fiddler
758: [23:01:16] <DanaeNZ> if you are on PC
759: [23:01:32] <simon_w|air> DanaeNZ, nah, we all develop on servers
760: [23:01:36] <vanny> Can I count the number of of columns in an array at the viewer level?
761: [23:01:36] <UncleCheese> adrexia srsly?
762: [23:01:44] <adrexia> upload field needs amakeover
763: [23:02:01] <DanaeNZ> adrexia: no one wants to do it tho, lmao
764: [23:02:02] <adrexia> takes up too much space
765: [23:02:05] <adrexia> lol
766: [23:02:11] <adrexia> its a hard problem to solve
767: [23:02:14] <UncleCheese> adrexia https://github.com/unclecheese/silverstripe-dropzone
768: [23:02:36] <DanaeNZ> UncleCheese: is that frontend too?
769: [23:02:37] * micmania1 has joined #silverstripe
770: [23:02:39] <simon_w|air> UncleCheese, not a replacement
771: [23:02:41] <UncleCheese> DanaeNZ yes
772: [23:02:44] <DanaeNZ> :D
773: [23:02:58] <adrexia> UncleCheese the name reminds me of this: https://github.com/mateusz/silverstripe-dropship
774: [23:03:00] <adrexia> :D
775: [23:03:25] * simon_w|air has left #silverstripe
776: [23:03:26] <adrexia> but I mean chnage the design in core
777: [23:03:27] <DanaeNZ> adrexia: omg what is that
778: [23:03:30] <adrexia> not a module
779: [23:03:40] <adrexia> DanaeNZ the best thing ever!
780: [23:03:41] <adrexia> :D
781: [23:04:02] <DanaeNZ> bahahah
782: [23:04:08] <adrexia> Mataeusz whipped it up when people asked for an interface for composer ;)
783: [23:04:21] <DanaeNZ> wahahaha
784: [23:05:00] <adrexia> "echo "This module is a proof of concept and has a horrible shell injection. Delete this line if you really want to use it...";
785: [23:05:01] <adrexia> exit;"
786: [23:06:09] <DanaeNZ> I saw that
787: [23:06:11] <DanaeNZ> haha
788: [23:06:12] <UncleCheese> adrexia CTF needed a design change in core, but everyone just used DOM
789: [23:06:26] <adrexia> CTF?
790: [23:07:00] <Ryan-Toast> DanaeNZ: Did you mean something like this? http://i.imgur.com/8thr1Hz.png
791: [23:07:09] <adrexia> Document object model,...
792: [23:07:11] <adrexia> huh?
793: [23:07:17] * Stomach quit (Ping timeout: 240 seconds)
794: [23:07:31] <DanaeNZ> Ryan-Toast: Yeah that’s along the right lines
795: [23:07:48] <DanaeNZ> The visual column only borken by logical breaks in the view
796: [23:07:52] <UncleCheese> Complex Table Field / DataObjectManager
797: [23:07:56] <Ryan-Toast> DanaeNZ: You run into issues when you have tiny int fields and things that you want to be small though.
798: [23:07:57] <DanaeNZ> eg, descriptions and headings
799: [23:08:12] <adrexia> lol
800: [23:08:23] <DanaeNZ> Ryan-Toast: true dat
801: [23:08:39] <adrexia> I don't think you can call DataObjectManager DOM - it has another more well known meaning ;)
802: [23:08:41] <DanaeNZ> there’s not much real estate anyway
803: [23:08:54] <Ryan-Toast> DanaeNZ: Wouldn’t mind uploadfields being inline though
804: [23:09:07] <DanaeNZ> dude yea
805: [23:09:07] <adrexia> Yeah
806: [23:09:17] <adrexia> it giot ditched eventually thoguh
807: [23:09:18] <Ryan-Toast> I’ll add it to my cms-branding repo
808: [23:09:19] <adrexia> *got
809: [23:09:37] * Stomach has joined #silverstripe
810: [23:09:52] <adrexia> Ryan-Toast the problem is fitting them there when preview is open
811: [23:10:02] <adrexia> but only a problem if you use preview ;)
812: [23:10:06] <Ryan-Toast> adrexia: Will be the same width as a text field though
813: [23:10:37] <adrexia> ahh right - there's a few atrocitious you may need to commit to make that happen :D
814: [23:10:43] <UncleCheese> adrexia i know it's weird.. in the 2.4 days, no one knew one DOM from the other.. but at the time, JS stuff was still very much a second-class citizen, so most of the time, DOM in SS was pretty unambiguous
815: [23:10:44] <Ryan-Toast> adrexia: Lol, yup.
816: [23:11:06] <Ryan-Toast> DOM has pretty much always been pretty well known though?
817: [23:11:18] <adrexia> it has, yeah
818: [23:11:26] <UncleCheese> if you search the forum for DOM, 99% of the results are not talking about an HTML document
819: [23:11:31] <adrexia> but perhaps not to people who never went near the frontend
820: [23:11:47] <UncleCheese> still a bad choice of acronym
821: [23:12:30] <DanaeNZ> I just realised when I move out I get to take the guitar hero with me
822: [23:12:34] <DanaeNZ> fuck
823: [23:12:35] <DanaeNZ> yeah
824: [23:14:26] * DanaeNZ casually derails serious discussion
825: [23:18:58] <irogue> lol
826: [23:19:52] <irogue> on a similar topic, seriously tempted to pick up a playstation solely for SingStar :P
827: [23:23:14] <adrexia> Seems like a good investment
828: [23:23:51] <irogue> I should get it before Friday, actually
829: [23:24:29] <UncleCheese> adrexia you said the Network tab should show me the urls?
830: [23:24:45] <DanaeNZ> irogue: do it
831: [23:24:51] <DanaeNZ> irogue: and get disney singstar
832: [23:25:13] <adrexia> UncleCheese it shows the controllers than are being called
833: [23:25:20] <UncleCheese> hmm
834: [23:25:38] <adrexia> chrome?
835: [23:25:48] <Hailwood> Hey folks, I have a custom sqlQuery - I've done execute - now I need the results as either an array or object. How do I convert it from the results of execute()?
836: [23:26:20] <adrexia> irogue unfortauntely going to be in Auckland for that
837: [23:26:26] <adrexia> Gather is on on Saturday
838: [23:26:30] <UncleCheese> i see it now
839: [23:26:31] <irogue> adrexia: ah, gutted
840: [23:26:45] <adrexia> if it goes well, you should have an encore
841: [23:27:21] <vanny> im working on something very similar \Hailwood
842: [23:27:44] <UncleCheese> redirect loop: http://example.com -> http://example.com/ -> http://example.com -> http://example.com/
843: [23:29:10] <adrexia> ouch
844: [23:29:16] <adrexia> that's a bad loop
845: [23:29:43] <UncleCheese> yeah, gnarly
846: [23:34:38] <irogue> I managed to do an https > http > https > http etc loop once, that was pretty fun
847: [23:35:13] * Sticks has joined #silverstripe
848: [23:37:32] <adrexia> I think I've had something similar to that before too
849: [23:38:44] * simon_w|air has joined #silverstripe
850: [23:38:56] <simon_w|air> Ugh, need to stop checking personal mail while attempting to work
851: [23:39:50] <simon_w|air> https://github.com/silverstripe/silverstripe-framework/issues/4254#issuecomment-119025763 came in, and now I'm pissed at how poorly SS Ltd handles open source again :(
852: [23:40:04] <adrexia> well, that was dumb
853: [23:40:42] <adrexia> I occasionally do similar things before attempting to sleep. Best to do it when you have free time to rant
854: [23:40:43] <adrexia> ;)
855: [23:45:54] * Stomach quit (Quit: zzz)
856: [23:46:29] <adrexia> simon_w|air After reading that thread I think you and tractorcow communicate past each other rather than with each other
857: [23:46:45] <adrexia> it's really quite remarkable
858: [23:47:52] * UncleCheese quit (Quit: Textual IRC Client: www.textualapp.com)
859: [23:48:06] <irogue> I think the use of "we" is part of the issue. People who are both SS Ltd and Core Committers need to be clear whether "we" means SS Ltd or the Framework/CMS
860: [23:48:34] <irogue> "We don't need to maintain or actively develop any module outside of core + the list of modules we are contractually obliged to support"
861: [23:48:35] <adrexia> or whether it means 'people'
862: [23:48:49] <adrexia> or, more accurately, developers
863: [23:48:51] <simon_w|air> irogue, to most of the community, there's no difference
864: [23:49:02] <irogue> simon_w|air: which is a problem, cos there's a huge difference
865: [23:49:23] <irogue> since the vast majority of SS Ltd (e.g. myself) have zero influence over cms/framework
866: [23:49:24] <adrexia> maybe we need a new github - silverstripe-rubbish-dump
867: [23:49:44] * UncleCheese has joined #silverstripe
868: [23:50:13] * DanaeNZ quit (Ping timeout: 246 seconds)
869: [23:50:15] * Ryan-Toast quit (Ping timeout: 252 seconds)
870: [23:50:27] * helenclarko quit (Ping timeout: 246 seconds)
871: [23:50:56] <adrexia> ...and there's a whole lot of modules maintained by silverstripe ltd that are not maintained by core, for that matter
872: [23:51:03] <irogue> yep
873: [23:51:15] <irogue> IMO SS Ltd should have its own GitLab, seperate from the core
874: [23:51:19] <irogue> *GitHub
875: [23:51:27] <simon_w|air> So much that
876: [23:51:52] <adrexia> well, they should certainly stop putting new modules in silverstripe github
877: [23:52:00] <adrexia> there seems to be a lot of mess in tehre now
878: [23:52:09] <adrexia> stuff that rightly should be in labs
879: [23:53:07] <UncleCheese> the licenses leave little ambiguity about the level of support
880: [23:53:20] * ss23 quit (Ping timeout: 256 seconds)
881: [23:53:34] <simon_w|air> UncleCheese, that's covering-your-arse BS
882: [23:54:03] * ss23 has joined #silverstripe
883: [23:54:09] <UncleCheese> i just don't understand when `git push` became a tacit commitment to long-term support
884: [23:54:34] <adrexia> when things were put in the silverstripe repo
885: [23:54:36] <Hailwood> vanny, Did you end up working it out? (->map() if you haven't)
886: [23:54:45] <adrexia> people look there for officially supported stuff
887: [23:55:02] <adrexia> and then get annoyed at silverstripe ltd when it turns out that was the wrong expecation
888: [23:55:33] <adrexia> if it's not useful to the wider community, and not actively supported, move it to labs I reckon
889: [23:55:36] <simon_w|air> And then leave to use something when the "core" group actually support things with their name on it
890: [23:55:54] <adrexia> that's what 'labs' is for
891: [23:56:01] * Stomach has joined #silverstripe
892: [23:56:09] <UncleCheese> we do have silverstripe-labs
893: [23:56:14] <adrexia> yep
894: [23:56:21] <simon_w|air> IMO, labs shouldn't be pushed to composer
895: [23:56:21] <adrexia> it should be used more
896: [23:56:22] <UncleCheese> is that the solution? that we just start pushing stuff there?
897: [23:56:45] * DanaeNZ has joined #silverstripe
898: [23:56:48] <adrexia> it is quality expecation management
899: [23:56:55] <Hailwood> vanny, Actually, That only works if you have only two columns.
900: [23:56:58] <adrexia> simon_w|air disagree
901: [23:56:58] <irogue> I think it would help, UncleCheese. The average user would expect things in the silverstripe github to be part of SS Core and have the same quality as framework/cms
902: [23:57:04] <adrexia> everything needs to be in composer
903: [23:57:16] * Ryan-Toast has joined #silverstripe
904: [23:57:23] <simon_w|air> adrexia, it's trivial to add git repositories as dependancies
905: [23:57:36] <simon_w|air> Rather than having everything show up in the silverstripe/ namespace in composer
906: [23:57:39] <adrexia> simon_w|air to avergae developers it is not
907: [23:57:46] <adrexia> and labs might still be stable
908: [23:57:51] <adrexia> just not maiantained by core
909: [23:57:52] <irogue> could just use a silverstripe-labs namespace
910: [23:58:14] <simon_w|air> adrexia, to average developers, there's no difference between silverstripe and silverstripe-labs, since they're both silverstripe/
911: [23:58:22] <adrexia> lol, sort of
912: [23:58:39] <adrexia> except 'labs' is actually a word that means 'experimental' in english
913: [23:58:40] <adrexia> ;)
914: [23:59:54] <simon_w|air> adrexia, http://addons.silverstripe.org/add-ons/silverstripe/testsession

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