#silverstripe IRC Log

IRC log for 25 July 2013

All timestamps are in UTC.

1: [00:00:18] <simon_w> new blah is faster, blah::create() is more powerful
2: [00:00:37] <ss23> POWERFUL
3: [00:01:00] <unsignedint> micro optimisation though with new Blah() if you only use it because its 0.0000000001s "faster"
4: [00:01:30] <simon_w> Yeah, three steps of stack (at least) is more noticeable than that :p
5: [00:01:53] <simon_w> Still, when compared to object creation, it's negligible
6: [00:01:57] <EasyCo> UC seems to use the ::create() when assigning to an operator
7: [00:02:09] <EasyCo> I mean variable
8: [00:02:09] <ss23> I use ::create() almost exclusivly
9: [00:02:28] <simon_w> I use new almost exclusively, because the 2.4 ::create() is crap
10: [00:02:33] <unsignedint> (deliberately exaggerated of course) but yeah I think you have more "orders of magnitude" slower things to worry about like tuning your database queries
11: [00:05:04] * CodeTrap quit (Ping timeout: 268 seconds)
12: [00:07:51] <EasyCo> Is there a name for that pattern of ::create()'ing object instances? I want to read about it.
13: [00:08:23] <ss23> I don't think it's a pattern, it's more a syntatically sugar thing
14: [00:08:34] <ss23> ss23 loves sugar
15: [00:08:35] <ss23> :D
16: [00:08:55] <EasyCo> I'm sure SS isn't the only framework to have such an implementation?
17: [00:09:42] <unsignedint> it makes certain tasks easier, like producing a FieldList of customised fields without having to assign them all to variables. eg return new FieldList(TextField::create("MyField")->addExtraClass("test"), HTMLEditorField::create("MyField1")->setSomething(true))
18: [00:10:15] <ss23> EasyCo: Yeah, but it's a PHP syntax specific thing. Like... conceptually, which is where most design patterns apply, it's irrelevant
19: [00:11:05] <unsignedint> EasyCo: Actually it is a pattern, see http://en.wikipedia.org/wiki/Factory_method_pattern
20: [00:11:15] <simon_w> object factory!
21: [00:11:39] <simon_w> Seriously, don't any of you make fun of Java? :p
22: [00:12:03] <unsignedint> good ol' java
23: [00:12:12] <unsignedint> seriously annoying to program in
24: [00:12:26] * unsignedint wishes it had the 'var' keyword from c#
25: [00:16:04] <spronk> i wish they just replaced java with C#
26: [00:16:05] <spronk> then
27: [00:16:07] <spronk> i'd use it for everything.
28: [00:16:18] <spronk> mono sucks monkey cock
29: [00:20:47] <irogue> object factory factory object factory!
30: [00:21:09] * irogue is writing some C# as we speak
31: [00:21:16] <irogue> bit of a break from trying to C++
32: [00:23:33] <spronk> eww c++
33: [00:26:35] <ss23> Hate C++
34: [00:38:45] <spronk> also, any of you fucks at wdcnz?
35: [00:39:50] <simon_w> Pyro is
36: [00:39:50] <ss23> "There has been an error" Oh Silverstripe!
37: [00:39:56] <ss23> Pyro is, and a bunch of SS people are
38: [00:42:28] * howardgrigg has joined #silverstripe
39: [00:45:44] <simon_w> Hmm, lunch then time to build a test harness
40: [00:46:05] <ss23> lol
41: [00:46:12] <ss23> simon_w: You're going to lunch without me?!
42: [00:46:26] <simon_w> Well, you can get lunch now too!
43: [00:46:39] <ss23> Naw, I'm busy
44: [00:46:40] * ss23 dies
45: [00:46:42] * howardgrigg quit (Ping timeout: 246 seconds)
46: [00:46:59] <ss23> Keep getting intrupted
47: [00:47:13] <simon_w> I guess I could look at the phpunit API for a bit
48: [00:47:22] <ss23> haha
49: [00:47:31] <ss23> idk how long I'll be, so if you're hungry, you should go
50: [00:51:32] <irogue> https://pbs.twimg.com/media/BP-vVdpCYAA9TBs.jpg:large
51: [00:51:38] <irogue> rofl late night buses
52: [00:51:56] <ss23> haha
53: [00:52:07] <irogue> wonder what percentage of people miss their stops on the nightriders
54: [00:52:11] <ss23> XD
55: [00:52:12] <ss23> ikr
56: [00:52:16] <ss23> Was just thikning that
57: [00:54:24] <irogue> i guess, as a driver, you've got a choice
58: [00:54:31] <ss23> yall
59: [00:54:38] <irogue> turn the AC on to keep everyone awake, so they don't miss their stops
60: [00:54:41] <ss23> pull over the car or
61: [00:54:42] <spronk> looool
62: [00:54:50] <irogue> or turn the heaters up so they fall asleep and don't cause trouble
63: [00:54:52] <ss23> bounce to the curb put the metal two the door
64: [00:54:57] <ss23> so I
65: [00:55:03] * Bollig|DesignCty has joined #silverstripe
66: [00:55:03] <ss23> pull over to the side of the road, I heard
67: [00:55:07] <ss23> "son do you know what I'm stopping you for"
68: [00:55:12] <ss23> CAUSE I'M YOUNG AND I'M BLACK AND MY HATS REAL LOW?
69: [00:55:19] <ss23> DO I LOOK LIKE A MIND READING SIR? I DON'T KNOW
70: [00:55:32] <ss23> sorry
71: [00:55:36] <ss23> sometimes I just get the urge to rap like Jay-Z
72: [00:55:39] <ss23> The life of ss23.
73: [00:57:57] <simon_w> Sometimes, I just get the urge to sing along to Rebecca Black
74: [00:58:06] <simon_w> Caitlin doesn't like that too much
75: [00:58:12] <Colin[pi]> neither do we
76: [00:58:40] <simon_w> But do you get the references to all of her songs, or just Friday? :p
77: [00:59:07] <Colin[pi]> I don't really want to get any references to her anything :D
78: [00:59:17] <simon_w> You're missing out :p
79: [00:59:22] <Bollig|DesignCty> we're going to devolve to asking about the royal baby soon, I can just feel it :(
80: [00:59:25] <Colin[pi]> uh huh :P
81: [00:59:54] <simon_w> Meh, baby :p
82: [01:00:13] <simon_w> Anyway, food get time
83: [01:00:40] * DesignerX has joined #silverstripe
84: [01:10:42] <ss23> Bollig|DesignCty: OMG
85: [01:10:47] <ss23> The royale baby should've been called Artist
86: [01:10:50] <ss23> then changed its name
87: [01:11:00] <ss23> So it can be The Prince formerlly known as Artist
88: [01:13:56] <simon_w> I wonder if someone called Prince would have to pick a different name if they wanted to get citizenship or some such here
89: [01:15:02] <ss23> o.o
90: [01:15:07] * pex has joined #silverstripe
91: [01:15:11] <ss23> I went to site.com/admin?isDev=1
92: [01:15:23] <ss23> And it redirected me to Security/login and is like "You're logged in as default admin!"
93: [01:15:26] <ss23> Really? Why not just work
94: [01:15:29] <ss23> Blusadfhlsadfaskdfn
95: [01:15:47] <ss23> I'm going to bloody have to actually edit files on live to put the entire site into dev mode, aren't :<
96: [01:15:51] <ss23> aren't I
97: [01:15:51] <ss23> :<
98: [01:16:54] <simon_w> if($_SERVER['REMOTE_ADDR'] == '202.160.48.160') { dev } else { live }!
99: [01:17:05] <ss23> sure, still not great though
100: [01:17:10] <ss23> editing files on live == scary
101: [01:17:32] <Colin[pi]> live on the edge
102: [01:17:35] <ss23> lol
103: [01:17:45] <Colin[pi]> what's the worst that could happen?
104: [01:17:51] <Colin[pi]> *BOOOOM*
105: [01:17:52] <Colin[pi]> :D
106: [01:17:57] <simon_w> He gets fired
107: [01:18:09] <Colin[pi]> but he's so adorable
108: [01:18:14] <ss23> :D
109: [01:18:33] <simon_w> 90 trial period!
110: [01:18:42] <ss23> You know what else is annoying? Silverstripe will let you log in over HTTP, but set the cookie as secure only
111: [01:18:45] <ss23> So you just die
112: [01:19:51] * pex quit (Ping timeout: 260 seconds)
113: [01:20:45] <ss23> OMG THIS SITE IS SO BROKEN
114: [01:20:46] <ss23> ;___;
115: [01:21:01] <Colin[pi]> did you break it?
116: [01:21:13] <ss23> no
117: [01:21:18] <Colin[pi]> phew!
118: [01:21:31] <ss23> I clicked the next page on the member list and first of all, it would give a "An error occured"
119: [01:21:37] <ss23> I logged out and in, and it gave me
120: [01:21:42] <ss23> "NOT LOGGED IN"
121: [01:21:50] <ss23> log in again, now the request works fine, but didn't load the next page
122: [01:22:02] <ss23> now it's doing that
123: [01:22:05] <ss23> But the request works fine
124: [01:23:06] * zippy__ has joined #silverstripe
125: [01:29:37] * LoveDuckie quit (Ping timeout: 246 seconds)
126: [01:33:02] <EasyCo> How do you return a simple array to your template?
127: [01:33:20] <ss23> public function simpleArray() { return array('sadf', 'dsaf') }
128: [01:33:22] <EasyCo> Obvsiously I've never encountered such simple situation
129: [01:33:23] <ss23> then in template, $simpleArray?
130: [01:33:44] <EasyCo> Yah that's what I thought, the fucker isn't cooperating
131: [01:33:52] <ss23> laaame
132: [01:33:56] <ss23> I hate silverstripe templates
133: [01:35:41] <EasyCo> <% loop $simpleArray %> $Me <% end_loop %> right??
134: [01:35:58] <ss23> Uhhhhhhh
135: [01:35:59] <ss23> idk
136: [01:36:00] <ss23> ;_;
137: [01:36:50] <irogue> ss23 thinks we should use twig
138: [01:36:53] <EasyCo> Argghgg
139: [01:36:56] <ss23> lol fuck off, irogue
140: [01:37:59] <ss23> Action "logout" not allowed on form (Name: "LoginForm")
141: [01:38:02] <ss23> Did someone break logout form?
142: [01:38:10] <guzzlefry> oh
143: [01:38:38] <ss23> I hate running on 3.1.x
144: [01:38:42] <ss23> always get shitty broken versions
145: [01:38:55] <guzzlefry> I think I had something similar to that, but I was using $LoginForm in the template.
146: [01:39:03] <guzzlefry> And when it submitted it would yell at me.
147: [01:41:52] <simon_w> EasyCo, ArrayList or ArrayData, depending on the type of array
148: [01:43:11] <EasyCo> simon_w: I just have a simple array like so: [0 => 'sdf', 4=>'adsf', 10=>'asdfg']
149: [01:43:25] <EasyCo> and I want to iterate over it and grab the values
150: [01:43:32] <simon_w> so ArrayList
151: [01:43:57] <EasyCo> Ok, so I have to have a list of 1 item arrays in ArrayList
152: [01:44:15] <simon_w> No, just an array
153: [01:44:21] <EasyCo> Ah that's cool
154: [01:44:40] <guzzlefry> Can you fetch the array indicies with ArrayList?
155: [01:44:45] <guzzlefry> EasyCo: Do you need those?
156: [01:47:08] <EasyCo> guzzlefry: Eh?
157: [01:48:16] <guzzlefry> EasyCo: nevermind, I could be wrong. Brain is mushy. :P
158: [01:48:33] <EasyCo> simon_w: How would you loop through the array on the template?
159: [01:48:38] <EasyCo> guzzlefry: np
160: [01:48:59] <ss23> A nice feature of Silverstripe would be, if you log in as an admin, a way to masquarade as another user
161: [01:49:06] <simon_w> <% loop $MethodThatReturnsIt %>
162: [01:49:15] <simon_w> ss23, got that :p
163: [01:49:25] <ss23> simon_w: You got it in yours, or it exists generally?
164: [01:49:26] <EasyCo> Then $Me?
165: [01:49:34] <simon_w> ss23, got it in ours
166: [01:49:36] <simon_w> EasyCo, yup
167: [01:49:37] <ss23> :<
168: [01:49:41] <ss23> simon_w: y u no pull request
169: [01:49:59] <simon_w> Because it's a custom controller?
170: [01:50:02] <EasyCo> I keep getting: call_user_func_array() expects parameter 1 to be a valid callback
171: [01:51:08] <EasyCo> return new ArrayList(array('teasd','asdf')); <% loop $stuff %> $Me<% end_loop %>
172: [01:54:00] <irogue> having a filling fall out of a root canal'd tooth is quite refreshing
173: [01:54:14] <irogue> giant hole in tooth, no pain since no nerve
174: [01:55:54] <simon_w> EasyCo, may need to wrap the strings in a Varchar or some such
175: [02:05:25] <EasyCo> simon_w: Fuck that was annoying! So returning a simple array is a bit of an undertaking.
176: [02:09:58] <irogue> [13:48] <+ss23> A nice feature of Silverstripe would be, if you log in as an admin, a way to masquarade as another user
177: [02:10:01] <irogue> yup
178: [02:10:10] <irogue> implemented that myself for our site, but it'd be cool within SS itself
179: [02:11:48] <guzzlefry> Can you add a simple form to the CMS back-end?
180: [02:12:31] <guzzlefry> Basically need to grab a user's email, voucher code, and date, and then run a fairly complex query on the database.
181: [02:12:41] <guzzlefry> I'd like dropdown fields too, but I'm not sure that's possible. :/
182: [02:13:27] <guzzlefry> For example, user's email address is entered into the text field, when the voucher field is focused it would load all of that user's vouchers into the drop-down list.
183: [02:16:28] <guzzlefry> Suppose I could just list all of the vouchers regardless since there are only 10 or so in total.
184: [02:29:56] <DesignerX> hi anyone used Translatable modules? how can i create a template loop that list available languages then on clicking one it transaltes the site or fall back to default language (english) ?
185: [02:32:58] * nickmolhoek quit (Remote host closed the connection)
186: [02:38:16] <mobiusnz1> is there any easy way to have multiple file uploads from the front end?
187: [02:38:24] * mobiusnz1 is now known as mobiusnz
188: [02:38:38] <mobiusnz> as in has_many image rather than just image1 image2 image3
189: [02:39:00] <simon_w> Well, you many_many to it and use UploadField
190: [02:39:02] <simon_w> Especially in 3.1
191: [02:39:14] <mobiusnz> ah, uploadfield can handle that? yay
192: [02:39:19] <mobiusnz> what about in 3.0?
193: [02:39:27] <simon_w> Not so likely
194: [02:39:52] <mobiusnz> ok, is beta3 reasonably solid?
195: [02:41:08] <simon_w> I can't remember. I would normally suggest just going for 3.1.x-dev, but Hamish's recent changes have caused some slight hiccups
196: [02:42:18] <mobiusnz> hmm
197: [02:42:29] <mobiusnz> seems to be a bug straight away in beta3
198: [02:42:50] <spronk> what recent changes?
199: [02:42:53] * howardgrigg has joined #silverstripe
200: [02:43:04] <mobiusnz> Fatal error: Access level to ErrorPage::$db must be public (as in class Page) in ErrorPage.php on line 310
201: [02:43:23] <simon_w> mobiusnz, yeah, read the upgrading docs :)
202: [02:43:27] <simon_w> spronk, to do with ?flush
203: [02:43:49] <simon_w> mobiusnz, http://doc.silverstripe.org/framework/en/trunk/changelogs/3.1.0#statics-in-custom-page-classes-need-to-be-private
204: [02:44:01] <mobiusnz> oh ok
205: [02:44:22] <spronk> ahh
206: [02:44:58] <mobiusnz> simon_w: so is that all statics?
207: [02:45:39] <simon_w> Basically
208: [02:46:10] * pippy_ has joined #silverstripe
209: [02:47:06] * howardgrigg quit (Ping timeout: 246 seconds)
210: [02:49:05] <irogue> anyone else on snap?
211: [02:49:06] * pippy quit (Ping timeout: 268 seconds)
212: [02:49:14] <mobiusnz> irogue: I am at home
213: [02:49:14] <ss23> I think UC is?
214: [02:49:46] <simon_w> Nah, he got cable
215: [02:49:53] <ss23> aw
216: [02:49:56] <simon_w> I am here
217: [02:50:00] <irogue> ok, so it's just us then
218: [02:50:12] <simon_w> Cable > VDSL :p
219: [02:50:19] <irogue> we're on UFB ;)
220: [02:50:33] <irogue> though currently failed-over to our telstraclear vdsl :P
221: [02:50:41] <ss23> "to lift the achievement of Maori and Pasifika students.
222: [02:50:42] <ss23> "
223: [02:50:43] <simon_w> Yeah, have fun getting that anywhere in Wellington :p
224: [02:50:47] <ss23> pasifika == pacific?
225: [02:51:04] <irogue> ss23: ya, shorter way to say "Pacific Islander"
226: [02:51:12] <ss23> swt
227: [02:52:03] <simon_w> Huh, didn't even feel that one
228: [02:59:07] <guzzlefry> Can I add random forms to DataExtensions? The CMS tab has most of the info I need (user e-mail and voucher). I just need to add a date field and pass that along to run a query.
229: [03:02:28] * nickmolhoek has joined #silverstripe
230: [03:02:29] * nickmolhoek quit (Remote host closed the connection)
231: [03:02:43] * nickmolhoek has joined #silverstripe
232: [03:11:10] <Colin[pi]> these sorts of things make my eyebrow twitch when I'm creating a model: http://i.imgur.com/nrSeewr.png
233: [03:11:28] <Colin[pi]> big list of occupations, all of them have a single code - except that one
234: [03:13:30] <guzzlefry> Sure that's not a typo? >_>
235: [03:14:31] <Colin[pi]> nope there are multiple codes for that one -_-
236: [03:14:48] <Colin[pi]> so either multiple entries with the same name, or special case lol
237: [03:35:50] <zippy__> man it's easy to go off on tandgents when you work from home
238: [03:36:02] <Colin[pi]> yup :\
239: [03:36:05] <zippy__> keep ending up on reddit and youtube
240: [03:36:09] <Colin[pi]> yup :(
241: [03:36:17] <Colin[pi]> it's easy to get distracted
242: [03:36:27] <zippy__> least I found the mythbusters breaking bad special :)
243: [03:36:29] <Colin[pi]> I have a router rule to disable reddit during work hours lol
244: [03:37:50] <zippy__> I have a $many_many relationship. Is there a way, without looping, I can check if two models are in the relationship?
245: [03:38:07] <zippy__> eg $Foo->hasMember($Bar);
246: [03:41:51] <zippy__> $Foo->Bars()->byId($Bar->ID); I believe
247: [03:42:24] <mobiusnz> in SS3.1 how do I get the rich text editor?
248: [03:43:07] * mobiusnz slaps himself for such a poorly worded question
249: [03:43:21] * Colin[pi] joins in the slapping
250: [03:43:31] <simon_w> HTMLEditorField
251: [03:43:35] <mobiusnz> how do I get tinymce to work in the frontend
252: [03:43:50] <mobiusnz> simon_w: that's what I thought, but I'm just getting a textarea
253: [03:43:57] <mobiusnz> do I have to include something?
254: [03:50:01] <Colin[pi]> I thought it should pull in all requirements automagically mobiusnz?
255: [03:50:12] <Colin[pi]> did you check the source to see if it's pulling in css/js?
256: [03:52:32] <mobiusnz> Colin[pi]: it does appear to be pulling tiny_mec_gzip.php
257: [03:52:43] <mobiusnz> which gives some js
258: [03:53:05] <mobiusnz> there aren't any console errors either
259: [03:59:17] * cloph_away has joined #silverstripe
260: [03:59:36] * cloph quit (Ping timeout: 256 seconds)
261: [04:12:42] * zippy__ quit (Ping timeout: 264 seconds)
262: [04:17:38] * DesignerX quit (Read error: Connection reset by peer)
263: [04:18:29] * DesignerX has joined #silverstripe
264: [04:20:12] <mobiusnz> hey simon_w, the uploadfield is complaining that "Action 'Photos' isn't available on class Form."
265: [04:20:26] <mobiusnz> do I have to make a custom form to be able to have uploads?
266: [04:21:08] * Rob__ has joined #silverstripe
267: [04:21:37] * Jayden90 has joined #silverstripe
268: [04:27:20] <Rob__> Trying to run SS in IIS8 and keep getting a 302 for the admin pages, anyone know why this would be occurring or how I can fix it?
269: [04:27:22] <DesignerX> Hi, are there any plans to create a "plugin" manager for SS ? I know about composer but does it allow enabling/disabling modules without having to remove the files ?
270: [04:33:46] * Jayden90 quit (Quit: Jayden90)
271: [04:34:49] <Colin[pi]> hmm the idea of a plugin manager may be kinda against the "code first" philosophy of ss?
272: [04:38:36] * nightart has joined #silverstripe
273: [04:43:20] * howardgrigg has joined #silverstripe
274: [04:43:44] <simon_w> Woo, got PHPUnit running with HHVM
275: [04:44:23] <ss23> yay!
276: [04:45:56] <simon_w> Not supporting PEAR or Phar, and the turning everything into components thank to Composer, makes that a lot harder than it should be
277: [04:46:54] <ss23> DesignerX: I don't like the idea of doing it myself, and it wouldn't be easy. Doubt there's plans for it
278: [04:48:05] <ss23> THATS WHAT YOU GET WHEN YOU LET YOUR HEART WIN
279: [04:48:07] * howardgrigg quit (Ping timeout: 268 seconds)
280: [04:50:10] <Rob__> So anyone with a fix for IIS and 302's?
281: [04:50:51] <ss23> tar: Unsupported compression option -J
282: [04:50:55] <ss23> OSX will be the damn death of me
283: [04:50:57] <ss23> Rob__: What's 302 again?
284: [04:51:16] <ss23> Rob__: What's wrong with 302? redirects are fine
285: [04:51:47] <Rob__> IIS8 I get 302 object moved in the header for the admin pages
286: [04:51:57] <ss23> Rob__: Moved to where?
287: [04:52:02] <ss23> Is that an issue?
288: [04:52:14] <ss23> Rob__: It's expected you'll get many 302's while browsing the site. Why is this an issue for you?
289: [04:52:34] <Rob__> It's an issue as it doesn't occur with Apache, just IIS
290: [04:52:40] <ss23> Why is it an issue?
291: [04:52:43] <ss23> I still don't understand
292: [04:52:59] <Rob__> I get a header response of "Object Moved This document may be found hereHTTP/1.1 200 OK Cache-Control: no-store, no-cache, must-revalidate...." then the page loads below
293: [04:53:01] <Colin[pi]> "IIS8 I get 302 object moved in the header for the admin pages":
294: [04:53:37] <Rob__> It's not exactly a nice thing to see for a client
295: [04:54:09] <DesignerX> ss23: Colin[pi] sounds reasonable :) just wanted ti be sure if there are any polans for it
296: [04:56:24] <DesignerX> If anyone her has used the Translatable module please PM me as I have few questions .
297: [04:59:55] * coldblooded01 quit (Quit: coldblooded01)
298: [05:02:42] * mobiusnz quit (Quit: Leaving.)
299: [05:08:33] * nightart quit (Ping timeout: 240 seconds)
300: [05:10:30] <Colin[pi]> qn.. I have a model admin with a ton of records in there now, one field has changed from a text to a has_one... where's the best place to stick the code that will associate the new has_one based on the value of the text field?
301: [05:11:25] * Jayden90 has joined #silverstripe
302: [05:12:05] <irogue> [16:52] <Rob__> I get a header response of "Object Moved This document may be found hereHTTP/1.1 200 OK Cache-Control: no-store, no-cache, must-revalidate...." then the page loads below
303: [05:12:17] <ss23> https://twitter.com/orvtech/status/359862230621224960/photo/1 lol
304: [05:12:18] <irogue> so... you're actually *seeing* a 302 in your browser?
305: [05:13:09] <irogue> if so, that sounds like an IIS bug, or at least a bug with how the browser is interpreting IIS headers
306: [05:14:16] <Rob__> Chrome/Firefox show the error, IE doesn't
307: [05:16:47] <irogue> hehe, big surprise there
308: [05:17:14] <irogue> so, IIS is probably delivering somewhat dodgy headers, which they've "fixed" in IE
309: [05:17:41] <ss23> Still, woudln't expect to hit it, lots of people use IIS
310: [05:17:45] <irogue> yeah
311: [05:17:50] * guci0 has joined #silverstripe
312: [05:17:56] <irogue> could be a strange configuration
313: [05:18:30] <Rob__> SS has even documented the installation process for IIS and have the package up, we have several sites done in SS...could it be my web.config?
314: [05:19:01] <Rob__> or machine.config?
315: [05:19:14] <irogue> quite possibly
316: [05:19:43] <ss23> I don't know enough about IIS to help
317: [05:19:44] <ss23> :<
318: [05:20:00] <Rob__> Just wondering if it was a common issue, or possibly something more specific to my server
319: [05:20:23] <Rob__> I've only found a few topics online, so there are others with the same issue, but its been unresolved
320: [05:20:30] <ss23> "Changing Silverstripe internally to make this optional is an option."
321: [05:20:31] <ss23> lol
322: [05:20:42] <ss23> I need to re-read the things I write
323: [05:21:00] * openbees has joined #silverstripe
324: [05:22:19] <ss23> Grooveshark needs to get its crap together
325: [05:22:34] <ss23> "Here, I made some recommendations for you! Some hardcore scandanvian black metal, and some Veronicas!"
326: [05:23:00] * nickmolhoek quit (Quit: nickmolhoek)
327: [05:26:51] <guzzlefry> Is it possible to add a form to the CMS? I need to run a custom query given some data.
328: [05:34:41] * howardgrigg has joined #silverstripe
329: [05:38:40] * mobiusnz has joined #silverstripe
330: [05:55:39] <EasyCo> Anyway I can automatically set a pages showinmenu to 0 if it's created under a certain page?
331: [05:55:41] * henkpoley has joined #silverstripe
332: [05:57:51] * HamburgerMichel has joined #silverstripe
333: [05:58:51] <DesignerX> EasyCo: maybe onAfterWrite(){ $this->showinmenu = $this->parent()->showinmenu } ?
334: [05:59:25] <DesignerX> add this to your page type , or even to the Page class so all pages have this same feature
335: [05:59:30] <EasyCo> Hmm, I don't mind that, gonna have looksie
336: [06:01:10] <Shrike_Finland> Good morning
337: [06:01:35] <DesignerX> good afternoon
338: [06:02:27] <Shrike_Finland> Tested your Gadget: got some errors...
339: [06:02:56] <DesignerX> really ? what are they
340: [06:11:37] <EasyCo> DesignerX: public function onBeforeWrite() { if($this->parent()->ClassName == 'AboutPage') { $this->ShowinMenus = 0; } parent::onBeforeWrite(); }
341: [06:11:41] <EasyCo> Thanks
342: [06:14:38] <DesignerX> np
343: [06:18:11] <HamburgerMichel> hello. i have a little problem... hope anyone help me... i generate a pdf with smartPDF and save this in the asset folder.. how can i generate a link with the template..
344: [06:19:39] <DesignerX> HamburgerMichel: you need to create a File() object then change the Filename of that object to the path of the PDF
345: [06:20:44] <HamburgerMichel> ok! i try this... thanks
346: [06:31:56] <Shrike_Finland> Is it possible to use private static $defaults on Page or is it only available for Dataobjects?
347: [06:32:12] <EasyCo> You can
348: [06:32:18] <Shrike_Finland> Great!
349: [06:32:40] <EasyCo> DataObject > StieTree > Page
350: [06:39:26] * Colin[pi] quit (Ping timeout: 240 seconds)
351: [06:40:35] <Bollig|DesignCty> Question to all people from companies that have more than 2 person development teams: how doe team members develop on the same project? locally? Server? blah?
352: [06:41:17] <EasyCo> Every member has his/her own local setup
353: [06:41:25] <EasyCo> Code is managed with git and github
354: [06:41:36] <Shrike_Finland> Yep, local setup
355: [06:41:37] <EasyCo> local testing server has latest master branch
356: [06:41:53] <EasyCo> So other non-devs can access and play
357: [06:42:07] <Shrike_Finland> spot on, EasyCo
358: [06:42:59] <Bollig|DesignCty> Ah, so local testing on a local machine that get's updated every so?
359: [06:43:09] <Bollig|DesignCty> client access to that machine?
360: [06:43:14] <EasyCo> No
361: [06:43:27] <EasyCo> Client has access to a staging server
362: [06:43:41] <Bollig|DesignCty> BAH TOO MANY SERVERS
363: [06:43:44] <EasyCo> Which gets updated with master branch every once in a while
364: [06:43:44] <Bollig|DesignCty> okay cool :)
365: [06:43:50] <Bollig|DesignCty> nice
366: [06:43:52] <EasyCo> There's only 2 servers
367: [06:44:06] <EasyCo> local test server and remote staging
368: [06:44:11] <Bollig|DesignCty> so each dev computer runs a *amp stack?
369: [06:44:15] <EasyCo> Yes
370: [06:44:39] <Bollig|DesignCty> and the staging server is the 'production' machine for live sites, or that's separate?
371: [06:44:52] <EasyCo> For example here we all run Vagrant which run a CentOS environment
372: [06:45:11] <EasyCo> Which is exactly like our staging and production environment
373: [06:45:25] <Bollig|DesignCty> ah, cool.
374: [06:45:35] <EasyCo> Code stays in sync by using git properly
375: [06:45:50] <EasyCo> You start you work day by pulling latest master branch
376: [06:45:56] <EasyCo> and rebasing your development branch
377: [06:46:09] <EasyCo> That way everybody moves forward together
378: [06:46:22] <Bollig|DesignCty> and only push tested code I assume otherwise you get minties thrown at you...
379: [06:46:42] <EasyCo> Or sharper things
380: [06:47:01] <Bollig|DesignCty> min ties sharpened into throwing stars!
381: [06:48:02] <Bollig|DesignCty> The only sticking point for me is that we have a bunch of internal modules that we use svn:externals to manage. These get upgraded if clients have some paying work that's worth pushing back up to the module for all clients… I've not find a good way of accomplishing this in a workflow yet.
382: [06:49:25] <EasyCo> I've got very limited experience with svn, but I'd probably write something that handles that.
383: [06:49:53] <EasyCo> You can setup hooks that let a specific service know when a branch has been updated
384: [06:50:31] <EasyCo> So you can program a service that reacts to a specific branch being updated then triggers updates for your other clients
385: [06:50:47] * Zauberfisch has joined #silverstripe
386: [07:02:42] * Jayden90 quit (Quit: Jayden90)
387: [07:06:24] <simon_w|air> Bollig|DesignCty, use SVN :p
388: [07:07:12] <simon_w|air> The externals table lets you peg things at a specific revision, so you can do that when signing off and don't have to worry about accidentally updating a site you shouldn't
389: [07:08:45] <simon_w|air> EasyCo, why do you use github?
390: [07:09:17] <EasyCo> simon_w|air: Because I like octocats and wisky?
391: [07:09:50] <EasyCo> What do you mean? Why do I use it as in, why Github over other services?
392: [07:09:55] <simon_w|air> Yes
393: [07:10:04] <simon_w|air> Especially, why pay?
394: [07:10:08] * Shrike_Finland quit (Quit: Leaving.)
395: [07:11:25] <guzzlefry> simon_w|air: Would you happen to know if it's possible to add another section on the left side of the CMS so that I can throw a custom form in it? I need to run some fairly messy SQL based off of the input. :/
396: [07:11:37] <EasyCo> Well, firstly, I don't mind paying for a service I like. Secondly $25 a month for an org. account isn't exactly expensive.
397: [07:11:38] <simon_w|air> Yes
398: [07:11:49] <guzzlefry> pointers?
399: [07:12:19] <simon_w|air> guzzlefry, ModelAdmin or ReportAdmin
400: [07:12:40] <guzzlefry> awesome thanks
401: [07:13:31] <EasyCo> I've played with SpringLoops before which was alright and I liked the built in publishing service but I've always fell back to GH
402: [07:13:31] * zfmf1 has joined #silverstripe
403: [07:14:03] <EasyCo> simon_w|air: You use github for your modules. Why GH?
404: [07:14:23] <simon_w|air> Because people bitch if I use anything else
405: [07:14:32] <EasyCo> Haha
406: [07:15:18] <simon_w|air> Though the modules of mine I actually use are in SVN
407: [07:15:36] <EasyCo> I don't really care what git service a dev uses as long as it's not Google Code.
408: [07:15:56] <EasyCo> or whatever it's called
409: [07:18:35] <simon_w|air> And, for the record, if I did use git internally, I'd self-host. Screw hosting in the US and the massive latency involved.
410: [07:19:25] * Rob__ quit (Ping timeout: 250 seconds)
411: [07:19:44] <EasyCo> simon_w|air: I agree with you on that one
412: [07:19:58] <simon_w|air> Also, screw the Patriot Act :p
413: [07:20:04] <EasyCo> Not so mention that GitHub seems to be getting flaky
414: [07:20:27] * Bollig|DesignCty agreed simon_w. I do heart svn, and it's 100x more than a small development team needs anyway...
415: [07:20:41] <simon_w|air> I did like that day GitHub ran their test suite on the live setup
416: [07:22:07] <EasyCo> GitHub does look like a pretty cool place to work if you don't mind living in S.V.
417: [07:22:21] <EasyCo> haha I hadn't heard about that.
418: [07:22:22] <Bollig|DesignCty> simon_w|air: and shit yeah, it's great to be able to peg svn externals to specific revisions for a single site, that's one of my queries about how composer works for ss3 actually...
419: [07:22:42] <EasyCo> Everytime I see composer I shutter.
420: [07:22:58] <EasyCo> Should be renamed to Timeout
421: [07:23:00] <simon_w|air> Bollig|DesignCty, other than composer working poorly in general? :p If you commit your composer.lock file and composer install, it uses that for versions and stuff
422: [07:23:15] <simon_w|air> EasyCo, it was when they completely wiped their database a couple of years back
423: [07:23:25] <simon_w|air> Took a day to come back up
424: [07:23:42] <EasyCo> That was probably before my time of using Git and GH.
425: [07:24:08] <EasyCo> I guess that can happen when you have massive drink ups at you head office
426: [07:24:12] <simon_w|air> Bollig|DesignCty, just a warning with SVN and Composer though: it doesn't prompt you to accept certificates, so fails on https repos
427: [07:24:40] <Bollig|DesignCty> huh.
428: [07:25:11] <Bollig|DesignCty> meh, seems to replicate externals anyway, not sure there's a whole bunch of benefits to updating the workflow for it tbh.
429: [07:25:17] <howardgrigg> hey simon_w|air do you know what this could be caused by? http://note.io/14sfNMs I think it must be a server config thing but I dunno
430: [07:26:00] <howardgrigg> it's outputting those random characters on all generated pages
431: [07:26:18] <guzzlefry> How do I find out which version of SilverStripe I'm on? I hover over the Logo in the admin page and it says Version - CMS: unknown Framework: unknown :/
432: [07:26:28] <simon_w|air> howardgrigg, some weird encoding on some file? Try sticking something like if(headers_sent($file, $line)) var_dump($file, $line); in an init()?
433: [07:26:39] <simon_w|air> guzzlefry, how did you install it?
434: [07:26:54] <guzzlefry> simon_w|air: I didn't. I'd guess composer.
435: [07:27:04] <simon_w|air> Check the composer.lock file
436: [07:27:15] <simon_w|air> Or composer.json for one that's nicer to read
437: [07:30:57] <howardgrigg> simon_w|air: not outputting anything...
438: [07:31:13] <simon_w|air> howardgrigg, do you get those weird characters on that page?
439: [07:31:20] <howardgrigg> yea
440: [07:31:23] * DigNZ quit (Quit: DigNZ)
441: [07:31:37] <guzzlefry> simon_w|air: looks like 3.1.x-dev
442: [07:31:54] <guzzlefry> Which I guess I shouldn't update.
443: [07:32:04] <guzzlefry> Since that seems to break permissions. :/
444: [07:32:25] <simon_w|air> howardgrigg, getting any weird headers pack? Do a grep for SYN?
445: [07:33:30] <guzzlefry> Is there any migration tool to pick up any broken $allowed_actions stuff?
446: [07:33:45] <simon_w|air> howardgrigg, it does look a little like someone's including an image file or some such
447: [07:33:51] <simon_w|air> guzzlefry, nope
448: [07:34:03] <guzzlefry> dang, that thing is killing me.
449: [07:34:11] <simon_w|air> guzzlefry, isn't hard to do manually, is rather hard to automate
450: [07:34:22] <EasyCo> How do I change the HtmlEditorConfig in the CMS? I thought is just took the latest one to set_active()
451: [07:34:35] <simon_w|air> EasyCo, it uses the cms config
452: [07:34:49] <EasyCo> How do I make it uses a different one?
453: [07:34:54] <EasyCo> I've create a separate config
454: [07:35:09] <guzzlefry> simon_w: I find it hard to tell which classes are actually controllers due to lots of subclassing. So I don't know when something is broken until it tries to hit that code.
455: [07:35:18] <EasyCo> So I actually have two available HtmlEditorConfig: 'cms' and 'scp'
456: [07:35:33] <guzzlefry> Maybe my IDE does class hierarchies..
457: [07:35:45] * osterlaus has joined #silverstripe
458: [07:35:56] <howardgrigg> simon_w|air: gah so weird I trashed my template file and remade it and it disappeared - but I don't get it because it was appearing in the CMS and everywhere...
459: [07:36:46] * anu has joined #silverstripe
460: [07:37:37] <simon_w|air> EasyCo, assuming everyone's in a group, edit the group and set the 'HTML Editor Configuration' value
461: [07:38:48] <EasyCo> simon_w|air: But that's by group, I need page specific.
462: [07:39:06] <simon_w|air> EasyCo, you can't. Only one config gets injected
463: [07:39:07] <EasyCo> I thought just chucking: HtmlEditorConfig::set_active('scp'); in getCMSFields() would be enough
464: [07:40:41] <EasyCo> Really? That's pretty limiting if so.
465: [07:40:44] <simon_w|air> https://groups.google.com/d/msg/silverstripe-dev/SbnrMNEzaf4/H1U8Qxnw5sQJ
466: [07:43:03] <guzzlefry> Is using private static $allowed_actions frowned upon?
467: [07:43:10] <guzzlefry> Should I be using YAML instead?
468: [07:43:33] <simon_w|air> While you can use YAML, you probably shouldn't
469: [07:43:43] <guzzlefry> ok, good to know.
470: [07:43:55] <EasyCo> simon_w|air: Thanks for that link
471: [07:44:10] <guzzlefry> Turns out PHPStorm can generate diagrams. So I can see which inherits from controller.
472: [07:44:18] * Shrike_Finland has joined #silverstripe
473: [07:44:42] * UncleCheese has joined #silverstripe
474: [07:50:33] * UncleCheese quit (Ping timeout: 264 seconds)
475: [07:56:18] <EasyCo> Home for me. Cheers for the help.
476: [07:56:38] * EasyCo quit (Quit: EasyCo)
477: [07:56:46] * kinglozzer has joined #silverstripe
478: [07:57:33] * jmConan has joined #silverstripe
479: [08:00:59] <jmConan> hi guys! i'm trying to get my gallery working since days... is there anyway to use the $ID of a $Children in a loop in another php controller class e.g. control GetGalleryCoverImage($ID) ?
480: [08:01:24] <simon_w|air> In 3.1, yes
481: [08:02:01] <jmConan> hmm okay but only in the template engine of 3.1?
482: [08:02:59] <simon_w|air> Well, that's the only one where you can pass variables between scopes
483: [08:04:17] <jmConan> okay then i will be force to upgrade from 3.0.5 ;) to 3.1+
484: [08:04:25] <jmConan> th simon
485: [08:04:28] <jmConan> thx
486: [08:04:39] <simon_w|air> Why can't you just have the GetGalleryCoverImage method on the item in the loop?
487: [08:06:04] * Colin[pi] has joined #silverstripe
488: [08:06:51] * zippy__ has joined #silverstripe
489: [08:08:18] <jmConan> in the galleryHolder i run the Children loop for $GalName $ GalTitle $ID and so on, then my GetGalleryCoverImage runs the Image table, to geht the FileIDs for the File table to display the images with sortID = '1'
490: [08:08:39] <jmConan> by now i have no better idea to run that... :/
491: [08:21:24] * zfmf1 quit (Ping timeout: 256 seconds)
492: [08:27:26] * osterlaus quit (Quit: Leaving.)
493: [08:30:10] * ocm has joined #silverstripe
494: [08:31:28] <ocm> howdy!
495: [08:32:36] * swordsmanz has joined #silverstripe
496: [08:33:58] * r3v3rb has joined #silverstripe
497: [08:34:09] <Colin[pi]> howdy pardner
498: [08:36:57] * r3v3rb quit (Client Quit)
499: [08:41:38] * kinglozzer 50 new emails from bug tickets this morning - kill me plz
500: [08:42:03] <ss23> xD
501: [08:42:11] <ss23> I got down to sub 30 tickets
502: [08:42:12] <ss23> :D
503: [08:54:01] * priithansen has joined #silverstripe
504: [09:09:25] * openbees quit (Quit: Leaving)
505: [09:17:10] * henkpoley quit (Quit: henkpoley)
506: [09:18:29] * jmConan quit (Quit: Page closed)
507: [09:25:31] * lobarvaz has joined #silverstripe
508: [09:27:48] <wmk> in ss3.1/cms: is there a way to disable automatic update of MenuTitle when editing the Title?
509: [09:35:44] * mattybalaam has joined #silverstripe
510: [09:37:41] <wmk> hi mattybalaam
511: [09:38:01] <mattybalaam> hello!
512: [09:40:09] <kinglozzer> Hnnnngggg stupid memory limits
513: [09:41:30] * kinglozzer php_value memory_limit 1024M
514: [09:41:39] <kinglozzer> Host probably wouldn't be happy about that
515: [09:50:08] <simon_w|air> So fix the underlying problem :p
516: [09:55:43] * HamburgerMichel quit (Quit: Leaving)
517: [09:57:27] <zippy__> select * form everything!
518: [09:58:12] <simon_w|air> SELECT * would actually be faster for most SS sites
519: [09:58:43] <simon_w|air> At least with Postgres. Didn't bother checking MySQL
520: [10:04:15] * henkpoley has joined #silverstripe
521: [10:06:22] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
522: [10:10:36] <kinglozzer> simon_w|air: I wish I could! Around 1000 dataobjects are being loaded into a Gridfield from an API as opposed to the database. How does Gridfield apply pagination, is it PHP or SQL limit/offset?
523: [10:11:17] <simon_w|air> it just passes ->limit($x, $y) to the underlying SS_List
524: [10:14:12] <kinglozzer> Hmm. My query to the API happens in a custom SearchContext. Is there any way to access $x & $y in there that you can think of? Or perhaps a better way of doing it entirely?
525: [10:15:06] <simon_w|air> Are you able to wrap the API calls in your own SS_List instead that's lazy like DataList?
526: [10:18:26] * simon_w|air quit (Quit: This computer has gone to sleep)
527: [10:19:11] <kinglozzer> I haven't tried, I've just been loading them into an ArrayList.
528: [10:22:13] <kinglozzer> simon_w: If you're there, I guess I'd use, for example, ->limit($x, $y) to alter the request. How would I tell the Gridfield to use my custom list class?
529: [10:22:30] <ocm> is there a way to put a gridfield into a gridfield item? e.g. I have a slider which can contains strings of text (a non fixxed amount, so I want to make it possible to add extrra lines like in the gridfield)
530: [10:23:20] * dangerdan has joined #silverstripe
531: [10:23:29] <kinglozzer> ocm: slider has_many textstrings? :P
532: [10:23:48] <dangerdan> should it be possible to require more javascript files after i have processed a combined javascript file
533: [10:23:56] <kinglozzer> Or the lazy way, a textarea where they enter new lines for each string and then explode on "\n" :D
534: [10:24:04] <dangerdan> i cant get it to work
535: [10:24:35] <ocm> hmm, it seems to work indeed kinglozzer
536: [10:24:35] <ocm> :D
537: [10:24:43] <ocm> awesome
538: [10:24:49] <ocm> gridfield inception FTW!
539: [10:25:19] <dangerdan> so for example if i have a contact page with contact.js, can i just add this on to the document as its own script tag for the contact page from inside contacts init method say? whilst still having a combined script.js for the whole site
540: [10:25:22] <kinglozzer> Gridception
541: [10:25:32] <ocm> hear hear! haha
542: [10:25:34] <kinglozzer> dangerdan: I think so
543: [10:26:02] <kinglozzer> In your init for Page.php add you combine_files, in your init for ContactPage add your other requirement
544: [10:26:28] <ocm> kinglozzer, perhaps any clue how to show my gridfield textstrings in the slidergridfield? I get a tempalte error on that xD
545: [10:28:28] <dangerdan> that doesnt seem to be working for me... i must be doing something wrong...
546: [10:28:36] <zippy__> damn had to track down a prick of a bug, was checking based on HTTP_HOST - but it turns out an automated script was appending the port so the check would fail! But when you view in browser, works fine…. curses
547: [10:31:52] <kinglozzer> dangerdan are you calling parent::init(); ?
548: [10:32:02] <dangerdan> yes i was doing something wrong
549: [10:32:09] <dangerdan> yeh i am, sorry it was my bad
550: [10:32:30] <dangerdan> was trying to load from '/mysite/javascript' as opposed to 'mysite/javascript'
551: [10:32:33] <kinglozzer> ocm: <% loop TextStrings %> ?
552: [10:32:34] <kinglozzer> :P
553: [10:35:58] <kinglozzer> Who the hell puts a keypress event for return to submit a form?! That's evil. It submits when I press enter to choose an autofill suggestion from an input :P
554: [10:39:32] <ocm> kinglozzer its not the frontend, its within the cms :p
555: [10:39:41] <ocm> displaying the value of a gridfield inside a gridfield is too much
556: [10:40:01] <ocm> so probably should make a function that does the loop and returns the strings joined together with linebreaks in it
557: [10:40:10] <kinglozzer> ocm: Ahhh you mean $summary_fields ?
558: [10:40:15] <ocm> ah yes!
559: [10:40:45] <kinglozzer> Yeah you'll need to create a function for it. Though a gridfield with lots of line breaks on each row will look horrible :P
560: [10:41:03] <DesignerX> ocm: so you want the 1st GF to display the content of the 2nd GF in the 1st GF summery ?
561: [10:41:08] <ocm> any suggestions other than mine to summaries the strings?
562: [10:42:12] <ocm> DesignerX, that is exactly the plan
563: [10:42:23] <ocm> its a slider, wit has_many textstrings
564: [10:43:24] * ARNHOE has joined #silverstripe
565: [10:43:31] * dangerdan quit (Ping timeout: 250 seconds)
566: [10:43:43] <DesignerX> yeh, I think you already got the best way to do it, add up all the strings
567: [10:45:23] <ocm> so it will be!
568: [10:45:28] <ocm> thanks for thinking along with me :)
569: [10:45:42] <DesignerX> np anytime :)
570: [10:47:19] <DesignerX> ocm: btw, if you have lots of sliders & each slider has a long list of "stringtext" objects, this will make a long page on the 1st GF
571: [10:48:41] <DesignerX> maybe make the "stringtexts" how up in a tooltip when you hover on the slider in the 1st GF ? just an idea
572: [10:50:37] <ocm> hm, that is actually a good idea
573: [10:51:12] <DesignerX> ocm: then package that into a GB component & send it to me :)
574: [10:51:17] <DesignerX> GF *
575: [10:51:37] <ocm> the function + tooltip?
576: [10:52:14] <DesignerX> what ever you end up with, if you need a tester .
577: [10:52:37] <ocm> will do if I am satisfied with the result myself
578: [10:52:43] <ocm> see if I can impress you too, haha
579: [10:52:58] <ocm> but for now, lunch comes first! :D
580: [10:53:35] <DesignerX> lol kk, GL & PM if you need anything (with PM I get a nice notification when my IRC client is in the background)
581: [10:53:48] <ocm> allrighty!
582: [10:58:00] <wmk> any changes with shortcuts / shortcutparser in SS3?
583: [11:24:28] * Jim has joined #silverstripe
584: [11:24:52] * Jim is now known as Guest89429
585: [11:28:23] <Guest89429> hi guys, i have my perfect little multi dimensional array build via page.php and it works fine. but i seem to be too stupid to call it in the template. how can i call the array $data['key']['key2'] in the template? any suggestions?
586: [11:35:44] * LoveDuckie has joined #silverstripe
587: [11:36:08] * henkpoley quit (Quit: henkpoley)
588: [11:38:20] * lerni has joined #silverstripe
589: [11:38:20] * henkpoley has joined #silverstripe
590: [11:49:53] <DesignerX> Guest89429: hi, you have the array as arraydata ?
591: [11:50:09] <DesignerX> Guest89429: http://api.silverstripe.org/3.1/class-ArrayData.html
592: [11:52:09] <DesignerX> Guest53324: http://api.silverstripe.org/3.1/class-ArrayList.html
593: [11:52:25] <DesignerX> Guest53324: once you have your array setup correctly, in template you can do
594: [11:52:49] <Guest89429> i'm using 3.0.5 any difference to 3.1?
595: [11:52:51] * anu quit (Ping timeout: 250 seconds)
596: [11:52:55] <kinglozzer> Nope
597: [11:53:17] <kinglozzer> 3.0 API is here anyway http://api.silverstripe.org/3.0/ :)
598: [11:54:36] * zfmf1 has joined #silverstripe
599: [11:56:17] <DesignerX> <% Loop $MyArray1 %><% if $Key1 %> <% loop $Key1 %><% if $Key2 %> the content of $data['key']['key2' = $Key2 <% end_if %><% end_loop %><% end_if %><% end_loop %> (needs testing)
600: [11:56:48] * howardgrigg quit (Remote host closed the connection)
601: [11:58:51] * UndefinedOffset has joined #silverstripe
602: [12:00:05] <Guest89429> DesignerX: my php code is here: http://de.sourcepod.com/rgpnyo97-19709 and i'm not quite sure how to transfer it to the ArrayData syntax...
603: [12:01:07] <DesignerX> Guest89429: is $GalleryInfos data from SS or from other source ?
604: [12:01:30] <Guest89429> $GalleryInfos = GalleryPage::get(); $GalleryInfos = $GalleryInfos->filter(array('ID' => $Galleries->getIDList()));
605: [12:03:23] * MiniZeka has joined #silverstripe
606: [12:04:06] <MiniZeka> I need a help with extending DataObject
607: [12:04:14] <zippy__> oh?
608: [12:04:43] <MiniZeka> I want to extend it with one parent class, which can be later extended with child classes, but I don't want to have DB table "parent class"
609: [12:05:34] <MiniZeka> which I did, but problem is that now I can't do ChildClass::get() since SS tries to query ParentClass table left joined with ChildClass
610: [12:08:09] <MiniZeka> any advice?
611: [12:11:24] <DesignerX> Guest89429: I think you can do $GalleryInfos= GalleryPage::get()->filter(array('ID' => $Galleries->getIDList()));
612: [12:11:51] <DesignerX> Guest89429: looking at your code to try figure out what you trying to do
613: [12:17:20] <DesignerX> MiniZeka: hi, if Parent class has no db fields, I think it will just query the ChildClass ?
614: [12:23:09] <MiniZeka> DesignerX: I thought so, but no
615: [12:23:11] <MiniZeka> Couldn't run query: SELECT DISTINCT "ParentClass"."ClassName", "ParentClass"."Created", "ParentClass"."LastEdited", "ChildClass"."Field1", "ParentClass"."ID", CASE WHEN "ParentClass"."ClassName" IS NOT NULL THEN "ParentClass"."ClassName" ELSE 'ParentClass' END AS "RecordClassName" FROM "ParentClass" LEFT JOIN "ChildClass" ON "ChildClass"."ID" = "ParentClass"."ID" WHERE ("ParentClass"."ClassName" IN ('ChildClass')) Table 'Paren
616: [12:28:50] <zippy__> MiniZeka: can you make the class an abstract class?
617: [12:29:09] <zippy__> I think the parent DB always get created, its if the child class has no new fields a new table isn't created
618: [12:30:46] <MiniZeka> zippy__: how can I do that?
619: [12:31:49] <zippy__> http://php.net/manual/en/language.oop5.abstract.php
620: [12:31:56] <zippy__> but i don't know what SS will do
621: [12:33:44] <MiniZeka> will throw fatal error...
622: [12:36:00] * Guest89429 is now known as jmConan
623: [12:52:32] <kinglozzer> MiniZeka: Can you do ParentClass::get()->filter('ClassName', $childClassName); ?
624: [13:10:25] * MiniZeka quit (Ping timeout: 250 seconds)
625: [13:10:48] * ARNHOE quit (Remote host closed the connection)
626: [13:13:14] * zippy__ quit (Ping timeout: 256 seconds)
627: [13:18:02] * ChronicD has joined #silverstripe
628: [13:19:17] * priithansen quit (Quit: priithansen)
629: [13:21:58] * jon-shape has joined #silverstripe
630: [13:26:07] * henkpoley quit (Quit: henkpoley)
631: [13:27:53] * ChronicD quit (Quit: Page closed)
632: [13:30:06] * violetina has joined #silverstripe
633: [13:30:07] * henkpoley has joined #silverstripe
634: [13:30:57] * catcher has joined #silverstripe
635: [13:33:16] * mobiusnz quit (Read error: Connection reset by peer)
636: [13:33:30] * mobiusnz has joined #silverstripe
637: [13:38:54] * ChronicD has joined #silverstripe
638: [13:40:18] * lerni quit (Ping timeout: 268 seconds)
639: [13:41:08] * ChronicD_ has joined #silverstripe
640: [13:41:16] * priithansen has joined #silverstripe
641: [13:42:28] * ChronicD quit (Client Quit)
642: [13:42:28] * ChronicD_ is now known as ChronicD
643: [13:43:01] * lerni has joined #silverstripe
644: [13:44:56] * mattybalaam quit (Quit: mattybalaam)
645: [13:50:47] * kinglozzer quit (Remote host closed the connection)
646: [13:54:04] * kinglozzer has joined #silverstripe
647: [13:55:30] * henkpoley quit (Quit: henkpoley)
648: [13:55:51] <ChronicD> lots of people coming and going here :)
649: [13:56:00] <ChronicD> but nada chato
650: [13:57:41] * henkpoley has joined #silverstripe
651: [13:57:46] <kinglozzer> Busy busy busy!
652: [13:58:15] * Shrike_Finland quit (Quit: Leaving.)
653: [14:01:59] * obbo has joined #silverstripe
654: [14:02:17] <obbo> hello, is there any way to get a zero-based index for $Pos in SS3?
655: [14:11:22] * Shrike_Finland has joined #silverstripe
656: [14:18:09] * catcher quit (Quit: Leaving)
657: [14:18:23] * catcher has joined #silverstripe
658: [14:18:24] * catcher quit (Changing host)
659: [14:18:24] * catcher has joined #silverstripe
660: [14:19:22] * Colin[pi] quit (Ping timeout: 256 seconds)
661: [14:26:13] * obbo quit (Quit: Page closed)
662: [14:27:39] * Shrike_Finland quit (Quit: Leaving.)
663: [14:28:39] * testssstts has joined #silverstripe
664: [14:29:03] * testssstts has left #silverstripe
665: [14:32:35] * UndefinedOffset quit (Quit: Leaving.)
666: [14:32:50] * UndefinedOffset has joined #silverstripe
667: [14:37:25] * UndefinedOffset quit (Ping timeout: 248 seconds)
668: [14:40:35] <wmk> obbo what do you mean?
669: [14:40:37] * Nivery has joined #silverstripe
670: [14:59:57] * UndefinedOffset has joined #silverstripe
671: [15:16:11] * henkpoley quit (Quit: henkpoley)
672: [15:19:42] * henkpoley has joined #silverstripe
673: [15:19:46] * lerni_ has joined #silverstripe
674: [15:23:01] * lerni quit (Ping timeout: 276 seconds)
675: [15:30:46] * spronk quit (Ping timeout: 256 seconds)
676: [15:37:02] * zfmf1 has left #silverstripe
677: [16:07:51] * henkpoley quit (Quit: henkpoley)
678: [16:14:49] <kinglozzer> simon_w: I've spent the entire afternoon rebuilding the entire logic for how my application speaks to the API after your SS_List suggestion, predictably I can't test it as the API is down but it seems like a much more robust solution - as I can override MyObject::get() to use my new list instead of DataList. Thanks for the suggestion :)
679: [16:14:50] * kinglozzer quit (Remote host closed the connection)
680: [16:30:33] <AlphaCactus> why doesn't Director:
681: [16:30:34] <AlphaCactus> environment_type: 'dev' have any effect.
682: [16:33:48] <micmania1> Director doesn't extend Object which is central to the config system (I believe)
683: [16:34:25] <micmania1> I may be wrong though...
684: [16:34:34] <AlphaCactus> whats the preferred way to set @config vars on it then? it looks like you are correct
685: [16:35:54] * DesignerX quit (Ping timeout: 240 seconds)
686: [16:36:01] <AlphaCactus> oh well, _config.php it is
687: [16:36:07] <micmania1> Set them in your _config.php file.
688: [16:36:21] <micmania1> use Director::set_environment_type("dev");
689: [16:40:39] <Zauberfisch> AlphaCactus: well, since dev is only suppose to be ON on a dev environment, I see why they did not care about it in the config system
690: [16:40:46] <Zauberfisch> there are 2 ways:
691: [16:40:50] <Zauberfisch> - Director::set_environment_type("dev");
692: [16:41:03] <wmk> is the current lang / locale saved in the session? or do i have to save it myself?
693: [16:41:25] <Zauberfisch> or using the _ss_environment.php file to configure your environment (define('SS_ENVIRONMENT_TYPE', 'dev');)
694: [16:41:55] <Zauberfisch> AlphaCactus: read about _ss_environment.php here: https://github.com/Zauberfisch/silverstripe-boilerplate#configuration-with-_ss_environmentphp
695: [16:44:31] * azureKnight has joined #silverstripe
696: [16:47:41] <AlphaCactus> yes, the problem is that the staging server is set to live cause 100 sites use the same env file, but my local env file is set to dev. so when I want t test in dev on the staging server, I can't update the env file without affecting all the sites. or duplcating the env file.
697: [16:47:59] <AlphaCactus> but no big deal, i'll just use the _config.php. I just wanted to know why the yml wasn't working
698: [16:50:41] <Zauberfisch> is it default behavirour for appache to install with AllowOverwrite None? :O
699: [16:56:20] <azureKnight> Hey guys, long time no inquisition. Have something I'm trying to figure out with SS3.1 beta.
700: [16:58:58] <azureKnight> I'm making a sort of ad system for this site I'm working on, user's login and submit a form to display their advertisement on the front of the site, and I've already done the hooks in relations and actually got the items to display on the homepage. However, whenever I try and list the Member info of the one posting, SS throws me this error "DataList::create Can't find data classes (classes linked to tables) for User."
701: [16:59:36] <azureKnight> User is the Member decorator that I'm using to relate Member (has_many-> ad) to the ad (has_one user)
702: [17:00:05] * lobarvaz quit (Remote host closed the connection)
703: [17:01:05] * lietzmk has joined #silverstripe
704: [17:02:28] <azureKnight> That error is thrown if I write anything but $UserID
705: [17:03:37] * Colin[pi] has joined #silverstripe
706: [17:19:53] * Zauberfisch quit (Quit: Leaving...)
707: [17:20:11] * SphereSilverNL has joined #silverstripe
708: [17:22:19] * gelignite has joined #silverstripe
709: [17:30:42] <catcher> When I use getJSON() in some custom JS in the CMS, my CMS styles change on me. Left-aligned buttons go center, font styles are lost, etc.
710: [17:31:04] * henkpoley has joined #silverstripe
711: [17:31:26] <SphereSilverNL> sounds like it's breaking some div
712: [17:31:29] <catcher> The JS declares a click handler, which seems to be fine without the getJSON.
713: [17:31:46] * Nivery quit (Quit: Nivery)
714: [17:32:01] <catcher> The getJSON success merely does a console.log();
715: [17:35:11] * Nivery has joined #silverstripe
716: [17:37:36] <SphereSilverNL> sounds like it is breaking some javascript or div hierarchy none the less
717: [17:43:44] <micmania1> is it possible to find a form element in an unnamed composite field?
718: [17:44:05] <SphereSilverNL> nth item maybe?
719: [17:45:10] <jrthomer> question, if I have a many many list, how do I programmatically change a value in the extraFields?
720: [17:45:44] <jrthomer> $parent->getSomeList() gives me the list, and I can call ->getExtraData, but I don't see equivalent for setExtraData
721: [17:45:54] <jrthomer> without removing and calling $list->add($obj, $extraData)
722: [17:46:53] <micmania1> http://www.sspaste.com/paste/show/51f163c294e17 0 Here's my problem. I'm trying to get $uploadButton which is a LiteralField named 'UploadButton'
723: [17:47:00] <SphereSilverNL> It's there
724: [17:47:01] <SphereSilverNL> http://api.silverstripe.org/3.0/source-class-ManyManyList.html#159-191
725: [17:47:56] <SphereSilverNL> wrong link
726: [17:49:29] <SphereSilverNL> You need this one I think
727: [17:49:30] <SphereSilverNL> http://doc.silverstripe.org/framework/en/reference/tablefield
728: [17:49:57] <SphereSilverNL> If not, sorry, it was just a quick-search ;) It's kanda warm here
729: [17:50:04] <SphereSilverNL> 36 Celsius warm
730: [17:50:14] <jrthomer> SphereSilverNL: I think the answer is "it's not built in" ... just looking at ajshort's extensions:
731: [17:50:15] <jrthomer> https://github.com/ajshort/silverstripe-gridfieldextensions/blob/master/code/GridFieldOrderableRows.php#L245-263
732: [17:50:28] <jrthomer> He's manually updating, which is likely what I need to do.
733: [17:50:45] <jrthomer> I was just hoping to say $list->setExtraData($newVal) ... :)
734: [17:50:48] <jrthomer> thanks though!
735: [17:51:07] <SphereSilverNL> Ouch, that's a serious bug!
736: [17:51:15] <SphereSilverNL> having a getter but no setter :/
737: [17:51:27] <micmania1> jrthomer, $list->add($dataObject, array("FieldName" => "Value");
738: [17:51:39] <catcher> SphereSilverNL, I'm not changing the markup at all in my code, trying to see what else could be.
739: [17:51:40] <micmania1> with another ) on the end :)
740: [17:51:47] <SphereSilverNL> hmmm, that actually works indeed
741: [17:51:51] <SphereSilverNL> what micmania1 says
742: [17:52:01] <micmania1> anybody got any ideas about my UploadButton issue?
743: [17:52:04] <SphereSilverNL> because the fun part about many_many lists, it removes existing values before adding them
744: [17:52:14] <SphereSilverNL> micmania1: can I have a look somewhere?
745: [17:52:44] <micmania1> http://www.sspaste.com/paste/show/51f163c294e17 - I'm trying to get $uploadBtn which is named 'UploadButton'
746: [17:52:59] <micmania1> The problem is, its inside two CompositeFields which don't have a name.
747: [17:53:07] <micmania1> and fieldByName doesn't seem to work.
748: [17:53:36] <micmania1> The code taken is from AssetAdmin is you'd like to look in more detail.
749: [17:54:52] <SphereSilverNL> I've given you a possible option, you tried that already?
750: [17:56:06] <micmania1> nth item? What do you mean by that?
751: [17:57:03] <SphereSilverNL> No, the comment on your pasty ;)
752: [17:57:19] <SphereSilverNL> the nth-item was a thought because I was still thinking about javascript ;)
753: [17:59:58] <micmania1> The problem with accessing the second compositefield is that neither of them have a name to target them by
754: [18:00:24] <SphereSilverNL> Then... why not just give them names?
755: [18:00:33] <micmania1> Its in the ss core.
756: [18:00:49] <micmania1> Im trying to update the uploadbutton via a dataextension
757: [18:00:53] <SphereSilverNL> Ow, indeed. Sorry, I'm far from the brightest of the bunch atm ;)
758: [18:01:27] <micmania1> What's really annoying is this could all be solved if another class allowed the same extension :(
759: [18:01:46] <micmania1> CMSFileAddController has no updateEditForm extension
760: [18:01:56] <azureKnight> FrozenFire, you awake?
761: [18:02:09] <FrozenFire> Arguable
762: [18:02:36] <azureKnight> Know that feeling. I was wondering if you had any insight about my earlier question.
763: [18:03:11] <SphereSilverNL> I'm a bit out of options and energy micmania1
764: [18:03:14] <SphereSilverNL> sorry :(
765: [18:03:27] <micmania1> no problem, i'm just going to loop through all the fields.
766: [18:03:31] <micmania1> and find it lol
767: [18:03:56] <FrozenFire> azureKnight, You'd need to reiterate it
768: [18:04:04] <azureKnight> Let me grab it.
769: [18:04:23] <azureKnight> I'm making a sort of ad system for this site I'm working on, user's login and submit a form to display their advertisement on the front of the site, and I've already done the hooks in relations and actually got the items to display on the homepage. However, whenever I try and list the Member info of the one posting, SS throws me this error "DataList::create Can't find data classes (classes linked to tables) for User.
770: [18:04:33] <azureKnight> ser is the Member decorator that I'm using to relate Member (has_many-> ad) to the ad (has_one user)
771: [18:04:36] <azureKnight> User*
772: [18:05:19] <azureKnight> If I ever try to call anything but UserID it just throws that error.
773: [18:05:27] <FrozenFire> You don't get a DataList for a DataExtension
774: [18:05:33] <FrozenFire> You just Member::get()
775: [18:05:50] <FrozenFire> That is, when you decorate Member, you're not creating a subclass of Member
776: [18:06:00] <FrozenFire> You're adding additional data to Member
777: [18:06:07] <azureKnight> From reading up on the differences, I'm pretty sure I decorated.
778: [18:06:21] <azureKnight> class User extends DataExtension
779: [18:06:27] <FrozenFire> Yes. So Member::get()
780: [18:06:30] <FrozenFire> Not User::get()
781: [18:06:39] <azureKnight> Ok.
782: [18:07:05] <azureKnight> So, in the User.php I connect it to the Ad, but in the Ad.php I connect it to "Member">
783: [18:07:06] <azureKnight> ?*
784: [18:10:31] <azureKnight> Ah.
785: [18:10:33] <azureKnight> You're a genius.
786: [18:10:46] <azureKnight> I'll have to buy you a beer someday.
787: [18:12:11] * nightart has joined #silverstripe
788: [18:16:57] <azureKnight> FrozenFire, last question. I have it currently giving me a dropdown of the Member's as to choose who is submitting the ad, is there a way to force it to be the current logged in member?
789: [18:17:58] <FrozenFire> new DropdownField("MemberID", "Member", Member::get()->map()->toArray(), Member::currentUserID())
790: [18:18:01] <FrozenFire> If I recall correctly
791: [18:19:28] <SphereSilverNL> azureKnight: Should the user be able to change it manually? If so, follow FrozenFire's advise
792: [18:19:43] <FrozenFire> If the user can't change it, then don't give them the option to.
793: [18:19:52] <SphereSilverNL> Otherwise, just set the user-ID in onBeforeWrite()
794: [18:19:57] <azureKnight> Right.
795: [18:19:59] <azureKnight> That's what I wanted.
796: [18:20:00] <SphereSilverNL> saves you a lot of thingies ;)
797: [18:20:08] <FrozenFire> SphereSilverNL, Don't use onBeforeWrite() like that. ;)
798: [18:20:14] <azureKnight> ...
799: [18:20:18] <azureKnight> ReadonlyField? :D
800: [18:20:53] <azureKnight> I don't want them to be able to change it, and I'm going to need to study up on onBeforeWrite, but now I'm confused on what to do... Haha.
801: [18:21:00] <SphereSilverNL> FrozenFire: why not?
802: [18:21:16] <FrozenFire> SphereSilverNL, Because that becomes DI incapable.
803: [18:21:25] <SphereSilverNL> DI?
804: [18:21:32] <FrozenFire> Set it in whatever is controlling the creation of this object.
805: [18:21:37] <FrozenFire> Dependency Injection
806: [18:22:23] <azureKnight> So, it would go in my form, not in an onbeforewrite?
807: [18:22:32] <FrozenFire> It would go in your form's action
808: [18:22:46] <SphereSilverNL> I would really discourage it using in a form via a hiddenfield
809: [18:22:54] <FrozenFire> Indeed. Don't use a HiddenField
810: [18:23:00] <SphereSilverNL> Than, a user that's a bit tech-savvy, can edit it anyway
811: [18:23:01] <azureKnight> Right. Won't do.
812: [18:23:03] <FrozenFire> Just display a piece of text indicating the name of the person.
813: [18:23:19] <SphereSilverNL> so, what else is there to do than to set it in onBeforeWrite()?
814: [18:23:31] <azureKnight> ^
815: [18:23:33] <azureKnight> What he asked.
816: [18:23:35] <FrozenFire> Set it in the form action.
817: [18:23:45] <FrozenFire> $ad->MemberID = Member::currentUserID();
818: [18:24:13] <SphereSilverNL> ahhhhh, yes. That's a cleaner way. :)
819: [18:24:25] <FrozenFire> Putting logic into the model which is dependent upon the session state is a bad idea, always.
820: [18:24:30] <azureKnight> Ok.
821: [18:24:31] <FrozenFire> The controller should be the one in charge of that.
822: [18:24:51] <azureKnight> So, would I just write that before my submiti form action?
823: [18:25:00] <FrozenFire> Uhh
824: [18:25:02] <azureKnight> (first time doing this sort of statement, sorry)
825: [18:25:28] <FrozenFire> No, you would write that in your form action.
826: [18:25:29] <FrozenFire> I think you're confusing terms. :)
827: [18:25:35] <azureKnight> I think I am too.
828: [18:25:35] <azureKnight> Haha
829: [18:25:36] <FrozenFire> Basically, whatever is the action for your form should do it in its code.
830: [18:32:33] <azureKnight> Of course the easy part is where I'm retarded. Haha.
831: [18:32:37] <azureKnight> Thanks for the help!
832: [18:33:40] <SphereSilverNL> I'm not retarded! I'm limited edition!
833: [18:34:08] <azureKnight> Haha. I'm saying I'm not understanding where to put that statement you guys taught me!
834: [18:35:08] <azureKnight> Where I put it isn't write because it's telling me it's having to create the default object from an empty value.
835: [18:35:11] <azureKnight> Which isn't good.
836: [18:35:36] <SphereSilverNL> Extend the parent-handler in your model
837: [18:36:00] <SphereSilverNL> the parent is the DO class itself. So find the DO-class it's formaction and update it.
838: [18:37:21] <azureKnight> http://www.sspaste.com/paste/show/51f16fc12b15d
839: [18:37:51] <azureKnight> Woah
840: [18:37:52] <azureKnight> Hold on.
841: [18:37:55] <azureKnight> That went bad. One second. Haha
842: [18:38:21] <azureKnight> http://www.sspaste.com/paste/show/51f17000e538a
843: [18:38:22] <azureKnight> This one
844: [18:38:45] * Error404NotFound has joined #silverstripe
845: [18:38:56] <azureKnight> I know it's in there twice, which isn't right. Haha.
846: [18:39:19] <SphereSilverNL> That should work, yes.
847: [18:39:31] <azureKnight> So, it should be in the doAdForm, right?
848: [18:39:33] <SphereSilverNL> but add a catch, what if there's no currentUser
849: [18:39:38] <SphereSilverNL> yes
850: [18:39:49] <azureKnight> The whole form itself is only available once logged in.
851: [18:40:02] <SphereSilverNL> isn't "Ad" a bit short? I'd use the full word (Advertisement) myself
852: [18:40:24] <azureKnight> I'm actually using a wholly different word, ad is just easy to explain
853: [18:40:31] <SphereSilverNL> ok :D
854: [18:41:07] <azureKnight> Hmm, no good. It staid it still has to make it itself.
855: [18:41:18] <SphereSilverNL> eh?
856: [18:41:29] <SphereSilverNL> you have to make "what" yourself?
857: [18:41:52] <azureKnight> Creating Default object from empty value
858: [18:42:11] <SphereSilverNL> Ofcourse.
859: [18:42:17] <SphereSilverNL> remove $Ad->MemberID
860: [18:42:20] <SphereSilverNL> replace it with
861: [18:42:24] <SphereSilverNL> $submission->MemberID
862: [18:42:26] <SphereSilverNL> ;)
863: [18:42:27] <azureKnight> Right!
864: [18:42:49] <SphereSilverNL> After thorough reading, I would actually be surprised if you didn't get that error :P
865: [18:42:53] <azureKnight> Nailed it.
866: [18:43:01] <azureKnight> Thank you SphereSilverNL
867: [18:43:11] <SphereSilverNL> and FrozenFire
868: [18:43:16] <azureKnight> Of course.
869: [18:43:20] <azureKnight> He always seems to save my butt.
870: [18:43:24] <FrozenFire> ;)
871: [18:43:46] <azureKnight> I'm just getting the crumbs of wisdom. ;)
872: [18:45:52] <SphereSilverNL> It's a matter of experience I guess, some just work at the top layer, some work deep inside the coalmine ;)
873: [18:48:12] <SphereSilverNL> That's not an insult, just a very simple explanation of the difference between "using coal" and "getting the coal to the users" :)
874: [18:48:38] <azureKnight> Ha. Yeah. I'm really wanting to get php and actual engine stuff under my belt.
875: [18:48:51] <azureKnight> I've been a front-end programmer for far too long, wanting to expand my skill set.
876: [18:49:24] <FrozenFire> Inasmuch as SilverStripe did a lot for me in getting shit done, I can say definitively that it's not good for learning good programming practises. ;)
877: [18:50:22] <SphereSilverNL> Please tell me, have you made 2.x websites?
878: [18:50:38] <FrozenFire> Me?
879: [18:50:56] <SphereSilverNL> if so, you did Convert::raw2sql($value); on DataObject::get();?
880: [18:51:01] <SphereSilverNL> anyone actually ;)
881: [18:51:23] <FrozenFire> Yes, and it was woefully insecure in the worst way.
882: [18:51:35] <SphereSilverNL> good
883: [18:51:44] <FrozenFire> Haha
884: [18:51:52] <SphereSilverNL> first time I noticed it didn't do that for me, I was in complete panic :P
885: [18:51:53] * lerni_ quit (Remote host closed the connection)
886: [18:52:16] <SphereSilverNL> Ow crap, did I forget to escape somewhere? owcrapowcrapowcrap
887: [18:52:29] * cloph_away is now known as cloph
888: [18:52:29] <azureKnight> Yeah. I don't think Silverstripe is the best for learning. Just the most convenient for rapid release of products for clients.
889: [18:52:34] <azureKnight> How did you start off learning, FrozenFire ?
890: [18:52:36] <FrozenFire> There are more pressingly oh-shit things about SS security. :P
891: [18:52:46] <FrozenFire> Though yeah, SQL injection is still a huge hole
892: [18:52:51] <SphereSilverNL> FrozenFire: Tell me about it :/
893: [18:53:06] * lerni has joined #silverstripe
894: [18:53:18] <SphereSilverNL> I'm, on that point, still confused, why not use prepared statements instead of direct queries??????
895: [18:53:20] <FrozenFire> azureKnight, The way I learnt how to write software probably isn't the best way. :P
896: [18:53:28] <FrozenFire> Nor is it a path most would want to take
897: [18:53:47] <FrozenFire> SphereSilverNL, Because it's hard.
898: [18:53:48] <azureKnight> Haha. Well, how do you recommend for some noob to get his head into the game? I'm serious about getting skilled in this. Tired of being the one to bitch to everybody, I'd liked to be on the other end of the wisdom chain.
899: [18:53:58] <FrozenFire> In that, rewriting the ORM to support prepared statements would break 90% of the code.
900: [18:54:01] <SphereSilverNL> moving from directly querieng the DB to prepared statements would probably fix 99% of the security issues
901: [18:54:05] <SphereSilverNL> why?
902: [18:54:16] <FrozenFire> Because the API for the ORM just doesn't support it.
903: [18:54:25] <SphereSilverNL> The eventual SQL-executor is the only one that needs an update
904: [18:54:30] * SightUnseen has joined #silverstripe
905: [18:54:55] <FrozenFire> No, that's a really bad way to think about it.
906: [18:55:30] <SphereSilverNL> But the only one actually firing the queries, is the DB-handler, right?
907: [18:55:35] <FrozenFire> Ultimately, if you need security, then don't use SS. I don't say that to piss on SS. It's just not going to give you security any time soon.
908: [18:55:35] <FrozenFire> azureKnight, #phpmentoring
909: [18:55:38] <SphereSilverNL> ow, I get it :)
910: [18:55:46] <FrozenFire> SQL parametrization is all about context.
911: [18:55:48] <SphereSilverNL> just read some deeper code ;)
912: [18:56:02] <azureKnight> I shall look into this.
913: [18:56:03] <azureKnight> Thanks.
914: [18:56:03] * SphereSilverNL goes up a tiny step
915: [18:56:07] <FrozenFire> The ORM is designed with extreme, lazy flexibility in mind.
916: [18:56:17] <FrozenFire> Which makes it really fast and easy to develop with
917: [18:56:48] * SightUnseen has left #silverstripe
918: [18:56:55] <FrozenFire> But the whole underlying design precludes implementing true prepared statements, unfortunately.
919: [18:57:29] <FrozenFire> I really wish we could take the SS CMS and drop it on top of ZF2 + Doctrine
920: [18:57:30] <FrozenFire> :P
921: [18:57:40] <FrozenFire> It's the one thing that I miss about SS
922: [18:57:57] <FrozenFire> Even though the CMS is also pretty damned buggy. :P
923: [18:59:17] * mobiusnz quit (Quit: Leaving.)
924: [18:59:28] * Error404NotFound quit (Ping timeout: 276 seconds)
925: [18:59:35] * SphereSilver has joined #silverstripe
926: [18:59:59] <SphereSilver> there we go, laptop time. It's too hot in my office :/
927: [19:00:58] * FrozenFire heard a funny joke yesterday that is so applicable here that I can't help but re-tell it
928: [19:01:21] <FrozenFire> "I don't want to say that my office is too hot, but two hobbits just came and threw a ring in it."
929: [19:01:24] <guzzlefry> haha
930: [19:01:42] <guzzlefry> FrozenFire, How'd I know? :P
931: [19:01:45] <FrozenFire> Hahaha
932: [19:01:50] <FrozenFire> Because I said I'd steal it
933: [19:01:58] <guzzlefry> oh yeah
934: [19:08:08] <SphereSilver> It's 38C in my office atm :/
935: [19:08:17] <SphereSilver> and about 28 in my livingroom
936: [19:11:37] <SphereSilver> I prefer the livingroom. But it doesn't have a computer or a nice seat :P
937: [19:12:04] <SphereSilver> brb on desktop probably, laptop is overheating :/
938: [19:12:50] * Error404NotFound has joined #silverstripe
939: [19:14:29] * Error404NotFound quit (Read error: Connection reset by peer)
940: [19:14:58] * Error404NotFound has joined #silverstripe
941: [19:15:18] * Error404NotFound quit (Read error: Connection reset by peer)
942: [19:16:14] * SphereSilver quit (Ping timeout: 240 seconds)
943: [19:17:12] <SphereSilverNL> Bye me!
944: [19:19:24] * guzzlefry waves
945: [19:20:33] * SphereSilverNL quit (*.net *.split)
946: [19:20:33] * ss23 quit (*.net *.split)
947: [19:20:36] * lietzmk quit (*.net *.split)
948: [19:20:37] * micmania1 quit (*.net *.split)
949: [19:20:38] * ooystein quit (*.net *.split)
950: [19:20:38] * simon_w quit (*.net *.split)
951: [19:20:38] * andylockran quit (*.net *.split)
952: [19:20:40] * jon-shape quit (*.net *.split)
953: [19:20:40] * wmk quit (*.net *.split)
954: [19:20:40] * Guest53324 quit (*.net *.split)
955: [19:20:42] * nightart quit (*.net *.split)
956: [19:20:43] * Nivery quit (*.net *.split)
957: [19:20:43] * gelignite quit (*.net *.split)
958: [19:20:43] * catcher quit (*.net *.split)
959: [19:20:43] * AlphaCactus quit (*.net *.split)
960: [19:20:44] * guzzlefry quit (*.net *.split)
961: [19:20:45] * Kapdap_ quit (*.net *.split)
962: [19:20:46] * FrozenFire quit (*.net *.split)
963: [19:20:46] * binman quit (*.net *.split)
964: [19:20:48] * Rojod quit (*.net *.split)
965: [19:20:48] * unsignedint quit (*.net *.split)
966: [19:20:49] * henkpoley quit (*.net *.split)
967: [19:20:49] * violetina quit (*.net *.split)
968: [19:20:50] * ec8or quit (*.net *.split)
969: [19:20:50] * irogue quit (*.net *.split)
970: [19:20:51] * mrzero quit (*.net *.split)
971: [19:20:52] * Zauberfisch_ quit (*.net *.split)
972: [19:20:52] * UndefinedOffset quit (*.net *.split)
973: [19:20:52] * priithansen quit (*.net *.split)
974: [19:20:52] * ChronicD quit (*.net *.split)
975: [19:20:53] * lewellyn quit (*.net *.split)
976: [19:20:53] * abitran quit (*.net *.split)
977: [19:20:55] * ajmitch_ quit (*.net *.split)
978: [19:20:55] * robert_ quit (*.net *.split)
979: [19:20:56] * MattSS_ quit (*.net *.split)
980: [19:20:56] * Kolin quit (*.net *.split)
981: [19:20:56] * jmConan quit (*.net *.split)
982: [19:20:56] * guci0 quit (*.net *.split)
983: [19:20:56] * lerni quit (*.net *.split)
984: [19:20:57] * azureKnight quit (*.net *.split)
985: [19:20:58] * jrthomer quit (*.net *.split)
986: [19:21:41] * lerni has joined #silverstripe
987: [19:21:41] * nightart has joined #silverstripe
988: [19:21:41] * Nivery has joined #silverstripe
989: [19:21:41] * henkpoley has joined #silverstripe
990: [19:21:41] * gelignite has joined #silverstripe
991: [19:21:41] * SphereSilverNL has joined #silverstripe
992: [19:21:41] * lietzmk has joined #silverstripe
993: [19:21:41] * azureKnight has joined #silverstripe
994: [19:21:41] * UndefinedOffset has joined #silverstripe
995: [19:21:41] * catcher has joined #silverstripe
996: [19:21:41] * priithansen has joined #silverstripe
997: [19:21:41] * ChronicD has joined #silverstripe
998: [19:21:41] * violetina has joined #silverstripe
999: [19:21:41] * jon-shape has joined #silverstripe
1000: [19:21:41] * jmConan has joined #silverstripe
1001: [19:21:41] * guci0 has joined #silverstripe
1002: [19:21:41] * AlphaCactus has joined #silverstripe
1003: [19:21:41] * ss23 has joined #silverstripe
1004: [19:21:41] * wmk has joined #silverstripe
1005: [19:21:41] * ooystein has joined #silverstripe
1006: [19:21:41] * simon_w has joined #silverstripe
1007: [19:21:41] * micmania1 has joined #silverstripe
1008: [19:21:41] * Guest53324 has joined #silverstripe
1009: [19:21:41] * guzzlefry has joined #silverstripe
1010: [19:21:41] * ec8or has joined #silverstripe
1011: [19:21:41] * Kapdap_ has joined #silverstripe
1012: [19:21:41] * irogue has joined #silverstripe
1013: [19:21:41] * FrozenFire has joined #silverstripe
1014: [19:21:41] * Rojod has joined #silverstripe
1015: [19:21:41] * andylockran has joined #silverstripe
1016: [19:21:41] * ajmitch_ has joined #silverstripe
1017: [19:21:41] * lewellyn has joined #silverstripe
1018: [19:21:41] * abitran has joined #silverstripe
1019: [19:21:41] * binman has joined #silverstripe
1020: [19:21:41] * robert_ has joined #silverstripe
1021: [19:21:41] * unsignedint has joined #silverstripe
1022: [19:21:41] * jrthomer has joined #silverstripe
1023: [19:21:41] * mrzero has joined #silverstripe
1024: [19:21:41] * MattSS_ has joined #silverstripe
1025: [19:21:41] * Zauberfisch_ has joined #silverstripe
1026: [19:21:41] * Kolin has joined #silverstripe
1027: [19:21:44] * cloph quit (Excess Flood)
1028: [19:22:06] * jmConan quit (*.net *.split)
1029: [19:22:07] * guci0 quit (*.net *.split)
1030: [19:22:36] * jmConan has joined #silverstripe
1031: [19:22:36] * guci0 has joined #silverstripe
1032: [19:23:56] * lerni quit (*.net *.split)
1033: [19:23:56] * azureKnight quit (*.net *.split)
1034: [19:23:58] * jrthomer quit (*.net *.split)
1035: [19:35:11] * lerni has joined #silverstripe
1036: [19:35:12] * azureKnight has joined #silverstripe
1037: [19:35:12] * jrthomer has joined #silverstripe
1038: [19:35:57] * azureKnight quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
1039: [19:38:47] <SphereSilverNL> Freenode isn't happy it seems?
1040: [19:39:12] <simon_w> [07:11:43] -mist- [Global Notice] There may be some join/part noise for a while as we need to re-hub a few servers for some maintenance. Those of a nervous disposition may wish to take a break and grab a beverage. Thanks for flying freenode.
1041: [19:40:22] <guzzlefry> So these warnings I get in the CMS, the little popups in the top-right, how can I get more information from them?
1042: [19:40:30] <guzzlefry> They don't appear in Apache's logs. :/
1043: [19:40:34] <simon_w> Look at the server responses
1044: [19:40:50] <SphereSilverNL> guzzlefry: look at the actual response in the inspector
1045: [19:42:56] <guzzlefry> ah, thanks, I was looking in the access log for a while. :P
1046: [19:47:16] <guzzlefry> You need to specify at least one DataObject subclass in public static $managed_models. Make sure that this property is defined, and that its visibility is set to "public"
1047: [19:48:40] <guzzlefry> I know the solution to that is fairly obvious, but what I was going for was a new admin panel with a custom form.
1048: [19:49:05] <guzzlefry> Something to run a complex query on. Am I even on the right track?
1049: [19:51:36] <guzzlefry> i.e. user goes to the panel, enters email, voucher code, and a date. Form is submitted and a very nested query finds and sets some stuff. Success message is returned.
1050: [20:02:27] <wmk> is it possible to pass a variable to a controller in _routes.yml?
1051: [20:02:53] <wmk> so "register" points to register controller, language english, "registrieren" same controller but german lang?
1052: [20:11:57] <simon_w> Nope
1053: [20:12:44] * mobiusnz has joined #silverstripe
1054: [20:15:13] <guzzlefry> simon_w: Any idea on my question? :/
1055: [20:15:40] <simon_w> You're not managing a model, so ModelAdmin's the wrong path
1056: [20:16:10] <simon_w> If you're just after a form, perhaps looking at SettingsAdmin is a better idea
1057: [20:16:23] <guzzlefry> I'll check it out, thanks.
1058: [20:17:06] <guzzlefry> err
1059: [20:17:36] <guzzlefry> simon_w: I don't see that in the API docs? 0.o
1060: [20:20:09] <simon_w> Huh, it's just a CMSMain subclass. That's boring.
1061: [20:20:41] <simon_w> Oh no, wrong class. CMSSettingsController
1062: [20:21:16] * wmk quit (Quit: nice to meet you ;))
1063: [20:23:41] * DigNZ has joined #silverstripe
1064: [20:23:42] * DigNZ quit (Remote host closed the connection)
1065: [20:23:56] * DigNZ has joined #silverstripe
1066: [20:28:01] * SightUnseen has joined #silverstripe
1067: [20:30:25] <guzzlefry> How would I use this?
1068: [20:30:57] * SightUnseen has left #silverstripe
1069: [20:31:36] <simon_w> You wouldn
1070: [20:31:58] <simon_w> You wouldn't. You'd build your own LeftAndMain subclass that provides the single form you want
1071: [20:34:00] * unsignedint quit (Remote host closed the connection)
1072: [20:34:06] <guzzlefry> ok, let me give it a try.
1073: [20:34:47] * lerni quit (Remote host closed the connection)
1074: [20:34:54] * UncleCheese has joined #silverstripe
1075: [20:35:47] <simon_w> UncleCheese, you asked and then left: http://pastebin.com/v88rtSmU
1076: [20:35:51] <simon_w> Completely untested :p
1077: [20:36:21] <UncleCheese> HAHA!
1078: [20:36:38] <UncleCheese> alright, let's give it a go
1079: [20:37:58] * UncleCheese quit (Client Quit)
1080: [20:39:07] * nickmolhoek has joined #silverstripe
1081: [20:39:10] * nickmolhoek quit (Remote host closed the connection)
1082: [20:39:27] * nickmolhoek has joined #silverstripe
1083: [20:42:11] <jrthomer> if I have a form that is editing SomeObject and SomeObject has_one SomeOtherObject ....
1084: [20:42:29] <jrthomer> how do I add a field to the form for SomeObject that edits a field on SomeOtherObject?
1085: [20:42:52] <jrthomer> I tried new TextField('SomeObject.SomeField' ...)
1086: [20:45:51] * Nivery quit (Quit: Nivery)
1087: [20:48:26] <guzzlefry> What's this :::ss I keep seeing in template examples?
1088: [20:48:39] <simon_w> Syntax highlighting hint
1089: [20:48:42] * lerni has joined #silverstripe
1090: [20:49:18] <guzzlefry> oh
1091: [20:53:50] * catcher quit (Ping timeout: 240 seconds)
1092: [20:56:59] * UncleCheese has joined #silverstripe
1093: [20:58:58] * zippy__ has joined #silverstripe
1094: [20:59:30] <zippy__> Morning
1095: [21:00:13] <guzzlefry> mornin
1096: [21:00:42] * violetina quit (Remote host closed the connection)
1097: [21:03:52] * UncleCheese quit (Quit: UncleCheese)
1098: [21:05:56] * SphereSilverNL quit (Quit: bye)
1099: [21:11:08] <mobiusnz> anyone know how to get the UploadField to work on the frontend?
1100: [21:11:18] <mobiusnz> I'm getting the error Action 'Photos' isn't available on class Form whenever I try anything
1101: [21:13:22] * OxFF_ has joined #silverstripe
1102: [21:14:14] * xini has joined #silverstripe
1103: [21:19:29] * metanat has joined #silverstripe
1104: [21:23:40] * henkpoley quit (Quit: henkpoley)
1105: [21:24:06] * UndefinedOffset quit (Quit: Leaving.)
1106: [21:26:38] * nightart quit (Ping timeout: 240 seconds)
1107: [21:31:19] * UncleCheese has joined #silverstripe
1108: [21:32:46] * henkpoley has joined #silverstripe
1109: [21:39:00] * lerni quit (Remote host closed the connection)
1110: [21:42:33] * gelignite quit (Quit: http://bit.ly/nkczDT)
1111: [21:54:42] <guzzlefry> So for Security::$login_recording, it says it uses LoginRecord object when true, but I can't find said object anywhere in the API docs.
1112: [21:54:54] * micmania2 has joined #silverstripe
1113: [21:56:14] * henkpoley quit (Quit: henkpoley)
1114: [21:57:05] * nickmolhoek quit (Quit: nickmolhoek)
1115: [22:02:17] <zippy__> guzzlefry: in your _config -> Security::set_login_recording(true);
1116: [22:02:36] <zippy__> then LoginAttempt gets populated
1117: [22:04:25] <guzzlefry> zippy__: I got that part, but what is this LoginRecord object? "Enable or disable recording of login attempts through the LoginRecord object."
1118: [22:04:33] <guzzlefry> Guess I could dig into the source.
1119: [22:05:01] <zippy__> Just a record which shows the login attempt and if it was sucessful
1120: [22:05:38] <zippy__> Framework->Security->MemberAuthenticator.php line 65~
1121: [22:07:56] <zippy__> damn I hate front end design
1122: [22:08:47] <guzzlefry> Me too. :/
1123: [22:09:29] <guzzlefry> Especially when IE7 is mentioned. :P
1124: [22:11:42] <UncleCheese> when you make a namespace A\B\C; declaration, does that apply to the whole file or just the following class definition?
1125: [22:12:22] <simon_w> The whole file
1126: [22:13:28] <UncleCheese> is the leading backslash optional?
1127: [22:13:43] <simon_w> yes
1128: [22:14:34] <UncleCheese> well then i just suck at this
1129: [22:16:35] <micmania2> Should pull requests be made to the 3.2 branch now or are they still being marged into 3.1?
1130: [22:16:48] <UncleCheese> simon_w: any ideas? http://sspaste.com/paste/show/51f1a32c29f9b
1131: [22:16:51] * jmConan quit (Ping timeout: 250 seconds)
1132: [22:16:55] <micmania2> or 3.1.1?
1133: [22:17:16] <simon_w> micmania2, depends what they're for
1134: [22:17:50] <simon_w> UncleCheese, whenever you use the class name in the string, it needs to be the FQN
1135: [22:18:17] <micmania2> I'd like to add $this->extend("updateEditForm", $form) to a cms controller which doesn't have it. Which branch would that be?
1136: [22:18:36] <UncleCheese> so class_exists("\UncleCheese\BetterButtons\Buttons\Button_SaveDraft")
1137: [22:18:58] <micmania2> I'm assuming CMS branches are mirroring framework...
1138: [22:19:59] <simon_w> Well, it's not likely to get into 3.1.0. May get into 3.1.1
1139: [22:21:07] * azureKnight has joined #silverstripe
1140: [22:28:05] <UncleCheese> simon_w: are there any issues around autoloading in SS when namespacing your classes? I noticed it works when I manually add a require_once for the file
1141: [22:28:22] <UncleCheese> Seems like the autoloader might be skipping over that file when it has a namespace declaration
1142: [22:28:27] <simon_w> Nope
1143: [22:28:59] * guci0 quit (Ping timeout: 250 seconds)
1144: [22:30:22] <simon_w> Have you flushed?
1145: [22:30:43] <UncleCheese> #FACEPALM
1146: [22:30:51] <UncleCheese> there we go
1147: [22:32:30] * nickmolhoek has joined #silverstripe
1148: [22:32:31] * nickmolhoek quit (Remote host closed the connection)
1149: [22:32:45] * nickmolhoek has joined #silverstripe
1150: [22:39:40] * nickmolhoek quit (Quit: nickmolhoek)
1151: [22:44:59] * lerni has joined #silverstripe
1152: [22:46:32] <ss23> #FACEFAIL
1153: [22:46:47] <ss23> So I got quoted in that guys talk last night (the flush=1 one at ISIG) :D
1154: [22:47:33] <ss23> Was lulz, he quoted spronk being all like "someone needs to kick that guy in the teeth", and was like "IF I KNEW THIS GUY", then my quote of "This is a technical person circlejerk" and he was like "I don't know what a circlejerk is!"
1155: [22:49:11] * OxFF_ quit (Quit: Leaving)
1156: [22:54:02] * micmania3 has joined #silverstripe
1157: [22:56:04] <simon_w> Is the talk going to be online?
1158: [22:56:21] * micmania2 quit (Ping timeout: 256 seconds)
1159: [22:59:53] * spronk has joined #silverstripe
1160: [23:00:48] <ss23> Doubt it. Slides might be though
1161: [23:00:49] * nickmolhoek has joined #silverstripe
1162: [23:00:49] * nickmolhoek quit (Remote host closed the connection)
1163: [23:00:49] * nickmolhoek has joined #silverstripe
1164: [23:00:49] <ss23> Holy crap
1165: [23:00:49] <ss23> :O
1166: [23:00:49] <ss23> I just realised
1167: [23:00:50] <ss23> The guy who did the flush=1 blog post was the same guy who posted to the NZPHPUG with his CV behind a login page where you had to give up your google account access (you know, sign into your google account to view this CV!) :O
1168: [23:00:50] * azureKnight quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
1169: [23:01:25] <irogue> hahahaha
1170: [23:02:16] * ss23 wobbles simon_w around
1171: [23:02:17] <simon_w> Ooh, that one was a bit bigger
1172: [23:02:18] <ss23> you felt that one right?
1173: [23:02:20] <ss23> :D
1174: [23:02:22] <metanat> wobble
1175: [23:02:26] <UncleCheese> quake?
1176: [23:02:32] * simon_w farted again, sorry
1177: [23:02:34] <ss23> XD
1178: [23:02:46] <metanat> UncleCheese: You are sitting next to me, didn't you feel it?
1179: [23:02:53] <simon_w> Currently a 4.5
1180: [23:02:54] <UncleCheese> no?
1181: [23:03:00] <metanat> haha
1182: [23:03:13] <ss23> simon_w: If you want lunch today with me, I'm in a meeting at 12:30 maybe till ~1, then have another at ~2, so it'll have to be in that window :O
1183: [23:03:21] <ss23> woah
1184: [23:03:25] <ss23> metanat is at heydey too?!
1185: [23:03:26] <simon_w> Haha, meetings
1186: [23:03:41] <ss23> simon_w: I use the term "meetings" to try and be cool
1187: [23:03:42] <ss23> :D
1188: [23:03:55] <ss23> woah
1189: [23:03:59] <ss23> the 4.3 just then
1190: [23:04:01] <ss23> was in a weird place
1191: [23:04:02] <simon_w> Whereas I use things like "Custom-build version of the HHVM" :p
1192: [23:04:04] <ss23> like, way off seddon
1193: [23:04:16] <ss23> http://www.geonet.org.nz/quakes/region/wellington/2013p556647
1194: [23:04:37] <simon_w> Yeah, stress release
1195: [23:04:47] <ss23> I have the same thing sometimes ;)
1196: [23:04:51] <ss23> Like an earthquake... IN MY PANTS
1197: [23:08:56] <simon_w> Maybe I should bring my awesome stress ball into work
1198: [23:13:39] <metanat> ss23: I'm Cam Spiers for future reference
1199: [23:16:12] <simon_w> Fire engine!
1200: [23:16:14] <simon_w> And another one!
1201: [23:16:23] * lerni quit (Remote host closed the connection)
1202: [23:16:32] <zippy__> wonder what just callopsed
1203: [23:16:44] <simon_w> No sirens, so probably nothing
1204: [23:17:32] <zippy__> Is it possible to do a distinct with the data model? I am trying to get members in a certain range from a table where there will be multiple reocrds. Just want distinct ids
1205: [23:17:48] <zippy__> I can just filter on the time range and loop - but if I could distinct on the memberID would be better
1206: [23:17:51] <simon_w> It does a distinct
1207: [23:19:21] <zippy__> ->column('MemberID'); ?
1208: [23:19:23] <zippy__> will try
1209: [23:19:46] <simon_w> Well, the default ::get() does a ->setDistinct(true) on the query
1210: [23:22:55] <zippy__> ok, I will look
1211: [23:24:47] * helenclarko has joined #silverstripe
1212: [23:27:00] <Colin[pi]> good morning
1213: [23:27:09] <helenclarko> Hey Colin[pi], you were playing around with the addtocartform a wee while back. do you have a moment to help me out with it?
1214: [23:27:11] <simon_w> Morning Colin
1215: [23:28:59] * BV has joined #silverstripe
1216: [23:29:00] <Colin[pi]> helenclarko: I was? I wrote my own, this wasn't the ecomm pkg iirc
1217: [23:29:14] <helenclarko> Oh.
1218: [23:30:26] <Colin[pi]> I was messing around with the SSU and BB ecomm pkgs, but nothing implemented yet
1219: [23:31:23] <helenclarko> right.
1220: [23:31:57] <helenclarko> Im having issues with editing the layout of the form.
1221: [23:32:42] <helenclarko> all I want to do is take the product Title and wrap it in a hyperlink.
1222: [23:33:06] <helenclarko> but cant for the life of me work out where its pulling the layout from.
1223: [23:33:41] <BV> Hi there, I'm wanting to hook up an Orbit slider, so that the images and links can be managed from within Silverstripe CMS.
1224: [23:33:49] * halkyon has joined #silverstripe
1225: [23:33:50] <BV> I've got SS up and running with the Microsoft windows installer and have installed a foundation zurb theme, so all good so far.
1226: [23:34:02] <BV> I tried installing this module: https://github.com/lx-berlin/silverstripe-flexslider/blob/master/README.md but it just blows up.
1227: [23:34:11] <mobiusnz> is there an easy way to filter a datalist by a function, and still maintain pagination?
1228: [23:34:17] <BV> So am looking to build it from scratch
1229: [23:34:25] <BV> Can anyone point me to a good overview of how to accomplish this. I've been searching for a good few hours, but a lot of what I'm coming across refers to Silverstripe 2
1230: [23:36:05] <Colin[pi]> helenclarko: it's not using a template?
1231: [23:36:34] <helenclarko> not from what I can see atleast.
1232: [23:36:46] <helenclarko> I could be looking in the wrong place
1233: [23:37:05] <helenclarko> its not sitting as an include anywhere.
1234: [23:38:46] <ss23> metanat: Have I met you? :O
1235: [23:39:26] <ss23> wait
1236: [23:39:41] <ss23> I saw a newspaper this morning that said "One more aftershock and this building/thing is going to fall over and kill people"
1237: [23:40:04] <ss23> wonder if it did :O
1238: [23:41:10] * tgglag has joined #silverstripe
1239: [23:41:17] * tgglag has left #silverstripe
1240: [23:42:33] <ss23> Whoever decided that in the CMS, you would need to *hover* to bring up the draft/published crap once you're on a page was... not thinking.
1241: [23:45:01] <metanat> ss23: Agreed. Not the best feature
1242: [23:45:04] <BV> I've got this book here - 'Silverstripe the complete guide to CMS development' but looking through and its publish date is 2009, would any part of it relate to SS3?
1243: [23:45:23] <metanat> BV: Yep. But lots wont too
1244: [23:45:38] <metanat> and it might be a bad idea to learn useless things :)
1245: [23:46:07] <helenclarko> Hey BV, you could use the cycle.jquery to get a slider result
1246: [23:46:08] <BV> Precisely
1247: [23:47:24] <BV> Yep, I've used cycle.jquery before on my sites homepage - http://cyberworkshop.co.nz/
1248: [23:48:13] <BV> What I'm wanting to do though is allow a CMS user to update the slides etc. from within the CMS. The Flexliser module I installed seemed to work fine for the admin area side
1249: [23:48:33] <BV> but just blew up on the front end. I'm wanting to know how to build it myself though
1250: [23:48:44] <BV> But dont know where to start
1251: [23:48:50] <helenclarko> you could create your own, I might have something usefull... one moment
1252: [23:49:19] * UncleCheese quit (Quit: UncleCheese)
1253: [23:49:49] <BV> Great, thanks.
1254: [23:50:13] <micmania3> BV, you could try this: https://github.com/micmania1/silverstripe-nivoslider
1255: [23:51:41] <BV> Cool thanks micmania, but I dont want to just install a module and get it up and away. I want to know how to construct an interface within the CMS to power a slider. And the
1256: [23:52:21] <BV> preferred on would be the Orbit one that comes within the foundation framework as I know it renders down well and provides mobile touch swiping etc.
1257: [23:52:34] <micmania3> ah, right I get you.
1258: [23:53:06] <helenclarko> Homepage.ss http://pastebin.com/WkfZcuvC, Homepage.php http://pastebin.com/w4H2rZp4
1259: [23:53:14] <helenclarko> Just take what you need.
1260: [23:53:28] <helenclarko> I did alot off css layout stuff
1261: [23:53:47] * pex has joined #silverstripe
1262: [23:54:34] * micmania3 quit (Quit: Leaving)
1263: [23:56:30] <BV> Great, thanks helenclarko

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