#silverstripe IRC Log

IRC log for 4 April 2014

All timestamps are in UTC.

1: [00:00:06] <Colin[pi]> "oh, tee hee, I forgot... ooopsies!"
2: [00:00:14] <antmas> slap a bitch
3: [00:00:16] <Colin[pi]> ಠ_ಠ
4: [00:00:16] <antmas> :D
5: [00:00:48] <antmas> 'sorry, money has been a bit tight this week as our business is run by my cat'
6: [00:00:56] <Colin[pi]> lool
7: [00:01:16] <antmas> right, lunch, brb
8: [00:02:46] <Colin[pi]> k
9: [00:02:48] * UncleCheese quit (Quit: UncleCheese)
10: [00:03:22] * UncleCheese has joined #silverstripe
11: [00:14:29] * UncleCheese quit (Quit: UncleCheese)
12: [00:22:26] * Bollig|DesignCty has joined #silverstripe
13: [00:30:07] * oddnoc quit (Quit: bye!)
14: [00:39:54] <unsigned_> 12:49 antmas: unlimited is BS <-- no it isnt, I can get around 13-20mbps over my slingshot unlimited adsl which is enough for ~800GB/month if required
15: [00:40:27] <unsigned_> of course I only use around 350gb but thats still better than any capped plan
16: [00:40:40] * unsigned_ is now known as unsignedint
17: [00:41:04] <pippy> 'only' use 350gb?
18: [00:41:37] <unsignedint> well theres 4 people living in my place of residence
19: [00:41:53] <pippy> ah that makes sense
20: [00:41:54] <Bollig|DesignCty> I think you can just say 'hous
21: [00:42:04] <unsignedint> and 350gb isnt that much when youre constantly downloading steam games and have like 7 computers that all need updating
22: [00:42:12] <unsignedint> no to mention movies, music and isos
23: [00:42:22] <Bollig|DesignCty> all downloaded legally of course
24: [00:42:29] <unsignedint> naturally
25: [00:42:34] <Bollig|DesignCty> *nods*
26: [00:42:41] <unsignedint> if I could get them in 1080p, DRM-free for a reasonable price then I would
27: [00:42:46] <unsignedint> but I cant
28: [00:42:51] <unsignedint> well not legally
29: [00:43:09] <pippy> popcorn time
30: [00:43:26] <unsignedint> private trackers :)
31: [00:43:34] <Bollig|DesignCty> Ah, moral relativity. It really helps you sleep at night.
32: [00:43:37] <unsignedint> popcorn time is for idiots and lazy people
33: [00:44:12] <pippy> netflix + DNS settings?
34: [00:44:26] <Bollig|DesignCty> pippy: what's legal about that?
35: [00:44:28] <unsignedint> pippy: slingshot unlimited internet is not cut out for streaming
36: [00:44:42] <unsignedint> its better for batch downloading on off-peak hours
37: [00:44:45] <unsignedint> which suits me fine
38: [00:45:14] <unsignedint> also, im a hoarder, so I dont like streaming anyway
39: [00:45:57] <antmas> unsignedint: really? I've had it before and it was terribad :\
40: [00:46:21] <unsignedint> antmas: well do they even have a phone network down south?
41: [00:46:22] <unsignedint> :P
42: [00:46:36] <antmas> lol
43: [00:46:37] <antmas> HEY
44: [00:46:39] <antmas> guy
45: [00:46:42] <unsignedint> but yeah, it can get pretty bad on on-peak times, but I can still pull a decent amount of data through it
46: [00:47:02] <antmas> yeah, I'm not too concerned about data as such, as I stream a lot of stuff
47: [00:47:50] <unsignedint> well then yes slingshot would be terrible for your use-case :)
48: [00:47:55] * UncleCheese has joined #silverstripe
49: [00:48:42] <unsignedint> I suppose you do most of your streaming during the day over the council fibre haha
50: [00:48:53] <antmas> lol
51: [00:48:54] <antmas> naw
52: [00:48:59] <antmas> our internet isn't great
53: [00:49:04] <antmas> plus it's locked down :P
54: [00:49:16] <simon_w> Plus, it's in Nelson :p
55: [00:49:21] <antmas> heh
56: [00:49:32] <antmas> IT'S NOT THAT BAD
57: [00:51:34] <simon_w> If you say so :p
58: [00:53:27] <antmas> omg
59: [00:53:34] <antmas> this gigatown thing needs to die
60: [00:53:42] <simon_w> It really does
61: [00:53:51] <antmas> so much spam
62: [00:54:01] * Azure has joined #silverstripe
63: [00:54:42] <antmas> I bet in the end it will be for like 1/3 of the selected town
64: [00:54:59] <antmas> or they will just pull out as Chorus is a hunk of shit
65: [00:55:16] * Ryan-Toast has joined #silverstripe
66: [00:58:48] * joelpittet quit ()
67: [00:59:38] <pippy> I'm waiting for UFB to be installed on my street
68: [00:59:55] <pippy> JUL-2014 to JUL-2015 they say
69: [01:00:24] <pippy> but from what I hear netflix is crap, because it still all goes through the pacific cable
70: [01:00:52] <antmas> pippy: netflix is fine, never had issues with it
71: [01:01:02] <Ryan-Toast> 2 hour lunch, cbf doing anything for the rest of the day.
72: [01:01:06] <antmas> and that's on ADSL
73: [01:01:27] <pippy> lucky, i get a choppy experince
74: [01:01:39] <pippy> though it could be the crappy default modem i got from telecom
75: [01:02:12] <simon_w> Oh look, I can already get gigabit internet! http://www.xtreme.net.nz/connections/citylink-pricing.php
76: [01:02:31] <simon_w> (Would go with someone like Knossoss instead, but that site actually lists speeds)
77: [01:03:02] <antmas> simon_w: yeah that's until you move in a few weeks
78: [01:03:16] <simon_w> Shhh :p
79: [01:03:22] <antmas> teehee
80: [01:03:23] <antmas> :P
81: [01:03:29] <simon_w> If I can get a place that has FTTP, then it'll be gigabit too
82: [01:03:45] <antmas> pippy: yeah on 15 down 2 up, I get 1080p without a hiccup
83: [01:04:11] <pippy> 15? i can barely get 1.5
84: [01:04:25] <pippy> i really need to look at my home network
85: [01:04:32] * an_Eskimo has joined #silverstripe
86: [01:04:47] <pippy> simon_w: isn't citylink a rip now that UFB is in the area?
87: [01:05:04] <antmas> pippy: 15mbps, which = 1.5
88: [01:05:22] <simon_w> pippy, UFB isn't the area and CityLink's dark fibre without the arbitrary limits imposed by Chorus
89: [01:05:58] <antmas> pippy: it will be your router
90: [01:06:16] <pippy> what's a good router to get?
91: [01:06:24] <pippy> brand etc
92: [01:06:37] <antmas> pippy: Fritz!Box
93: [01:06:44] <antmas> pippy: mine's a netgear and it's fine
94: [01:06:47] <pippy> simon_w: chorus would be the sort of company to shape traffic
95: [01:06:51] <antmas> this is the TDC internet http://www.speedtest.net/result/3416374682.png
96: [01:07:06] <antmas> not that bad, actually :D
97: [01:11:55] <antmas> simon_w: what's yours like compared to that
98: [01:11:56] <antmas> ?
99: [01:14:12] * Bollig|DesignCty waits patiently for the NBN rollout in Australia...
100: [01:14:40] <simon_w> antmas, home's 130/15
101: [01:14:52] <simon_w> Bollig|DesignCty, enjoy your FTTN. We've already got that!
102: [01:15:05] <Bollig|DesignCty> thanks. I will. :p
103: [01:15:25] <simon_w> I'd assume Perth does too. You got ADSL2?
104: [01:15:46] <Bollig|DesignCty> Perth does too what?
105: [01:15:52] <simon_w> Have FTTN
106: [01:16:02] <Bollig|DesignCty> it will.
107: [01:16:16] <Bollig|DesignCty> ADSL2 is standard for the moment :(
108: [01:16:16] <simon_w> So you can't even get ADSL2 in major cities?
109: [01:16:32] <simon_w> FTTN only gets you ADSL2
110: [01:16:59] <antmas> simon_w: nice
111: [01:18:21] <Bollig|DesignCty> Perhaps we have a different setup then, because we have had ADSL2 for a long while now… and all I really know is that 24/1 is much slower than 100/100
112: [01:20:46] <simon_w> Bollig|DesignCty, that was the original FTTP (to the premise) plan. FTTN (to the node) just gives you ADSL2+ and, if you're really lucky, VDSL
113: [01:21:45] <Bollig|DesignCty> sounds like some sort of sexually transmitted disease...
114: [01:22:15] <Bollig|DesignCty> AND I ALREADY HAVE ENOUGH OF THEM!
115: [01:22:17] <simon_w> Kinda. The coalition government has fucked you over :p
116: [01:22:42] <Bollig|DesignCty> simon_w: and not the first time!
117: [01:23:51] <Bollig|DesignCty> We have a federal senate election on Saturday for 5 WA senate seats. I'd be surprised if they got a single one...
118: [01:23:59] <spronk> hey simon_w, you don't know any sure fire places to find long-term accommodation in canberra do you? friend of mine moving over soon
119: [01:24:16] <simon_w> spronk, renting sites
120: [01:24:39] <spronk> did you get reasonably quick responses ? shes stressing because nobody gets back to her or something
121: [01:24:58] <simon_w> spronk, http://www.allhomes.com.au/ah/act/rent-residential/advanced-search/view?regionId=391
122: [01:25:16] <simon_w> spronk, well, I'm staying with the fiancee, so am set :p
123: [01:25:22] <spronk> ah :P
124: [01:26:01] <Ryan-Toast> How can you loop through dataobjects that belong to siteconfig?
125: [01:26:39] <Ryan-Toast> since 'fortemplate' does not exist on 'SiteTree'
126: [01:29:14] <Ryan-Toast> simon_w: any ideasss?
127: [01:29:27] <simon_w> Ryan-Toast, stop trying to $Page
128: [01:29:43] <Ryan-Toast> ?
129: [01:30:15] * Turnerj has joined #silverstripe
130: [01:31:48] * muskie9 has joined #silverstripe
131: [01:32:27] <pippy> Prior to 7 September 2013 Federal Election, the incoming Liberal Party Prime Minister, Tony Abbott declared that "We are absolutely confident 25 megs is going to be enough . more than enough . for the average household" promising to terminate the roll-out of the NBN CO's FTTH network in favour of upgrading Telstra's DSL network
132: [01:32:47] <Colin[pi]> what a fuckhead
133: [01:33:03] <pippy> ouch, australia
134: [01:33:14] <Colin[pi]> "currently operated by morons"
135: [01:33:32] <simon_w> Ryan-Toast, that error means you're trying to directly stick a SiteTree object in the template
136: [01:33:48] <Ryan-Toast> simon_w: How should I loop it in the template then?
137: [01:34:08] <simon_w> Well, what are you currently doing?
138: [01:34:27] <Ryan-Toast> sitevconfig owns some images, and I want to loop them on the template.
139: [01:34:40] <Ryan-Toast> the images arte dataobjects because they have links
140: [01:34:44] <Ryan-Toast> are**
141: [01:35:10] <simon_w> And the error message has nothing to do with SiteConfig or your custom DO
142: [01:35:32] * muskie9 quit (Client Quit)
143: [01:35:42] <Ryan-Toast> simon_w: is that a statement, or a question?
144: [01:35:52] <simon_w> That's a statement
145: [01:36:02] <Ryan-Toast> dat confuse.
146: [01:36:19] <simon_w> The error message is about a SiteTree object
147: [01:36:25] <Ryan-Toast> okay.
148: [01:36:39] <Ryan-Toast> So I can’t loop them?
149: [01:37:16] * _3dgoo has joined #silverstripe
150: [01:37:42] <simon_w> First, fix the error about the SiteTree
151: [01:45:04] <Colin[pi]> fucking ajax
152: [01:45:47] <Colin[pi]> "So I've got this request sequence figured out, I'll just add some code into onBeforeWrite() and it'll be fine..." Ajax: OH HO HO, FUCK YOU
153: [01:46:20] <ss23> lol
154: [01:48:58] <Colin[pi]> I can't mess with an existing function using an extension unless it has a ->extend() right?
155: [01:51:19] <simon_w> Right
156: [01:51:23] <Turnerj> Yep
157: [01:51:26] <Colin[pi]> gay
158: [01:51:32] <Colin[pi]> plan B then
159: [01:51:32] <Colin[pi]> :D
160: [01:51:38] * Bollig|DesignCty quit (Ping timeout: 240 seconds)
161: [01:51:49] <simon_w> Hmm, gay plan B. So, plan butt? :p
162: [01:51:51] <Ryan-Toast> simon_w: I can’t seem to figure it out. Is it because it has_one siteconfig? http://www.sspaste.com/paste/show/533e0d59eae92
163: [01:52:04] * Bollig|DesignCty has joined #silverstripe
164: [01:52:35] <simon_w> Ryan-Toast, if you're just doing $Link, yes
165: [01:52:37] <Colin[pi]> simon_w: plan dickbutt
166: [01:53:00] <Tanger> Hey folk, is there a way to force a sitetree refresh in /admin on 3.x?
167: [01:53:14] <Ryan-Toast> simon_w: Ahh, because link isn’t a part of siteconfig.
168: [01:53:16] <Ryan-Toast> Right.
169: [01:53:46] <simon_w> Ryan-Toast, no, because $Link's returning a SiteTree object, which doesn't have a forTemplate
170: [01:53:52] <simon_w> You probably want $Link.Link
171: [01:53:56] <pippy> Tanger: /admin?flush=all ?
172: [01:53:56] <Ryan-Toast> Oh, I needed $Link.Link
173: [01:54:00] <Bollig|DesignCty> simon_w will know Tanger. he knows everything, including the communications architecture in Australia
174: [01:54:07] <Ryan-Toast> simon_w: cheers, guy.
175: [01:54:32] <Tanger> pippy: I need to do it Programmatically to display new pages created on save
176: [01:54:38] <Bollig|DesignCty> pippy: *just* refresh the panel
177: [01:54:46] <Tanger> I can't expect the user to ?flush=1 :P
178: [01:55:31] <pippy> ah. you could write an entwine event on a custom hidden field?
179: [01:55:49] <antmas> that sounds so hacky
180: [01:56:23] <Bollig|DesignCty> I assume the cms does this when it creates pages poppy… so there is probably something simple to tie into that?
181: [01:56:55] <simon_w> Creating a page does a full page load
182: [01:57:04] <simon_w> I can't see a hook for just reloading the tree
183: [01:59:06] <Turnerj> Is anyone allowed to join the silverstripe-dev Google group or is it only for silverstripe's internal development team?
184: [01:59:33] <simon_w> Turnerj, anyone can join it
185: [01:59:42] <Bollig|DesignCty> Turnerj: i'm on there, so it's for even novices ;)
186: [01:59:43] <Turnerj> Ok, cheers
187: [01:59:49] <simon_w> The internal dev team list is a secret ;)
188: [02:00:09] <Bollig|DesignCty> simon_w: thanks for checking! :D
189: [02:00:13] * Bollig|DesignCty hugs simon_w!
190: [02:00:57] <Turnerj> ;)
191: [02:16:30] <antmas> hmmm
192: [02:16:35] <antmas> time has come to a halt
193: [02:16:37] <antmas> :/
194: [02:21:07] <Ryan-Toast> antmas: time for beers then.
195: [02:26:18] <Stomach> yeah fucking aye
196: [02:34:55] <Ryan-Toast> Beers and jump tonight, awwww yis
197: [02:43:49] <spronk> http://doge2048.com/
198: [02:43:51] <spronk> ZOMG
199: [02:49:37] <Ryan-Toast> spronk: It’s open source, ez to change the sprites :)
200: [02:58:01] <Colin[pi]> this could be me later today http://i.imgur.com/oe3bN0X.jpg
201: [03:02:10] * Turnerj quit (Quit: Page closed)
202: [03:13:08] * _3dgoo quit (Ping timeout: 245 seconds)
203: [03:15:03] <antmas> yeah
204: [03:15:06] <antmas> I think it's beer time
205: [03:15:10] <Stomach> i have a beer
206: [03:15:14] <Stomach> yay!
207: [03:15:35] <antmas> i have to wait until 4.30 :<
208: [03:15:39] <antmas> stupid beer fridge is locked
209: [03:15:48] <Stomach> ahaha seriously?
210: [03:15:54] <Stomach> oh well at least you have one
211: [03:15:55] <antmas> yeah, dude
212: [03:15:58] <antmas> we're a council
213: [03:15:59] <Stomach> government services :D
214: [03:16:07] <antmas> loads of alco's :P
215: [03:16:14] <Stomach> my partner works at adhb, no booze for her hah!
216: [03:16:37] <antmas> plus someone stole the money box (honesty box) from the beer fridge last year
217: [03:16:40] <antmas> hence the lock :O
218: [03:16:46] <Stomach> thats a bit shit
219: [03:16:55] <antmas> I reckon it was a summer student
220: [03:17:02] <antmas> fucken plebs
221: [03:17:33] <Stomach> hey! i used to be one of them
222: [03:17:59] <antmas> we all did, but probably not theiving little bastards like this guy/girl!
223: [03:18:49] <antmas> Colin[pi]: do it
224: [03:18:57] <antmas> #FUCKITGOLIVE
225: [03:19:28] <Ryan-Toast> Colin[pi]: https://www.youtube.com/watch?v=eUFY8Zw0Bag
226: [03:20:22] <antmas> :O http://www.gizmodo.com.au/2014/04/holy-fck-this-skydiver-almost-got-hit-by-a-meteorite/
227: [03:21:12] <antmas> getting hit by a meteorite would be a pretty rad way to go
228: [03:21:20] <antmas> "I was killed by SPACE"
229: [03:22:49] * CodeTrap quit (Ping timeout: 240 seconds)
230: [03:23:38] * Andrew__ has joined #silverstripe
231: [03:23:44] <Andrew__> hi there
232: [03:24:12] <Colin[pi]> howdy
233: [03:24:13] <Andrew__> I have a problem adding an image upload field to the cms
234: [03:24:24] * CodeTrap has joined #silverstripe
235: [03:25:00] <Andrew__> how do I do to have the upload field appear before the wysiwyg main htmleditor field in the page?
236: [03:25:09] <Andrew__> now it appeared after the htmleditor
237: [03:26:47] <Stomach> $fields->addFieldToTab('Root.Main', UploadField::create('Image'), 'Content');
238: [03:27:20] <Stomach> the third argument is which element to put the new element before
239: [03:27:21] <Andrew__> thank you very much
240: [03:27:27] <Andrew__> let me try this :)
241: [03:27:36] <Andrew__> I see :)
242: [03:29:04] <Andrew__> wow thank you..it's working
243: [03:29:08] <Andrew__> and another one
244: [03:29:23] <Andrew__> how do I make tabs appearing in the htmleditor?
245: [03:29:28] <Andrew__> in the cms
246: [03:29:54] <Stomach> $fields->addFieldToTab('Root.NewTabName', TextField::create('InNewTab'));
247: [03:30:36] * obbo has joined #silverstripe
248: [03:30:37] <Andrew__> ok
249: [03:30:37] <antmas> Andrew__: stop working! It's Friday!
250: [03:30:42] <antmas> :P
251: [03:30:56] <Andrew__> thank you very much
252: [03:30:58] <Andrew__> lol
253: [03:31:08] <Andrew__> I have to give the project today
254: [03:31:14] <Andrew__> :D
255: [03:31:19] <antmas> Andrew__: country?
256: [03:31:25] <Andrew__> Romania
257: [03:31:29] <antmas> ah, right :D
258: [03:31:41] <antmas> good luck!
259: [03:31:42] <Andrew__> ntmu :)
260: [03:31:48] <obbo> hello. how can i programmatically update the can view section of a page's settings to add/remove groups to the Viewer Groups property?
261: [03:32:28] <Stomach> you need to set up permissions for the object, then assign those permissions to the group
262: [03:32:39] <Stomach> http://doc.silverstripe.org/framework/en/reference/permission
263: [03:33:21] <Stomach> then you can do canview($member = null) { if (!Permission::check('MyPermission')) return false; }
264: [03:33:46] <obbo> add that will automatically add the group to this field: http://imgur.com/F310vhw ?
265: [03:33:55] <Stomach> no
266: [03:33:59] <Stomach> that will add a permission
267: [03:34:05] <Stomach> which you can set a group up to have access to
268: [03:34:41] <obbo> oh, how can i automatically add a group to that viewer groups field? so the client doesn't have to?
269: [03:34:43] * cloph quit (Ping timeout: 268 seconds)
270: [03:38:47] * cloph_away has joined #silverstripe
271: [03:39:49] <Andrew__> and if I want the tabs to appear in the Main Content HTMLEditor...how do I do? Practically to separate the main HTMLEditor Content in 3 tabs??
272: [03:40:13] * antmas quit (Ping timeout: 245 seconds)
273: [03:44:44] * kerosene quit (Ping timeout: 246 seconds)
274: [03:44:48] * an_Eskimo quit (Ping timeout: 245 seconds)
275: [03:50:34] * kerosene has joined #silverstripe
276: [03:51:56] * joelpittet has joined #silverstripe
277: [03:52:41] * Ryan-Toast has left #silverstripe
278: [03:52:47] <Andrew__> and if I want the tabs to appear in the Main Content HTMLEditor...how do I do? Practically to separate the main HTMLEditor Content in 3 tabs??
279: [03:52:57] <Andrew__> anybody knows how?
280: [03:54:34] * obbo quit (Quit: Page closed)
281: [03:59:01] * simon_w quit (Quit: This computer has gone to sleep)
282: [03:59:36] <Stomach> andrew
283: [03:59:41] <Stomach> you need to do a tinymce template for that
284: [03:59:48] <Stomach> alternatively provide 3 fields
285: [03:59:51] <Stomach> one for each column
286: [04:00:57] <Andrew__> I see
287: [04:01:13] <Andrew__> and how do I do a tinymce template?
288: [04:01:22] <Andrew__> I need to do it in js right?
289: [04:02:02] <Stomach> yeah - I'm not an expert on that sorry
290: [04:02:22] <Andrew__> ok
291: [04:02:34] <Andrew__> I will check to see what templates I can find
292: [04:02:43] <Andrew__> thank you very much for your help
293: [04:02:52] <Andrew__> have a great week end
294: [04:02:57] * Andrew__ quit (Quit: Page closed)
295: [04:15:16] * kretik has joined #silverstripe
296: [04:21:47] * UncleCheese quit (Quit: UncleCheese)
297: [04:22:21] * UncleCheese has joined #silverstripe
298: [04:33:18] * BPower has joined #silverstripe
299: [04:33:28] * UncleCheese quit (Quit: UncleCheese)
300: [04:33:35] <BPower> Heyo. :)
301: [04:37:55] <BPower> Does anyone know what happened to persistent "stage"?
302: [04:38:19] <BPower> Somewhere between 3.0 and 3.1.3 it stopped being persistent.
303: [04:40:02] * simon_w has joined #silverstripe
304: [04:47:37] * stecman_ quit (Quit: This computer has gone to sleep)
305: [04:48:32] <Colin[pi]> hurry up and finish friday
306: [05:07:32] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
307: [05:10:51] * Bollig|DesignCty has joined #silverstripe
308: [05:12:17] <BPower> simon_w|air: Do you know what's the status on persistent "stage"?
309: [05:39:13] * terryapodaca has left #silverstripe
310: [05:39:32] * SightUnseen has joined #silverstripe
311: [05:39:36] * SightUnseen has left #silverstripe
312: [05:45:09] * BPower quit (Remote host closed the connection)
313: [05:46:34] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
314: [05:56:57] * qlex2 has joined #silverstripe
315: [05:57:23] * qlex2 quit (Client Quit)
316: [05:59:22] * joelpittet quit ()
317: [06:11:51] * Bollig|DesignCty has joined #silverstripe
318: [06:19:33] * will has joined #silverstripe
319: [06:27:16] <will> hello
320: [06:27:32] <will> i have a form on our site that users upload their CV's too. its really nice
321: [06:29:00] <will> one of our applicants has used the file name "resume.pdf" and one has used "Resume.pdf"
322: [06:29:20] <will> silverstripe has coped with this really well, with the correct file appearing in the records in model admin
323: [06:30:02] <will> trouble is, when you click to view the file, it takes you to the correct url, but the lowercase file is always shown, even when going to Resume.pdf
324: [06:30:06] <will> is bug?
325: [06:31:59] <will> I think its a SS thing, rather than a os thing, cos the folder is access controlled, so the browser must (i think) go through the ss php to see the file
326: [06:32:28] <will> the site is running on linux , not silly windows
327: [06:32:54] <will> i'm on ss 3.1
328: [06:44:12] <Bollig|DesignCty> will: so you're accessing the file directly? Sounds perfectly normal for windows, very strange for linux.
329: [06:44:37] <Bollig|DesignCty> any additional modules running on the site that might be part of the issue?
330: [06:44:55] * dendeffe has joined #silverstripe
331: [06:48:56] <will> well yes directly, except it must be going through PHP for the permissions logic
332: [06:50:49] <will> lots of modules, but nothing obviously asset related
333: [06:50:52] <will> oh wait,
334: [06:51:01] <will> secureassets
335: [06:57:00] * kretik quit (Remote host closed the connection)
336: [07:11:06] * terryapodaca has joined #silverstripe
337: [07:14:38] <Tanger> Do you actually have to subclass an extension from SiteTreeExtension to get access to the onBeforeUnpublish & OnBeforePublish hooks?
338: [07:14:40] <Tanger> Seems silly
339: [07:16:36] * k_fish_ quit (Quit: Leaving)
340: [07:35:57] * DesignerX has joined #silverstripe
341: [07:39:53] * AndroUser has joined #silverstripe
342: [07:40:33] * AndroUser is now known as qlex
343: [07:47:18] * will quit (Ping timeout: 245 seconds)
344: [07:58:18] * kinglozzer has joined #silverstripe
345: [07:59:09] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
346: [08:08:09] * violetina has joined #silverstripe
347: [08:15:39] * jonShape has joined #silverstripe
348: [08:30:55] * samthejarvis has joined #silverstripe
349: [08:37:25] * micmania1 has joined #silverstripe
350: [08:37:50] * Pycakek has joined #silverstripe
351: [08:40:22] <micmania1> Pycakek: your name makes me really want pancakes
352: [08:45:07] * UncleCheese has joined #silverstripe
353: [08:54:22] <Pycakek> well it does contain the word cake.
354: [08:54:32] <Pycakek> which is the lie I've got today
355: [08:54:56] <Pycakek> Friday Fourth Four Fourteen.
356: [08:55:25] <Pycakek> The kind of morning where I think I might give in and eat my sandwich early :<
357: [09:05:54] <micmania1> Isn't it fish & chips friday?
358: [09:08:29] <Pycakek> Yes, but for some reason I'm not sure it's happening.
359: [09:08:56] <Pycakek> also, that's another reason to eat the Italian Stallion sandwich early :>
360: [09:10:43] * Shrike_Finland has joined #silverstripe
361: [09:22:44] <UncleCheese> mmmm fish and chips
362: [09:24:31] <Pycakek> are they a thing in the state UncleCheese ?
363: [09:24:52] <micmania1> Pycakek: how do they compare between here and NZ?
364: [09:25:19] * Tanger has left #silverstripe
365: [09:25:22] <Pycakek> micmania1: NZ just like here.
366: [09:25:26] <micmania1> YES!
367: [09:25:33] <Pycakek> only different fish (we still have cod, just costs extra)
368: [09:25:52] <Pycakek> if you get "fish" then it'll be whatever's in the batter.
369: [09:25:59] <Pycakek> I hear it's commonly lemonshark
370: [09:26:18] <Pycakek> oh, maybe I have that confused.
371: [09:26:30] <micmania1> as long as it lives in water it'll do
372: [09:26:36] <Pycakek> haha, you'll be right.
373: [09:26:42] <Pycakek> although, no scampi or lobster.
374: [09:27:33] <Pycakek> We have Crayfish, but they're fucking expensive and mostly found around Kaikoura (a good day trip you could make from WLG if you'd like... but that's a lot of time in the car. Best to stay overnight)
375: [09:27:47] <Pycakek> Expensive because overfishing has them endangered.
376: [09:27:53] <Pycakek> ish
377: [09:29:16] <Pycakek> http://en.wikipedia.org/wiki/Jasus_edwardsii
378: [09:30:39] <Pycakek> Apparently far far far better than any American lobster though. The old man went to a well reputed top Lobster resturant in the USA, and the waiter told them not to bother, ROFL
379: [09:30:58] <Pycakek> they tried it anyway because the business was paying, and the waiter was right.
380: [09:31:09] <micmania1> https://www.youtube.com/watch?v=KDR_xbUZ4tM
381: [09:31:42] <Pycakek> www.youtube.com/watch?v=fjtVsYqAR3s
382: [09:36:09] <terryapodaca> quick question for those of you CSS guys
383: [09:37:19] <terryapodaca> what's the best solution to fix this: I have a box with a width of 960px, but when I add padding to the left/right of say 10px, the box actually expands to 980px
384: [09:37:39] <samthejarvis> box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;
385: [09:37:52] <samthejarvis> will put the padding inside the box
386: [09:37:55] <samthejarvis> :)
387: [09:38:08] <samthejarvis> browser support IE8+
388: [09:38:09] <terryapodaca> is that the best and most current solution?
389: [09:38:31] <samthejarvis> yes
390: [09:38:46] <terryapodaca> trying not to add another wrapper div or some other element to make this fix
391: [09:38:50] <samthejarvis> if you need IE8<, look for the box-sizing.htc
392: [09:39:15] * cloph_away is now known as cloph
393: [09:39:16] <samthejarvis> that provides a fairly good hack for supporting it in earlier browsers
394: [09:39:26] <terryapodaca> ok...thanks
395: [09:39:30] <terryapodaca> i'll go give that a try
396: [09:40:19] <samthejarvis> make sure you include the browser prefixes, quite a few earlier versions of chrome/ff/safari need em
397: [09:47:18] <terryapodaca> http://ti.stricklandapps.com/
398: [09:47:44] <terryapodaca> if you notice the Contact tab at the top right...it's still pushing outside the 960
399: [09:50:36] <micmania1> terryapodaca: doesn't on mine
400: [09:50:42] <micmania1> I'm using chrome
401: [09:51:10] <samthejarvis> it does in my chrome
402: [09:51:15] <samthejarvis> it's because you have position:absolute on it
403: [09:51:28] * qlex has joined #silverstripe
404: [09:51:33] <micmania1> oh, it was position: relative on mine lol You been changing it? :p
405: [09:51:40] <samthejarvis> and the next element up that it's relative to is .inner
406: [09:52:36] <samthejarvis> you'll want to put left:0;right:0; on it instead of width:100%;
407: [09:53:39] <samthejarvis> you can do everything that width can do, with top/left/right/bottom, and more
408: [09:54:27] <samthejarvis> or just remove the position:absolute;
409: [09:54:44] <samthejarvis> that'll put it within the bounds of that element, so it'll align to the inner right hand side
410: [09:54:48] <samthejarvis> at 940px
411: [09:55:00] <samthejarvis> which is probably what you want
412: [09:55:52] <terryapodaca> I want the whole dropdown to span the whole 940 (because of the padding) and the tab to stay on the right
413: [09:56:22] <terryapodaca> and stay on top of all the other content
414: [09:56:34] <samthejarvis> is this site to be responsive?
415: [09:56:43] <terryapodaca> eventually, yes
416: [09:56:47] <samthejarvis> if not, you'll need to set separate widths on the- oh
417: [09:56:52] <samthejarvis> hm
418: [09:57:18] <samthejarvis> you can set a constant percentage width on all of the items
419: [09:57:40] <samthejarvis> also, i advise against the "responsive eventually" approach
420: [09:57:47] <samthejarvis> you really need to think of it first
421: [09:57:50] <samthejarvis> to do it right
422: [09:58:05] <samthejarvis> you've probably heard the phrase "mobile first"
423: [09:58:33] <terryapodaca> I know...it was my fault because the site is actually already built and they just now asked for responsiveness
424: [09:58:39] <samthejarvis> ah, unlucky
425: [09:59:13] <terryapodaca> so I commented out everything and started piece by piece fixing it up and noticed the 960/980 issue
426: [09:59:25] <terryapodaca> while trying to make the rest responsive
427: [10:01:10] <kinglozzer> * { box-sizing: border-box; } makes life so much easier
428: [10:01:36] <terryapodaca> kinglozzer: isn't that bad though?
429: [10:02:17] <samthejarvis> i'm not a fan of it, any thirdparty css on the page is instantly ruined, like jqueryui
430: [10:02:42] <kinglozzer> http://www.paulirish.com/2012/box-sizing-border-box-ftw/
431: [10:04:10] <samthejarvis> doesn't change the fact i've had issues with jqueryui
432: [10:05:12] * kinglozzer avoids jqueryui like the plague
433: [10:05:55] <samthejarvis> lol, indeed
434: [10:06:00] <kinglozzer> Depends on individual use cases really
435: [10:06:39] <kinglozzer> None of our sites ever use any thirdparty CSS (occasionally small libs which we can patch anyway), so it's ideal for us
436: [10:07:11] <kinglozzer> Though applying it to individual elements is probably 'better'
437: [10:08:02] <Pycakek> gidday sam
438: [10:08:13] <samthejarvis> most of our projects too rarely use thirdparty css, my thinking is for all projects expect thirdparty dependencies, just in the long run
439: [10:08:30] <samthejarvis> gidday pyro, that's you right?
440: [10:09:28] <Pycakek> Yup
441: [10:09:40] <Pycakek> just having a cake day.
442: [10:10:17] <Pycakek> Good to know my recognition tactics are working though (Py.*k)
443: [10:10:25] <Pycakek> :>
444: [10:10:52] <Pycakek> I'm not a fan of box sizing fiddles, but that's because I had to support old browsers.
445: [10:11:11] <Pycakek> I still think though, if you do your job properly there's not much need for it.
446: [10:11:19] <Pycakek> although it can make some things easier.
447: [10:11:43] <Pycakek> though I'd never apply it to something like * :P
448: [10:11:54] <Pycakek> kinglozzer: you dirty dirty man :P
449: [10:12:04] <kinglozzer> SO WRONG, BUT SO RIGHT
450: [10:12:17] <UncleCheese> Pycakek: no, fish and chips are not common in the USA
451: [10:12:23] <UncleCheese> it’s quite a treat here
452: [10:12:31] <Pycakek> Like mince and cheese pies right? :D
453: [10:12:36] <UncleCheese> blegh
454: [10:12:38] <UncleCheese> and hot cross buns
455: [10:12:43] <UncleCheese> what the fuck are those
456: [10:12:48] <terryapodaca> fish and chips are very common in the US
457: [10:12:49] <Pycakek> hot cross buns are a thing here too thankfully
458: [10:13:00] <lewellyn> fish and chips are way too common around here :P
459: [10:13:20] <samthejarvis> fish and chips are what I live on in scotland
460: [10:13:20] <UncleCheese> terryapodaca: about how many fish and chips shops are there on a given block in your town?
461: [10:13:32] <Pycakek> UncleCheese: it sounds like you're not adventurous enough with your foods! :D
462: [10:13:34] <Pycakek> xD
463: [10:13:44] <UncleCheese> no, i’m actually quite a foodie
464: [10:13:50] <UncleCheese> two things.. money, and toddler
465: [10:13:58] <lewellyn> UncleCheese: there are plenty of bars in the sf bay area which can have fish and chips delivered for you to drink your beer with.
466: [10:14:17] <UncleCheese> we had vietnamese tonight.. that’s proabably my favourite ethic food
467: [10:14:19] <terryapodaca> UncleCheese: 2 chains and 3 mom/pop shops within a 5 mile drive
468: [10:14:21] <Pycakek> doesn't beetroot on hamburgers, doesn't pie, doesn't easter bun, wtf man. Missing out on all the cheap rubbish goodness!
469: [10:14:53] <Pycakek> terryapodaca: smack in the middle of texas, no ocean for miles. Ha!
470: [10:15:00] <Pycakek> Who'd have thought
471: [10:15:23] <terryapodaca> I never said they were all that good :P
472: [10:15:54] <lewellyn> as i can't eat fish & chips (breaded), the only local place i know in my town with them is the local pub. i think maybe the bowling alley too?
473: [10:16:10] <UncleCheese> yeah, it’s a whole thing here
474: [10:16:16] <UncleCheese> they’re just.. everywhere
475: [10:16:17] <micmania1> There's nothing quite like fish and chips near the coast over ehre
476: [10:16:20] <lewellyn> we have lots a bars here, but only one pub, apparently.
477: [10:16:20] <UncleCheese> and so many of them are bad
478: [10:16:30] <UncleCheese> but the good ones are……. mmmmmm
479: [10:16:54] <UncleCheese> there’s this whole phenomenon of little chinese fry pits that double as fish and chip shops
480: [10:16:57] <UncleCheese> those are the ones you avoid
481: [10:17:10] <lewellyn> i avoid them all :)
482: [10:17:11] <terryapodaca> UncleCheese: I don't doubt that since most cities in NZ are much closer to the coast than Dallas/Fort Worth
483: [10:17:20] <UncleCheese> you think?
484: [10:17:38] <UncleCheese> i think it’s impossible to be more than a 2 hour drive from the ocean anywhere in NZ
485: [10:18:11] <terryapodaca> but you can't say they are not common, especially for coastal towns in the US...but I see your point
486: [10:18:16] <UncleCheese> there’s so much ocean, people pay a premium for a view of the backside of a shopping mall
487: [10:18:43] <UncleCheese> “ahh, look at that concrete”
488: [10:18:48] <Pycakek> lewellyn: breaded? I think they're doing batter wrong.
489: [10:18:59] <UncleCheese> that’s weird.. i had never had fish and chips until i moved here
490: [10:19:02] <micmania1> yeah. breaded sucks
491: [10:19:16] <UncleCheese> you gotta get crumbed
492: [10:19:23] <UncleCheese> it’s way healthier
493: [10:19:24] <UncleCheese> haha
494: [10:19:32] <lewellyn> Pycakek: i mean "full of wheat"
495: [10:19:38] <terryapodaca> UncleCheese: it might be completely different, but you never had a Capitan D's or something similar?
496: [10:19:45] <lewellyn> to a celiac, it's all equally bad.
497: [10:19:49] <UncleCheese> is that like a chain?
498: [10:19:55] <terryapodaca> yeah, one of them
499: [10:19:58] <UncleCheese> ah
500: [10:20:04] <UncleCheese> are you near austin?
501: [10:20:04] <Pycakek> lewellyn: hmm, perhaps with the flour I suppose, yeh.
502: [10:20:10] <lewellyn> since it's a shared fryer, i can't even eat the chips in those places.
503: [10:20:19] <terryapodaca> Fort Worth
504: [10:20:25] <UncleCheese> are you near austin?
505: [10:20:27] <Pycakek> lewellyn: that sucks :(
506: [10:20:38] <lewellyn> Pycakek: it just means i eat better ;)
507: [10:20:42] <terryapodaca> which is 3 hrs north of Austin
508: [10:20:49] <UncleCheese> austin is supposedly a great town for food
509: [10:20:54] <Pycakek> lewellyn: well there is that I guess.
510: [10:20:59] <lewellyn> and on that note, my 600 calorie breakfast coffee drink is available in 2.5 hours ;)
511: [10:21:13] <Pycakek> Although lots of fish and chips in NZ are done with vegetable oil rather than beef tallow these days.
512: [10:21:39] <Pycakek> also UncleCheese, just because the place is run by Chinese doesn't necessarially mean it's bad.
513: [10:21:39] <UncleCheese> i like the chip shop in Newtown.. I asked the guy to use snapper instead of the scraped-from-the-bottom warehou, and he refused
514: [10:21:41] <lewellyn> Pycakek: i generally manage to avoid prepared foods.
515: [10:21:50] <Pycakek> just... common that it is in larger cities I guess.
516: [10:22:08] <Pycakek> UncleCheese: even though he could charge extra?
517: [10:22:10] <UncleCheese> i don’t like any restaurants that do more than one thing
518: [10:22:10] <Pycakek> weirdo.
519: [10:22:14] <terryapodaca> but there are places like Red Lobster, Pappadeax, Joe's Crab Shack and many other restaurant type places that sell good seafood....ala fish and chops
520: [10:22:14] <UncleCheese> yeah!
521: [10:22:17] <terryapodaca> chips
522: [10:22:20] <UncleCheese> i was like, let me buy this fresh snapper from you
523: [10:22:24] <UncleCheese> and you can then fry it
524: [10:22:24] <Pycakek> UncleCheese: hahahah, "resturants" ahahhaha !!
525: [10:22:26] <UncleCheese> and he was like, no
526: [10:22:40] <UncleCheese> apparently it was an insult to the snapper to fry it
527: [10:22:45] <Pycakek> hahahaha
528: [10:22:47] <UncleCheese> but i won’t have it any other way
529: [10:22:48] <Pycakek> rude :<
530: [10:22:54] <UncleCheese> mt vic chippery is my jam
531: [10:22:56] <Pycakek> really? Snapper is a fantastic fish.
532: [10:22:59] <UncleCheese> totally
533: [10:23:04] <UncleCheese> and they’ll fry smapper, the fuckers
534: [10:23:22] <Pycakek> Terakihi is good too.
535: [10:23:23] <UncleCheese> if i can’t get snapper, i get takikikiriki
536: [10:23:26] <Pycakek> mmm
537: [10:23:28] <UncleCheese> yeah, that’s the one
538: [10:23:59] <UncleCheese> moari 101: if you’re not sure how it’s spelled (spelt) just keep repeating the last two letters until it looks right
539: [10:24:14] <Pycakek> terryapodaca: haha fish and chops. Is that a reference to "surf and turf", or just a typo?
540: [10:24:32] <UncleCheese> i quite like the new “fush n’ chups” sandwich from BF
541: [10:24:55] <Pycakek> :< I'm still missing out on BF, even though one opened in CHC :<
542: [10:24:56] <UncleCheese> the only vowel in the kiwi alphabet is apparently U
543: [10:25:03] <Pycakek> nah
544: [10:25:21] <UncleCheese> last month at the beach, i heard, “Bun, dud you huv a gud swum?”
545: [10:25:32] <Pycakek> although we do say nur, but that's a different word :P
546: [10:25:39] <UncleCheese> chur bra
547: [10:25:56] <Pycakek> needs an h!
548: [10:26:03] <Pycakek> also 'brah' is an American import :<
549: [10:26:09] <UncleCheese> it is?!
550: [10:26:11] <Pycakek> yes.
551: [10:26:13] <UncleCheese> good lord
552: [10:26:17] <micmania1> UncleCheese: https://www.youtube.com/watch?v=7Bg586-wl38
553: [10:26:19] <Pycakek> You don't watch much TV eh?
554: [10:26:20] <Pycakek> :P
555: [10:26:21] <Zauberfisch> ohai
556: [10:26:22] <Pycakek> probably a good thing
557: [10:26:25] <UncleCheese> no tv in nz
558: [10:26:33] <Pycakek> good job, it's all shit.
559: [10:26:36] <UncleCheese> well
560: [10:26:43] <UncleCheese> except the illegal kind
561: [10:26:50] <Pycakek> yeah but that's pick and choose.
562: [10:26:54] <UncleCheese> exactly
563: [10:26:59] <UncleCheese> watching penn and teller right now
564: [10:27:06] <Pycakek> hehe
565: [10:27:41] <UncleCheese> i would say fish and chips to the USA is like bagels to NZ
566: [10:27:51] <UncleCheese> you can find it, but it’s not a way of life
567: [10:28:21] <UncleCheese> damn, i miss bagels
568: [10:30:03] <Pycakek> also UncleCheese, if you think we talk funny, wait until you meet micmania1 :P
569: [10:30:14] <micmania1> hahaha wey nar man!
570: [10:30:16] <UncleCheese> pacific northwest?
571: [10:30:19] <UncleCheese> no accent there
572: [10:30:23] <Pycakek> UncleCheese: sif.
573: [10:30:30] <UncleCheese> sif?
574: [10:30:33] <Pycakek> UK north east
575: [10:30:35] <Pycakek> yeh, sif.
576: [10:30:38] <Pycakek> common interwebs.
577: [10:30:39] <UncleCheese> oh, wow
578: [10:30:41] <Pycakek> 'as if'
579: [10:30:46] <UncleCheese> ohhh
580: [10:31:02] <UncleCheese> does he have one of those newcastle accents?
581: [10:31:06] <Pycakek> exactly.
582: [10:31:09] <micmania1> :D
583: [10:31:14] <UncleCheese> don’t they have their own language or some shit?
584: [10:31:16] <Pycakek> being as that we're both in Newcastle.
585: [10:31:18] <UncleCheese> that is the most fucked up accent ever
586: [10:31:32] <micmania1> I think you mean "best"
587: [10:31:56] <Pycakek> UncleCheese: well... it's been said that a Geordie fisherman can understand the scandinavians better than the English
588: [10:32:05] <Pycakek> but I'm pretty sure that's not true... anymore.
589: [10:32:30] <UncleCheese> Geordie!
590: [10:32:31] <Pycakek> micmania1: true it is a pretty awesome accent :P
591: [10:33:42] <micmania1> kinglozzer speaks like a framer
592: [10:33:46] <micmania1> farmer*
593: [10:34:10] <Pycakek> haha, I heard that folks from Bristol spoke farmer.
594: [10:34:17] <simon_w> My accent's the best
595: [10:34:22] <Pycakek> Welsh is a pretty cool accent.
596: [10:34:22] <micmania1> yeah, a little pirate too
597: [10:34:35] <Pycakek> kinda southish, kinda scottish. It's weird.
598: [10:34:37] <Pycakek> but great.
599: [10:34:38] <simon_w> The souring, mumbling of a kiwi accent mixed in with a partial lisp!
600: [10:34:53] <Pycakek> simon_w: mumbling, I can do that.
601: [10:35:02] <Pycakek> apparently I'm a shocker for it.
602: [10:35:02] <simon_w> *slurring
603: [10:35:10] <simon_w> Pycakek, yeah, comes with the country
604: [10:35:17] <Pycakek> haha, but kiwis don't get me either.
605: [10:35:34] <Pycakek> I say my brain moves faster than my mouth, which is pretty much the case.
606: [10:37:34] <simon_w|air> Well, I'm knackered
607: [10:37:37] * simon_w|air sleeps
608: [10:53:36] * Bollig|DesignCty has joined #silverstripe
609: [10:53:57] * UncleCheese quit (Quit: UncleCheese)
610: [10:57:43] * samthejarvis quit (Ping timeout: 245 seconds)
611: [11:10:42] * Error404NotFound has joined #silverstripe
612: [11:11:01] * Error404NotFound quit (Remote host closed the connection)
613: [11:31:19] * qlex has left #silverstripe
614: [11:55:41] * DesignerX quit (Quit: Konversation terminated!)
615: [11:55:49] * iamss has joined #silverstripe
616: [11:57:45] <iamss> Help SilverStripe! I have a ProductPage and I want to select related ProductPages in it. It's something like a tree I don't know how to structure that in SS
617: [11:58:42] <iamss> can someone help me structure the DataObjects?
618: [11:59:11] <kinglozzer> TreeMultiSelectField, CheckboxSetField
619: [11:59:34] * kinglozzer lunch time
620: [12:02:08] * DesignerX has joined #silverstripe
621: [12:07:06] * anselmdk has joined #silverstripe
622: [12:08:04] <micmania1> https://github.com/GitbookIO/gitbook - This looks good.
623: [12:16:26] * opalfroot has joined #silverstripe
624: [12:17:23] <opalfroot> anyone know how to strip characters from a textfield?
625: [12:17:30] <opalfroot> or add a filter
626: [12:18:06] * UndefinedOffset has joined #silverstripe
627: [12:26:18] * opalfroot quit (Quit: Page closed)
628: [12:34:22] * ARNHOE has joined #silverstripe
629: [12:41:41] * r3v3rb has joined #silverstripe
630: [12:41:52] <r3v3rb> good afternoon
631: [12:45:52] <micmania1> areet
632: [12:49:08] <r3v3rb> micmania1 don't suppose you know if there is a 'LIKE' function in the DataModel do you?
633: [12:49:20] <r3v3rb> for filtering results
634: [12:49:42] <micmania1> yep, ->filter("Column:PartialMatch", "value")
635: [12:50:12] <r3v3rb> yep, just trying that one after googling ;)
636: [12:50:25] <r3v3rb> whilst asking the same stoopid question :)
637: [12:50:37] <micmania1> That's the same as doing LIKE '%value%'
638: [12:50:41] <r3v3rb> aye
639: [12:50:43] <Pycakek> op... he quit.
640: [12:50:44] <Pycakek> gg
641: [12:50:52] <r3v3rb> cakePHP Pycakek ?
642: [12:51:26] <Pycakek> no, gosh, pfft
643: [12:51:28] <Pycakek> just cake.
644: [12:51:36] <r3v3rb> mmm, caaaaaake
645: [12:51:38] <Pycakek> the kind that goes under heat and comes out delicious
646: [12:51:44] <Pycakek> and or lies.
647: [12:51:52] <Pycakek> because I don't actually have a cake.
648: [12:51:57] <r3v3rb> pudding paunch coming to you at a rate of knots fella
649: [12:52:06] <Pycakek> it's just the word of the day I guess.
650: [12:52:27] <Pycakek> haha, I just shed a fair bit of 'winter weight'
651: [12:52:29] <r3v3rb> paunch or cake?
652: [12:52:34] <Pycakek> haha, both?
653: [12:52:43] <Pycakek> well, a wee bit of paunch :<
654: [12:52:54] <Pycakek> but not noticable unless I take my clothes off!
655: [12:53:05] <r3v3rb> right time to close down the editor for the day - 'tis a hard life being self employed this...
656: [12:53:13] <Pycakek> indeed
657: [12:53:28] <Pycakek> hurry up and get more work than you can handle so you can pay me to do some of it for you.
658: [12:53:29] <Pycakek> gosh.
659: [12:53:33] * iamss quit (Ping timeout: 245 seconds)
660: [12:53:46] <r3v3rb> just worked out I have nearly 20k of outstanding invoices ready to roll out next week :)
661: [12:53:54] * r3v3rb takes friday easy
662: [12:54:54] <micmania1> beers on r3v3rb!!
663: [12:55:07] <r3v3rb> Pycakek, once I have this stupid mercurial stuff sorted out sharing projects will be easier ;)
664: [12:55:15] <r3v3rb> micmania1deffo
665: [12:55:24] <r3v3rb> micmania1 deffo even
666: [12:56:13] <r3v3rb> it was brief but I must dash - time to go collect the children and feed them
667: [12:56:56] * r3v3rb quit (Quit: Textual IRC Client: www.textualapp.com)
668: [12:58:26] * Shrike_Finland quit (Quit: Leaving.)
669: [13:02:18] * dendeffe quit (Ping timeout: 240 seconds)
670: [13:04:32] <micmania1> One of these days i'm going to build a flysystem modules for silverstripe. One day
671: [13:05:01] <micmania1> I have absolutely no use for it, but its looks cool
672: [13:07:37] <kinglozzer> micmania1: As in the PHP league thing?
673: [13:07:41] <micmania1> yeah
674: [13:07:46] <kinglozzer> Their packages look awesome
675: [13:07:52] <kinglozzer> lol
676: [13:08:01] <kinglozzer> accidental innuendo
677: [13:08:20] <micmania1> haha so are their repositories ;)
678: [13:08:26] <Pycakek> in YOUR end; OH!
679: [13:09:07] <Pycakek> omg I just won 2048
680: [13:09:14] <Pycakek> wtf how does it even possible
681: [13:10:03] <micmania1> Pycakek: no way!
682: [13:10:07] <Pycakek> way
683: [13:10:14] <micmania1> I tried yesterday and again today but failed both times.
684: [13:11:55] <Pycakek> http://iforce.co.nz/i/1n3kkrps.gvo.png
685: [13:12:04] <Pycakek> I won the prize! :O
686: [13:12:59] * dendeffe has joined #silverstripe
687: [13:14:06] <Pycakek> 20776 high score (I clicked keep going)
688: [13:14:11] <Pycakek> shit got dire soon after that :P
689: [13:17:21] * Motoservo quit (Read error: Connection reset by peer)
690: [13:17:27] * Motoservo_ has joined #silverstripe
691: [13:17:43] <micmania1> I only got 256 (
692: [13:26:44] <Pycakek> Best I could do yesterday was 512
693: [13:37:39] * catcher has joined #silverstripe
694: [13:51:51] * qlex2 has joined #silverstripe
695: [14:01:02] * qlex2 quit (Remote host closed the connection)
696: [14:01:17] * qlex2 has joined #silverstripe
697: [14:12:25] * Bollig|DesignCty quit (Ping timeout: 240 seconds)
698: [14:20:32] * obbo has joined #silverstripe
699: [14:20:47] <obbo> hello. is there an onCreate method in silverstripe or some equivalent?
700: [14:21:26] <Pycakek> define 'create'
701: [14:21:37] <Pycakek> there's an onBeforeWrite
702: [14:21:38] <micmania1> onBeforeWrite & onAfterWrite
703: [14:22:06] <Pycakek> which might be what you're after. Otherwise you're wanting to look at injector, or build a better constructor/defaults for your objects.
704: [14:24:40] <obbo> i'm trying to do some stuff after a page object is created for the first time. i want it happen only once.
705: [14:24:56] <obbo> i have if(!$this->ID) in onBeforeWrite
706: [14:25:13] <obbo> but that fires if you delete then restore a page as well
707: [14:25:42] <micmania1> obbo: what is it you'r trying to do?
708: [14:27:07] <obbo> every instance of my custom page type will have a corresponding group to go with it. i'm trying to create that group automatically when you make a page.
709: [14:27:23] <obbo> i'm also trying to scaffold some default children pages for the custom page type on create
710: [14:28:07] <obbo> but the whole versioning thing is throwing me off because that fires my onBeforeWrite and onAfterWrite hooks as well when you Restore
711: [14:32:30] <catcher> irogue_, you around? I have a question about your 2-server rsync
712: [14:33:51] <Pycakek> obbo: is there no way to test if the group already exists?
713: [14:34:15] <micmania1> obbo: requireDefaultRecords()
714: [14:34:16] <Pycakek> It's probably better to check every time, in case someone deletes the group after creation
715: [14:34:28] <Pycakek> micmania1: only works on a built, but it's an idea
716: [14:34:32] <Pycakek> build*
717: [14:35:45] <micmania1> I'm sure there's a one that runs when an object is first created.
718: [14:36:35] <micmania1> populateDefaults() - that might work.
719: [14:37:10] <micmania1> obbo: ^^
720: [14:37:15] <irogue_> catcher: yo
721: [14:37:18] <obbo> ok, thanks
722: [14:38:38] <Pycakek> micmania1: yeh, but it's intended for populating the defaults from private static $defaults, but could be used in this case I guess.
723: [14:38:39] <catcher> irogue_, hey hey, how do you handle permissions for the sync? Allow root ssh? give apache a shell? or something else?
724: [14:47:28] * obbo quit (Quit: Page closed)
725: [14:53:06] * cloph is now known as cloph_away
726: [15:01:22] <irogue_> catcher: i run site with nginx+php-fpm
727: [15:01:52] <irogue_> so everything is owned by a nonpriv user
728: [15:01:56] <irogue_> rsync runs as that same user
729: [15:02:39] <catcher> irogue_, but apache owns the assets
730: [15:02:48] <irogue_> not in nginx land :P
731: [15:02:56] * qlex has joined #silverstripe
732: [15:03:05] <catcher> uhh, right. :)
733: [15:03:24] <irogue_> each site owned by its own user
734: [15:03:32] <irogue_> and process running as that user
735: [15:03:37] <catcher> irogue_, so you allow ssh as your nginx user?
736: [15:04:00] <irogue_> as the user for that site, yes, using an rsync-only shell
737: [15:04:24] <catcher> not hip to rsync-only shells, I'll check that out, thanks
738: [15:06:39] <catcher> irogue_, any leads there?
739: [15:10:10] <irogue_> catcher: http://www.pizzashack.org/rssh/
740: [15:11:56] <catcher> irogue_, thanks. Looks like it's possible to limit commands by authorized_keys too, are you aware of any problems with that route?
741: [15:14:57] <irogue_> not really, just went for "as many levels of restriction as possible" :P
742: [15:19:15] <Pycakek> catcher: you can make apache create files as user rather than www-data by using fcgi or suphp
743: [15:21:00] <Pycakek> saves some serious headache (and processor space)
744: [15:21:14] <catcher> Pycakek, not a bad idea... caveats?
745: [15:21:14] <Pycakek> although it's slightly slower than modphp, apparently.
746: [15:21:18] <micmania1> haha rock lobster is on!
747: [15:21:52] <Pycakek> by slower I mean a matter of microseconds, the kinda shit performance geeks go apeshit over because it means epenis, but no one else gives a shit.
748: [15:22:48] <Pycakek> and making mod_php run fast is a thing in itself, and fcgi is probably faster on about 90% of installs.
749: [15:23:14] <Pycakek> or something. I don't really know because I'm not a performance nerd.
750: [15:24:35] * ARNHOE quit ()
751: [15:31:25] <catcher> authorized_keys limiting by source & command is working great, I think this will do the trick.
752: [15:53:37] * qlex has left #silverstripe
753: [15:58:58] <kinglozzer> Deploying a site atm
754: [15:59:01] <kinglozzer> Friday afternoon
755: [15:59:04] <kinglozzer> Perfect time
756: [16:05:53] <Pycakek> hahaha
757: [16:06:09] <Pycakek> "I DID IT, DEADLINE MET, WHAT MORE DO YOU WANT FROM ME!?"
758: [16:06:11] <Pycakek> XD
759: [16:06:19] <Pycakek> :P
760: [16:13:11] <kinglozzer> *updates DNS*
761: [16:13:13] <kinglozzer> *runs out of office*
762: [16:13:18] <kinglozzer> :P
763: [16:13:37] <kinglozzer> Whoa..
764: [16:13:47] <Zauberfisch> don't forget to turn of your phone
765: [16:13:52] <kinglozzer> I should point out, we're not controlling the DNS
766: [16:14:05] <kinglozzer> Just had a call asking for help on how to set A records
767: [16:14:09] <kinglozzer> Sent me a screenshot
768: [16:14:15] <kinglozzer> > IE7
769: [16:14:18] <kinglozzer> .....
770: [16:18:53] * WilsonS has joined #silverstripe
771: [16:19:55] <WilsonS> Hi everyone. Anybody have any ideas on how to administer two join tables for two dataobjects. I'm attempting to do it with custom queries. Thx! http://stackoverflow.com/questions/22823426/two-join-tables-how-to-administer
772: [16:24:02] * anselmdk quit (Quit: anselmdk)
773: [16:25:36] <Zauberfisch> WilsonS: have you seen my latest comment?
774: [16:27:11] <WilsonS> Yes, I did Zauberfisch. Thanks so much for your help. Thought I'd give it one more shot to see if anyone else has come up with a way to keep the tables unique. But thanks so much for responding.
775: [16:27:55] <Pycakek> WilsonS: can you please describe the issue for those of us who weren't here the first time you asked?
776: [16:28:11] <Zauberfisch> Pycakek: he asked on stackoverflow
777: [16:28:12] <Pycakek> what do you mean 'administer' join tables?
778: [16:28:22] <Pycakek> oh, so he did :<
779: [16:28:25] <Pycakek> lol
780: [16:28:49] <Pycakek> still has not enough infomation. What does 'administer' mean in this case?
781: [16:28:49] <Zauberfisch> WilsonS: there is another way. there always is. but all other ways I can think of will be painful
782: [16:29:23] <Zauberfisch> Pycakek: my assumption is 'administer' == 'how can I make the CMS let the user do that'
783: [16:30:41] <Pycakek> yeah but that's gridfield.
784: [16:30:49] <Pycakek> but then he says he's tried it.
785: [16:31:08] <Pycakek> so I dunno if he means something else, or is simply asking "how to gridfield?"
786: [16:31:44] <Zauberfisch> Pycakek: he wants many_many but not many_many to put it simply :P
787: [16:31:44] <Pycakek> and here he mentions something about unique tables
788: [16:31:55] <Pycakek> yeah, that's a bit weird.
789: [16:32:04] <Zauberfisch> well, I can see where its coming from
790: [16:32:20] <Pycakek> WilsonS: put simply, one does not admister join tables at all.
791: [16:32:37] <Pycakek> the system does it.
792: [16:32:54] <Pycakek> it sounds more like you want some logic in cancreate, etc.
793: [16:33:02] <Zauberfisch> the point is that you keep the Cuisine the same for all restaurants, but depending on the restaurant there should be different sub cuisine
794: [16:33:17] <Zauberfisch> in principle there are scenarios where such a structure could make sense
795: [16:33:42] <Zauberfisch> WilsonS: did I got that right?
796: [16:34:16] <Pycakek> Difference subcusine, I see. So it's kind of like a 3 way many_many
797: [16:34:25] <Zauberfisch> sort of
798: [16:34:32] <Zauberfisch> well, I just actually came up with an idea
799: [16:34:33] <Pycakek> man_many_extraFields could probably facilitate that
800: [16:34:34] <Pycakek> maybe
801: [16:34:39] <Zauberfisch> yeah, exactly
802: [16:34:53] <Pycakek> but again it comes down to more information
803: [16:34:58] <Zauberfisch> store the ID from the Restaurant in the many_many_extraFields of the Cuisine...SubCuisine
804: [16:35:01] <Pycakek> need more to give proper answer.
805: [16:35:13] <Zauberfisch> that could work
806: [16:35:14] <Pycakek> but yeh, basically as Zauberfisch says.
807: [16:35:24] <Pycakek> presuming we've got the premise right.
808: [16:35:31] <Zauberfisch> indeed
809: [16:35:35] <Pycakek> anyway, time to bail! weekeeeeend!
810: [16:35:47] <Pycakek> gg chaps :>
811: [16:35:51] * Pycakek quit (Quit: Page closed)
812: [16:35:57] * kinglozzer quit ()
813: [16:38:47] <WilsonS> Whoops, had to step away for a sec. Yes, Zauberfisch had it right. I want a table of Cuisines with not duplicate rows and a table of SubCuisines with no duplicate rows. Then the various combinations are in Restaurant_Cuisines and SubCuisine_Restaurant_Cuisiness join tables
814: [16:39:44] <WilsonS> By 'administering', yes I mean, how woud you use GridField and RelationEditor to do this.
815: [16:40:35] <WilsonS> Zauberfisch, what's the many_many_extraFields approach? Sounds promising. Thx!
816: [16:51:54] <Zauberfisch> WilsonS: so, when you create a many_many relation it create a new table for you
817: [16:51:57] <Zauberfisch> as a join table
818: [16:51:59] <Zauberfisch> so you have:
819: [16:52:04] <Zauberfisch> Cuisine
820: [16:52:07] <Zauberfisch> SubCuisine
821: [16:52:10] <Zauberfisch> Cuisine_SubCuisines
822: [16:52:28] <Zauberfisch> where Cuisine_SubCuisines is the connection between Cuisine and SubCuisine
823: [16:52:45] <Zauberfisch> now, per default that connection table looks like that:
824: [16:53:53] <Zauberfisch> ID, CuisineID, SubCuisineID
825: [16:54:09] <WilsonS> Yes, it does. Got it so far. Then I'd create Cuisine_SubCuisines.php and put the many_many_extraFields in that model?
826: [16:54:16] <Zauberfisch> with many_many_extraFields you can add a new field to that table, which you can then use to filter the relation
827: [16:54:45] <Zauberfisch> WilsonS: not exactly. many_many_extraFields would be defined on the class that has the many_many
828: [16:55:26] <WilsonS> Ah, I see. I'll give this a shot. Thanks again
829: [16:56:16] <Zauberfisch> WilsonS: see doc.silverstripe.org/framework/en/reference/grid-field#customizing-detail-forms
830: [16:56:36] <Zauberfisch> there they have a 'Position' field added to the relation table
831: [16:57:02] * Stomach quit (Ping timeout: 252 seconds)
832: [16:57:26] <Zauberfisch> but now I am not a 100% sure if thats the way to go
833: [16:57:30] <Zauberfisch> I just had another idea:
834: [16:57:47] * Shrike_Finland has joined #silverstripe
835: [16:57:49] <Zauberfisch> manage Cuisine and SubCuisine via modeladmin
836: [16:58:11] <Zauberfisch> and then create a new class, something like RestaurantMenu or whatever
837: [16:58:33] <Zauberfisch> and a RestaurantMenu stores the IDs of Cuisines and SubCuisines for this restaurant
838: [16:59:08] <WilsonS> Hmm. That does sound simpler. I'll put Cuisine and SubCuisine in ModelAdmin and give this a shot. Thanks for sticking with me.
839: [17:01:18] <Zauberfisch> the extraFields approach should also work, I am actually sure it would. but yes, modeladmin + menu object is simpler. and its also easier to understand for the CMS user
840: [17:01:51] <WilsonS> Though, how would SubCuisines be 'children' of Cuisines. I may need RestaurantCuisine and RestaurantSubCuisine or similar
841: [17:02:04] <WilsonS> And still have Cuisine and SubCuisine
842: [17:02:26] <Zauberfisch> so a SubCuisine can be in multiple Cuisines, right?
843: [17:02:33] <WilsonS> Yes
844: [17:03:09] <WilsonS> The client specifically noted Japanese->Fusion and Chinese->Fusion, which they're into
845: [17:03:11] <Zauberfisch> well, here is how I would do it
846: [17:09:32] * cloph_away is now known as cloph
847: [17:11:28] <Zauberfisch> WilsonS:
848: [17:11:28] <Zauberfisch> http://paste2.org/Wmxs32yN
849: [17:11:55] <Zauberfisch> "note how I have removed the relation between Cuisine and SubCuisine as we don't need it anymore. however if you want to use it, it is of course possible"
850: [17:12:17] <Zauberfisch> WilsonS: take a look, if this is something that could work for you, let me know, then i will post it on stackoverflow
851: [17:12:33] <Zauberfisch> (for the records, just in case someone else has a similar problem)
852: [17:13:26] <WilsonS> Thanks so much Zauberfisch. Will keep you posted, then hopefully get it on SO for others.
853: [17:16:38] * gelignite has joined #silverstripe
854: [17:43:39] <WilsonS> Zauberfisch. Line 8 needs to be 'RestaurantCuisines' => 'RestaurantCuisine', correct?
855: [17:44:10] <Zauberfisch> ah, correct, my copy paste mistake
856: [17:44:42] <Zauberfisch> updated the paste: http://paste2.org/FwP5Fzza
857: [17:44:58] <Zauberfisch> again updated: http://paste2.org/FEyaBHFN
858: [17:51:20] <WilsonS> It's very close. The getTitle() isn't called for me in RestaurantCuisine but it is in Restaurant. Looking into it.
859: [17:53:18] <Zauberfisch> WilsonS: rename it to function Title()
860: [17:53:21] <Zauberfisch> perhaps that works
861: [17:53:44] <Zauberfisch> no. nvm
862: [17:53:47] <Zauberfisch> its getTitle()
863: [17:53:48] <Zauberfisch> weird
864: [17:54:00] <Zauberfisch> what is it displaying?
865: [17:56:17] <WilsonS> Ah, disregard. getTitle is fine in RestaurantCuisine. But the GridField for RestaurantCuisines in Restaurant.php is showing only the IDs of the RestaurantCuisine. Obviously because it has no title. I'll see if I can figure it out.
866: [17:58:05] * greseky has joined #silverstripe
867: [17:58:07] * Shrike_Finland quit (Quit: Leaving.)
868: [17:58:23] <greseky> hey guys
869: [17:59:12] <greseky> does anybody know how to get eg last 3 News (is Page ext.) on HomePage (also Page ext.)?
870: [18:00:00] <greseky> i could create a method on homepage, but just asking if it is possible to make it directly in HomePage template?
871: [18:01:04] * anselmdk has joined #silverstripe
872: [18:02:54] <greseky> anybody?
873: [18:04:38] <Zauberfisch> WilsonS: easy fix:
874: [18:05:40] <Zauberfisch> WilsonS: http://paste2.org/jkU7djZF
875: [18:05:45] <Zauberfisch> line 49-51
876: [18:05:52] <Zauberfisch> after adding that, run a ?flush=1
877: [18:06:00] <Zauberfisch> and then it should show up in the gridfield
878: [18:11:12] * Motoservo_ quit (Read error: Connection reset by peer)
879: [18:11:34] * Motoservo has joined #silverstripe
880: [18:11:35] <Zauberfisch> greseky: no, not possible in template
881: [18:11:38] <Zauberfisch> which is a good thing
882: [18:11:45] <Zauberfisch> this should be done in php
883: [18:11:58] <greseky> i did it in new method for HomePage
884: [18:12:02] <greseky> public function getLastNews(){ return News::get()->sort('Date', 'DESC')->limit(3); }
885: [18:12:13] <Zauberfisch> exactly how I would have done it
886: [18:12:40] <greseky> I was just wondering if it is possible to make in template, now I know :)
887: [18:13:33] <greseky> I also need to make translations string, because having multilang page
888: [18:13:44] <greseky> do I need to make new lang file?
889: [18:14:04] <greseky> and in temlate just use $ and name of lang key?
890: [18:14:34] <greseky> I am new with SS
891: [18:14:40] <greseky> sorry :)
892: [18:15:03] <Zauberfisch> greseky: do the following:
893: [18:15:12] <Zauberfisch> well, actually
894: [18:15:12] <Zauberfisch> wait
895: [18:15:23] <greseky> OK :D
896: [18:15:26] <Zauberfisch> let me start at 0
897: [18:15:38] <Zauberfisch> so, there are 2 types of translation / internationalisation
898: [18:15:44] <Zauberfisch> 1) i18n
899: [18:15:47] <Zauberfisch> 2) translatable
900: [18:15:59] <Zauberfisch> i18n takes care of "hard coded" strings
901: [18:16:06] <Zauberfisch> so lets say you put that into your php code:
902: [18:16:23] <Zauberfisch> echo _t('Page.Content', 'Content');
903: [18:16:39] <Zauberfisch> this would output "Content" for english users, but "Inhalt" for german users
904: [18:17:15] <greseky> aha, firs tparam is key, 2nd is value
905: [18:17:22] <greseky> and in template?
906: [18:17:29] <Zauberfisch> in template its pretty much the same
907: [18:17:37] <Zauberfisch> <%t Page.Content 'Content' %>
908: [18:17:55] <Zauberfisch> there is also a sprintf thingy
909: [18:18:01] <Zauberfisch> lets say you want:
910: [18:18:04] <greseky> aha, it is <% :)
911: [18:18:42] <Zauberfisch> echo _t('Page.YouAreOnPageX', 'You are on page {pagenumber}!', array('pagenumber' => 5));
912: [18:18:45] <Zauberfisch> or in template:
913: [18:18:55] <Zauberfisch> <%t Page.YouAreOnPageX 'You are on page {pagenumber}!'
914: [18:19:07] <Zauberfisch> <%t Page.YouAreOnPageX 'You are on page {pagenumber}!' pagenumber='5' %>
915: [18:19:39] <Zauberfisch> the translations here are read form the language files
916: [18:20:04] <Zauberfisch> so for english translations it will look into folder/lang/en.yml and folder/lang/en_US.yml
917: [18:20:16] <Zauberfisch> just creating an en.yml should be fine
918: [18:20:26] <Zauberfisch> same goes for german. folder/lang/de.yml
919: [18:20:32] <Zauberfisch> and any other language
920: [18:20:34] <greseky> and that's it? :D
921: [18:20:38] <Zauberfisch> yes
922: [18:20:42] <greseky> so simple
923: [18:20:54] <Zauberfisch> to tell silverstripe which language it should use you have 2 things:
924: [18:21:38] <greseky> btw: where is folder lang
925: [18:21:41] <Zauberfisch> i18n::set_default_locale('en_US');
926: [18:21:45] <Zauberfisch> and
927: [18:21:45] <Zauberfisch> i18n::set_locale('en_US');
928: [18:22:07] <Zauberfisch> folder is obviously a placeholder
929: [18:22:17] <Zauberfisch> each module can have its own lang folder
930: [18:22:25] <Zauberfisch> so you can have mysite/lang/de.yml
931: [18:22:33] <Zauberfisch> themes/myTheme/lang/de.yml
932: [18:22:40] <Zauberfisch> mymodule/lang/de.yml
933: [18:23:01] <SMaction> spronk You were kind enough to help me the other day but I am still having trouble. When I complete a fresh install of Silverstripe. My pages have no CSS. I tried downloading the install from git and copying it into my install but all that did was take me through install again with the same result. With your help and a Google search I have determined the problem I am having is the
934: [18:23:01] <SMaction> site is looking for the css at www.xyz.com/index.php/themes/simple/css .... instead of www.xyz.com/themes/simple/css. Where have I gone wrong?
935: [18:23:08] <Zauberfisch> greseky: another cool thing is that silverstripe can automaticly create the yml files for you
936: [18:23:13] <greseky> well, if you have opened eng page, then should it automatically select eng lang file?
937: [18:23:18] <greseky> o really?
938: [18:23:20] <Zauberfisch> greseky: just write your code with _t() and <%t %> stuff
939: [18:23:33] * Azure is now known as __END__
940: [18:23:42] <Zauberfisch> and then when you are done, visit /dev/tasks/i18nTextCollectorTask?module=mysite
941: [18:23:52] <Zauberfisch> to generate the lang file for mysite
942: [18:24:04] <Zauberfisch> or /dev/tasks/i18nTextCollectorTask?module=themes/mytheme to create it for your theme
943: [18:24:31] <greseky> yes, I am using theme
944: [18:24:39] <greseky> so need use 2nd option
945: [18:24:46] <Zauberfisch> well, then you probably use both
946: [18:24:54] <Zauberfisch> you have php in mysite and templates in theme
947: [18:24:58] <Zauberfisch> so you probably want to run both
948: [18:25:30] <greseky> need to try this, right now
949: [18:25:32] <greseky> :D
950: [18:26:18] <Zauberfisch> greseky: so, we have solved the static strings, but that does not help with texts entered in the CMS
951: [18:26:48] <Zauberfisch> for things from the CMS you need a translate module. "translatable" is the most popupar ( https://packagist.org/packages/silverstripe/translatable )
952: [18:27:02] <greseky> yes, i do have it
953: [18:27:27] <greseky> so i can create pa ge for one lan, and then I can create othe lang for same page
954: [18:28:23] <greseky> right?
955: [18:30:26] <Zauberfisch> yes
956: [18:30:34] <Zauberfisch> ok, there is 1 slight problem
957: [18:30:42] <Zauberfisch> well, its more an anoyance than a problem
958: [18:30:48] <greseky> yes?
959: [18:30:50] <Zauberfisch> the translatable module does not set i18n
960: [18:31:16] <Zauberfisch> so even if you are on translateable DE, i18n is still on the default value which in my case is EN
961: [18:31:30] <Zauberfisch> so you need to tell i18n to use the language from translatable
962: [18:32:16] <UndefinedOffset> ya thats one problem i solved in my translatable routing module, was bugging me lol
963: [18:33:00] <UndefinedOffset> technically you could probably get away with setting the locale for i18n to the translatable locale in your Page_Controller::init() i think >_>
964: [18:33:34] <Zauberfisch> this thing is pretty anoying, so I have created a snippet of defaults I set for all pages that use multiple languages
965: [18:33:38] <Zauberfisch> https://gist.github.com/Zauberfisch/9226142
966: [18:34:52] <greseky> wow :D that is very interesting, must say :D
967: [18:35:00] <greseky> you did it your own
968: [18:35:08] <Zauberfisch> yes
969: [18:35:21] <greseky> you really know what you are doing :)
970: [18:35:35] <greseky> I am newbie :/
971: [18:35:40] <greseky> LOl
972: [18:36:21] <greseky> need to try it, right now :)
973: [18:40:53] * micmania1 has joined #silverstripe
974: [18:41:16] <micmania1> WHY IS WORDPRESS SO MENTAL?! SOMEBODY KILL IT!!
975: [18:43:28] <greseky> Zauberfisch: i put extension php file in ..\mysite\code\ext
976: [18:43:41] <greseky> in ext folder
977: [18:43:49] <greseky> this shouldnt be a problem, right?
978: [18:44:40] <Zauberfisch> micmania1: mental?
979: [18:45:01] <Zauberfisch> greseky: no, location of the file does not matter, as long as its in a silverstripe module folder
980: [18:45:17] <greseky> OK
981: [18:45:20] <greseky> thanks
982: [18:45:32] <Zauberfisch> (to clarify: anything that has a _config folder or a _config.php is a module. mysite is just a special module)
983: [18:46:12] <greseky> aha :) goog to remeber
984: [18:46:17] <micmania1> Zauberfisch: yeah, its templating system is stupid and its docs are a joke.
985: [18:46:30] <greseky> ha ha
986: [18:46:50] <Zauberfisch> ah, now I see what you mean
987: [18:46:56] <micmania1> The best part is its not something i'm struggling with. I perfectly understand it, I just can't believe what i'm reading at times.
988: [18:46:58] <Zauberfisch> i was not aware the word "mental" can also mean crazy
989: [18:47:19] <greseky> LOL, you are funny
990: [18:47:50] <greseky> ok, I am going to try if this works
991: [18:48:00] <micmania1> I just read "Pages are not posts" - if you know wp at all you'll know that pages are definitely posts. They are literally represented by the WP_Post class.
992: [18:48:14] <micmania1> just like posts!!!
993: [18:48:47] <micmania1> also: the_title() and the_content() are built in wordpress template tags - they're not template tags. They're PHP functions!!
994: [18:48:55] <Zauberfisch> well, to be fair, its not like the silverstripe docs are any less a funny in a bad way
995: [18:49:19] <Zauberfisch> -a
996: [18:49:33] <greseky> i think all docs are a bit funny :)
997: [18:49:37] <micmania1> Its hilarious. They try to make things sound way more advanced than they actually are.
998: [18:50:37] <greseky> ok,,i put <%t News.News %> and if I run /dev/tasks/i18nTextCollectorTask?module=themes/mytheme to create it for your theme .. then lang file should be created?
999: [18:51:42] <greseky> I want to have News.News -> News for eng, and Novice on slo lang page
1000: [18:51:53] <greseky> this is string translation
1001: [18:53:09] <Zauberfisch> <%t News.News 'News' %>
1002: [18:53:40] <Zauberfisch> <%t TranslationGroup.Key 'Default value' %>
1003: [18:54:00] <Zauberfisch> for TranslationGroup you would usually use the class name or the file name or something
1004: [18:54:09] <Zauberfisch> Key is, well the key
1005: [18:54:25] <greseky> ok, get it :)
1006: [18:54:28] <Zauberfisch> and default value is what will be used if no translation is found (and used to create the lang files)
1007: [18:54:33] <greseky> thanks
1008: [18:54:56] <greseky> I will try it
1009: [19:00:31] <greseky> so, in si.yml i put eg $lang['si_SI']['News']['News'] = 'Novice';
1010: [19:01:06] <greseky> or $lang['si_SI']['News.News'] = 'Novice';
1011: [19:05:14] * WilsonS quit (Ping timeout: 245 seconds)
1012: [19:07:29] <greseky> oh, or i need to put it in that format:
1013: [19:07:32] <greseky> i18n: common_languages: de_CGN: name: German (Cologne) native: Kölsch ...
1014: [19:07:42] <greseky> just example
1015: [19:09:39] <Zauberfisch> woot?
1016: [19:09:43] <Zauberfisch> $lang?
1017: [19:09:44] <Zauberfisch> no
1018: [19:09:58] <Zauberfisch> yes
1019: [19:10:05] <Zauberfisch> yml not phpp
1020: [19:10:25] <Zauberfisch> greseky: make sure to be careful with spaces there
1021: [19:10:33] <Zauberfisch> in yml spaces are syntax
1022: [19:10:51] <greseky> ok :)
1023: [19:10:52] <Zauberfisch> you can use what ever indentation you want, just make sure you always use the same one
1024: [19:10:58] <Zauberfisch> a good recomentation is "2 spaces"
1025: [19:11:02] <greseky> just spaces
1026: [19:11:02] <Zauberfisch> no tabs
1027: [19:11:52] <greseky> I put i18n: common_languages: en: News.News: News :)
1028: [19:11:58] <greseky> in en.yml
1029: [19:12:04] <greseky> is this ok?
1030: [19:12:26] <greseky> I am total newbie for this :)
1031: [19:13:35] <Zauberfisch> here an example: https://github.com/silverstripe/silverstripe-framework/blob/3.1/lang/de.yml
1032: [19:14:15] <greseky> that looks better :)
1033: [19:14:32] <Zauberfisch> so yours should look like this:
1034: [19:14:45] <Zauberfisch> actually
1035: [19:14:48] <Zauberfisch> wait what?
1036: [19:14:56] <Zauberfisch> i18n: common_languages: ?
1037: [19:15:10] <Zauberfisch> that should not be in your lang files
1038: [19:15:34] <Zauberfisch> i18n.common_languages is something different, and has to be set in a config yml, not a translation yml
1039: [19:15:43] <Zauberfisch> but I don't think you need to set it
1040: [19:15:48] <Zauberfisch> all you need is the language ymls
1041: [19:21:11] * r3v3rb has joined #silverstripe
1042: [19:21:15] <r3v3rb> helllo
1043: [19:22:03] <r3v3rb> whats the best way to json encode a response from php back to a jquery $post call?
1044: [19:22:17] <r3v3rb> the PHP being a datalist from a ::get
1045: [19:23:09] <Zauberfisch> I would only expose the information you need to
1046: [19:23:10] <Zauberfisch> so:
1047: [19:23:20] <Zauberfisch> $data = array();
1048: [19:24:11] <Zauberfisch> foreach(Foo::get() as $item) { $data[] = array('Title' => $item->Title, 'SomeField' => $item->SomeField); }
1049: [19:24:27] <Zauberfisch> $json = Convert::array2json($data);
1050: [19:24:45] <r3v3rb> Zauberfisch, thats perfect thanks
1051: [19:25:17] <r3v3rb> hang on it's late in austria - how come you are still awake and in the channel! ;)
1052: [19:25:35] <Zauberfisch> it actually isn't that late, 22:25
1053: [19:25:46] <r3v3rb> god I must be old that's late to me!
1054: [19:25:51] <Zauberfisch> np
1055: [19:26:00] <Zauberfisch> :D
1056: [19:26:12] <Zauberfisch> well, I have a pretty weird sleeping rythm
1057: [19:26:21] <r3v3rb> i'll be fast asleep before then, just finishing up this little ajax postcode lookup for a friends site then I am done
1058: [19:26:25] <Zauberfisch> I do prefer to sleep during the day
1059: [19:26:51] <r3v3rb> Zauberfisch me too, but my children and their school friends think its a bit weird
1060: [19:27:08] <Zauberfisch> good thing I don't have children then
1061: [19:27:13] <r3v3rb> i was always a night owl, until I had children
1062: [19:28:54] <Zauberfisch> r3v3rb: show your kids WOW or some other game of that league, and they will stay up with you all night
1063: [19:29:01] <Zauberfisch> also solves the "friends of my kids" problem
1064: [19:29:02] <Zauberfisch> :P
1065: [19:29:08] <micmania1> r3v3rb: Zauberfisch doesn't sleep ^^^
1066: [19:30:02] <Zauberfisch> hold on
1067: [19:30:10] <Zauberfisch> its actually 21:30
1068: [19:30:13] <Zauberfisch> weird
1069: [19:30:22] <Zauberfisch> the clock in this VM is 1h off
1070: [19:30:28] <Zauberfisch> bloody timezones ...
1071: [19:31:26] <r3v3rb> Zauberfisch my children aren't old enough for WOW just yet - only 10 and 7...
1072: [19:33:57] <Zauberfisch> hmmm
1073: [19:34:56] <Zauberfisch> woot, there is already a new WOW expansion
1074: [19:36:17] <Zauberfisch> great, now they started selling levels for money
1075: [19:37:16] * qlex has joined #silverstripe
1076: [19:39:52] <Zauberfisch> another once great game going to shit
1077: [19:45:55] * qlex has left #silverstripe
1078: [19:56:20] <greseky> Zauberfisch: string translations works like a charm :) thanks
1079: [19:56:30] <Zauberfisch> np
1080: [19:56:59] <greseky> have another chalange for you :)
1081: [19:57:43] <greseky> 2 lang site, default is slovenian, (si), and when you fo to www.domain , slo home page is shown
1082: [19:58:20] <greseky> if you type www.domain/si is also slo home
1083: [19:58:36] <greseky> but for enflish you always need to have en prefix in url
1084: [19:59:14] <Zauberfisch> so you want urls like domain.com/en/somepage
1085: [19:59:22] <greseky> yes
1086: [19:59:25] <Zauberfisch> and domain.com/si/somepage
1087: [19:59:30] <greseky> yes
1088: [19:59:35] <Zauberfisch> well, the translatable module does not work that way
1089: [19:59:43] <Zauberfisch> it gives each page a new url segment
1090: [20:00:09] <Zauberfisch> so somepage might be: domain.com/somepage
1091: [20:00:36] <greseky> for news it works just fine
1092: [20:00:45] <greseky> domain.si/novice
1093: [20:01:08] <greseky> sorry
1094: [20:01:11] <greseky> domain.si/si/novice
1095: [20:01:19] <greseky> domain.si/en/news
1096: [20:01:29] <Zauberfisch> and in si it will automaticly be domain.com/somepage-si but you can change that, eg to niektory-page
1097: [20:01:29] <greseky> this is OK, translatable works
1098: [20:01:55] <Zauberfisch> or a german example:
1099: [20:02:01] <Zauberfisch> domain.com/home
1100: [20:02:04] <Zauberfisch> and in german its:
1101: [20:02:08] <Zauberfisch> domain.com/startseite
1102: [20:02:33] <Zauberfisch> domain.com/about-us in german is domain.com/ueber-uns
1103: [20:02:55] <greseky> I understand what you mean
1104: [20:02:56] <Zauberfisch> so well, some people don't like that, and I can see why /de/ is being prefered
1105: [20:03:06] <Zauberfisch> but thats not built in in translatable
1106: [20:03:21] <greseky> yes it is anoying, but this is how they want :)
1107: [20:03:32] <Zauberfisch> there is a module that promisses to provide that, but I have never tried it. so can't say how good it is
1108: [20:03:47] <greseky> well, works for me everywhere, but not for home
1109: [20:03:48] * UndefinedOffset quit (Read error: Connection reset by peer)
1110: [20:04:01] <Zauberfisch> ah, so you already have https://github.com/Martimiz/silverstripe-languageprefix ?
1111: [20:04:22] <greseky> nope
1112: [20:05:05] <Zauberfisch> anyway, I am going for a walk
1113: [20:05:11] <greseky> I have pageRedirect si
1114: [20:05:27] <greseky> which redirects to slo HomePage without Home UrlSegment
1115: [20:05:45] <greseky> ok, thanks for everything
1116: [20:05:48] <greseky> :D
1117: [20:05:55] <greseky> you helped me a lot!
1118: [20:06:13] <Zauberfisch> no idea about the /en/ thing, sorry
1119: [20:06:14] <Zauberfisch> no
1120: [20:06:19] <Zauberfisch> np
1121: [20:13:44] <r3v3rb> gresky you need the language prefix module I built www.osetbikes.com using an older version of it - it takes a bit of setting up but is worth it in the long run
1122: [20:19:19] <r3v3rb> right time to sleep
1123: [20:20:03] * Liquide quit ()
1124: [20:27:30] * anselmdk quit (Quit: anselmdk)
1125: [20:28:25] * r3v3rb quit (Ping timeout: 255 seconds)
1126: [20:55:50] * UncleCheese has joined #silverstripe
1127: [21:06:53] * UncleCheese quit (Quit: UncleCheese)
1128: [21:07:52] <greseky> hey guys, how to create a page (folder) and this folder does not have urlSegment... i need this so separate special pages, and those pages not to gave urlSegment of this folder in url
1129: [21:08:22] <greseky> omg, typo
1130: [21:08:52] <simon_w> greseky, you can't
1131: [21:08:55] <greseky> those special pages are under folder
1132: [21:09:22] <greseky> then how can i separate some pages in other container
1133: [21:09:35] <greseky> without effect on url
1134: [21:10:05] <simon_w> greseky, you either have all pages include the url of the parent page or none. You can't have that behaviour selectively
1135: [21:10:37] <greseky> hmm, but that feature would be nice :)
1136: [21:10:56] <greseky> then there is no way to achieve this?
1137: [21:12:01] <simon_w> Correct
1138: [21:13:10] <greseky> I guess then I will have special pages in the same folder than other ussual pages
1139: [21:15:59] <greseky> ok, how to get ID of 2nd level regardless a level that current page is?
1140: [21:17:04] <greseky> o, I see, that is Level(2)
1141: [21:18:56] <greseky> how to get which locale current page is?
1142: [21:19:17] <greseky> let say it is en_US, how to get just 'en'?
1143: [21:20:32] <greseky> to get 'en_US' i use $ContentLocale
1144: [21:20:53] <greseky> but just to get 'en'?
1145: [21:31:13] * DesignerX quit (Read error: Connection reset by peer)
1146: [21:31:31] * DesignerX has joined #silverstripe
1147: [21:39:20] <catcher> Any way to hide an assets subdirectory from the CMS?
1148: [21:40:02] <catcher> dot prefix seems to work, any problem with that?
1149: [22:09:10] * UncleCheese has joined #silverstripe
1150: [22:13:57] * UncleCheese quit (Ping timeout: 268 seconds)
1151: [22:31:35] * lesabre21 has joined #silverstripe
1152: [22:36:25] <Zauberfisch> greseky: look at my snippets
1153: [22:36:35] <Zauberfisch> there is some stuff inside that should be a good example
1154: [22:36:59] <Zauberfisch> https://gist.github.com/Zauberfisch/9226142#file-translatablecontrollerextension-php-L45
1155: [22:37:15] <Zauberfisch> 'de' == i18n::get_lang_from_locale('de_DE');
1156: [22:37:19] <Zauberfisch> 'de' == i18n::get_lang_from_locale('de_AT');
1157: [22:38:22] <greseky> very nice :)
1158: [22:38:35] <Zauberfisch> there is some more usefull stuff at line 65
1159: [22:38:36] <Zauberfisch> https://gist.github.com/Zauberfisch/9226142#file-translatablecontrollerextension-php-L65
1160: [22:39:55] <greseky> useful
1161: [22:40:44] <greseky> another thing: how to check if page is child or some segment?
1162: [22:41:16] <greseky> <% if Level(2) && LinkOrCurrent = Level(2) %>$Level(2).ID<% else %>''<% end_if %>
1163: [22:41:46] <greseky> want to check if current page is level 2 or bellow, if so, then output ID of level 2
1164: [22:41:55] <greseky> 2 or more :)
1165: [22:41:58] <greseky> 2,3,4,5
1166: [22:44:59] * catcher quit (Quit: Leaving)
1167: [22:50:54] <simon_w> greseky, <% if $Level(2) %> will do it. Level(2) only returns something if there's currently something in the second level
1168: [23:04:06] * Motoservo_ has joined #silverstripe
1169: [23:04:11] * Motoservo quit (Read error: Connection reset by peer)
1170: [23:04:11] * Motoservo_ is now known as Motoservo
1171: [23:06:31] * joelpittet has joined #silverstripe
1172: [23:23:51] <lesabre21> Hi all, if you're upgrading to a new version, which folders are considered the custom folders and which are the system folders. In other words which folders should be left in the root and which should be removed?
1173: [23:23:54] * micmania1 quit (Ping timeout: 240 seconds)
1174: [23:47:30] <simon_w> lesabre21, you replace the cms and framework folders with the newer ones
1175: [23:59:53] <lesabre21> awesome! thank you!

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