#silverstripe IRC Log

IRC log for 10 November 2015

All timestamps are in UTC.

1: [00:00:15] * kiwinewt quit (Ping timeout: 246 seconds)
2: [00:04:35] <DanaeNZ> :0
3: [00:04:39] <ss23> :1
4: [00:06:44] * Colin[pi] quit (Ping timeout: 276 seconds)
5: [00:07:39] * Colin[pi] has joined #silverstripe
6: [00:10:35] <antmas> I want to go home and play fallout :|
7: [00:10:45] <helenclarko> :3
8: [00:10:56] <DanaeNZ> same
9: [00:10:58] <antmas> stupid responsibilities
10: [00:11:03] <DanaeNZ> but there is internet at work
11: [00:11:20] <helenclarko> I dont want to Adult!
12: [00:12:10] <antmas> I had to block my mate who's playing it right now
13: [00:12:18] <antmas> sending me OMG updates every 5 mins
14: [00:13:50] <helenclarko> antmas: Sounds like he is Tim Taylor
15: [00:14:01] <antmas> haha
16: [00:15:16] <Colin[pi]> is that out already?
17: [00:16:01] <antmas> 'omg a rad roach died and ragdolled onto a couch rofl goty'
18: [00:16:13] <antmas> actual update from a friend 10 mins ago
19: [00:16:35] <helenclarko> Yep, he's a Tool Man
20: [00:17:55] <Colin[pi]> antmas: did you already try it out?
21: [00:18:24] <antmas> Colin[pi]: lol yes, finished DLing at 1am, woke up at 5am to play :P
22: [00:18:36] <Colin[pi]> antmas: lol
23: [00:18:44] <antmas> my body is literally running on hype alone today
24: [00:18:49] <antmas> don't even talk about sleep
25: [00:19:13] <Colin[pi]> you can sleep in game right?
26: [00:19:14] <Colin[pi]> ;P
27: [00:19:18] <Colin[pi]> that should work :P
28: [00:19:24] <antmas> that's called 'slaming'
29: [00:19:35] <antmas> technical term
30: [00:22:41] <helenclarko> antmas: A southern term for taking a shit or dropping a duece so to speak. Technically slamming means a massive shit, which in most cases is painful to experience.
31: [00:22:51] <helenclarko> Must have multiple terms then.
32: [00:23:10] <antmas> this is pronounced 'slay ming'
33: [00:23:15] <helenclarko> oh, two M's thats my problem.
34: [00:23:21] <antmas> correct
35: [00:23:46] <antmas> 'slay ming' is also the name of a famous chinese brothel
36: [00:24:13] * antmas shows himself out
37: [00:24:28] <Colin[pi]> sum ting wong with your sense of humour
38: [00:24:56] <antmas> lol
39: [00:41:54] * micmania1 has joined #silverstripe
40: [00:42:04] <jules0x> I'm writing a menu module. Is there a way to include the js and css without requiring the developer to add them to init()?
41: [00:42:49] <MichalKleiner> you can require css and js from templates
42: [00:42:55] <jules0x> i see
43: [00:42:56] <jules0x>
44: [00:42:56] <jules0x> <% require javascript("mymodule/mine.js") %>
45: [00:43:05] * Tanger has joined #silverstripe
46: [00:43:22] <MichalKleiner> but some people say it's not a good practice.. I don't see a problem there though
47: [00:43:34] <MichalKleiner> official blog module does it too
48: [00:43:34] <jules0x> what if I'm using csp and preventing inline JS
49: [00:43:50] <antmas> csp?
50: [00:44:13] <jules0x> content security policy
51: [00:45:31] <jules0x> I supposed adding the requirements to the init() isn't that much of a stretch
52: [00:46:40] <jules0x> heres a quickie on CSP if you're interested
53: [00:46:41] <jules0x> http://www.html5rocks.com/en/tutorials/security/content-security-policy/
54: [00:52:02] * camfindlay has joined #silverstripe
55: [00:56:19] * UncleCheese has joined #silverstripe
56: [00:56:30] <adrexia> <MichalKleiner>
57: [00:56:30] <adrexia> but some people say it's not a good practice.. I don't see a problem there though
58: [00:56:34] <adrexia> I disagree with those people
59: [00:56:45] <adrexia> i think its bad practice to do it in php
60: [00:57:54] <adrexia> provided you are doing your own js & css minification, its best to just not use the requirements system if it's avaoidable
61: [00:58:06] <adrexia> *avoidable
62: [00:59:09] <adrexia> unfortunately, there are a lot of modules that use it, which makes it hard to ditch on the frontend entirely
63: [00:59:27] <MichalKleiner> true
64: [00:59:31] <MichalKleiner> agree
65: [01:00:45] <adrexia> Personally, I think the idea that random new js can be injected in specific pages is really horrible.
66: [01:00:50] <adrexia> :-/
67: [01:00:56] <antmas> +1
68: [01:14:03] <MichalKleiner> adrexia: you mean using the requirements anywhere in the code or in the templates? or in general everywhere?
69: [01:14:19] <adrexia> I don't mind them in the cms ;)
70: [01:15:10] <adrexia> but its really difficult to spot regressions when every page uses a different mix of js
71: [01:15:18] <adrexia> and really offers no value
72: [01:15:28] <adrexia> minify it once and the browser can cache it
73: [01:16:18] <adrexia> and you don't get requirements doing different things in dev/test /live mode
74: [01:16:36] <adrexia> which is like the worst 'feature' ever... because you discover bugs on live
75: [01:22:24] * muskie9 has joined #silverstripe
76: [01:24:32] * UncleCheese quit (Ping timeout: 250 seconds)
77: [01:35:39] * DanaeNZ quit (Remote host closed the connection)
78: [01:39:44] * hailwood has joined #silverstripe
79: [01:40:08] <MichalKleiner> true, agree.. sometimes people are not as good developers and need some way how to use modules that come with JS..
80: [01:42:26] * antmas quit (Quit: Page closed)
81: [01:43:25] <Tanger> Hey guys, in templates does 'not' only work with a preceding 'if'?
82: [01:44:43] * DanaeNZ has joined #silverstripe
83: [01:45:35] <Colin[pi]> "Hey Siri, what's the temperature?" "It's 28C outside. Hot." "Why thanks, you're pretty hot too." "Stop." <-- LOL
84: [01:46:15] <DanaeNZ> omg
85: [01:46:30] <ss23> lol
86: [01:46:30] <Colin[pi]> dat sass
87: [01:47:48] <helenclarko> Colin[pi]: Have you told Siri what your name is?
88: [01:52:00] <Colin[pi]> helenclarko: yeah, or you mean a custom one?
89: [01:52:09] <helenclarko> Colin[pi]: I had my name set to "You fucking C!@#" then Siri would say things like "Thank you, you fucking C!@#". I quickly discovered it wasn't the best idea when Siri yelled that out at work.
90: [01:52:27] <Stomach> I agree with adrexia 100%
91: [01:52:37] <Stomach> but we've talked about that before :D
92: [01:52:45] <Stomach> aaaaaand I'm an hour behind
93: [01:52:46] <Stomach> whoops
94: [01:53:13] * camfindlay quit (Quit: camfindlay)
95: [01:53:18] <adrexia> don't worry, I suspect I was also behind
96: [02:14:42] * micmania1 quit (Quit: micmania1)
97: [02:30:20] * joelpittet quit (Remote host closed the connection)
98: [02:31:27] * critchie quit (Ping timeout: 246 seconds)
99: [02:34:45] * visod has joined #silverstripe
100: [02:34:46] <ss-helper> visod: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
101: [02:35:02] * joelpittet has joined #silverstripe
102: [02:40:54] * visod quit (Ping timeout: 246 seconds)
103: [02:44:57] * visod has joined #silverstripe
104: [02:46:22] <jules0x> I've got a dataextension applied to Sitetree... but I only want to do the updateCMSFields if the current page is top level
105: [02:46:39] <jules0x> how can I get the ParentID of the current page while in the dataextension?
106: [02:47:19] <jules0x> ohhhh sorry scratch that
107: [02:47:22] <muskie9> jules0x if($this->owner->ParentID == 0){//you're at the top level}
108: [02:47:33] <jules0x> yep it was the owner part that I was missing
109: [02:47:55] <muskie9> gets me from time to time
110: [02:48:11] <helenclarko> Gets me everytime.
111: [02:49:11] <jules0x> slightly trickier. how can I tell that the current page is level(n)
112: [02:49:20] <jules0x> ie level 2 or level 4
113: [02:49:49] <jules0x> I'm exposing fields in the CMS dependant on how deep the page is
114: [02:51:37] <muskie9> jules0x recursively call a function that checks for ParentID, if the ParentID isn't 0 add 1 to the level... return the value once the ParentID is 0
115: [02:53:39] <visod> Hey all, I have a Page (ProductType) that holds a bunch of DataObjects (Product) and each Product has_one DataObject (Brand). What I'm looking to do is (inside the ProductType controller) return a list of all the Brands used by Products. I want it in the controller so I can access it from other parts of the site (ie: loop through all ProductTypes and loop through each ProductTypes available Brands)
116: [02:54:16] * Sentro has joined #silverstripe
117: [02:54:57] <muskie9> jules0x I thought I had a snippet that did something like that, I'm trying to track it down
118: [02:55:42] * Olliepop has joined #silverstripe
119: [02:56:18] <jules0x> @muskie9 kew
120: [02:57:06] <muskie9> jules0x I can't take credit for this... https://gist.github.com/muskie9/7ac02c964250d1eb34a5
121: [02:57:23] <muskie9> it's from the one and only UncleCheese http://www.silverstripe.org/community/forums/general-questions/show/13930
122: [02:57:42] <muskie9> I've used it a few times
123: [02:57:53] <jules0x> nice
124: [02:57:54] <jules0x> thanks for that
125: [02:57:57] <muskie9> sure
126: [02:58:05] <helenclarko> visod: Check out this, https://github.com/arillo/silverstripe-GridFieldRelationHandler
127: [02:58:06] <jules0x> *adding to gistbox
128: [02:58:29] <helenclarko> visod: Set up relationships
129: [02:58:34] <muskie9> I'm not sure if that was ever added as functionality in the cms, but in 2010 it wasn't in there
130: [02:59:31] * micmania1 has joined #silverstripe
131: [02:59:57] * Sentro quit (Quit: Sentro)
132: [03:00:35] * Sentro has joined #silverstripe
133: [03:00:53] <visod> helenclarko: I'm not understanding. My relationships already exist between Product and Brand.
134: [03:02:26] <muskie9> visod without seeing code this is a guess, but https://gist.github.com/muskie9/3dfd28c8d2c853f02df6
135: [03:10:33] <visod> muskie9: not working right away but this gives me a totally different train of though so thank you!
136: [03:11:17] <muskie9> sure, I think ideally you'd get them all in one query, but my brain's a little tired, so building a list is quicker atm lol
137: [03:11:27] <spronk> fuck yeah
138: [03:11:29] <spronk> bridgestone roxot
139: [03:11:39] <spronk> puncture repair free of charge
140: [03:12:09] <visod> yeah i like the idea of looping through the products and adding them to the list if it doesnt already exist in the array
141: [03:13:22] <visod> any rough idea how to get them all in 1 query? anything I can run with?
142: [03:14:30] <muskie9> visod probably some join statements... querying Brand::get(), but I'm horrible at those... so I usually just build the lists ;P
143: [03:15:26] <visod> muskie9: yeah, to hell with joins. I'll take this route
144: [03:15:28] <visod> thanks!
145: [03:15:48] * muskie9 needs to learn more sql and what not
146: [03:32:53] * glenn-bautista quit (Quit: Leaving.)
147: [03:45:31] <helenclarko> Need nap!
148: [03:45:49] <DanaeNZ> omg same
149: [03:45:51] <muskie9> helenclarko more caffeine!
150: [03:45:56] <DanaeNZ> i'm about to pass out so sleepy
151: [03:46:16] <helenclarko> muskie9: But caffine on a headache...
152: [03:46:26] <helenclarko> No good.
153: [03:47:24] <muskie9> no pain no gain ;P
154: [03:47:37] <muskie9> actually, that's definitely not fun
155: [03:47:47] <helenclarko> Just nap time.
156: [03:47:55] <muskie9> I hear booze helps ;)
157: [03:48:13] <helenclarko> MMMmmm Actually, I could do that.
158: [03:49:28] <helenclarko> I've had situations where you think the headache is basically done so have a coffee and then BOOM, HEADACHE!
159: [03:49:43] <muskie9> sounds like you're dehydrated
160: [03:49:56] <muskie9> beer has water, have beer
161: [03:50:20] <helenclarko> cant be, I've had way too much water trying to cure this.
162: [03:50:54] <helenclarko> I think its just because I've sat infront of this PC all day.
163: [03:51:12] <helenclarko> But nap sounds good.
164: [03:51:33] <muskie9> mmmmmmm naps, the thing I dream about at night when I sleep...
165: [03:52:02] <helenclarko> I wonder if anyone will notice me napping at my desk.
166: [03:52:43] * muskie9 googles how to get away with napping at work
167: [03:53:10] <muskie9> http://lifehacker.com/5815967/how-to-get-away-with-sleeping-at-work
168: [03:53:14] <helenclarko> muskie9: bathroom naps?
169: [03:53:21] * visod quit (Ping timeout: 246 seconds)
170: [03:53:28] <muskie9> that's on their list lol
171: [03:54:11] <muskie9> "There are plenty of scapegoats available to you: your significant other was having a private emotional problem, your young child had midnight diarrhea, someone tried to break in to your home, and so on."
172: [03:54:24] * Olliepop quit (Ping timeout: 246 seconds)
173: [03:54:30] <muskie9> EXPLOSIVE DIARRHEA
174: [03:56:16] * helenclark0 has joined #silverstripe
175: [03:56:19] <helenclark0> Oh thats very smart
176: [03:57:08] <muskie9> when the diarrhea hits http://puu.sh/lg1XR/86bac0b23a.gif
177: [03:58:49] * helenclarko quit (Ping timeout: 265 seconds)
178: [04:00:35] * helenclark0 quit (Ping timeout: 240 seconds)
179: [04:00:43] <spronk> hahahah
180: [04:01:24] * mahfuz quit (Ping timeout: 246 seconds)
181: [04:03:38] * hailwood quit (Remote host closed the connection)
182: [04:08:22] <muskie9> I'm guessing these can go away: http://api.silverstripe.org/3.2/source-class-ViewableData.html#65-85
183: [04:09:34] <muskie9> wonder how many of those are still in the code base
184: [04:19:51] * DanaeNZ quit (Remote host closed the connection)
185: [04:26:08] * jules0x quit (Read error: Connection reset by peer)
186: [04:29:31] * glenn-bautista has joined #silverstripe
187: [04:33:53] * micmania1 quit (Quit: micmania1)
188: [04:36:27] * micmania1 has joined #silverstripe
189: [04:54:49] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
190: [04:58:16] * Stomach1 has joined #silverstripe
191: [05:05:50] * Stomach quit (Quit: zzz)
192: [05:07:33] * adrexia quit (Quit: My Mac has gone to sleep. ZZZzzz…)
193: [05:08:37] * glenn-bautista quit (Quit: Leaving.)
194: [05:11:28] * Sentro quit (Quit: Sentro)
195: [05:11:50] * Stomach has joined #silverstripe
196: [05:18:12] * Stomach quit (Quit: zzz)
197: [05:21:10] * micmania1 quit (Ping timeout: 260 seconds)
198: [05:43:34] * Sentro has joined #silverstripe
199: [05:47:23] <Tanger> Hi guys, would anybody have an idea about why cURL refuses to send an SHA1 hash in it's POST data?
200: [05:51:15] * Sentro quit (Quit: Sentro)
201: [05:56:36] * Sentro has joined #silverstripe
202: [06:05:43] * Stomach has joined #silverstripe
203: [06:06:37] * joelpittet quit ()
204: [06:08:23] * DanaeNZ has joined #silverstripe
205: [06:11:52] * Colin[pi] quit (Ping timeout: 244 seconds)
206: [06:12:47] * DanaeNZ quit (Ping timeout: 240 seconds)
207: [06:21:02] * Stomach quit (Quit: zzz)
208: [07:08:28] * Stomach has joined #silverstripe
209: [07:12:38] * Mike123 has joined #silverstripe
210: [07:25:35] * wmk has joined #silverstripe
211: [07:33:14] * leomeloxp_ quit (Quit: WeeChat 1.3)
212: [07:46:25] * Stomach1 quit (Quit: Leaving.)
213: [07:50:45] <Sentro> good day SS, my custom report is not populating columns() when returning ArrayList from sourceRecords(), how do I convert arraylist into datalist?
214: [07:54:28] * arnhoe has joined #silverstripe
215: [07:57:51] * DanaeNZ has joined #silverstripe
216: [08:02:10] * DanaeNZ quit (Ping timeout: 240 seconds)
217: [08:14:18] * leomeloxp has joined #silverstripe
218: [08:14:48] <wmk> Sentro, you cant
219: [08:14:57] <wmk> but it should work with any SS_List
220: [08:15:03] <wmk> !paste Sentro
221: [08:15:03] <ss-helper> Sentro: Please paste your code using something like http://kopy.io/ or http://www.sspaste.com/ or https://gist.github.com/ and then paste the link here.
222: [08:18:17] <Sentro> hello, here’s my code http://www.sspaste.com/paste/show/5641a82286b3b
223: [08:18:44] <Sentro> it’s a report to top referrals
224: [08:19:20] <Sentro> I managed to remove duplicates by using the GroupedList
225: [08:21:19] <Sentro> but columns() is not showing the properties when sourceRececords() is returning GroupedList or ArrayList result.
226: [08:24:39] <Sentro> but actually my goal there is to remove duplicates and sort by number of duplicates because more duplicate MemberID means has top many referrals
227: [08:32:52] * spronk quit (Quit: I may need a longer sleep timer...)
228: [08:40:55] * Error404NotFound has joined #silverstripe
229: [08:44:58] <wmk> Sentro, are you on SS 3.1 ?
230: [08:45:18] <Sentro> I’m using 3.2
231: [08:46:04] <wmk> well, a SS_List (ArrayList) _should_ work, but GroupedList is a bit special.
232: [08:58:40] * jules0x has joined #silverstripe
233: [09:02:01] * kinglozzer has joined #silverstripe
234: [09:03:47] <jules0x> argh
235: [09:04:11] <jules0x> asked this the other day but..
236: [09:05:22] <jules0x> when adding images through the editor, the src gets set as 'assets/img.jpg'
237: [09:05:47] <jules0x> for some reason, when I do this on any other page than homepage, I get the full site URL before the 'assets/' part
238: [09:06:24] <jules0x> ie. On www.site.com/contact... the image is attempting to be shown as www.site.com/contact/assets/img.jpg
239: [09:07:19] <jules0x> what should I be looking out for?
240: [09:07:55] * Stomach quit (Quit: zzz)
241: [09:08:59] * kbtjuh has joined #silverstripe
242: [09:10:42] <wmk> jules0x, relative link in image?
243: [09:11:44] <jules0x> just using the default tinymce image insert
244: [09:11:59] <jules0x> so yeah its reletive (stored in htmltext as relative)
245: [09:13:03] <jules0x> wierdly, the images appear correctly in the CMS
246: [09:14:30] <jules0x> OMG
247: [09:14:39] <jules0x> they've just started working
248: [09:14:55] <jules0x> its been like this since I deployed the site a few days ago.
249: [09:15:02] <wmk> ?
250: [09:15:06] <jules0x> and I havent actually done anything to fix it yet
251: [09:15:10] <wmk> flushed? cached? magic complaining?
252: [09:15:42] <wmk> reminds me of the magical tractor
253: [09:15:47] <jules0x> thats fucking absurd
254: [09:16:00] <jules0x> magical tractor? :D
255: [09:16:20] <wmk> yeah. it was driving down the road and then it turned into a field
256: [09:16:34] <wmk> puuure magic, if you ask me
257: [09:17:05] <jules0x> *facepalm*
258: [09:17:09] <jules0x> sorry I just noticed why its working
259: [09:17:28] <jules0x> soooooo.... www.site.com/contact fails... but www.site.com/contact/ works
260: [09:17:57] <jules0x> so I need to enforce trailing slashes somehow? is that even a thing?
261: [09:18:05] <wmk> sounds like a bug
262: [09:18:10] <jules0x> ss3.2
263: [09:18:24] <wmk> though i had this trailing slashes problem with userforms module. when it wasn't finding a controller / action
264: [09:18:53] <jules0x> the action wasn't working with/without a trailins slash?
265: [09:19:01] <wmk> yup
266: [09:19:11] <wmk> somehow. dunno why
267: [09:19:14] <jules0x> 3.2?
268: [09:19:18] <jules0x> :B
269: [09:19:33] <wmk> that module worked on apache / hp 5.3 without problems, on nginx php 5.5/5.6 it didn't work
270: [09:19:37] <wmk> SS 3.1
271: [09:20:58] <jules0x> I can totally reproduce this issue locally now that I know what it is... might have to dig around more... maybe it is a bug
272: [09:21:06] <jules0x> seems pretty major
273: [09:28:05] <kinglozzer> Uh, is it possible to disable the ability to add any pages, anywhere?
274: [09:28:21] <kinglozzer> I can stop people adding pages to the root of the site, but they can still add child pages to any page they can edit
275: [09:28:34] <kinglozzer> Guess I could do it with canCreate()...
276: [09:28:39] <wmk> kinglozzer, good idea
277: [09:29:26] <kinglozzer> Only need it to be temporary anyway, so canCreate works :P
278: [09:32:35] * Sentro quit (Quit: Sentro)
279: [09:35:11] * Azure quit (Ping timeout: 240 seconds)
280: [09:45:29] * Tanger quit (Quit: sleep())
281: [09:55:35] * Werner_2_ has joined #silverstripe
282: [09:55:35] * wmk quit (Read error: Connection reset by peer)
283: [10:03:03] <jules0x> can you pass a param in an <% include %> ??
284: [10:03:27] <jules0x> ie. <% include Menu(2) %> where I want to use the number 2 for something
285: [10:03:41] <jules0x> ok that ones taken but you get the idea
286: [10:04:15] <jules0x> <% include Itemlist('horizontal') %> might be a better example
287: [10:06:55] * stnvh has joined #silverstripe
288: [10:07:37] <kinglozzer> jules0x: <% include TemplateName orientation=horizontal %>
289: [10:07:49] <kinglozzer> You can then use $Orientation
290: [10:08:03] <jules0x> shot!
291: [10:08:18] <jules0x> TIL
292: [10:08:21] * r3v3rb has joined #silverstripe
293: [10:08:26] <r3v3rb> hi all
294: [10:08:46] <kinglozzer> yo r3v3rb
295: [10:08:53] <r3v3rb> kinglozzer: how do?
296: [10:09:13] <kinglozzer> r3v3rb: all good thanks, you?
297: [10:10:21] <r3v3rb> still recovering from a very funny conversation this morning
298: [10:10:26] <r3v3rb> with a client
299: [10:13:20] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
300: [10:32:09] * Werner_2_ quit (Quit: nice to meet you ;))
301: [10:50:05] * Al1asOPS has joined #silverstripe
302: [10:50:06] <ss-helper> Al1asOPS: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
303: [10:50:53] <Al1asOPS> hello
304: [10:55:06] * Al1asOPS quit (Ping timeout: 246 seconds)
305: [11:00:13] * glenn-bautista has joined #silverstripe
306: [11:05:20] * MarkGuinn has joined #silverstripe
307: [11:19:39] * Otterpocket has joined #silverstripe
308: [11:22:03] <Otterpocket> If my Booking has_one Location but my Locations can be on lots of other Bookings has_one's, How do I create this in my model? Booking has_one Location, Location has_many Bookings does not seem correct to me
309: [11:26:40] <kinglozzer> Otterpocket: That's correct
310: [11:27:14] <kinglozzer> You'd only need a many_many if a Booking could have many different Locations
311: [11:28:55] <Otterpocket> ok
312: [11:30:10] * glenn-bautista quit (Quit: Leaving.)
313: [11:35:34] * DanaeNZ has joined #silverstripe
314: [11:39:09] <r3v3rb> kinglozzer: how’s the airport?
315: [11:40:23] * DanaeNZ quit (Ping timeout: 264 seconds)
316: [11:46:14] * Azure has joined #silverstripe
317: [11:58:49] * veb is now known as vebbed
318: [12:00:34] * PigeonFriend has joined #silverstripe
319: [12:01:50] <PigeonFriend> hey ec8or - how you doing?
320: [12:02:08] * vebbed is now known as veb
321: [12:19:38] <kinglozzer> yo PigeonFriend
322: [12:29:15] * jules0x quit (Ping timeout: 246 seconds)
323: [12:53:58] * r3v3rb quit (Ping timeout: 260 seconds)
324: [13:03:47] * cloph quit (Remote host closed the connection)
325: [13:05:49] * wmk has joined #silverstripe
326: [13:08:22] * cloph_away has joined #silverstripe
327: [13:12:15] * cloph_away is now known as cloph
328: [13:20:13] * UndefinedOffset has joined #silverstripe
329: [13:23:24] * cloph is now known as cloph_away
330: [13:40:18] * slievr quit (Ping timeout: 246 seconds)
331: [13:43:06] * PigeonFriend quit (Ping timeout: 246 seconds)
332: [14:00:29] * CodeTrap has joined #silverstripe
333: [14:01:19] * CodeTrap quit (Client Quit)
334: [14:05:56] * muskie9 has joined #silverstripe
335: [14:06:02] * Eliseth has joined #silverstripe
336: [14:06:34] <Eliseth> Hey o/
337: [14:07:59] <Eliseth> How would I do the following: I have a custom dataobject, and custom permission group which can only see/modify/delete these dataobjects
338: [14:08:39] <Eliseth> Now I want to limit visibility and operations to the specific owners within this permission group
339: [14:08:49] <Eliseth> So they can only see the objects they created
340: [14:08:54] <Eliseth> see/modify/delete
341: [14:10:19] <Mike123> hey guys how can i get 7 if my value is 7.1 or 7.2 or .... 7.9...
342: [14:10:45] <muskie9> Eliseth you could do a has_one/belongs_to between a Member and your custom DataObject... check if the member and dataobject have that relation setup, if yes then they can see the object, if not then they can't
343: [14:11:05] <Eliseth> Mike123: floor($int)
344: [14:11:20] <muskie9> ^
345: [14:12:14] <Mike123> oh... diesn make sense now Thanks Eliseth :)
346: [14:13:03] <Eliseth> muskie9: but how would the gridfield in admin respect that?
347: [14:13:22] <Eliseth> (so it shows the grid but only with their own objects)
348: [14:13:24] <muskie9> the canView() function on the data object
349: [14:13:48] <Eliseth> Right, but messing with canView() won't limit the visibility on the frontend?
350: [14:14:07] <muskie9> I think it might
351: [14:14:43] <Eliseth> I tried finding an example online, which I usually can find, but this one seems hard to find... :D
352: [14:15:00] <muskie9> for the gridfield you can use ->filter() on the list, so you could do something like ->filter('RelatedMemberID', Member::currentUserID()) or something
353: [14:15:39] * cloph_away is now known as cloph
354: [14:22:39] * Mike123 quit (Ping timeout: 246 seconds)
355: [14:34:48] * Mike132 has joined #silverstripe
356: [15:04:05] * muskie9 quit (Ping timeout: 250 seconds)
357: [15:08:29] * UndefinedOffset quit (Read error: Connection reset by peer)
358: [15:09:06] * UndefinedOffset has joined #silverstripe
359: [15:09:51] * slievr has joined #silverstripe
360: [15:10:44] * muskie9 has joined #silverstripe
361: [15:12:53] * DanaeNZ has joined #silverstripe
362: [15:17:35] * DanaeNZ quit (Ping timeout: 264 seconds)
363: [15:26:36] * favor has joined #silverstripe
364: [15:26:37] <ss-helper> favor: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
365: [15:27:18] * Varis has joined #silverstripe
366: [15:30:41] * Varis is now known as Copperis
367: [15:30:56] <favor> Hi guys, today is my day one to silverstripe, I find it interesting. However, am stuck somewhere ... how exactly can one add a module to silverstripe template or page? Eg: silverstripe-sliderfield.
368: [15:31:45] <favor> I've installed it using the composer, but nothing is showing in my admin or template
369: [15:32:40] <muskie9> favor did you dev/build and ?flush=all (http://yoursite.com/dev/build and http://yoursite.com/?flush=all)
370: [15:32:40] <favor> I assume I have to include something on my template to call the addon, but I don't know what it is and how to go about it. Any help?
371: [15:33:15] <favor> <muskie9> yes
372: [15:34:16] <favor> I assume I have to include something on my template to call the ad-don, but I don't know what it is and how to go about it.
373: [15:35:11] <muskie9> favor are you using this for a form? assuming your using this module: https://github.com/tractorcow/silverstripe-sliderfield
374: [15:36:04] <favor> yes
375: [15:36:27] <muskie9> !paste can you paste your code with the form
376: [15:36:27] <ss-helper> Please paste your code using something like http://kopy.io/ or http://www.sspaste.com/ or https://gist.github.com/ and then paste the link here.
377: [15:38:59] <favor> My question is pretty simple, am not dealing with silverstripe coding yet. how can I call an Add-on/modeule on a template/page after installing the composer
378: [15:40:02] <favor> Just the way $Layout was used...or am I making the wrong assumption?
379: [15:40:24] <muskie9> that module would be for using SliderField in place of a NumericField, so if you have built a form with that field in it then you would need to add the form to your layout using the form's name as the template variable
380: [15:41:06] * Error404NotFound has joined #silverstripe
381: [15:41:26] <muskie9> favor have you looked into the lessons section? https://www.silverstripe.org/learn/lessons/
382: [15:41:44] <muskie9> it covers the basics of getting to know SS and how things work
383: [15:41:49] * Error404NotFound quit (Remote host closed the connection)
384: [15:42:53] <favor> Okidoki!!! I've been browsing through the site looking for some sort of .docs file to read on
385: [15:43:42] <muskie9> there are some docs as well: https://docs.silverstripe.org/en/3.2/ but the lessons are done well and have good explanations for the code being shown
386: [15:44:45] <favor> yeah I see that now, but no specific topic / subject on modules :(
387: [15:47:15] <favor> oh... I see now...I guess I will give SS my precious 4hrs
388: [15:47:23] <favor> hope its worth it
389: [15:47:24] <wmk> favor, well, some modules have docs
390: [15:47:34] <wmk> most are just working like ss modules are working
391: [15:47:56] <wmk> which is not too easy for total beginners
392: [15:48:13] <wmk> and most modules need some configuration to fit for your project, so you have to code a bit
393: [15:48:38] <wmk> i like that you have to configure it in code / yml configuration instead of clicking in browser
394: [15:49:31] <favor> yeah. but unfortunately most modules other than that of SS are not even installing via composer
395: [15:49:42] <wmk> nana which one?
396: [15:49:51] <wmk> if they have a composer.json you can install them with composer
397: [15:50:01] <wmk> some module s don't mention it in their docs
398: [15:50:07] <wmk> as it's kinda obvious
399: [15:50:38] <wmk> some modules are not on packagist, but have a composer.json, so with some tweaks you can tell composer to install it for you
400: [15:50:56] <wmk> favor, ALL modules on addons.silverstripe.org are composer installable
401: [15:51:26] * UndefinedOffset quit (Quit: Leaving.)
402: [15:51:55] <favor> well I tried this http://addons.silverstripe.org/add-ons/micmania1/silverstripe-nivoslider
403: [15:52:06] <favor> and it did not work
404: [15:52:24] <wmk> define "did not work"...? which error?
405: [15:52:36] * Mike132 quit (Ping timeout: 246 seconds)
406: [15:53:11] <wmk> well favor, looking at the code it's clear why it doesn't work
407: [15:53:13] <wmk> https://github.com/micmania1/silverstripe-nivoslider/blob/master/composer.json#L6
408: [15:53:22] <wmk> https://github.com/micmania1/silverstripe-nivoslider/issues/2
409: [15:53:39] <wmk> so if you choose to use the old and outdated SS 3.0 you can install that module
410: [15:54:36] <favor> na...i would rather create mine after giving SS some learning hours
411: [15:54:46] <wmk> well, there is a fork that updated to 3.1
412: [15:54:52] <wmk> https://github.com/mattkirwan/silverstripe-nivoslider
413: [15:55:02] <wmk> so you can either install that or just create your own for learning
414: [15:55:12] <wmk> you can look at the other code
415: [15:55:19] <wmk> but a slider isn't that difficult
416: [15:55:26] <favor> am running 3.2stable release
417: [15:55:45] <wmk> well, the code should be pretty the same for 3.2
418: [15:56:04] <wmk> at least the concepts
419: [15:56:15] <wmk> some details might be different (or just deprecated)
420: [15:56:31] <wmk> favor, running 3.2. is a bit difficult atm, cause many modules are not yet updated
421: [15:56:32] <favor> yeah its not...thats why I said i would rather build mine after taking a proper look on how ss works
422: [15:56:35] * UndefinedOffset has joined #silverstripe
423: [15:56:52] <favor> really
424: [15:57:05] <wmk> so good luck favor and if you have any problems or questions don't hesitate to ask us
425: [15:57:43] <favor> UW wmk
426: [15:57:48] <favor> (y)
427: [16:00:07] <wmk> UW?
428: [16:06:50] * Eliseth quit (Ping timeout: 240 seconds)
429: [16:16:46] * wmk quit (Ping timeout: 250 seconds)
430: [16:25:30] * UndefinedOffset1 has joined #silverstripe
431: [16:25:30] * UndefinedOffset quit (Disconnected by services)
432: [16:25:39] * UndefinedOffset1 is now known as UndefinedOffset
433: [16:27:30] * AshKyd quit (Ping timeout: 246 seconds)
434: [16:27:45] * AshKyd has joined #silverstripe
435: [16:28:58] * arnhoe quit ()
436: [16:48:15] * favor quit (Ping timeout: 246 seconds)
437: [16:52:52] * joelpittet has joined #silverstripe
438: [16:53:03] * muskie9 quit (Ping timeout: 246 seconds)
439: [16:54:45] * cloph is now known as cloph_away
440: [17:07:39] * arnhoe has joined #silverstripe
441: [17:23:45] * cloph_away is now known as cloph
442: [17:26:34] * AlphaCactus guesses 'ur welcome'
443: [17:28:13] * muskie9 has joined #silverstripe
444: [17:31:19] * stnvh quit (Quit: quit)
445: [17:32:55] * Otterpocket quit (Remote host closed the connection)
446: [17:33:24] * kinglozzer quit ()
447: [17:49:57] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
448: [17:58:11] * wmk has joined #silverstripe
449: [18:10:51] * kbtjuh quit (Ping timeout: 246 seconds)
450: [18:37:08] * arnhoe quit (Remote host closed the connection)
451: [18:47:52] * Colin[pi] has joined #silverstripe
452: [18:50:56] * DanaeNZ has joined #silverstripe
453: [18:55:30] * DanaeNZ quit (Ping timeout: 244 seconds)
454: [19:00:46] * arnhoe has joined #silverstripe
455: [19:09:46] * Stomach has joined #silverstripe
456: [19:15:06] * muskie9 has joined #silverstripe
457: [19:20:39] * arnhoe quit ()
458: [19:24:24] * helenclarko has joined #silverstripe
459: [19:40:59] <helenclarko> Morning o/
460: [19:41:13] <muskie9> o/
461: [19:52:06] <wmk> helenclarko, ☺/
462: [19:52:31] <helenclarko> wmk: ACTUAL FACE!!! But how?
463: [19:53:16] <wmk> hehe
464: [19:53:21] <helenclarko> so cool
465: [19:53:24] <wmk> search/replace shortcut in xchat
466: [19:54:51] <wmk> helenclarko, it's an ascii face
467: [19:57:37] * glenn-bautista has joined #silverstripe
468: [19:59:37] * glenn-bautista quit (Client Quit)
469: [20:03:25] * adrexia has joined #silverstripe
470: [20:09:29] * r3v3rb has joined #silverstripe
471: [20:09:31] * r3v3rb has left #silverstripe
472: [20:09:37] * r3v3rb has joined #silverstripe
473: [20:09:47] <r3v3rb> hello all
474: [20:09:51] * Stomach quit (Quit: zzz)
475: [20:10:14] * micmania1 has joined #silverstripe
476: [20:10:22] * Stomach has joined #silverstripe
477: [20:12:32] <helenclarko> ☺/
478: [20:12:40] <helenclarko> Thats right I stole it!
479: [20:13:19] <ss-helper> Re: Extended PSR-2 Recommentation - https://groups.google.com/d/msg/silverstripe-dev/_ebPef7HgKQ/bwcIKPaMBAAJ
480: [20:13:29] * r_hector has joined #silverstripe
481: [20:16:51] <r3v3rb> is there a way to sort lumberjack gridfields?
482: [20:17:01] <r3v3rb> micmania1: ??? ^^
483: [20:17:53] <r3v3rb> it also seems a bit ‘flakey’ for published pages and showing them in the site - sometimes they appear, sometimes they don’t
484: [20:18:37] <micmania1> r3v3rb: you can use default_sort
485: [20:19:21] <r3v3rb> okay but no sortID via gridfield extension then - drag and drop for example?
486: [20:23:23] <r3v3rb> also silly question, but a site I have here has ‘lost’ all the items in ‘draft’ although they still exist in the published site - is there a way to re-write the draft stage using the current published data?
487: [20:25:31] <r3v3rb> can I do $pgs = SiteTree::get(); foreach($pgs as pg) { $pg->writeToStage(‘Live’, ‘Stage’); ???
488: [20:30:02] * spronk has joined #silverstripe
489: [20:33:07] <ss-helper> Silverstripe enum values to menu - http://stackoverflow.com/questions/33639002/silverstripe-enum-values-to-menu
490: [20:33:54] * wmk quit (Ping timeout: 246 seconds)
491: [20:42:08] * sealan has joined #silverstripe
492: [20:46:23] * MMKJay has joined #silverstripe
493: [20:46:40] <MMKJay> Can someone help me with csv bulk uploader. I need to run a write() on the dataobject after csv import.
494: [20:47:01] <MMKJay> So for each record that is updated via CSV import I need to run the onAfterWrite function. or some code after the import.
495: [20:51:26] <micmania1> MMKJay: if you use onAfterWrite to write then you’ll end up in a loop. Use onBeforeWrite if you’re manipulating the same object.
496: [20:51:40] <micmania1> and don’t write it…
497: [20:51:54] * zippy has joined #silverstripe
498: [20:53:28] <zippy> any php storm users?
499: [20:54:04] <zippy> in your html/css
500: [20:54:09] <zippy> lorem30<tab>
501: [20:54:10] <zippy> magic
502: [20:54:27] <zippy> html/ss I mean
503: [20:55:16] * r_hector quit (Ping timeout: 265 seconds)
504: [20:55:31] <helenclarko> I want PHPStorm, but monies
505: [20:56:16] <MMKJay> zippy: I have PHPStorm, loreum has been great!
506: [20:56:38] <MMKJay> micmania1: I have it in onBeforeWrite but problem is CSVBulkLoader doesn't run the onBeforeWrite() ?
507: [20:58:31] <micmania1> MMKJay: really? It should do. It calls write where those methods are called.
508: [20:59:08] <MMKJay> Hmm thats odd. I've got a onAfterWrite() and a onBeforeWrite(). in my onAfterWrite() I simply take the field and rewrite it stripped. But its not running with the import.
509: [20:59:48] <MMKJay> micmania1: i'm also converting a decimal to a int on save. But with csv import it stays as an int, so the onAfterWrite() is never running.
510: [21:01:08] <MMKJay> micmania1: http://pastebin.com/nEQxJg2V
511: [21:01:28] <zippy> helenclarko: get it, they do a monthly thing now, it's fuck all
512: [21:01:54] <micmania1> MMKJay: those changes will never be saved to the db
513: [21:02:08] <zippy> MMKJay: ^
514: [21:02:20] <zippy> I was just going to say, you change them, and set them to the object but it wont work
515: [21:02:27] <zippy> and if you do call save, you are going to end up in a loop
516: [21:02:38] <MMKJay> It works through the CMS though?
517: [21:02:41] <zippy> I think you want to do it onBeforeWrite...
518: [21:02:42] <muskie9> MMKJay you're also calling parent::onBeforeWrite(); in your onAfterWrite(), don't think that should be the case
519: [21:03:35] <MMKJay> if I put a decimal in the PriceExVatDec field and hit save. The PriceExVat gets the value as a int.
520: [21:03:42] * leomeloxp quit (Ping timeout: 255 seconds)
521: [21:03:44] * DanaeNZ has joined #silverstripe
522: [21:03:46] <MMKJay> muskie9: genuine bug, just fixed.
523: [21:03:50] * leomeloxp_ has joined #silverstripe
524: [21:05:32] <zippy> MMKJay: if you type in 1.00 then it will be 1 probably
525: [21:05:45] <zippy> but on display you can do PriceExVat.Nice IIRC
526: [21:05:59] <zippy> if you changed it from Int to Float you need to flush btw
527: [21:06:15] <zippy> lastly, for those four columns why not use Currency field type?
528: [21:06:15] <MMKJay> zippy: its storing it in a new field as 100 which all works. All of that is working fine via the cms model admin.
529: [21:06:56] <MMKJay> The problem I have is csv bulk loader isn't running the onafterwrite
530: [21:07:26] <zippy> you don't want to use onAfterWrite
531: [21:07:50] <zippy> you are setting the value to the PriceExVat but it's not being saved
532: [21:07:53] <muskie9> MMKJay it won't save anything in onAfterWrite, if you want to do the adjustment pre write then you'd use onBeforeWrite
533: [21:08:23] <zippy> and if you Do call write there, it will blow up. Move it up to a onBeforeWrite
534: [21:09:19] * spronk quit (Quit: I may need a longer sleep timer...)
535: [21:11:44] * Embraden quit (Ping timeout: 272 seconds)
536: [21:17:58] * Embraden has joined #silverstripe
537: [21:17:59] * Embraden quit (Changing host)
538: [21:17:59] * Embraden has joined #silverstripe
539: [21:18:07] <helenclarko> Okay, trialling PHPStorm. Do you add external libraries for SS? Whats a quick setup guide for PHPStorm and SS?
540: [21:18:50] * nuxil has joined #silverstripe
541: [21:18:52] <nuxil> hi
542: [21:19:42] <zippy> helenclarko: I use the 'SilverStripe Template Language Support' plugin
543: [21:19:49] <zippy> helenclarko: you osx or winblows?
544: [21:20:16] <nuxil> how do i change font type in the cms ? i cant find a font selection box :p am i blind or is it missing ?
545: [21:20:46] <nuxil> i mean.. the test on page content..
546: [21:22:45] <nuxil> no i need to update to another editor, wyswig or whatever its called
547: [21:23:11] <nuxil> *do
548: [21:31:11] * UndefinedOffset quit (Quit: Leaving.)
549: [21:32:06] * MMKJay quit (Ping timeout: 246 seconds)
550: [21:34:54] <helenclarko> zippy windows
551: [21:35:04] <zippy> im so sorry..
552: [21:35:19] <helenclarko> zippy: You should be.
553: [21:35:35] <zippy> my condolences to you..
554: [21:38:26] <nuxil> seriously.. how do i change font type in the cms editor on my page/article text..
555: [21:38:40] <zippy> font type = font face?
556: [21:38:48] <zippy> or like h1 h2
557: [21:38:56] <zippy> or like bold underline
558: [21:38:59] <zippy> (style)
559: [21:39:02] <nuxil> font type as in example. times.
560: [21:39:10] <nuxil> etc.
561: [21:40:37] <zippy> ?
562: [21:40:41] <zippy> times new roman?
563: [21:40:41] <nuxil> georigan, times, areal, whatever. not talking about h1,h2. thouse are preset from a css irrc. but i cant find a font selection box in 3.2. i have it in my old 2.4 install. :\ but i dont remember if i need to update something to get it.
564: [21:41:00] <zippy> ah yea I don't think there is
565: [21:41:14] <zippy> what you can do instead is setup an editor css and specify fonts in there
566: [21:41:17] * cloph is now known as cloph_away
567: [21:41:20] <zippy> which get picked up by the CMS
568: [21:41:34] <zippy> https://docs.silverstripe.org/en/3.2/developer_guides/customising_the_admin_interface/typography/
569: [21:41:43] <zippy> fuck that is some sparse documentation
570: [21:41:56] <zippy> i.. hope it helps
571: [21:42:36] <nuxil> thanks. will see what i get out of it.
572: [21:43:38] <nuxil> oh yay.. thats some aweseome docs :p
573: [21:44:51] * DanaeNZ quit (Remote host closed the connection)
574: [21:45:49] <zippy> ss23: really is letting things go
575: [21:46:19] * DanaeNZ has joined #silverstripe
576: [21:46:35] <helenclarko> zippy: anyway for PHPStorm to link up classes? can I have it check other php files?
577: [21:46:45] <zippy> yes it will do that for you
578: [21:46:58] <zippy> Go File -> Open Directory
579: [21:47:05] <helenclarko> oh!
580: [21:47:17] <zippy> and set that to your root folder (like has that mysite and cms and framework and stuff)
581: [21:47:36] <zippy> it will index the site (takes 10-20 seconds)
582: [21:48:05] <zippy> helenclarko: and then scroll back to the start of https://twitter.com/phpstormtips and look at these
583: [21:48:07] <zippy> and
584: [21:48:48] <nuxil> zippy, in my themes\simple\css\editor.css i see @import "typography.css?2"; shouldnt this be @import "typography.css"; instead ? i never opend this file before so i havent edited it.
585: [21:48:49] <zippy> get a sticky note and write down some short cuts - like open file with class (Command-O on mac) and open file with name (Command-Shift-O)
586: [21:48:50] <helenclarko> Oh sweet!
587: [21:50:18] <zippy> helenclarko: Also, another cool thing when you make a file you can also make a folder
588: [21:50:32] <zippy> ie right click new file 'Pages/MyPage.php'
589: [21:50:32] <zippy> magic
590: [21:50:41] <zippy> windows might be \, I don't know
591: [21:51:34] <helenclarko> Oh this is sweet!
592: [21:52:32] * MarkGuinn quit (Quit: My Mac has gone to sleep. ZZZzzz…)
593: [21:53:07] <zippy> you can also setup some live templates
594: [21:53:18] <zippy> so basically I can type $db<tab> and have it setup the array and move my mouse inside
595: [21:53:22] <zippy> have those for a bunch of things
596: [21:53:47] <zippy> also have one for a page, so I can type 'classPage<tab>' and it sets up some php based on the filename of the file
597: [22:04:36] * mahfuz has joined #silverstripe
598: [22:09:55] <helenclarko> zippy: hmmm should I be using <% if $variable %> over <% if variable %> I've always used the latter.
599: [22:10:09] <zippy> either or.
600: [22:10:27] <zippy> I been going towards $variation more these days
601: [22:11:35] <helenclarko> zippy: Guess I should update them while working through any files. If PHPStorm doesnt like it, I should fix it.
602: [22:11:47] <zippy> wel...
603: [22:36:20] * sealan quit (Remote host closed the connection)
604: [22:36:32] * sealan has joined #silverstripe
605: [22:37:21] * Stomach quit (Quit: zzz)
606: [22:48:43] * chocolatemoose has joined #silverstripe
607: [22:57:29] * sealan quit ()
608: [22:58:43] * Copperis quit (Remote host closed the connection)
609: [23:00:25] * hailwood has joined #silverstripe
610: [23:02:15] <hailwood> Hey folks, Anyone know of a way to have one model admin display two tabs for the same DataObject type? With One tab showing the DataObjects that have a specific property, and the other tab showing those that don't?
611: [23:02:25] <hailwood> (boolean property if it matters)
612: [23:02:57] * TombL_ quit (Ping timeout: 255 seconds)
613: [23:04:55] * TombL has joined #silverstripe
614: [23:06:49] * chocolatemoose quit (Ping timeout: 240 seconds)
615: [23:07:27] * chocolatemoose has joined #silverstripe
616: [23:14:17] <hailwood> Looks like that's not possible, ok new question - can I alter the search form to filter based on whether a date field is empty? I currently have http://i.imgur.com/v8Eiaw8.png but there is no way to say "Where Review Date is empty"
617: [23:26:14] <Colin[pi]> o/
618: [23:26:25] * chocolatemoose_ has joined #silverstripe
619: [23:27:02] * chocolatemoose quit (Ping timeout: 265 seconds)
620: [23:29:18] * Stomach has joined #silverstripe
621: [23:33:31] <chocolatemoose_> has anyone used the JS sdk with this https://github.com/wilr/silverstripe-facebookconnect ?
622: [23:35:10] * Colin[pi] has left #silverstripe
623: [23:36:34] * micmania1 quit (Quit: micmania1)
624: [23:41:14] * chocolatemoose_ quit (Ping timeout: 260 seconds)
625: [23:41:53] * chocolatemoose has joined #silverstripe
626: [23:44:40] * Colin[pi] has joined #silverstripe
627: [23:44:41] * Colin[pi] has left #silverstripe
628: [23:52:48] * chocolatemoose_ has joined #silverstripe
629: [23:54:15] * chocolatemoose quit (Ping timeout: 255 seconds)
630: [23:55:18] * shellbackpacific has joined #silverstripe
631: [23:55:24] * Colin[pi] has joined #silverstripe
632: [23:57:15] <shellbackpacific> in templates….a loop inside a loop. Need to access parent context. Having the hardest time figuring out how. Any hints?
633: [23:57:24] <zippy> $Up.foo
634: [23:57:27] <Colin[pi]> shellbackpacific: $Up
635: [23:57:28] <zippy> or, $Top.foo
636: [23:57:29] <Colin[pi]> ^
637: [23:58:14] <zippy> https://docs.silverstripe.org/en/3.1/developer_guides/templates/syntax/#navigating-scope
638: [23:59:50] * Stomach quit (Quit: bye)
639: [23:59:55] <shellbackpacific> thank you all!

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