#silverstripe IRC Log

IRC log for 7 March 2016

All timestamps are in UTC.

1: [00:06:32] <robbieaverill> FYI ss23 - seems that setting the old HTTP_HOST (as the error messages tell me to) has done the trick, they seem to be running smoothly now :)
2: [00:06:58] <ss23> robbieaverill: Ah, you shouldn't set HTTP_HOST explicitly, but set the SilverStripe specific host to URL mapping variable
3: [00:07:11] <ss23> https://docs.silverstripe.org/en/3.2/getting_started/environment_management robbieaverill
4: [00:07:16] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
5: [00:10:32] <robbieaverill> Sorry, yeah - I'm using a $_FILE_TO_URL_MAPPING entry
6: [00:11:15] <ss23> Sweet :)
7: [00:11:19] * micmania1 has joined #silverstripe
8: [00:28:27] * DanaeNZ quit (Quit: TIME TO FEED)
9: [00:32:34] * micmania1 quit (Quit: micmania1)
10: [00:53:29] * micmania1 has joined #silverstripe
11: [00:58:25] * scott1702 has joined #silverstripe
12: [01:10:41] * Hailwood has joined #silverstripe
13: [01:11:04] <Hailwood> Hey folks, Having a good day?
14: [01:11:17] <ss23> Could be worse, I guess
15: [01:30:20] <Stomach> whats wrong buddy
16: [01:30:27] <ss23> :(
17: [01:30:28] <ss23> Tired
18: [01:30:37] <Stomach> :(
19: [01:31:47] * BrewNaked has joined #silverstripe
20: [01:35:20] <Hailwood> Days almost over
21: [01:35:39] <ss23> Not for me it's not!
22: [01:35:45] <ss23> I have work related after hours things until midnight
23: [01:35:50] <ss23> I didn't get to sleep today till ~6am too :(
24: [01:35:59] <ss23> This is what I get for going out on the weekend!
25: [01:36:57] * BrewNaked quit (Ping timeout: 276 seconds)
26: [01:45:05] <ss-helper> Re: [silverstripe-dev] Re: CMS browser/os usage statistics - https://groups.google.com/d/msg/silverstripe-dev/LWWMGdgYuqc/Q13yq6dOBQAJ
27: [01:45:54] * r_hector has joined #silverstripe
28: [02:00:06] <ss-helper> Re: [silverstripe-dev] Re: CMS browser/os usage statistics - https://groups.google.com/d/msg/silverstripe-dev/LWWMGdgYuqc/tKT-RiBPBQAJ
29: [02:06:05] <Pyromanik> so I heard there was a festival ss23
30: [02:07:20] <Pyromanik> I was a little confused as to how 'Newtown festival' could be anything other than some marketing munt trying to polish "Flea market and drunk student hoards"
31: [02:12:04] <ss23> heh
32: [02:12:07] <ss23> Did you go?
33: [02:12:15] <ss23> There was also the thing on the waterfront this weekend
34: [02:12:18] <ss23> last weekend
35: [02:12:20] <ss23> weekend just gone
36: [02:30:06] <ss-helper> Re: SilverStripe Stack Site - https://groups.google.com/d/msg/silverstripe-dev/eEBz5dRPvf8/NAz1eZpQBQAJ
37: [02:32:00] <Pyromanik> ss23, nah, didn't attend.
38: [02:32:29] <Pyromanik> Went for a walk around the gardens, but that's about it.
39: [02:32:43] <Pyromanik> Just bummed around home being a lazy fuck mostly :P
40: [02:32:51] * Stomach quit (Ping timeout: 276 seconds)
41: [02:32:57] <ss23> fun fun :P
42: [02:33:19] <Firesphere> Walk around the gardens? As in, you were pretty close to my place?
43: [02:36:09] * Stomach has joined #silverstripe
44: [02:43:09] <Pyromanik> Firesphere, you live behind the botanical gardens?
45: [02:43:23] <Firesphere> Ow, no, Terrace *Gardens*
46: [02:43:38] <Pyromanik> 0.o
47: [02:43:39] <Firesphere> Wrong emphasize, but whatever :P
48: [02:44:07] * jules0x quit (Quit: Leaving)
49: [02:44:38] <Pyromanik> Firesphere, so ... like... close the where the cable car is?
50: [02:44:48] <Pyromanik> those gardens?
51: [02:45:23] <Firesphere> No, the Terrrace
52: [02:45:28] <Firesphere> Near Kelburn
53: [02:46:38] <Pyromanik> so... Kelburn park?
54: [02:46:54] <Pyromanik> No, not those gardens. The ones over behind them.
55: [02:47:05] <Firesphere> I know the botanical ;)
56: [02:47:09] <Firesphere> I meant, I live here: https://goo.gl/mySyxM
57: [02:47:22] <Firesphere> The word "garden" triggered my brain :P
58: [02:48:13] <Pyromanik> mm.
59: [02:48:28] <Pyromanik> You live down the road from irogue, who lives down the road from me.
60: [02:48:36] <Firesphere> Uh-oh
61: [02:48:40] <Firesphere> Where do you live then?
62: [02:48:48] <Pyromanik> up the hill from you.
63: [02:49:37] <Firesphere> That's still quite a region, that's uphill from me :P
64: [02:49:52] <Pyromanik> Yup. I didn't say it would be a short walk ;P
65: [02:53:28] <Pyromanik> by 'down' the road, I mean that pretty literally.
66: [03:20:37] * BrewNaked has joined #silverstripe
67: [03:25:30] * BrewNaked quit (Ping timeout: 276 seconds)
68: [03:30:06] <ss-helper> Silverstripe .htaccess and subdomains - http://stackoverflow.com/questions/35353749/silverstripe-htaccess-and-subdomains
69: [03:49:46] * spronk quit (Quit: I may need a longer sleep timer...)
70: [03:52:06] * siteLease has joined #silverstripe
71: [03:52:30] <siteLease> Anyone here know templates and queries well?
72: [04:03:36] * Hailwood quit (Remote host closed the connection)
73: [04:12:23] <Firesphere> Depends, define your question?
74: [04:16:58] * robbieaverill quit (Ping timeout: 252 seconds)
75: [04:23:08] <Pyromanik> siteLease, I know templates and queries well.
76: [04:29:25] * micmania1 quit (Quit: micmania1)
77: [04:33:59] <siteLease> I want to run a query once in the controller, but use it twice in the Template
78: [04:38:47] <siteLease> For example, get (value1, value2..) [controller] Arraylist=get()->Results [controller] <% loop $ArrayList %> $value1, $value2 <% end_loop %> [template.ss location1] <% loop $ArrayList %> <div> ... empty used for dots for slitslider ... </div> <% end_loop %> [template.ss location2]
79: [04:49:01] <siteLease> Anyone here know templates and queries well?
80: [04:49:23] <siteLease> I want to run a query once in the controller, but use it twice in the Template
81: [04:49:30] <siteLease> For example, get (value1, value2..) [controller] Arraylist=get()->Results [controller] <% loop $ArrayList %> $value1, $value2 <% end_loop %> [template.ss location1] <% loop $ArrayList %> <div> ... empty used for dots for slitslider ... </div> <% end_loop %> [template.ss location2]
82: [04:51:10] <siteLease> Hello?
83: [04:53:05] * AdRiAn_22 has joined #silverstripe
84: [04:53:05] <ss-helper> AdRiAn_22: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
85: [04:53:19] <siteLease> Anyone there?
86: [04:53:58] * Adrian_nim has joined #silverstripe
87: [04:53:58] <ss-helper> Adrian_nim: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
88: [04:54:23] * Adrian_nim quit (Client Quit)
89: [04:56:34] * scott1702 quit (Quit: This computer has gone to sleep)
90: [04:57:55] * adrexia quit (Quit: My Mac has gone to sleep. ZZZzzz…)
91: [04:59:19] * scott1702 has joined #silverstripe
92: [05:01:02] * scott1702 quit (Client Quit)
93: [05:01:33] * scott1702 has joined #silverstripe
94: [05:02:11] * Stomach quit (Quit: zzz)
95: [05:02:29] <Pyromanik> siteLease, so
96: [05:02:32] <Pyromanik> just use it.
97: [05:03:43] <Pyromanik> $resultsFunction
98: [05:03:53] <Pyromanik> <% loop $ResultsFunction %>
99: [05:04:06] <Pyromanik> it's all the same. There's no rule that you can only call each thing only once :>
100: [05:09:31] * BrewNaked has joined #silverstripe
101: [05:14:11] * BrewNaked quit (Ping timeout: 248 seconds)
102: [05:16:36] * scott1702 quit (Quit: This computer has gone to sleep)
103: [05:24:02] * Embraden has joined #silverstripe
104: [05:47:41] <siteLease> Yes, but if you call a query more than once from the template, does it execute against the database again?
105: [05:47:51] <siteLease> Or does it used a cached version of the same
106: [05:53:13] <siteLease> ?
107: [06:03:15] <siteLease> Is there a way in a template to have a loop count be inserted as text in the iteration?
108: [06:03:45] <siteLease> like $CurrentIteration which would return a number that would be inserted into the page?
109: [06:06:29] <siteLease> Why do I see people on and nobody responding?
110: [06:06:51] <siteLease> It seems like there is a huge delay, if people respond at all?
111: [06:06:57] <siteLease> Am I missing something?
112: [06:09:05] <Pyromanik> No.
113: [06:09:18] <Pyromanik> Yes. $Pos
114: [06:09:39] <Pyromanik> You're missing the fact that it takes you 10-20 minutes to respond yourself.
115: [06:10:07] <siteLease> I guess it's because I see that the IRC seems dormant a lot
116: [06:10:17] <siteLease> and seemingly unresponsive
117: [06:10:20] <Pyromanik> Where are you?
118: [06:10:24] <siteLease> Canada
119: [06:10:31] <Pyromanik> That's why the bot tells you not to leave after asking questions.
120: [06:10:44] <siteLease> Yep
121: [06:10:45] <Pyromanik> Not everyone sits at their keyboard waiting for questions on IRC 24 hours a day ;)
122: [06:10:46] <siteLease> saw that
123: [06:10:54] <siteLease> Gotcha
124: [06:11:11] <Pyromanik> If we're not here, then we can't answer questions at a later time. You'd be talking to yourself.
125: [06:11:12] <siteLease> Just seems weird that people are logged into #silverstripe if they are not active
126: [06:11:19] <Pyromanik> Well no.
127: [06:11:23] <Pyromanik> as above.
128: [06:11:33] <siteLease> I do appreciate the help
129: [06:11:34] <siteLease> !
130: [06:11:38] <siteLease> That's for sure
131: [06:11:48] <siteLease> Thank you lots and lots
132: [06:11:56] <Pyromanik> You're just active at a funny hour.
133: [06:12:22] <Pyromanik> EU is just waking up. The next biggest userbase is off the clock.
134: [06:12:49] <siteLease> Is there documentation where I can find out about these hidden gems?
135: [06:12:55] <siteLease> Like $Pos
136: [06:12:59] <Pyromanik> docs.silverstripe.org
137: [06:13:03] <Pyromanik> api.silverstripe.org
138: [06:13:14] <siteLease> I looked at common variables
139: [06:13:24] <siteLease> but it wasn't listed there
140: [06:13:33] <siteLease> I looked at child looping wasn't there
141: [06:13:33] <Pyromanik> there's no cheat sheet of sorts, unfortunately.
142: [06:13:49] <Pyromanik> Used to be, in simpler days gone by.
143: [06:13:56] <siteLease> Where would I have found that in the api?
144: [06:14:03] <Pyromanik> DataList
145: [06:14:06] <siteLease> Perhaps I am reading the api doc wrong
146: [06:14:21] <Pyromanik> ... probably.
147: [06:14:26] <Pyromanik> (probably DataList_
148: [06:14:27] <Pyromanik> )
149: [06:15:23] <Pyromanik> things aren't quite as straight forward as they once were, as mixins and addons and boltups and wrappers and decorators and extensions and whatnot.
150: [06:15:24] <siteLease> I will check
151: [06:15:39] <siteLease> Wow... no kidding?
152: [06:15:42] <siteLease> Hmmm
153: [06:15:50] <Pyromanik> But generally, remember you're working with objects. The template is just a layer that exposes objects.
154: [06:16:13] <Pyromanik> <Thing>::get() will give you a DataList (by default)
155: [06:16:21] <Pyromanik> so things on DataList are available.
156: [06:16:56] <Pyromanik> loop $ThatList though, it changes scope to the DataObjects within, so the methods/fields on that object are available.
157: [06:17:32] <Pyromanik> The tricky bit comes with the list overlay per item which gives such things as $isFirst, isLast, Pos, etc.
158: [06:17:36] <siteLease> I am looking at this ATM http://api.silverstripe.org/3.3/class-DataList.html
159: [06:17:37] <Pyromanik> ModulusOf
160: [06:17:57] <Pyromanik> If you know what to search for, you'll be right.
161: [06:18:04] <Pyromanik> You can see how the pieces fit together.
162: [06:18:18] <Pyromanik> http://api.silverstripe.org/3.3/class-SSViewer_BasicIteratorSupport.html#_Modulus
163: [06:18:54] <Pyromanik> (public) Methods listed there are available on each item in a list.
164: [06:19:03] <Pyromanik> (ie, in a loop).
165: [06:19:21] <Pyromanik> There's a little magic involved.
166: [06:20:01] <siteLease> Wow
167: [06:20:03] <Pyromanik> via interface TemplateIteratorProvider & way of manifest search and deploy.
168: [06:20:09] <siteLease> I would never have known to look for SSViewer_BasicIteratorSupport
169: [06:20:33] <Pyromanik> Most queries are cached, so far as I'm aware. And DataLists are immutable.
170: [06:21:03] <Pyromanik> yes siteLease, but you know that eg Pos is available to you, and relates to an item in a list. So you search for that.
171: [06:21:13] <Pyromanik> or ModulusOf, as I did (see link above)
172: [06:21:48] * Shrike_Finland has joined #silverstripe
173: [06:22:39] <siteLease> I thank you for pointing me in the right direction here
174: [06:23:10] <Pyromanik> It is tricky to get that first step though (knowing things like $Pos or $ModulusOf etc)
175: [06:23:20] <siteLease> I guess when I was looking around the Developer Documentation, I never had a clue from the many pages of docs I looked at to look for that in the API
176: [06:23:54] <Pyromanik> the api docs are just that. Class documentation. Nothing more. So you need to know which object you're looking at, or what you're looking for. It's not really the kind of thing you can just paruse through
177: [06:24:06] <Pyromanik> peruse*
178: [06:24:10] <siteLease> Lol
179: [06:24:14] <Pyromanik> (browse)
180: [06:24:16] <siteLease> Yah, I get that
181: [06:24:57] <siteLease> So do I use the $ModulusOf in the controller or the template?
182: [06:25:00] <Pyromanik> the docs(.silverstripe.org) are ... a little more basic. So there's a wee bit of a vaccuum for intermediate level things.
183: [06:25:06] <Pyromanik> Template.
184: [06:25:44] <Pyromanik> It's on a class implementing the interface "TemplateIteratorProvidor", so at a guess, yeah only the template.
185: [06:25:45] <siteLease> So Would I do something like $ExposedObject.$ModulusOf?
186: [06:26:01] <Pyromanik> in PHP you have more tools available, the full functional language at your disposal.
187: [06:26:14] <Pyromanik> no, because loop also changes your scope.
188: [06:26:23] <Pyromanik> (To the $ExposedObject)
189: [06:26:27] <Pyromanik> ie, item in the list
190: [06:26:33] <siteLease> I see
191: [06:26:37] <Pyromanik> so just $ModulusOf(3)
192: [06:26:56] <Pyromanik> true if it's 3rd, 6th, 9th, 12th, etc.
193: [06:27:02] <siteLease> Okay, now what about a DataList that has a many_many situation
194: [06:27:08] <siteLease> Like many photos?
195: [06:27:16] <Pyromanik> well a DataList doesn't have any relations.
196: [06:27:17] <siteLease> How do I grab one?
197: [06:27:24] <Pyromanik> a DataList is just a list of data.
198: [06:27:39] <Pyromanik> that data might have relations defined on it's class, sure. But the list itself doesn't.
199: [06:27:53] <siteLease> sorry
200: [06:27:56] <Pyromanik> so remember you're dealing with those objects, not the list.
201: [06:28:03] <Pyromanik> then it's a case of just dealing with that object.
202: [06:28:08] <siteLease> Like when I go private static $many_many
203: [06:28:11] <Pyromanik> same (well, very similar) to as you would in php.
204: [06:28:14] <siteLease> Photos
205: [06:28:23] <Pyromanik> $thatThing->Photos() right?
206: [06:28:35] <siteLease> yep
207: [06:28:50] <siteLease> Like lass Property extends DataObject
208: [06:29:01] <siteLease> private static $many_many = array (
209: [06:29:02] <siteLease> 'Photos'=>'Image'
210: [06:29:05] <Pyromanik> foreach($event->Photos() as $photo){ $Photo->ShowMeTheMoney(); }
211: [06:29:25] <Pyromanik> <% loop $Photos %> $ShowMeTheMoney <% end_loop %>
212: [06:29:51] <Pyromanik> remember you must have it in scope of course.
213: [06:30:07] <Pyromanik> no good telling the page that lists events to show you the money.
214: [06:30:10] <siteLease> So, In the controller I do the foreach
215: [06:30:11] <Pyromanik> Only photos have the money.
216: [06:30:20] <siteLease> in order to do the loop in the template?
217: [06:30:23] <Pyromanik> no
218: [06:30:30] <Pyromanik> I'm translating from php => template
219: [06:30:51] <siteLease> okay
220: [06:31:08] <siteLease> so let's say I have a bunch of many_many photos
221: [06:31:21] <siteLease> and I want to get a specific photo?
222: [06:31:46] <siteLease> Like a photo that has been marked as the thumbnail for another object?
223: [06:31:46] <Pyromanik> You're either shit out of luck or you need to rethink your layout... depending on what you mean.
224: [06:31:58] <Pyromanik> depends on how you've marked that.
225: [06:32:15] <siteLease> I was thinking of doing an extension on the photo class
226: [06:32:26] <siteLease> and adding a boolean field
227: [06:32:33] <Pyromanik> photo class?
228: [06:32:50] <siteLease> Image
229: [06:32:52] <siteLease> class
230: [06:33:01] <Pyromanik> every image ever will have that field.
231: [06:33:11] <siteLease> yes
232: [06:33:19] <Pyromanik> including things like Logo, or ... BannerImage1
233: [06:33:24] <Pyromanik> if that's a thing.
234: [06:33:27] <siteLease> I know
235: [06:33:44] <siteLease> But there would only be the very odd photo like the ones you mentioned
236: [06:33:52] <siteLease> versus the thousands of othere
237: [06:33:53] <Pyromanik> sometimes subclassing or relations are a better idea.
238: [06:33:58] <siteLease> others tracked in the system
239: [06:34:03] <Pyromanik> what would this boolean field be for?
240: [06:34:14] <siteLease> Thumbnail yes/no
241: [06:34:21] <Pyromanik> on...
242: [06:34:21] <siteLease> true/false
243: [06:34:34] <siteLease> Let's say there was a product listing
244: [06:34:35] <Pyromanik> say we're sticking with the event analogy...
245: [06:34:39] <Pyromanik> ok products
246: [06:34:41] <Pyromanik> that's easy
247: [06:34:47] <Pyromanik> so a product has many images
248: [06:34:51] <Pyromanik> but one 'preview' image?
249: [06:35:01] <siteLease> yes out of the many
250: [06:35:14] <siteLease> but the user would be able to change it
251: [06:35:16] <siteLease> at will
252: [06:35:19] <Pyromanik> Well, perhaps it's better to store that info on the product.
253: [06:35:33] <siteLease> right
254: [06:35:39] <Pyromanik> or, a very common use case might be that perhaps just using the <first> image.
255: [06:35:42] <siteLease> like a photoid of the thumbnail?
256: [06:35:46] <Pyromanik> $Photos.First
257: [06:35:56] <Pyromanik> (in template)
258: [06:36:07] <siteLease> What if they didn't load that image first?
259: [06:36:10] <Pyromanik> solves that. Then which ever is first in the list is the thumbnail.
260: [06:36:12] <siteLease> how would it be changed?
261: [06:36:36] <Pyromanik> then use sometihng like SortableGridField or GridFieldExtensions to allow the items to be sorted.
262: [06:36:47] <Pyromanik> (modules)
263: [06:36:48] <siteLease> Oh
264: [06:36:56] <siteLease> So sortable grids work with images?
265: [06:37:09] <Pyromanik> There are a number of solutions.
266: [06:37:16] <Pyromanik> I haven't looked in a while.
267: [06:37:37] <Pyromanik> UploadField itself may even support ordering by now. Not sure. If not I'm sure I've used a module to allow that before.
268: [06:37:46] * wmk has joined #silverstripe
269: [06:37:53] <Pyromanik> o/ wmk
270: [06:37:53] <siteLease> Ok
271: [06:38:04] <siteLease> so if I did this
272: [06:38:05] <siteLease> private static $many_many = array (
273: [06:38:05] <siteLease> 'Photos'=>'Image'
274: [06:38:21] <siteLease> Then I could (in the template) do $Photos.First
275: [06:38:21] <Pyromanik> Guten Morgen
276: [06:38:22] <siteLease> ?
277: [06:38:31] <Pyromanik> yes
278: [06:38:37] <siteLease> Nice
279: [06:38:39] <Pyromanik> precicely.
280: [06:38:54] <Pyromanik> When in scope of a product, of course.
281: [06:39:06] <siteLease> Thank you for your kind help and your time
282: [06:39:29] <Pyromanik> something like <% loop $Products %><li>$Name $Image.CroppedImage(50,50)</li><% end_loop %>
283: [06:39:33] <Pyromanik> as a quick example.
284: [06:39:47] <Pyromanik> err $Photo.First.CroppedImage(...) that is
285: [06:40:11] <Pyromanik> Which would get the first product image, then resize it and crop it.
286: [06:40:28] <Pyromanik> Although in this case PaddedImage is probably better.
287: [06:40:45] <siteLease> nice
288: [06:40:55] <Pyromanik> These functions can be found in the docs.
289: [06:41:05] <Pyromanik> or in the api on the Image object.
290: [06:41:32] <Pyromanik> Although they're not named straight forwardly. There's a little magic that happens, most are called generate<ThingImage>
291: [06:41:33] <siteLease> Nice
292: [06:41:45] <Pyromanik> generatePaddedImage, generateCroppedImage, etc.
293: [06:41:46] <Pyromanik> iirc
294: [06:41:58] <siteLease> So
295: [06:42:19] <siteLease> How does one know that generatePaddedImage translate to PaddedImage?
296: [06:42:28] <Pyromanik> __call iirc
297: [06:42:37] <siteLease> ?
298: [06:42:42] <Pyromanik> php magic method
299: [06:42:58] <siteLease> ?
300: [06:43:02] <siteLease> How would I use that?
301: [06:43:08] <siteLease> echo it?
302: [06:43:08] <Pyromanik> when you call a function that doesn't exist
303: [06:43:21] <Pyromanik> php does some magic shit to find it somewhere else.
304: [06:43:29] <siteLease> lol
305: [06:43:30] <siteLease> wow
306: [06:43:36] <Pyromanik> which a developer can define via implmentation of the __call() magic method.
307: [06:44:02] <Pyromanik> That's how your private static $many_many = array()
308: [06:44:07] <Pyromanik> definitions turn into
309: [06:44:11] <Pyromanik> eg. ->Photos()
310: [06:44:29] <siteLease> I see
311: [06:44:35] <Pyromanik> as you'd probably be aware, there isn't actually a Photos() method on your product class.
312: [06:44:44] <Pyromanik> Since you've probably been the one to program it.
313: [06:44:58] <Pyromanik> That's how it works.
314: [06:45:24] <Pyromanik> http://php.net/manual/en/language.oop5.overloading.php#object.call
315: [06:45:32] * wmk quit (Ping timeout: 260 seconds)
316: [06:45:37] <siteLease> gotcha
317: [06:45:43] * spronka has joined #silverstripe
318: [06:47:05] <Pyromanik> since it's a method call (not a field reference, which would use $db), it looks to see if there's a relation defiend called Photos, and if so calls the appropriate method to fetch that relation(list)
319: [06:47:19] <Pyromanik> ie has_one, has_many, or many_many
320: [06:47:30] <Pyromanik> or belongs_many_many
321: [06:47:56] <Pyromanik> or belongs_to (very seldom used, mostly ignorable)
322: [06:50:22] <Pyromanik> So... long story short siteLease; Templates access (public) object fields/methods. If that method involves a query, it executes only once and caches (in almost all cases). So the performance hit of calling it multiple times is negligible.
323: [06:51:30] <Pyromanik> and to call image functions (resize, whatever), you just call $Image.ResizeOrWhatever(sometimesTheyTake,ParametersToo)
324: [06:52:01] <Pyromanik> you mostly ignore the actual implementation name, the list should be on the docs site since they're commonly requested (so you don't need to scour the API).
325: [06:52:29] <Pyromanik> Cool, so Imma cook dinner now :>
326: [06:52:49] <siteLease> lol
327: [06:52:55] <siteLease> thanks for the help
328: [06:53:04] <Pyromanik> Ask more quesitons if you like, I'll either get to them later or someone else will. EU seems to be getting online about now.
329: [06:53:06] <Pyromanik> ish
330: [06:53:17] <siteLease> One more quick on
331: [06:53:18] <siteLease> one
332: [06:53:20] <Pyromanik> k
333: [06:53:22] <siteLease> In the irc
334: [06:53:34] <siteLease> When someone posts a message like we are
335: [06:53:35] <Pyromanik> tab key ;)
336: [06:53:48] <siteLease> What does the system call it
337: [06:53:53] <Pyromanik> just like most shells (eg. bash)
338: [06:53:55] <siteLease> I would like to have a sound
339: [06:54:02] <siteLease> attached
340: [06:54:06] <siteLease> to notify me
341: [06:54:11] <siteLease> someone replied
342: [06:54:13] <Pyromanik> usually there is one when someone mentions your name.
343: [06:54:15] <Pyromanik> siteLease,
344: [06:54:34] <siteLease> Try again
345: [06:54:37] <siteLease> Let me see
346: [06:54:38] <Pyromanik> siteLease,
347: [06:54:40] <siteLease> listen
348: [06:54:45] <siteLease> Nope
349: [06:54:47] <Pyromanik> what client are you using?
350: [06:54:55] <siteLease> HexChat
351: [06:55:01] <siteLease> I am on linux
352: [06:55:01] <Pyromanik> Because it all depends on that
353: [06:55:03] <Pyromanik> oh yeh.
354: [06:55:30] <Pyromanik> well that should. But of course you'll need the sound all configured too (which isn't always a given on a gnu/linux machine)
355: [06:55:42] <siteLease> I get some sounds
356: [06:55:48] <siteLease> but by default none were setup
357: [06:55:59] <siteLease> which Is why I want to set certain ones for certain events
358: [06:56:25] <Pyromanik> Settings -> chatting -> alerts -> 3 checkboxes for making beeps at the top
359: [06:56:48] <Pyromanik> settings -> Preferences
360: [06:57:12] <siteLease> Okay
361: [06:57:16] <siteLease> I set those
362: [06:57:17] <Pyromanik> (Assuming the menu layout is the same on linux, preferences often changes to be under the edit/view/second menu)
363: [06:57:23] <siteLease> I heard sounds now
364: [06:57:26] <siteLease> nice
365: [06:57:36] <Pyromanik> I recommend turning beeps of on channel message
366: [06:57:42] <siteLease> k
367: [06:57:44] <Pyromanik> I think 'highlighted message' is the one you're after
368: [06:58:01] <Pyromanik> private message is always handy too.
369: [06:58:05] <siteLease> sometimes people don'
370: [06:58:09] <siteLease> t type siteLease
371: [06:58:14] <siteLease> and then the message
372: [06:58:18] <Pyromanik> Plus make the icon blink. That way if you're not around to hear the noise you'll come back to flashing icon
373: [06:58:19] <siteLease> when they reply
374: [06:58:22] * BrewNaked has joined #silverstripe
375: [06:58:26] <Pyromanik> siteLease,
376: [06:58:33] <Pyromanik> siteLease, I am the reply.
377: [06:58:39] <siteLease> lol
378: [06:59:08] <siteLease> There is a hyperlink for your channel name
379: [06:59:22] <siteLease> but when I click it, it doesn't insert it into the text line
380: [06:59:25] <siteLease> Is that normal?
381: [07:00:55] * oetiker has left #silverstripe
382: [07:02:47] * Sentro has joined #silverstripe
383: [07:03:10] * BrewNaked quit (Ping timeout: 268 seconds)
384: [07:05:56] <Pyromanik> It's not a hyperlink ;)
385: [07:06:08] <Sentro> why is the search section of the model admin is missing from 3.3 ? any ideas guys?
386: [07:06:57] <Pyromanik> it just unerlines on hover siteLease. You can right click to get channel ops functions (kick, etc, which you're not priviliged for).
387: [07:07:12] <Pyromanik> Sentro, nope. Is it there normally?
388: [07:07:27] <Pyromanik> Sentro, have you got $searchable_fields defined on your managed models?
389: [07:07:28] <Pyromanik> etc.
390: [07:08:41] <Sentro> yeah I have searchable_fields set on my managed models. But normally by default the search panel is there.
391: [07:08:42] <Sentro> odd.
392: [07:09:07] <Pyromanik> no idea Sentro, I haven't used SS in some time :<
393: [07:09:59] <siteLease> Somebody said I hate G's
394: [07:10:02] <siteLease> What does that mean?
395: [07:10:30] <Pyromanik> lol what?
396: [07:10:39] <Pyromanik> was it me?
397: [07:10:46] <siteLease> I think so
398: [07:10:52] <siteLease> But I don't understand
399: [07:10:56] <Pyromanik> 100% off topic.
400: [07:11:01] <Pyromanik> well...
401: [07:11:06] <Pyromanik> 150% off topic :p
402: [07:11:12] <siteLease> Lol
403: [07:11:13] <siteLease> oh
404: [07:11:17] <siteLease> and?
405: [07:11:32] <siteLease> :p to you too
406: [07:11:50] <Pyromanik> A G is something I should learn. But it has vexed me for so long I don't really want to, because I enjoy hating on it.
407: [07:12:09] <siteLease> O K
408: [07:12:32] <Pyromanik> Quite a lot of what happens in here during daylight hours is ... seldom ever to do with silverstripe.
409: [07:13:08] <Pyromanik> We're all here because of it, but a lot of us know each other outside of the channel too.
410: [07:13:13] <siteLease> That be stupid
411: [07:13:34] <siteLease> See... cause... it says #silverstripe
412: [07:13:47] <siteLease> 8|
413: [07:13:52] <Pyromanik> It is what it is man.
414: [07:14:03] <siteLease> :|
415: [07:14:11] <siteLease> |:|
416: [07:14:26] * Mike123 has joined #silverstripe
417: [07:14:54] <Pyromanik> A lot of the regulars are here simply to shoot the shit and answer the odd sincere question.
418: [07:14:57] <siteLease> o_0
419: [07:15:14] <Pyromanik> But without the regulars there'd be no one to answer the questions.
420: [07:15:42] <siteLease> COMMUNITIES!
421: [07:15:45] <Pyromanik> so yeh. Just like a meeting in real life, unless it's a super focussed business meeting with an ajudicator to keep it on topic, things wander.
422: [07:15:46] <siteLease> lol
423: [07:16:15] <Pyromanik> Just like right now you and I happen to be talking about the social accpetance of off topic talk in a named channel.
424: [07:16:25] <Pyromanik> no #silverstripe ;)
425: [07:16:28] <Pyromanik> not*
426: [07:16:35] <siteLease> WHO?
427: [07:16:40] <siteLease> GRR
428: [07:17:05] <siteLease> I'll be quite now and let the serious SilverStripe talk resume
429: [07:17:18] <siteLease> Good rebuje
430: [07:17:21] <siteLease> rebuke
431: [07:17:29] <Pyromanik> hahah
432: [07:17:46] <Pyromanik> as far as I'm concerned this is serious talk. About as serious as it gets, anyway.
433: [07:17:54] <siteLease> I hear you
434: [07:18:06] <Pyromanik> without a community there is no life.
435: [07:18:44] <siteLease> Life is about relationship
436: [07:19:23] <siteLease> The greatest relationship supersedes the ones with fellow man
437: [07:19:59] <Pyromanik> Yup, but right now it's time for me to go and have a temporary relationship with the food in my fridge, and then find some evening entertainment.
438: [07:20:13] <Pyromanik> So I'll be AFK if anyone needs me.
439: [07:20:17] <Pyromanik> xD
440: [07:20:18] <siteLease> Okay, I appreciate your time
441: [07:20:24] <Pyromanik> You're welcome :)
442: [07:20:39] <Pyromanik> I hope it was helpful.
443: [07:20:49] <siteLease> Absolutely
444: [07:20:53] <siteLease> Invaluable
445: [07:21:07] <Pyromanik> I take it you are a PHP developer?
446: [07:21:15] <siteLease> Yeppers
447: [07:21:20] <siteLease> Among others
448: [07:21:28] <Pyromanik> (Seems obvious, but skill levels vary quite a bit you'd be surprised)
449: [07:21:37] <siteLease> Yep
450: [07:21:40] <siteLease> I know what you mean
451: [07:21:49] <siteLease> But you seem patient
452: [07:21:56] <siteLease> which is a real blessing
453: [07:22:10] <Pyromanik> from "Marketing guy who wants to change something someone else built for him" all the way into hard core laravel guy going "but this isn't like laravel ITS RUBBISH WHY IS IT LIKE THIS!!!!??"
454: [07:22:47] <siteLease> People need to appreciate other people's vision
455: [07:22:52] <Pyromanik> The former often neglects to tell us they know nothing about PHP (or code in general), and the latter we mostly ignore :>
456: [07:23:28] <Pyromanik> I can be patient. Depends on how you catch me, and how you phrase your questiong :P
457: [07:23:37] <Pyromanik> I'm also known to be... not so patient.
458: [07:24:16] <siteLease> Lol
459: [07:24:25] <siteLease> Well you were great with me tonight
460: [07:24:56] <Pyromanik> Cool. As you say, you need to respect the community you're approaching. You did, you got nice answers :)
461: [07:25:13] <siteLease> I'm glad
462: [07:26:11] <Pyromanik> Cool, come back any time :) Ciao
463: [07:26:20] * Pyromanik quit (Quit: Leaving)
464: [07:28:30] * siteLease quit (Quit: Leaving)
465: [07:30:31] <Sentro> this is really weird. I tried fresh install of silverstripe 3.3 and 3.3.1 and really the search panel of the model admin is missing
466: [07:33:44] <Sentro> arrggg! it’s on the top . stupid me.
467: [07:41:54] * swaiba has joined #silverstripe
468: [07:53:23] * Pyromanik has joined #silverstripe
469: [07:58:51] * Sentro quit (Quit: Sentro)
470: [08:00:13] <ss-helper> JavaScript Standard Style - https://groups.google.com/d/msg/silverstripe-dev/Zjw56dZATUQ/K4SwS4NiBQAJ
471: [08:11:09] <Mike123> guys i want to create ListBoxField from Array, is it possible ?
472: [08:11:23] <Mike123> i dont have any relational object
473: [08:11:27] <Mike123> only array
474: [08:19:46] * arnhoe has joined #silverstripe
475: [08:25:08] * Stomach has joined #silverstripe
476: [08:45:06] * CodeTrap has joined #silverstripe
477: [08:46:41] * CodeTrap quit (Client Quit)
478: [08:47:19] * BrewNaked has joined #silverstripe
479: [08:51:47] * BrewNaked quit (Ping timeout: 248 seconds)
480: [08:52:14] * phorloop has joined #silverstripe
481: [08:52:15] <Pyromanik> Mike123, I think it's possible. If not, just make an ArrayList
482: [08:52:28] <Pyromanik> Mike123, ArrayList::create($array)
483: [08:52:51] <Pyromanik> I'm sure it used to be possible. But things may have changed.
484: [09:04:54] * robbieaverill has joined #silverstripe
485: [09:06:51] * elgabbu has joined #silverstripe
486: [09:09:12] * robbieaverill quit (Ping timeout: 252 seconds)
487: [09:12:33] * kinglozzer has joined #silverstripe
488: [09:19:26] <Pyromanik> \o kinglozzer
489: [09:19:54] <kinglozzer> o/ Pyromanik
490: [09:19:59] <kinglozzer> how do?
491: [09:20:02] <Pyromanik> do how.
492: [09:20:15] <Pyromanik> you do?
493: [09:24:13] <Pyromanik> booom, checkmate!
494: [09:24:23] * Pyromanik sees kinglozzer not wanting to follow that textual pattern
495: [09:24:30] <Pyromanik> do you!
496: [09:24:33] <Pyromanik> xD
497: [09:24:53] <kinglozzer> ha, soz, missed it
498: [09:24:57] <Pyromanik> :P
499: [09:25:18] <Pyromanik> nebova m8
500: [09:25:26] <kinglozzer> how's things in upside down land?
501: [09:25:33] <Pyromanik> downside up.
502: [09:25:37] <Pyromanik> Hot.
503: [09:25:43] <Pyromanik> all the good shit.
504: [09:25:47] <Pyromanik> good coffee.
505: [09:25:54] <Pyromanik> good temps.
506: [09:26:00] <Pyromanik> good birds
507: [09:26:06] <kinglozzer> So... everything we don't have here
508: [09:26:18] <kinglozzer> :(
509: [09:26:21] <Pyromanik> Oh... uhh, the feathered kind. But I'm sure the other ones do well too... I'm just not that young anymore :P
510: [09:26:34] <Pyromanik> Yeh you got the snows
511: [09:26:37] <Pyromanik> I hear
512: [09:33:23] <kinglozzer> Yeah it was all white about 10 minutes ago
513: [09:33:31] <kinglozzer> Gone now, been replaced by grey skies and rain
514: [09:33:38] <kinglozzer> T'was fun while it lasted
515: [09:36:28] * r_hector quit (Remote host closed the connection)
516: [09:39:26] * wmk has joined #silverstripe
517: [09:44:25] * r3v3rb has joined #silverstripe
518: [09:44:32] <r3v3rb> @HELO
519: [09:45:21] <swaiba> morning all
520: [09:45:43] <r3v3rb> swaiba: do you have time for a coffee yet?
521: [09:46:04] <swaiba> enjoying a loooovely instant coffee right now
522: [09:48:13] <r3v3rb> Yummmmm
523: [09:48:14] * spronka quit (Read error: Connection timed out)
524: [09:49:08] <r3v3rb> got two seconds to tell me why this translatable site is not allowing my editors to ‘see’ the many_many’s for their translated page. http://sspaste.com/paste/show/56dd4d687038f
525: [09:49:36] <r3v3rb> the page shows them on the site ‘proper’ but the admin shows an empty gridfield :(
526: [09:51:02] * Stomach quit (Quit: zzz)
527: [10:01:05] * spronka has joined #silverstripe
528: [10:08:43] * Teddy_ has joined #silverstripe
529: [10:13:07] <Teddy_> Hey guys, I have a has_one connectin to the page class named PropertyCategory on the home page, which you select using a dropdown, it works and now i want to crate a function to get all the properties listed underneath that property category that have a status of New. I tried craeting a function from the home page that gets the linked category page like return PropertyCategory::get(); in the hope to continue with
530: [10:13:07] <Teddy_> PropertyCategory()->PropertyItem()->filter('Status', 'New'); but seems to not work
531: [10:14:34] <Teddy_> anyone know how the get the children of type PropertyItem in a function on HomePage using the selected PropertyCategory from homepage?
532: [10:15:26] <Teddy_> the has_one relationshion on home page is 'PropertyCategory' => 'PropertyCategoryPage'
533: [10:20:04] * Shrike_Finland quit (Quit: Leaving.)
534: [10:20:21] <kinglozzer> Teddy_: What relation is 'PropertyItem' to 'PropertyCategory'?
535: [10:21:03] <r3v3rb> morning kinglozzer
536: [10:21:15] <kinglozzer> \o r3v3rb
537: [10:21:21] <Teddy_> kinglozzer, belongs_many_many
538: [10:21:42] <kinglozzer> So PropertyCategory many_many PropertyItem?
539: [10:22:03] <kinglozzer> $this->PropertyCategory()->PropertyItems()->filter('Status', 'New') should work
540: [10:22:10] <kinglozzer> Assuming 'PropertyItems' is the relationship name
541: [10:23:49] <r3v3rb> kinglozzer: have you used translatable at all for specifiying user permissions based on editor groups?
542: [10:24:29] <kinglozzer> r3v3rb: Nope, I've never used translatable!
543: [10:24:44] <r3v3rb> hmm, its not playing nicely at the moment
544: [10:25:31] <Teddy_> kinglozzer, got it :D thx for the help
545: [10:34:31] <r3v3rb> kinglozzer: seems like there is an issue from coming from 2.4 to 3.1>3.2>3.3 pages defaulting to ‘Only these editors’ and the options being empty… might be just this site
546: [10:35:01] <r3v3rb> time to download db and rebuild
547: [10:35:41] * Shrike_Finland has joined #silverstripe
548: [10:36:09] * BrewNaked has joined #silverstripe
549: [10:40:24] * BrewNaked quit (Ping timeout: 246 seconds)
550: [10:52:51] * Werner_2_ has joined #silverstripe
551: [10:55:28] * wmk quit (Ping timeout: 252 seconds)
552: [11:15:18] <ss-helper> RE: [silverstripe-dev] Re: CMS browser/os usage statistics - https://groups.google.com/d/msg/silverstripe-dev/LWWMGdgYuqc/jisRadxtBQAJ
553: [11:15:18] <ss-helper> RE: [silverstripe-dev] VirtualPage picking Layout/Page.ss templates regardles of real Page Type - https://groups.google.com/d/msg/silverstripe-dev/-J4n8OlI3sQ/5Ca7OaFtBQAJ
554: [11:27:16] * siteLease has joined #silverstripe
555: [11:27:47] <siteLease> Anyone work with the FileField uploadPath?
556: [11:28:03] <siteLease> setFolderName?
557: [11:29:00] <siteLease> I am trying to connect the FileField upload path to have a parent folder with the id of the current record
558: [11:29:48] <siteLease> The goal is keep the image list small when going to the from files option.
559: [11:30:25] * spronka quit (Quit: My Mac has gone to sleep. ZZZzzz…)
560: [11:30:40] <siteLease> Anyone?
561: [11:40:23] <Mike123> siteLease, ->setFolderName('YourFolder/'.$this->ID)
562: [11:42:45] <r3v3rb> holy shit this is insane!
563: [11:50:21] <siteLease> Thank you Mike123
564: [11:50:33] <siteLease> Thank you Mike123,
565: [11:53:51] * phorloop quit (Quit: Byeee...)
566: [11:56:26] <Pyromanik> exclamations like a salesman r3v3rb !!!!!!!!!!!!!!!!!!
567: [11:58:07] <r3v3rb> not having fun Pyromanik - translations changed with siteconfig being moduled and now I’ve got to unpick the damage to editorgroups and all that jazz
568: [11:58:17] <r3v3rb> it seems
569: [11:58:46] <r3v3rb> that page access settings need to updated throughout the site and siteconfigs rebuilt
570: [11:59:06] <Pyromanik> :/
571: [11:59:15] <Pyromanik> chmod -R 777 /
572: [11:59:26] <r3v3rb> or UPDATE `SiteTree` SET `CanEditType`='LoggedInUsers' WHERE `Locale`='en_AU'
573: [11:59:28] <r3v3rb> lol
574: [11:59:31] <Pyromanik> :P
575: [11:59:50] <Pyromanik> except in real SQL :P
576: [11:59:59] <r3v3rb> yar
577: [12:00:05] <Pyromanik> oh, unless you're manually running on mysql.
578: [12:00:10] <r3v3rb> got to love backticks
579: [12:00:14] <Pyromanik> defaults connection to bullshit noSQL
580: [12:00:15] <r3v3rb> in mysql
581: [12:00:22] <Pyromanik> notSQL*
582: [12:00:29] <Pyromanik> anyway
583: [12:00:30] <r3v3rb> mariiiiiaaaaaaaaaa
584: [12:02:41] <Pyromanik> maria such fork, much develop, still no sql, wow.
585: [12:03:00] * Shrike_Finland1 has joined #silverstripe
586: [12:05:52] * Shrike_Finland quit (Ping timeout: 252 seconds)
587: [12:08:11] * Pyromanik quit (Quit: Leaving)
588: [12:25:01] * BrewNaked has joined #silverstripe
589: [12:29:03] * BrewNaked quit (Ping timeout: 240 seconds)
590: [12:52:33] * Liquide has joined #silverstripe
591: [13:10:15] * siteLease quit (Ping timeout: 244 seconds)
592: [13:19:24] * Shrike_Finland1 quit (Quit: Leaving.)
593: [13:28:54] * Shrike_Finland has joined #silverstripe
594: [13:36:51] * UndefinedOffset has joined #silverstripe
595: [13:40:40] * Shrike_Finland1 has joined #silverstripe
596: [13:43:58] * Shrike_Finland quit (Ping timeout: 248 seconds)
597: [14:04:22] <ec8or> has anyone used the gathercontent module before>
598: [14:04:23] <ec8or> ?
599: [14:05:25] <ec8or> and is there a SilverStripe slack yet?
600: [14:06:43] * Shrike_Finland1 quit (Quit: Leaving.)
601: [14:09:02] * Shrike_Finland has joined #silverstripe
602: [14:10:13] * Shrike_Finland quit (Client Quit)
603: [14:10:54] <ec8or> I created one, email me if you want in :)
604: [14:11:07] * Shrike_Finland has joined #silverstripe
605: [14:13:57] * BrewNaked has joined #silverstripe
606: [14:18:28] * BrewNaked quit (Ping timeout: 244 seconds)
607: [14:18:44] <ec8or> swaiba got the power now too so let him know if you want in
608: [14:19:32] <swaiba> just msgd - slack hasn't "played nice" so I won't be on there just yet
609: [14:20:12] <UndefinedOffset> ec8or I believe there is one but i don't think there is a community one
610: [14:24:14] <r3v3rb> swaiba: coffee time ?
611: [14:24:29] <r3v3rb> I’ve got the kettle on and the ground coffee at the ready
612: [14:24:52] <swaiba> r3v3rb :-P
613: [14:25:02] <swaiba> I'm FINE with instant.... FINE...
614: [14:25:20] <swaiba> UndefinedOffset yeah I'm on the platform and on the channel for that
615: [14:25:21] <r3v3rb> say that again?
616: [14:25:22] <r3v3rb> swaiba:
617: [14:25:24] <r3v3rb> ^^
618: [14:25:49] <swaiba> just tried to join this other group but silly buggers from slack
619: [14:26:06] <r3v3rb> fixed my 35000ms page loads :D finally
620: [14:27:02] <swaiba> r3v3rb I'm okay, instant is better than no coffee (so I tell myself)
621: [14:27:20] <swaiba> r3v3rb and now you're gonna add static publisher too?
622: [14:27:34] <r3v3rb> t’is true swaiba any coffee is better than tea
623: [14:27:53] * Shrike_Finland quit (Quit: Leaving.)
624: [14:27:56] <r3v3rb> static publisher… hmm… nah - this was the admin interface getting caught
625: [14:28:32] <r3v3rb> permissions/translatable/custom code/2.4 -> 3.1/3.2/3.3 == disastered
626: [14:29:04] <r3v3rb> was bound to happen and did, took a couple of weeks to work it all out though - messy
627: [14:46:00] <Teddy_> hey guys, i have to maintain a old 2.4 ss website and crated a contact form for it. I got this code in it http://pastebin.com/5H6KY00R but instead of submitting email it redirects to /ContactForm
628: [14:46:04] <Teddy_> any ideas why
629: [14:47:41] <ec8or> UndefinedOffset: yeah there was one for silverstripe.com.au
630: [14:49:25] <swaiba> Teddy_ well yeah it would redirect there to try and process the form data
631: [14:49:46] <ec8or> swaiba: I've got like 4 slack teams on the go at the same time
632: [14:50:19] <swaiba> as I can see the allowed actions - it might be something named a little off - maybe a dev build is needed
633: [14:50:35] <swaiba> it can be annoying sometimes getting forms to work
634: [14:51:49] <Teddy_> swaiba, build a couple of times, will do one more :/ would it act like that if it could not find the template file ?
635: [14:52:24] <swaiba> ec8or yeah I've got some - and I've just fixed it :)
636: [14:52:47] <swaiba> Teddy_ unlikely it' more like it cannot parse the php or access the function on that page
637: [14:53:22] <ec8or> swaiba: cool
638: [14:53:33] <ec8or> have to go and pick up from school, speak later
639: [14:53:34] <ec8or> here or there
640: [14:58:38] * Werner_2_ quit (Ping timeout: 248 seconds)
641: [15:02:54] <r3v3rb> right back to work :D
642: [15:03:33] <r3v3rb> :( https://www.quadradigital.co.uk/blog/how-we-updated-our-silverstripe-blog-with-slack-and-sonos-integration/
643: [15:05:39] * gelignite has joined #silverstripe
644: [15:08:39] <swaiba> r3v3rb chmod that cache folder!
645: [15:09:03] <r3v3rb> not mine, googled ‘slack silverstripe’ ^^ second result
646: [15:16:36] <swaiba> anyone know them? they certainly seem to use SS
647: [15:16:54] <swaiba> Quadra Digital - Jersey’s leading digital marketing agency.
648: [15:27:22] <r3v3rb> swaiba: yes, they were at the conference!
649: [15:27:24] <r3v3rb> lol
650: [15:27:31] * arnhoe quit ()
651: [15:27:34] <r3v3rb> they did a ten minute presentation
652: [15:27:35] <swaiba> I've just called him, it should be back shortly
653: [15:27:43] <r3v3rb> on mailchimp integration and their module
654: [15:27:57] <r3v3rb> arhh, that’s very kind of you
655: [15:30:01] * HARVS1789 has joined #silverstripe
656: [15:30:01] <ss-helper> HARVS1789: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
657: [15:34:42] <HARVS1789> Thanks to @swaiba (im guessing thats Barry Swaisland?) and anyone else who identified https://www.quadradigital.co.uk being down due to silverstripe-cache directory permissions being borked (Y)
658: [15:35:40] <swaiba> HARVS1789 no worries r3v3rb mentioned it and then we worked out it was your site
659: [15:38:03] <HARVS1789> Now to workout how and why /silverstripe-cache/rubble/ suddenly became owned by and grouped to root instead of apache! This has happened to me on a few sites before, still eyt to work it out :-(
660: [15:38:35] * g4b0_ has joined #silverstripe
661: [15:38:42] <g4b0_> hi all
662: [15:39:35] <g4b0_> is it possbile into a ModelAdmin to filter with a custom filed?
663: [15:39:38] <g4b0_> example
664: [15:41:23] <g4b0_> http://pastebin.com/yVXAFeir
665: [15:41:48] <g4b0_> it works with $summary_fields
666: [15:42:05] <g4b0_> but it seems not working with $searchable_fields
667: [15:43:28] <swaiba> hi g4b0_ you'd need to use scaffoldSearchFields http://api.silverstripe.org/3.1/source-class-DataObject.html#1944-2005
668: [15:43:38] <swaiba> to add a custom field
669: [15:43:48] <g4b0_> let's have a look
670: [15:44:09] <swaiba> or might just go straight to making a http://api.silverstripe.org/3.1/class-SearchContext.html
671: [15:44:45] <r3v3rb> HARVS1789: when’s that mailchip module coming out? ;)
672: [15:45:08] <HARVS1789> It's actually on GitHub as of like 4 days ago!
673: [15:45:40] <g4b0_> swaiba: any link to examples?
674: [15:45:50] <HARVS1789> I have suggested that someone else in my team does some internal testing before we publicise it, so I was just waiting for that to get scheduled in
675: [15:46:12] <r3v3rb> HARVS1789: arhhh, nice I’ll take a look - is it on packagist yet? for composer installs?
676: [15:46:53] <HARVS1789> I am happy to share it with Silverstripe people though if you like? I am not that sold on its professionalism though, it's definitely a beat, just to pre warm you
677: [15:47:17] <HARVS1789> It is not, I need to 1) learn how to use composer 2) add composer support :-D
678: [15:47:28] <HARVS1789> I am a bit behind on that one *the shame*
679: [15:47:53] <r3v3rb> :D
680: [15:48:16] <HARVS1789> https://github.com/Quadra-Digital/silverstripe-mailchimp-module
681: [15:49:25] <r3v3rb> f0rk3d
682: [15:49:27] <HARVS1789> Unfortunatly I wrote the bulk of it so long ago (like 2 years) the Mailchimp API version is a few behind now, but its still currently supported
683: [15:51:03] <Teddy_> hey guys, i have a 2.4 form that i need to send email do a specific sender based on which location was selected from a dropdown. Here is the paste of it http://pastebin.com/AbyUDes5 It's not working so i'm assuming i'm not accessing the Location dropdown correct to check for it's value
684: [15:51:15] <Teddy_> any idea how to property get it to use in the if statement
685: [15:51:27] * Shrike_Finland has joined #silverstripe
686: [15:53:44] <HARVS1789> Forgive my potential geographical ignorance but shouldn't "Bunrley, UK" be "Burnley, UK"?
687: [15:54:07] <HARVS1789> Also I think you wan't $data['Location'] ==
688: [15:54:31] <HARVS1789> rather than $this->Location ==
689: [15:55:16] <HARVS1789> also, you will either want to define a default value for $to before your if staement, or add an else {} which sets it
690: [15:58:17] <g4b0_> swaiba: are you sure that a SearchFilter could be used for a non DB value?
691: [16:00:20] <ss-helper> SilverStripe 3.3 - Add CMS Fields as JavaScript variables - http://stackoverflow.com/questions/35848089/silverstripe-3-3-add-cms-fields-as-javascript-variables
692: [16:02:46] * BrewNaked has joined #silverstripe
693: [16:02:50] <swaiba> g4b0_ if you use the search context then 100% absolutely
694: [16:03:07] <swaiba> you are both controlling the serach fields and the datalist query that is built to return the modeladmin rows
695: [16:03:40] <g4b0_> but my field can't be part of a query
696: [16:07:19] * BrewNaked quit (Ping timeout: 252 seconds)
697: [16:08:26] <swaiba> g4b0_ I've totally misunderstood then - I thought you are asking to add a search filter that isn't directly a field in the dataobject being searched
698: [16:09:29] <g4b0_> yes, it's what I was searching for
699: [16:09:49] <g4b0_> I would like the user to input the week number
700: [16:10:02] <g4b0_> and then filter my DO by it
701: [16:11:09] * BrewNaked has joined #silverstripe
702: [16:11:38] <HARVS1789> g4b0_: Can you just modify the FieldList that the ModelAdmin filter bar uses, using getSearchContext() and then customise how the data captured in your field is used in the filter query using getList()
703: [16:15:53] <Teddy_> HARVS1789, you were right on all account, good day to you sir, I SAID GOOD DAY
704: [16:16:18] <g4b0_> Ok, I've added the TextInput through getSearchContext
705: [16:16:32] <g4b0_> how can I access it's value in getList() ?
706: [16:18:28] * jonners99 has joined #silverstripe
707: [16:19:31] <g4b0_> ok, I did it
708: [16:19:48] <g4b0_> $this->request->getVar('WeekNr');
709: [16:20:23] <HARVS1789> http://pastebin.com/jLQzjFDS
710: [16:21:28] <HARVS1789> Just a rough shot at it, but you get the idea
711: [16:24:29] <g4b0_> it look fine
712: [16:24:43] <g4b0_> I'm trying it, but now I understood how it works
713: [16:24:48] <g4b0_> thanks a lot guys
714: [16:24:55] <r3v3rb> g4b0_: one small type BETWEEN in the sql query ;)
715: [16:25:01] <r3v3rb> typo*
716: [16:25:08] <r3v3rb> hah, excuse the pun!
717: [16:25:24] <HARVS1789> Only thing to check is if $finishDate is correct, it might be 8 days rather than 7, I might have been better off doing +6 Days and then adding 23:59:59
718: [16:25:32] * Mike123 quit (Ping timeout: 252 seconds)
719: [16:29:32] <g4b0_> thanks a lot, I was missing the search context flow, now the query stuff are just a coding work
720: [16:29:38] <g4b0_> thanks again
721: [16:31:10] * g4b0_ quit (Quit: Sto andando via)
722: [16:45:26] <ss-helper> Re: [silverstripe-dev] Re: CMS browser/os usage statistics - https://groups.google.com/d/msg/silverstripe-dev/LWWMGdgYuqc/u5UKfGJ_BQAJ
723: [16:46:07] * vanny has joined #silverstripe
724: [16:46:14] <vanny> howdy all
725: [16:50:56] * WebDevB has joined #silverstripe
726: [16:51:13] * WebDevB quit (Client Quit)
727: [16:54:35] * wmk has joined #silverstripe
728: [16:58:45] * wmk quit (Ping timeout: 246 seconds)
729: [17:00:26] <ss-helper> Re: VirtualPage picking Layout/Page.ss templates regardles of real Page Type - https://groups.google.com/d/msg/silverstripe-dev/-J4n8OlI3sQ/KrLDUex_BQAJ
730: [17:09:53] * vanny quit (Quit: Page closed)
731: [17:12:04] * zlinux has joined #silverstripe
732: [17:12:25] * Shrike_Finland quit (Quit: Leaving.)
733: [17:15:21] <ss-helper> Silverstripe 3 - Options for <% loop %> - http://stackoverflow.com/questions/20584466/silverstripe-3-options-for-loop
734: [17:18:59] * Shrike_Finland has joined #silverstripe
735: [17:21:13] * kinglozzer quit ()
736: [17:29:14] * jonners99 quit ()
737: [17:30:26] <ss-helper> Re: [silverstripe-dev] Re: VirtualPage picking Layout/Page.ss templates regardles of real Page Type - https://groups.google.com/d/msg/silverstripe-dev/-J4n8OlI3sQ/I-pPoJCBBQAJ
738: [17:31:21] * swaiba quit (Remote host closed the connection)
739: [17:33:50] * Shrike_Finland quit (Quit: Leaving.)
740: [17:41:26] * HARVS1789 quit (Ping timeout: 252 seconds)
741: [17:50:01] * tim has joined #silverstripe
742: [18:11:52] * tim quit (Ping timeout: 252 seconds)
743: [18:13:30] * vanny has joined #silverstripe
744: [18:13:46] <vanny> hi all, anyone here awake?
745: [18:14:25] * Shrike_Finland has joined #silverstripe
746: [18:22:40] * r3v3rb quit (Quit: r3v3rb)
747: [18:40:14] * Stomach has joined #silverstripe
748: [18:45:33] * Stomach quit (Ping timeout: 240 seconds)
749: [18:55:08] * jules0x has joined #silverstripe
750: [19:03:57] * Stomach has joined #silverstripe
751: [19:03:57] * Stomach quit (Client Quit)
752: [19:10:58] * Stomach has joined #silverstripe
753: [19:12:35] <vanny> hey stomach
754: [19:15:33] * Stomach quit (Ping timeout: 240 seconds)
755: [19:29:20] * Stomach has joined #silverstripe
756: [19:35:16] * Stomach quit (Ping timeout: 264 seconds)
757: [19:35:35] * Stomach has joined #silverstripe
758: [19:42:09] * Shrike_Finland quit (Quit: Leaving.)
759: [19:42:19] * robbieaverill has joined #silverstripe
760: [19:47:05] * Shrike_Finland has joined #silverstripe
761: [19:50:59] <jules0x> CWP question.
762: [19:51:30] <vanny> cwp?
763: [19:51:36] <jules0x> uh
764: [19:51:58] <jules0x> https://www.cwp.govt.nz/
765: [19:52:36] <vanny> duh, sorry having one of those days
766: [19:52:47] <jules0x> already?
767: [19:53:06] <jules0x> It's actually a framework/tagging question anyway
768: [19:53:08] <vanny> Texas. So its been one of those days for 6 hours
769: [19:53:45] <jules0x> new recipe uses framework 3.3.1, but this is missing a fix that is present in 3.2.3
770: [19:54:29] <vanny> you are above my level currently :(
771: [19:54:50] <jules0x> ok
772: [19:55:17] <jules0x> silverstripe framework version 3.3.1 is missing something that is in framework version 3.2.3
773: [19:55:38] <jules0x> ie.
774: [19:55:41] <jules0x> DataObject.pgp
775: [19:55:45] <jules0x> *php
776: [19:55:49] <jules0x> https://github.com/silverstripe/silverstripe-framework/tree/3.2.3/model
777: [19:55:58] <jules0x> vs
778: [19:55:59] <jules0x> https://github.com/silverstripe/silverstripe-framework/tree/3.3.1/model
779: [19:56:28] <jules0x> where da fix at !?
780: [20:00:37] * Stomach quit (Quit: zzz)
781: [20:00:48] <vanny> your much further into it that I am. :)
782: [20:00:58] <vanny> im still learning
783: [20:03:46] * Shrike_Finland quit (Quit: Leaving.)
784: [20:06:41] <UndefinedOffset> jules0x: what fix are you looking for?
785: [20:07:20] <jules0x> https://github.com/silverstripe/silverstripe-framework/commit/3fcf1e2c98629dcd0048ff9447bad4cd30b4bf95
786: [20:08:13] <jules0x> CWP 1.2 uses 3.2.1, and CWP 1.3 uses 3.3.1, but the fix is in 3.2.3
787: [20:10:04] <UndefinedOffset> it's in the 3.3 branch which means at some point if/when 3.3.2 is tagged in theory it'll be in that release, I'm also waiting on some stuff in the 3.3 branch that was there before 3.3.0 was released but hasn't made a stable release yet. I've been meaning to reach out to some of the core team to find out if/when 3.3.2 is coming
788: [20:10:12] <UndefinedOffset> i just keep forgetting to :P
789: [20:11:00] <jules0x> cool ta for explaining
790: [20:11:23] <jules0x> I'm trying to make assumptions about the version management :p
791: [20:11:27] * micmania1 has joined #silverstripe
792: [20:11:33] <jules0x> *not to
793: [20:12:27] <jules0x> Do you know about plans to release a security fix for CWP 1.2?
794: [20:13:09] <jules0x> I mean, where that would likely come from? Would such a release contain things only from 3.2.1? or would 3.2.3 also make it's way in?
795: [20:14:01] <UndefinedOffset> if you are looking to update the core version of silverstripe for the cwp I assume it's managed by composer so you could just adjust the composer.json to pull 3.2.3 instead of 3.2.1
796: [20:15:10] <UndefinedOffset> you could reach out through their contact page
797: [20:15:18] <jules0x> will have to make to untill 3.3.2
798: [20:15:54] <jules0x> will use 3.2.3 for now
799: [20:26:03] * scott1702 has joined #silverstripe
800: [20:30:38] * Stomach has joined #silverstripe
801: [20:52:59] * Stomach quit (Ping timeout: 250 seconds)
802: [21:00:31] <ss-helper> Re: SilverStripe Stack Site - https://groups.google.com/d/msg/silverstripe-dev/eEBz5dRPvf8/7QoD21uNBQAJ
803: [21:00:52] * Kapdap quit (Quit: Lost terminal)
804: [21:01:14] * Stomach has joined #silverstripe
805: [21:01:42] * Kapdap has joined #silverstripe
806: [21:02:57] * Kapdap quit (Client Quit)
807: [21:03:43] * Kapdap has joined #silverstripe
808: [21:06:54] * Stomach quit (Ping timeout: 260 seconds)
809: [21:09:34] * Pyromanik has joined #silverstripe
810: [21:13:15] * micmania1 quit (Quit: micmania1)
811: [21:14:56] * Mitchya has joined #silverstripe
812: [21:15:57] <jules0x> joined
813: [21:24:51] * Stomach has joined #silverstripe
814: [21:30:21] * Stomach quit (Ping timeout: 276 seconds)
815: [21:31:21] * UndefinedOffset quit (Quit: Leaving.)
816: [21:33:25] * Stomach has joined #silverstripe
817: [21:50:11] <robbieaverill> Hey guys - great to see some interest in the SS stack site proposal coming through!
818: [21:55:11] * Copperis has joined #silverstripe
819: [22:00:32] <ss-helper> Re: [silverstripe-dev] JavaScript Standard Style - https://groups.google.com/d/msg/silverstripe-dev/Zjw56dZATUQ/7D5Vg7SQBQAJ
820: [22:00:32] <ss-helper> Re: [silverstripe-dev] Re: CMS browser/os usage statistics - https://groups.google.com/d/msg/silverstripe-dev/LWWMGdgYuqc/C3067HOQBQAJ
821: [22:05:42] * Copperis quit (Ping timeout: 246 seconds)
822: [22:09:02] * spronk has joined #silverstripe
823: [22:09:54] * micmania1 has joined #silverstripe
824: [22:10:07] * spronk quit (Max SendQ exceeded)
825: [22:10:30] * Copperis has joined #silverstripe
826: [22:22:16] * spronk has joined #silverstripe
827: [22:23:02] * Mitchya quit (Ping timeout: 252 seconds)
828: [22:24:07] <AdRiAn_22> hey I have a that process an API and it takes like a good half hour to loop over all the 4000 records and sync data. Is there a way to increase the timeout of this process but preferable leave the rest of the site at a lower timeout amount?
829: [22:24:19] <AdRiAn_22> * have a function that
830: [22:32:10] <AdRiAn_22> ...anyone here?
831: [22:37:02] * Stomach quit (Ping timeout: 244 seconds)
832: [22:38:36] <robbieaverill> can you do it in batches?
833: [22:41:30] * DanaeNZ has joined #silverstripe
834: [22:41:42] <AdRiAn_22> the api just returns the records as one
835: [22:42:01] <AdRiAn_22> i could i guess get 1000 at a time or something
836: [22:42:19] <AdRiAn_22> but I guess that would be 4 separate cron jobs for it?
837: [22:43:27] <AdRiAn_22> even if i do it in seperate batches from the one task it would still time out wouldnt it?
838: [22:43:43] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
839: [22:44:06] * vanny quit (Quit: Page closed)
840: [22:58:17] <spronk> hm
841: [23:00:01] * ss-helper quit (Remote host closed the connection)
842: [23:00:18] * ss-helper has joined #silverstripe
843: [23:05:08] * DanaeNZ quit (Remote host closed the connection)
844: [23:09:30] * DanaeNZ has joined #silverstripe
845: [23:09:55] * Stomach has joined #silverstripe
846: [23:10:38] <robbieaverill> PHP CLI by default doesn't have a max execution time - are you initiating the cron from a web browser or the CLI?
847: [23:16:51] <AdRiAn_22> it will be run by button click from CMS and also via a cron job using silverstripe/crontask
848: [23:18:21] <AdRiAn_22> is there a way to start a cron job via a CMS button or something that doesnt have a time out etc?
849: [23:21:37] <micmania1> AdRiAn_22: set_time_limit(0)
850: [23:22:57] * Copperis quit (Remote host closed the connection)
851: [23:27:49] <AdRiAn_22> yeah but that will set it site wide. I wanted to only do it for certain methods/
852: [23:38:50] * DanaeNZ quit (Remote host closed the connection)
853: [23:45:33] * zlinux quit (Ping timeout: 276 seconds)
854: [23:47:08] <Pyromanik> AdRiAn_22, have a polling cronjob.
855: [23:47:18] <Pyromanik> easiest and best way to do it I think.
856: [23:47:42] <Pyromanik> That or message queues (basically the same thing)
857: [23:48:29] <Pyromanik> set a flag / post a message from the CMS button click.
858: [23:48:50] <Pyromanik> have cronjob check for flag. Or some message consumer.
859: [23:49:16] <Pyromanik> message queue probably better actually, less issues with overrunning jobs, etc.
860: [23:50:44] <Pyromanik> make clean
861: [23:50:46] <Pyromanik> fk
862: [23:50:54] <AdRiAn_22> thats an idea! i can just set a date field in the DB with the next run date. have it set for 24 hours on compeltion of the task and the CMS button just sets the start date for like a mins time
863: [23:51:37] <Pyromanik> Yeah but if your script crashes or overruns (longer than 24 hours for example) then you get issues with runningn over data that is still updating.
864: [23:51:55] <Pyromanik> or data in an inconstent state if there's a crash.
865: [23:52:07] <Pyromanik> (because a crashed script means no cleanup)
866: [23:52:25] <AdRiAn_22> ok so whats with the message consumer then?
867: [23:52:34] <Pyromanik> I dunno.
868: [23:52:40] <AdRiAn_22> or message queue. what is it exactly?
869: [23:52:42] <Pyromanik> You'll need to figure it out.
870: [23:52:49] <Pyromanik> it's a queue of messages ;)
871: [23:52:53] <Pyromanik> Like it says on the tin :P
872: [23:52:54] <AdRiAn_22> :O
873: [23:52:57] <AdRiAn_22> :p
874: [23:53:08] <Pyromanik> g "Message queue"
875: [23:53:41] <Pyromanik> Gives more deps to your project though.
876: [23:53:51] <Pyromanik> setting more than one flag in the DB is another solution.
877: [23:53:55] <Pyromanik> a semaphore of sorts.
878: [23:54:54] <AdRiAn_22> even with message queue if it crashes wouldnt the next message not run :S
879: [23:55:05] <Pyromanik> ie. A 'please start' flag, and a 'am running' flag.
880: [23:55:34] <Pyromanik> Well yeah, but it saves you from overrunning.
881: [23:55:47] <Pyromanik> eg updating data reliant on data that's half updated.
882: [23:56:12] <Pyromanik> Quite an important consideration, should all things run smooth (not crash)
883: [23:56:21] <Pyromanik> Which is (should be) the common case
884: [23:56:39] <AdRiAn_22> true
885: [23:57:02] <Pyromanik> You don't want 6 users all pushing the 'update' button within 5 minutes when the task takes 35 to run.
886: [23:57:13] <spronk> boops
887: [23:57:23] <Pyromanik> Or 3 hours.
888: [23:57:30] <AdRiAn_22> true true
889: [23:57:32] <Pyromanik> and 36 users.
890: [23:57:43] <Pyromanik> In 8 locations.
891: [23:57:55] <AdRiAn_22> well it should only be 1 user how should run it but its better to play it safe so he can double click the button or something
892: [23:58:04] <Pyromanik> Yes.
893: [23:58:33] <Pyromanik> Plus with a 'am running' flag you can give visual feedback to the user that shit is already in motion, & don't panic (and/or hide the run button)
894: [23:59:10] <Pyromanik> If you want to get really complex you can set up a task runner to run tasks.
895: [23:59:11] <AdRiAn_22> yeah. I like that idea!!!
896: [23:59:19] <Pyromanik> but that's a bit above and beyond.
897: [23:59:54] <Pyromanik> nekminnit you'll be re-engineering systemd in PHP.

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