#silverstripe IRC Log

IRC log for 30 June 2015

All timestamps are in UTC.

1: [00:00:03] * Azure has joined #silverstripe
2: [00:00:28] <Colin[pi]> ugh I need a new mouse
3: [00:00:41] <irogue_> squeak squeak
4: [00:02:09] * Azure quit (Max SendQ exceeded)
5: [00:02:26] <Colin[pi]> irogue_: it's misregistering single clicks as double
6: [00:02:29] <Colin[pi]> rage inducing
7: [00:02:32] * UncleChe_ has joined #silverstripe
8: [00:02:38] <irogue_> ah, I had a mouse start doing that
9: [00:02:43] <Colin[pi]> SO ANNOY
10: [00:03:54] <simon_w|air> None of my trackpads have ever done that :p
11: [00:04:14] * Azure has joined #silverstripe
12: [00:04:27] <Colin[pi]> simon_w: yeah but eeuw, trackpad
13: [00:06:40] * Azure quit (Max SendQ exceeded)
14: [00:07:38] * spronk has joined #silverstripe
15: [00:09:54] * Azure has joined #silverstripe
16: [00:12:24] * novaweb quit (Remote host closed the connection)
17: [00:13:20] * novaweb has joined #silverstripe
18: [00:15:15] * novaweb quit (Remote host closed the connection)
19: [00:15:52] * Jakx has joined #silverstripe
20: [00:16:35] * novaweb has joined #silverstripe
21: [00:18:13] <Jakx> is the possible to handle shortcodes inside shortcodes?
22: [00:18:28] <Jakx> e.g a [slider] with [slide]'s
23: [00:19:08] <simon_w|air> Nope
24: [00:19:45] <Colin[pi]> Jakx: I've always done sliders/carousels with a dedicated DataObject structure
25: [00:20:17] <Vedran__> So I have a 'Project' Class that has a 'has_one'. I want to reference the Title of the HasOne and not the ID in ss template. How is it possible to do this? http://www.sspaste.com/paste/show/5591e07dd8d1c
26: [00:20:59] <Colin[pi]> Vedran__: $HasOne.Title ?
27: [00:21:43] <Vedran__> ffs... I dont $ProjectStatusID.Title and it failed
28: [00:21:45] <Vedran__> *sigh*
29: [00:21:48] <Vedran__> thanks Colin[pi]
30: [00:22:48] * novaweb quit (Remote host closed the connection)
31: [00:25:17] <adrexia> Jakx: I've always done sliders/carousels with a dedicated DataObject structure
32: [00:25:23] <adrexia> yep - me too ^
33: [00:25:39] <adrexia> but you could get pretty complicated by combining the two
34: [00:26:05] <adrexia> and then referencing a slider instance from the shortcode
35: [00:26:17] <adrexia> but, not sure on the value there :D
36: [00:27:06] <irogue_> we do a combination for some things - modeladmin to edit the DO structure and then a shortcode to insert it into the page wherever it belongs
37: [00:27:36] <adrexia> Also - if you are using shortcodes, this module is awesome: https://github.com/sheadawson/silverstripe-shortcodable
38: [00:27:54] <adrexia> irogue_ yep - that's how I use them too
39: [00:29:26] <Jakx> thx simon_w|air & Colin[pi]
40: [00:30:06] * glenn-bautista quit (Quit: Leaving.)
41: [00:32:36] * Azure quit (Max SendQ exceeded)
42: [00:34:07] * Azure has joined #silverstripe
43: [00:39:23] <hamror> guys https://github.com/ashamis/Cowsay
44: [00:41:52] * Stomach quit (Quit: zzz)
45: [00:42:08] * spronk quit (Quit: bleep bleep bloop bloop)
46: [00:44:39] <adrexia> it's... a cow?
47: [00:44:52] <Zauberfisch> wow, it preserves whitespaces?
48: [00:45:15] <Zauberfisch> my cow just trims them all and makes it one sauce of words without format
49: [00:45:20] * Jakx has left #silverstripe
50: [00:45:58] <Zauberfisch> ah, wait. I was not aware there is an -n parameter
51: [00:45:58] <Zauberfisch> nvm
52: [00:46:07] <adrexia> this is the weirdest meme I have seen in like, a week
53: [00:46:17] <Zauberfisch> should have read the manual :/
54: [00:47:19] <Zauberfisch> _____________________________________
55: [00:47:19] <Zauberfisch> Then your week must have been quiet \
56: [00:47:19] <Zauberfisch> \ boring /
57: [00:47:19] <Zauberfisch> -------------------------------------
58: [00:47:19] <Zauberfisch> \ ^__^
59: [00:47:21] <Zauberfisch> \ (oo)\_______
60: [00:47:24] <Zauberfisch> (__)\ )\/\
61: [00:47:26] <Zauberfisch> ||----w |
62: [00:47:29] <Zauberfisch> || ||
63: [00:48:02] <hamror> i wrote a bananasay that i've been using pretty much all the time
64: [00:48:06] * glenn-bautista has joined #silverstripe
65: [00:48:20] <hamror> http://www.reddit.com/r/cowsay/comments/3bkpwv/any_love_for_bananasay/
66: [00:49:06] <Zauberfisch> haha
67: [00:49:07] <Zauberfisch> brilliant
68: [00:49:34] <Zauberfisch> hamror: but where is the deb package? D:
69: [00:49:52] <hamror> adrexia: cowsay is pretty old linux
70: [00:49:57] <hamror> like mid 90s
71: [00:50:17] <irogue_> yeah I remember being obsessed with it in my early Mandrake Linux days
72: [00:51:16] <hamror> Zauberfisch: heres my tubby cow and banana file https://gist.github.com/jotham/3e0897d8acf4a513748a
73: [00:51:24] <Zauberfisch> but it still cheers me up everytime. just like sl
74: [00:51:26] <hamror> cowsay -f cowfile message
75: [00:51:35] <hamror> ponysay is pretty great too
76: [00:51:48] <hamror> i made a slot machine using ponysay and tmux the other day
77: [00:52:15] * veb_ quit (Quit: veb-irc: &)
78: [00:52:33] * Azure quit (Read error: Connection reset by peer)
79: [00:52:49] <Zauberfisch> lol
80: [00:52:56] <Zauberfisch> didn't know ponysay
81: [00:53:14] * Azure has joined #silverstripe
82: [00:53:20] * adrexia nods
83: [00:54:14] <adrexia> yeah, it looks like an older meme. If it was modern, it'd be a goat
84: [00:54:47] <hamror> irony, given that pan/satan/the goat is one of the oldest memes
85: [00:54:58] <irogue_> hmmm, lunchtime
86: [00:56:28] <Zauberfisch> parsing xml
87: [00:56:35] <Zauberfisch> what would you use?
88: [00:56:49] <irogue_> in php?
89: [00:56:54] <Zauberfisch> yes
90: [00:56:57] <Zauberfisch> I don't want sax
91: [00:57:22] <Zauberfisch> but simplexml_load_string doesn't work because it ignores some attributes
92: [00:57:40] <Zauberfisch> should I use that DOM thingy?
93: [00:58:00] <irogue_> does the xml have multiple namespaces?
94: [00:58:39] <Zauberfisch> no
95: [01:00:19] <hamror> if another junior web dev that has come from wordpress tells me or one of my clients that we should 'just use bootstrap' instead of SS's scaffolding and CMS admin i'm going to shoot them with a strongly worded gun
96: [01:00:45] <Zauberfisch> haha
97: [01:00:47] <Ryan-Toast> hamror: but have you considered using bootstrap?
98: [01:00:51] <Zauberfisch> I feel your pain
99: [01:00:52] <irogue_> Zauberfisch: if simplexml is missing stuff, and you don't want SAX, then I think DOMXPath is your only option
100: [01:01:17] <hamror> i like bootstrap, but suggesting it when you get free CRUD (conditions may apply*) with SS, is ridiculous
101: [01:01:17] <Zauberfisch> irogue_: well, I am fine with sax in the background, as long as a lib wraps around it and hides it :D
102: [01:01:32] <Ryan-Toast> hamror: I was just taking the piss :P
103: [01:01:43] * Stomach has joined #silverstripe
104: [01:02:27] <irogue_> Zauberfisch: XMLReader is the least fussy. i.e. if the XML is technically invalid then SimpleXML and DOM won't let you access the invalid bits, whereas XMLReader will
105: [01:03:08] <irogue_> so if you've got an attribute SimpleXML won't let you access, it could be because it doesn't match the schema, in which case only XMLReader will see it
106: [01:03:36] <hamror> Ryan-Toast: i had a russian girlfriend once that would break down in hysterics whenever i used that idiom "WHERE ARE YOU TAKING IT MAN, WHERE?"
107: [01:03:47] * adrexia quit (Ping timeout: 272 seconds)
108: [01:03:52] <Ryan-Toast> hamror: :D
109: [01:04:21] <Vedran__> is there a way to make silverstripe save sitetree after drag/drop? (as opposed to saving each page; when re-ordering)
110: [01:04:31] <Zauberfisch> irogue_: that is a good thought. maybe it actually is an issue in the xml. I'll check
111: [01:04:51] <irogue_> Vedran__: probably possible, but considering how shitty the drag+drop is at the moment, could be dangerous
112: [01:05:57] <irogue_> ok time to go figure out what to get for lunch around here
113: [01:13:15] <Colin[pi]> ah I love those emails where clients think they know how to website better than me
114: [01:14:09] <Colin[pi]> how do I politely put it... "o, that suggestion is ridiculous, and no one would ever think that was a good idea"
115: [01:14:11] <Colin[pi]> *no
116: [01:14:32] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
117: [01:14:51] <Colin[pi]> "your suggestion is bad and you should feel bad"
118: [01:15:15] <nikob> Just 'mark as spam'
119: [01:15:18] <nikob> problem solved
120: [01:17:32] <Vedran__> Whats the best way to have different headers based on the 'Class' ?
121: [01:17:59] <Vedran__> I had <% if ($ClassName == 'Something') %> inside Page.ss
122: [01:18:45] <Vedran__> but that caused a php error :/
123: [01:20:49] <Ryan-Toast> Vedran__: single =
124: [01:20:54] <Ryan-Toast> not double
125: [01:21:02] <Vedran__> Ryan-Toast: that wont set it?
126: [01:21:50] <Ryan-Toast> Vedran__: Not in a template, no.
127: [01:22:10] <Ryan-Toast> just do <% if $ClassName = ‘foo’ %>
128: [01:22:46] * UncleCheese has joined #silverstripe
129: [01:23:40] <Vedran__> Ryan-Toast: omitting the () worked. Cheers :)
130: [01:23:45] * veb has joined #silverstripe
131: [01:23:58] * veb quit (Client Quit)
132: [01:24:54] <Vedran__> do sub pages put the parent class inside $ClassName?
133: [01:25:23] <Vedran__> nvm :)
134: [01:28:58] <Ryan-Toast> Vedran__: I would recommend not checking against classes to determain your template.
135: [01:29:21] <Ryan-Toast> Set your checks in the controller and use renderWith
136: [01:31:03] * novaweb has joined #silverstripe
137: [01:31:04] <Vedran__> Ryan-Toast: that seems a better way to do it
138: [01:31:19] <Ryan-Toast> Vedran__: The less complexity in your views the better :)
139: [01:31:33] * veb has joined #silverstripe
140: [01:32:58] <Vedran__> Renderwidth will use /templates/Foo.ss
141: [01:33:00] <Vedran__> ?
142: [01:33:47] <Ryan-Toast> Vedran__: example: https://github.com/Rhym/silverstripe-boilerplate/blob/master/code/extensions/PageController.php#L54
143: [01:35:06] * Sticks has joined #silverstripe
144: [01:35:56] * Stomach quit (Quit: zzz)
145: [01:37:05] * Stomach has joined #silverstripe
146: [01:40:48] * Tanger has joined #silverstripe
147: [01:40:59] * benjhocking1 has joined #silverstripe
148: [01:43:00] * benjhocking quit (Ping timeout: 252 seconds)
149: [01:46:46] <Ryan-Toast> Stomach: any idea whay setting the need_permission: true in a yml won’t hide the PageType from the add list? https://github.com/silverstripe/silverstripe-cms/blob/3.2/code/controllers/CMSMain.php#L505
150: [01:48:27] * adrexia has joined #silverstripe
151: [01:50:00] <Stomach> $this->can() might be returning true
152: [01:50:17] * stecman quit (Quit: This computer has gone to sleep)
153: [01:50:28] <Ryan-Toast> Stomach: shouldn’t matter since it’s an && though?
154: [01:50:40] <Stomach> needs both
155: [01:50:45] <Stomach> so if it returns true
156: [01:50:49] <Stomach> that condition fails
157: [01:50:53] <Stomach> doesnt go to the continue
158: [01:51:34] <Ryan-Toast> Hmm.
159: [01:51:49] <Ryan-Toast> Anyone know a good way of hiding page types from the config then?
160: [01:51:57] <Ryan-Toast> with the config**
161: [01:52:58] * UncleChe_ quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
162: [01:56:43] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
163: [01:59:23] <irogue_> it is seriously fucky what people think "or near offer" means
164: [01:59:41] <ss23> $100,000? Best I can do is $60k.
165: [01:59:46] <irogue_> close
166: [02:00:06] <irogue_> $1800, "I'll give you $1000"
167: [02:01:11] <Ryan-Toast> ss23: what’re you selling for $100,000?
168: [02:02:18] * stecman has joined #silverstripe
169: [02:02:28] <Ryan-Toast> ss23: is it drugs?
170: [02:03:26] * Stomach quit (Quit: zzz)
171: [02:04:00] <Ryan-Toast> it’s drugs.
172: [02:06:09] <adrexia> those are some expensive drugs
173: [02:06:25] <adrexia> obviously a supplier
174: [02:10:37] * micmania1 quit (Quit: micmania1)
175: [02:12:52] <Ryan-Toast> If it was cocaine that would be about the size of a brick?
176: [02:13:06] <Ryan-Toast> … I assume
177: [02:14:28] * UncleCheese has joined #silverstripe
178: [02:14:54] * UncleChe_ has joined #silverstripe
179: [02:19:00] <Colin[pi]> irogue_: I have someone trying to sell a domain to me for $3,950
180: [02:19:06] <Colin[pi]> irogue_: I should offer him 50c
181: [02:20:03] * glenn-bautista quit (Quit: Leaving.)
182: [02:22:04] * Tanger quit (Quit: Tanger)
183: [02:24:46] * Stomach has joined #silverstripe
184: [02:29:13] * Stomach quit (Client Quit)
185: [02:29:28] * Stomach has joined #silverstripe
186: [02:32:13] <hamror> hey guys with this button, can i make it read something else, i don't mind changing the name representation in ClientAudienceFilter DO http://i.imgur.com/LPbTvan.png
187: [02:33:43] <Ryan-Toast> hamror: plural_name and singular_name in your dataobject sets that
188: [02:34:02] <Ryan-Toast> private static $plural_name = “foo”
189: [02:34:36] * micmania1 has joined #silverstripe
190: [02:34:54] <hamror> cheers mate
191: [02:34:58] <ss23> Ryan-Toast: >i assume
192: [02:34:59] <ss23> DRUGGIE
193: [02:35:32] <Ryan-Toast> ss23: http://i.imgur.com/e4kFS.gif
194: [02:36:27] <Colin[pi]> http://i.imgur.com/HOLXI.gif
195: [02:37:55] <ss23> holy shit that banding, Ryan-Toast
196: [02:38:43] <Colin[pi]> http://i.imgur.com/wAuwF.gif
197: [02:39:09] <Ryan-Toast> ss23: old school gifs
198: [02:40:11] * Tanger has joined #silverstripe
199: [02:41:35] <Colin[pi]> http://i.imgur.com/fqd9uUj.gif
200: [02:42:56] * veb quit (Quit: veb-irc: &)
201: [02:43:27] <hamror> hey for a few days whenever i google SS manual i get version 4.0 of the manual on google *and* the page doesn't load properly (i.e. http://i.imgur.com/tvvygzp.png)
202: [02:43:40] <hamror> so i have to manually dig around to find the non v4 version, and my understanding is v4 is like a year away?
203: [02:43:42] <Ryan-Toast> hamror: change to http
204: [02:43:44] <Colin[pi]> hamror: yep it's known
205: [02:43:45] <hamror> seems pretty piss poor
206: [02:43:50] <Colin[pi]> ^ http instead of https
207: [02:43:57] <Ryan-Toast> it’s an issue since they swapped to https
208: [02:43:59] <hamror> it's not even a useful version of the manual
209: [02:44:02] <hamror> is the real issue
210: [02:44:06] <hamror> i assume it affects a lot of people
211: [02:44:14] <Ryan-Toast> it does,
212: [02:44:30] <Ryan-Toast> ss23 is in charge of the docs, you should tell him.
213: [02:44:35] <hamror> also has anyone successfully made a chrome search-engine term for the API manual
214: [02:44:42] <Colin[pi]> haha ss23 then delegated to UncleCheese
215: [02:44:48] <hamror> i wanted ss<tab> to give me the api search
216: [02:44:52] <hamror> but it's all over the show
217: [02:45:08] * veb has joined #silverstripe
218: [02:49:26] <ss23> :(
219: [02:49:44] <ss23> hamror: PULL REQUESTS WELCOME BRO
220: [02:49:53] <ss23> hamror: it's all opensource
221: [02:49:58] <hamror> thanks mate
222: [02:56:44] * r_hector has joined #silverstripe
223: [03:07:31] * mahfuz quit (Ping timeout: 246 seconds)
224: [03:07:46] * mahfuz has joined #silverstripe
225: [03:09:29] * glenn-bautista has joined #silverstripe
226: [03:10:15] * DanaeNZ quit (Quit: DanaeNZ)
227: [03:11:48] * ss-helper quit (Remote host closed the connection)
228: [03:12:01] * ss-helper has joined #silverstripe
229: [03:18:52] * Hailwood has joined #silverstripe
230: [03:22:16] * spronk has joined #silverstripe
231: [03:25:31] <UncleCheese> Vodafail trying to sell me on 100mbs.. i'll never see that, will I?
232: [03:28:11] <Ryan-Toast> UncleCheese: depends when you live.
233: [03:28:15] <UncleChe_> Kdal
234: [03:28:22] <Ryan-Toast> Dunno when that is :P
235: [03:28:27] <Ryan-Toast> where
236: [03:28:29] <UncleChe_> wgt
237: [03:28:38] * Ryan-Toast only knwow Auckland.
238: [03:28:56] <simon_w|air> UncleCheese, I saw it in Karori
239: [03:31:40] <UncleChe_> oooh
240: [03:32:17] <irogue_> simon_w|air: cable's got pretty bad since the vodafone takeover
241: [03:32:34] <simon_w|air> irogue_, I didn't get 100mb until then
242: [03:32:35] <irogue_> still better than DSL, but far worse than UFB
243: [03:33:12] <Ryan-Toast> Can you not edit pages in a ModelAdmin?
244: [03:33:20] <Ryan-Toast> in a gridfield in model admin that is.
245: [03:33:25] <UncleChe_> yes... talk to stomach
246: [03:33:34] <Stomach> hi
247: [03:33:49] <Ryan-Toast> I just have a normal ModelAdmin, and everything works fine… except when I save it doesn’t write to the db.
248: [03:33:49] <irogue_> simon_w|air: latest truenet was showing ~50Mbps on the 100Mbps plans
249: [03:34:40] <Ryan-Toast> Stomach: anything you have to do specially to editpages in a ModelAdmin?
250: [03:35:11] <Stomach> YOU LINKED TO IT IN YOUR TALK
251: [03:35:13] <Stomach> >_<
252: [03:35:14] <Stomach> https://github.com/Little-Giant/silverstripe-catalogmanager
253: [03:35:27] <Ryan-Toast> Stomach: yeah, but I didn’t know it wouldn’t actually work with that biz
254: [03:35:47] <Stomach> I dont just build shit for giggles :D
255: [03:36:29] <Ryan-Toast> Stomach: :P
256: [03:41:15] <Ryan-Toast> Stomach: perfect :)
257: [03:41:41] * DanaeNZ has joined #silverstripe
258: [03:43:00] <Stomach> hoorah
259: [03:43:40] <Ryan-Toast> Stomach: I notice that disabled the Export by default, can that be enbled via config? I don’t see it in the READEME
260: [03:44:12] <Stomach> dunnno
261: [03:44:19] <Ryan-Toast> lol
262: [03:44:21] <Ryan-Toast> Fark.
263: [03:44:41] <Ryan-Toast> I’ll try add it to the edit form
264: [03:45:13] * novaweb quit (Remote host closed the connection)
265: [03:45:50] <Ryan-Toast> Stomach: yarp, that works.
266: [03:46:25] <Stomach> yay
267: [03:46:33] * Shrike_Finland has joined #silverstripe
268: [03:49:37] * dllanos has joined #silverstripe
269: [03:51:02] <dllanos> Hello
270: [03:51:16] <Ryan-Toast> Hi
271: [03:51:29] <dllanos> I need a beginer help
272: [03:51:55] <Ryan-Toast> Okay
273: [03:52:00] <dllanos> I'm not a beginer developer, but yes a beginer on silverstriper
274: [03:52:15] <dllanos> *silverstripe
275: [03:52:31] <Ryan-Toast> You can just ask your question, man :)
276: [03:52:32] <dllanos> basically I'm trying to pass values from a controller to a view
277: [03:52:49] <dllanos> great, thank you
278: [03:53:07] <dllanos> well, I need to pass some values from a controller
279: [03:53:17] <dllanos> and render it itereting in the view
280: [03:53:26] <dllanos> but is not working
281: [03:53:42] <Ryan-Toast> dllanos !paste
282: [03:53:48] <Ryan-Toast> hmm
283: [03:53:53] <Ryan-Toast> helper not working.
284: [03:54:02] <Ryan-Toast> Chuck your code in a paste and link it, man.
285: [03:54:36] <dllanos> $array = new ArrayList(array( array('Name' => 'Ingo', 'ID' => 1), array('Name' => 'Sam', 'ID' => 2), array('Name' => 'Sean', 'ID' => 3) )); $list ['Result'] = $array; return $this->customise($data)->renderWith(array('Carrusel'));
286: [03:54:50] <Ryan-Toast> dllanos: http://www.sspaste.com/
287: [03:54:57] <dllanos> sorry , I will move there
288: [03:55:13] <DanaeNZ> oh looks like each item in your ArrayList should be an ArrayData object
289: [03:55:21] <DanaeNZ> but yeah paste in a thingee
290: [03:55:48] <Ryan-Toast> Stomach: the unpublish icon is fuzzy.
291: [03:56:46] <Ryan-Toast> looks oike it’s the framework one.
292: [03:56:49] <Ryan-Toast> WHOI DID THIS?
293: [03:57:01] <dllanos> http://www.sspaste.com/paste/show/5592138097113
294: [03:57:08] <dllanos> there is the code
295: [03:57:15] <dllanos> the action mthod index
296: [03:57:18] <dllanos> on my controller
297: [03:57:26] <Ryan-Toast> dllanos: like DnaeNZ said your arrays need to be ArrayData
298: [03:57:27] <dllanos> and the piece of code in the template
299: [03:57:29] <Ryan-Toast> instead of arrays
300: [03:58:22] <Ryan-Toast> dllanos: try something like this: https://github.com/Rhym/ss_snippets#array-list-loop
301: [03:58:23] <DanaeNZ> also $this->customise($data) should be $this->customise($list)
302: [03:58:45] <dllanos> I will check it then
303: [03:59:48] <dllanos> thank you very much so far Ryan, I will update you soon
304: [04:04:55] * sminnee_ quit (Remote host closed the connection)
305: [04:08:11] * sminnee has joined #silverstripe
306: [04:11:52] * chocolatemoose has joined #silverstripe
307: [04:13:07] <dllanos> @Ryan-Toast , its works with the arrayData
308: [04:13:13] <Ryan-Toast> dllanos: +1
309: [04:13:19] <dllanos> Thank you !
310: [04:13:28] <Ryan-Toast> dllanos: np, brobeans
311: [04:13:49] <dllanos> @DanaeNZ thank you !
312: [04:14:02] <DanaeNZ> > brobeans
313: [04:14:03] <DanaeNZ> heheehheh
314: [04:14:05] <DanaeNZ> that’s a good one
315: [04:14:33] * MichalKleiner_cz quit ()
316: [04:15:28] <dllanos> Now I will be around here :)
317: [04:15:55] <DanaeNZ> wilkommen
318: [04:17:47] <dllanos> gracias !
319: [04:18:29] * novaweb has joined #silverstripe
320: [04:24:01] <chocolatemoose> Is the colymba module the best way to add batch editing to gridfields?
321: [04:26:13] <irogue_> yep
322: [04:26:23] <chocolatemoose> cool, just wanted to double check
323: [04:27:45] <irogue_> a reference for good/safe modules to use, as discussed at the Auckland Meetup last week, is to see what the CWP Recipe uses
324: [04:27:55] <irogue_> https://gitlab.cwp.govt.nz/cwp/cwp-recipe-basic/blob/1.1.0/composer.json
325: [04:28:02] <irogue_> https://gitlab.cwp.govt.nz/cwp/cwp-recipe-blog/blob/master/composer.json
326: [04:28:12] <chocolatemoose> ah, perfect
327: [04:28:15] <chocolatemoose> cheers
328: [04:30:41] * Stomach quit (Quit: zzz)
329: [04:32:55] * Stomach has joined #silverstripe
330: [04:33:03] * MrGuits quit (Ping timeout: 246 seconds)
331: [04:34:26] <adrexia> irogue_:
332: [04:34:26] <adrexia> a reference for good/safe modules to use, as discussed at the Auckland Meetup last week, is to see what the CWP Recipe uses
333: [04:34:39] * Stomach quit (Client Quit)
334: [04:34:40] <adrexia> lol subsites ;)
335: [04:34:49] <adrexia> advanced workflow
336: [04:34:55] <adrexia> translatable
337: [04:34:57] <irogue_> adrexia: eh, they're both still the best at what they do
338: [04:35:01] <adrexia> but safe, yeah
339: [04:35:04] <irogue_> but only cos noone's made an alternative
340: [04:35:05] * Stomach has joined #silverstripe
341: [04:35:08] <adrexia> translatable isn;'t thoguh?
342: [04:35:26] <adrexia> multisites might be better than subsites?
343: [04:35:39] <adrexia> not sure - it only applies to the sitetree
344: [04:35:41] * UncleChe_ quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
345: [04:35:48] <adrexia> but its less confusing overall
346: [04:36:11] <adrexia> but agree - advanced workflow has no alternatives
347: [04:36:31] <adrexia> wouldn't that be a scary world.
348: [04:36:53] <irogue_> yeah, multisites doesn't really compare to subsites, though I agree multisites is a better implementation if you only need different SiteTrees
349: [04:38:01] <adrexia> it did compare sort of. Then we made subsites not as confusing as it was, and it turned out it could do more than it looked like it could. :D
350: [04:38:54] * novaweb quit (Remote host closed the connection)
351: [04:40:40] <adrexia> I really want to see github-esque collaborative workflows implemented in silverstripe, but I have nowhere near enough motivation to build it
352: [04:44:55] * UncleChe_ has joined #silverstripe
353: [04:46:27] * jghazally has joined #silverstripe
354: [04:48:30] <irogue_> iirc a complete re-do of workflow is on the roadmap
355: [04:49:26] * UncleChe_ quit (Ping timeout: 264 seconds)
356: [04:52:52] * mahfuz quit (Ping timeout: 246 seconds)
357: [04:54:05] * jghazally has left #silverstripe
358: [04:54:42] * adrexia nods
359: [04:54:56] <adrexia> It's pretty important to some people
360: [04:56:06] <adrexia> and there is nothing that frustrates me more than poor workflows
361: [05:00:16] * Stomach quit (Quit: zzz)
362: [05:01:03] * Stomach has joined #silverstripe
363: [05:01:35] * irogue_ quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
364: [05:06:16] * r_hector quit (Remote host closed the connection)
365: [05:06:52] * dllanos quit (Quit: Page closed)
366: [05:11:28] * Tanger quit (Ping timeout: 265 seconds)
367: [05:18:55] <chocolatemoose> not even slow internet?
368: [05:24:01] * Vedran__ quit (Ping timeout: 244 seconds)
369: [05:26:09] * Vedran__ has joined #silverstripe
370: [05:33:41] <hamror> so
371: [05:34:01] <hamror> we might need to hire someone to help me reskin cmsadmin to look like some fancy ass marketing platform UI
372: [05:34:07] <hamror> if anyone is up for that kind of work
373: [05:34:13] <hamror> i can lift the phps and the linuxes
374: [05:34:24] <hamror> if someone can lift the csses and pretty
375: [05:39:59] * Hailwood quit (Ping timeout: 248 seconds)
376: [05:41:13] * Stomach quit (Quit: zzz)
377: [05:42:27] * chocolatemoose quit (Quit: My M&Ms need me!)
378: [05:45:13] * irogue_ has joined #silverstripe
379: [05:45:19] * adrexia quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
380: [05:47:21] * Ryan-Toast quit (Quit: Ryan-Toast)
381: [05:48:33] * Stomach has joined #silverstripe
382: [05:49:35] * zlinux has joined #silverstripe
383: [05:49:39] * Stomach quit (Client Quit)
384: [05:49:46] * irogue_ quit (Ping timeout: 255 seconds)
385: [05:51:15] * DanaeNZ quit (Quit: DanaeNZ)
386: [05:56:03] * Shrike_Finland quit (Quit: Leaving.)
387: [06:01:10] * stecman quit (Quit: This computer has gone to sleep)
388: [06:05:33] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
389: [06:08:53] * frostfire64 has joined #silverstripe
390: [06:09:40] * spronk quit (Quit: I may need a longer sleep timer...)
391: [06:10:45] * glenn-bautista quit (Quit: Leaving.)
392: [06:12:53] * micmania1 quit (Quit: micmania1)
393: [06:16:43] * frostfire64 quit (Ping timeout: 244 seconds)
394: [06:17:03] * spronk has joined #silverstripe
395: [06:18:14] * Stomach has joined #silverstripe
396: [06:27:33] * Hailwood has joined #silverstripe
397: [06:28:19] * Mike123 has joined #silverstripe
398: [06:28:26] <Mike123> Morning
399: [06:30:36] * Stomach quit (Quit: zzz)
400: [06:32:04] * Colin[pi] quit (Ping timeout: 255 seconds)
401: [06:34:55] * hp101 quit (Ping timeout: 248 seconds)
402: [06:35:57] * hp101 has joined #silverstripe
403: [06:44:05] <Mike123> guys help please , now i have it on every projects http://snag.gy/i91fL.jpg , something must have changed , and i don't know how to fix this
404: [06:56:44] * frostfire64 has joined #silverstripe
405: [07:18:32] * Sticks quit (Quit: Leaving)
406: [07:26:07] <Vedran__> is there a video/tutorial explaining how renderwith works?
407: [07:30:45] <Mike123> Vedran , http://docs.silverstripe.org/en/3.1/developer_guides/templates/rendering_templates/
408: [07:32:45] * Vedran__ quit ()
409: [07:35:30] * spronk quit (Quit: I may need a longer sleep timer...)
410: [07:41:13] * Mike123 quit (Ping timeout: 246 seconds)
411: [07:42:07] * ss-helper quit (Remote host closed the connection)
412: [07:42:23] * ss-helper has joined #silverstripe
413: [07:44:38] * Robke has joined #silverstripe
414: [07:44:44] <Robke> hello
415: [07:45:19] <Robke> does anyone know where to fing ssDatepicker documentation?
416: [07:55:10] * Stomach has joined #silverstripe
417: [07:58:23] * veb quit (Quit: veb-irc: &)
418: [07:59:27] * Colin[pi] has joined #silverstripe
419: [08:00:41] * ffx2kx has joined #silverstripe
420: [08:00:48] <Robke> $(this).ssDatepicker({
421: [08:00:48] <Robke> //dateFormat: 'yy-mm-dd',
422: [08:00:49] <Robke> beforeShowDay: $.datepicker.noWeekends,
423: [08:00:49] <Robke> format: 'yy-mm-dd'
424: [08:00:49] <Robke> });
425: [08:01:10] <Robke> does anyone know why dateformat isnt like im requesting? :)
426: [08:02:04] * firefox2kx quit (Ping timeout: 255 seconds)
427: [08:03:19] * Stomach quit (Quit: zzz)
428: [08:05:30] * kinglozzer has joined #silverstripe
429: [08:06:16] * GioVdK has joined #silverstripe
430: [08:19:34] <Robke> kinglozzer, maybe you know how to change dateFormat to ssDatepicker? :)
431: [08:19:53] <Robke> because this code doesnt change it
432: [08:19:54] <Robke> $(this).ssDatepicker({
433: [08:19:54] <Robke> minDate: 0,
434: [08:19:54] <Robke> dateFormat: 'yy/mm/dd',
435: [08:19:54] <Robke> beforeShowDay: $.datepicker.noWeekends
436: [08:19:54] <Robke> });
437: [08:20:38] * adrexia has joined #silverstripe
438: [08:24:05] * veb has joined #silverstripe
439: [08:30:01] * ffx2kx quit (Ping timeout: 244 seconds)
440: [08:31:00] * benjhocking has joined #silverstripe
441: [08:31:12] * bemusedrat has joined #silverstripe
442: [08:33:42] * novaweb has joined #silverstripe
443: [08:33:51] * benjhocking1 quit (Ping timeout: 248 seconds)
444: [09:04:50] * Alboes has joined #silverstripe
445: [09:05:19] <Alboes> good morning
446: [09:06:14] <Alboes> can i use ifDev direct in a template? <% if isDev %> is not working
447: [09:06:55] <GioVdK> Alboes: not sure but worst case you can just create a function that returns that information in your base Page class
448: [09:08:08] <Alboes> yes, i will do, but if there is already a standard function for that it's the most beautiful way :)
449: [09:13:01] * Py887k has joined #silverstripe
450: [09:13:52] <Py887k> captchas are decidedly boring these days :<
451: [09:15:05] <hamror> it should be 'Does this Unicorn look impressed'
452: [09:18:04] * MrGuits has joined #silverstripe
453: [09:18:44] * Stomach has joined #silverstripe
454: [09:21:46] * frostfire64 quit (Remote host closed the connection)
455: [09:30:13] <Py887k> hamror: I like it.
456: [09:44:16] * veb quit (Quit: veb-irc: &)
457: [09:51:25] <mobiusnz> can I exclude an array of ids from a search query?
458: [09:52:00] * darjus01 has joined #silverstripe
459: [09:52:26] <kinglozzer> mobiusnz: ->exclude('ID', $ids)?
460: [09:53:03] <mobiusnz> will give it a shot
461: [10:28:18] <kinglozzer> Requesting feedback: https://github.com/silverstripe/silverstripe-framework/pull/4353
462: [10:28:32] <kinglozzer> Personally, prefer the old style
463: [10:32:25] * r3v3rb has joined #silverstripe
464: [10:33:00] <Zauberfisch> kinglozzer: not sure
465: [10:33:09] <Zauberfisch> I dislike the old style
466: [10:33:25] <Zauberfisch> but the new style might not be obvious enough for some of our endusers
467: [10:33:37] <kinglozzer> Zauberfisch: Yeah, the button changes especially
468: [10:33:39] <r3v3rb> yello everyone
469: [10:33:58] <r3v3rb> anyone have any history with SS2.4 Translatable and Caching?
470: [10:34:50] <Zauberfisch> r3v3rb: no. I have successfully suppresed all memories from that time
471: [10:34:55] <r3v3rb> I have a site (old) that uses translatable, but when trying to add a simple cache block to some little control block whatever translation I view I get the cache for the first run
472: [10:35:14] <r3v3rb> Zauberfisch: I am in the process of moving them to SS3 but its a slow process
473: [10:35:21] <Zauberfisch> r3v3rb: yeah, makes sense
474: [10:35:36] <Zauberfisch> it might even still be the same in 3.1
475: [10:35:38] <r3v3rb> I need a way to set the translation onto the cache
476: [10:35:49] <Zauberfisch> I don't think thats possible
477: [10:35:51] <darjus01> hi all
478: [10:35:57] <r3v3rb> Zauberfisch: bugger then
479: [10:36:40] <darjus01> by using Session::set I can set session var Session::set('DailyCheck', 'success'); for example, but how i can make Session::set('DailyCheck[status]', 'success');
480: [10:36:42] <darjus01> ?
481: [10:38:03] <darjus01> or i need Session::set('DailyCheck', array('status' => 'success'));
482: [10:38:04] <darjus01> ?
483: [10:43:01] * zlinux quit (Ping timeout: 264 seconds)
484: [10:43:10] <adrexia> kinglozzer:
485: [10:43:10] <adrexia> Requesting feedback: https://github.com/silverstripe/silverstripe-framework/pull/4353
486: [10:43:16] * zlinux has joined #silverstripe
487: [10:43:23] <adrexia> I like the tabs, hate the buttons
488: [10:44:02] <adrexia> It's a bit... none obvious?
489: [10:44:07] <adrexia> *non
490: [10:44:21] <Zauberfisch> r3v3rb: do you absolutely need the <% cached %> block?
491: [10:45:55] <Py887k> kinglozzer: eh what?
492: [10:46:02] <Py887k> adrexia: eh what?
493: [10:46:16] <Zauberfisch> r3v3rb: ah, it is possible in 3 it seems
494: [10:47:00] <Py887k> kinglozzer: adrexia Zauberfisch, someone summarise these changes because I can't see anything apart from the visual weighting of the button being turned flat...
495: [10:47:22] <Py887k> oh tabs
496: [10:47:26] <adrexia> look at the add new button
497: [10:47:28] <Py887k> yeh, agree with adrexia
498: [10:47:38] <Py887k> tabs OK, buttons a bit... too flat.
499: [10:48:20] <Py887k> Granted before they were a bit too weighted (to the point where you kind just glanced over them) but now they're... kinda insignificant and also likely to be overlooked.
500: [10:48:23] <Py887k> idk
501: [10:48:42] <adrexia> plus... bulk actions is a dropdown
502: [10:48:45] <Py887k> Perhaps an outline (read: border) would be a bit better.
503: [10:48:53] <adrexia> to me that does not red as a dropdown
504: [10:49:01] <Py887k> wtf, yeah nah that's a checkbox
505: [10:49:39] * adrexia nods
506: [10:49:58] <adrexia> that's actually one step further than flat
507: [10:49:59] <adrexia> :D
508: [10:50:10] * Stomach quit (Quit: zzz)
509: [10:50:16] <adrexia> they don't even look like links let alone buttons
510: [10:50:51] <Zauberfisch> r3v3rb: there does not seem to be a global option
511: [10:50:59] <Zauberfisch> r3v3rb: but you can define the cache key in php
512: [10:51:05] <Zauberfisch> thus you can include the locale there
513: [10:51:59] <Zauberfisch> r3v3rb: there is even something in the docs for that
514: [10:51:59] <Zauberfisch> yay
515: [10:52:01] <Zauberfisch> http://docs.silverstripe.org/en/2.4/reference/partial-caching/#cache-key-calculated-in-controller
516: [10:52:43] <Zauberfisch> there you could just include the locale in the string, then it would create a cache file per locale
517: [10:53:53] <adrexia> I also really dislike the width of the sitetree/filter panel in 3.2 - but I think that's an attempt to fix the issue where we can't resize it. It would be good if it were configurable though. For brochure sites you lose space for no gain. But really, it just looks ugly to me ;)
518: [10:54:04] * hp101 quit (Ping timeout: 256 seconds)
519: [10:54:28] * hp101 has joined #silverstripe
520: [10:55:12] <Py887k> adrexia: you're the ux pro :> weigh in on it!
521: [10:55:18] <adrexia> :P
522: [10:55:36] <adrexia> nah, I've been busy doing... other things and its too late now
523: [10:55:52] <Py887k> porn? so totally porn.
524: [10:55:57] <adrexia> lol
525: [10:56:00] <adrexia> no :P
526: [10:56:09] <Py887k> defo hav'n a wank.
527: [10:56:12] <Py887k> :P
528: [10:56:32] <adrexia> anyway, that one will be fixed when we eventually have the ability to resize it
529: [10:56:33] <Py887k> (weirdly, turns out 'wank' isn't gendered in the UK)
530: [10:56:38] <adrexia> #pipedreams
531: [10:56:47] <Py887k> adrexia: resize?
532: [10:56:49] * adrexia laughs
533: [10:57:07] * novaweb quit (Remote host closed the connection)
534: [10:57:09] <Py887k> and/or was that a tie in joke to the porn comment? xD
535: [10:57:26] <adrexia> yeah - its the feature everyone wants all the time - the ability to drag the sitetree window larger and smaller, ratehr than just collapsing it
536: [10:57:44] <Py887k> oh right, the tree itself 'slide out' thing.
537: [10:57:45] <adrexia> unfortunately, it's technically a little difficult
538: [10:57:59] <Py887k> hmm, because of rearranging the infos inside it to fit?
539: [10:58:00] <adrexia> yeah
540: [10:58:17] <adrexia> nah - it's just that there is a lot of complexity in the layout js
541: [10:58:20] <Py887k> or like... 'just coz'?
542: [10:58:26] <Py887k> that is true.
543: [10:58:30] <Py887k> too complex IMO.
544: [10:58:33] <adrexia> it can be done, but edge cases galore
545: [10:58:40] <adrexia> agree
546: [10:59:25] <r3v3rb> thanks Zauberfisch
547: [11:00:28] <r3v3rb> only slight problem is this runs in a control block which is a no-no so the docs say
548: [11:01:07] <adrexia> Py887k most of my open source energy recently has gone to trying to make this semi usable: https://github.com/MaharaProject/mahara/commits/master?page=3
549: [11:01:12] * bemusedrat quit (Quit: Leaving)
550: [11:01:22] <adrexia> which reminds me - we should rip compass out of the framework at soem point
551: [11:01:42] <adrexia> it's a beast of a thing, and we can do better now
552: [11:02:22] * zlinux quit (Ping timeout: 265 seconds)
553: [11:02:40] <Py887k> adrexia: ah, cool. I think I saw that recently while looking something up.
554: [11:02:44] <Py887k> nfi what though
555: [11:02:54] * zlinux has joined #silverstripe
556: [11:03:06] <Py887k> if it wasn't that then there was some kind of other NZ based open source thing that looked reasonably similar
557: [11:03:16] <Py887k> hmm, might have been project tools. IDK
558: [11:04:53] <kinglozzer> r3v3rb: <% control %> is correct for 2.4 I believe
559: [11:05:07] <Py887k> Yeh, I have so many ideas on shit I wanna do, both in SS and not, but no time for pretty much any of it :
560: [11:05:10] <Py887k> :< *
561: [11:05:24] <r3v3rb> kinglozzer: yup its a pain
562: [11:05:41] <r3v3rb> would have been so easy to cache each item from with in the loop
563: [11:05:47] <kinglozzer> adrexia: And rip out 75% of the JS we don't need :P
564: [11:05:58] * cloph is now known as cloph_away
565: [11:06:10] <r3v3rb> Py887k: how do?
566: [11:06:22] * novaweb has joined #silverstripe
567: [11:06:59] <adrexia> kinglozzer deal.
568: [11:07:15] <adrexia> though deciding what we need and don't is a bit hard
569: [11:07:34] <adrexia> it's sort of a sytem of finely balanced edge cases
570: [11:07:45] <kinglozzer> Yep :(
571: [11:08:05] <kinglozzer> I attempted a jQuery upgrade for framework a little while back... oh boy that's gonna need a lot of work
572: [11:08:16] <adrexia> yeah :-/
573: [11:08:41] <adrexia> I replace deprecated jquery when I find it. There's still a lot there though
574: [11:08:49] <adrexia> .bind
575: [11:08:54] <adrexia> for one
576: [11:09:54] <Py887k> r3v3rb: good yeh. You?
577: [11:10:05] <r3v3rb> not so bad
578: [11:10:10] <adrexia> we could rip it all out and use a framework...
579: [11:10:15] <adrexia> #morepipedreams
580: [11:10:26] <r3v3rb> wife just asked me to make up some weedkiller, so I did and blew up the sprayer in my face! :\
581: [11:10:55] * zlinux_ has joined #silverstripe
582: [11:11:21] * zlinux quit (Ping timeout: 246 seconds)
583: [11:12:27] <kinglozzer> adrexia: Doesn't entwine count as a framework? :P
584: [11:12:44] <adrexia> Like, baby steps
585: [11:12:47] <adrexia> :P
586: [11:13:25] <adrexia> if you are using jquery, I agree that it's an improvement.
587: [11:13:45] <adrexia> It gives a lot of structure, which I like
588: [11:14:20] <kinglozzer> Yeah, I love the structure of it, just a shame about the performance really
589: [11:14:47] <adrexia> that's also sort of a symptom of the way templates are being rendered
590: [11:14:56] <r3v3rb> ha, where there’s a will there’s a way
591: [11:15:09] <adrexia> it's quite a messy sequence diagramme
592: [11:15:41] <kinglozzer> Partly yeah, but entwine can be real slow when other plugins (*cough* chosen *cough*) start modifying the DOM
593: [11:15:44] <r3v3rb> cache the children of the page caches the translations… then I don’t need to worry about caching individual items in the children loop :D
594: [11:16:21] <adrexia> oh yeah, modifiying the DOM is super slow. that's more like a jquery problem though, right?
595: [11:16:24] <kinglozzer> Like a chosen dropdown with anything more than a few hundred items will cause entwine to fire thousands of events
596: [11:16:38] <adrexia> oh, I see
597: [11:16:43] <adrexia> ouch
598: [11:16:47] <kinglozzer> Partly chosen's fault too though
599: [11:16:54] <kinglozzer> I think it has been fixed
600: [11:16:55] <adrexia> that needs upgrading too
601: [11:16:58] <kinglozzer> But obviously we can't upgrade
602: [11:17:00] <kinglozzer> :P
603: [11:17:09] <adrexia> well, that one I think I could do
604: [11:17:19] <adrexia> almost did at one point
605: [11:17:23] <Robke> has anyone worked with ssDatepicker? why i cant change dateFormat?
606: [11:17:51] <adrexia> there's less of it in jquery, and I understand how it's being used :)
607: [11:17:59] <kinglozzer> adrexia: https://github.com/silverstripe/silverstripe-framework/pull/4284
608: [11:18:34] <kinglozzer> As long as the modifications are kept or replaced or whatever, do it!
609: [11:18:41] <adrexia> Robke that might be tied to user preferences for date format?
610: [11:19:21] <kinglozzer> Robke: "ssDatepicker"? Do you mean the DateTime form field or something else?
611: [11:19:28] <Robke> mhm kind of :) i need usa date format :) but somehow region en doesnt work for me :)
612: [11:20:21] <Robke> $(this).ssDatepicker({
613: [11:20:21] <Robke> minDate: 0,
614: [11:20:21] <Robke> dateFormat: 'mm/dd/yy',
615: [11:20:21] <Robke> beforeShowDay: $.datepicker.noWeekends
616: [11:20:21] <Robke> });
617: [11:20:32] <Robke> well actually everything works except dateFormat :)
618: [11:20:35] <adrexia> "FYI in the future SS, just implement these functions in a custom script, rather than hacking external libraries!!!"
619: [11:20:35] <adrexia> we couldn't
620: [11:20:35] <adrexia> there was no event fired at the time we needed it
621: [11:20:35] <adrexia> we literally tried...
622: [11:20:35] <adrexia> but... I thought chosen had fixed all our problems anyway? They seemed to have last I looked
623: [11:21:34] <Robke> and i guess that DateField.js doesnt allow to change date format :/
624: [11:22:02] <kinglozzer> Robke: Try jquerydateformat
625: [11:22:17] <kinglozzer> jquerydateformat: 'mm/dd/yy',
626: [11:22:26] * zlinux has joined #silverstripe
627: [11:22:33] <Robke> ok
628: [11:22:46] <kinglozzer> https://github.com/silverstripe/silverstripe-framework/blob/3.2/javascript/DateField.js#L23
629: [11:22:53] <kinglozzer> Idk why it's rewritten like that
630: [11:23:22] <Robke> yes this is the file :)
631: [11:23:34] * zlinux_ quit (Ping timeout: 272 seconds)
632: [11:23:37] <Robke> but still it appears like dd/mm/yy
633: [11:23:58] <Robke> all the day im trying to find out what is the reason of this shit...
634: [11:24:44] <kinglozzer> Robke: Why are you calling it directly? Doesn't DateField already set it up for you?
635: [11:25:17] <Robke> well actually i had to rewrite userforms date field, because i needed extra settings :)
636: [11:25:46] <Robke> so all i wanted to do is to turn of prev days, no weekends and usa date format
637: [11:25:56] <Robke> first two i got, but date format still wrong
638: [11:26:28] <kinglozzer> Robke: For DateField, it can be set in PHP: $field->setConfig('dateformat', 'dd-MM-YYYY');
639: [11:27:02] <Robke> well i guess i need something to rewrite again :)
640: [11:27:23] <ss-helper> Re: [silverstripe-dev] Redirects and SEO - https://groups.google.com/d/msg/silverstripe-dev/wYS_Iw0zFcM/_CnlJP5niX4J
641: [11:27:52] <Robke> kinglozzer, thank you thank you
642: [11:27:57] <Robke> and again thank you :D
643: [11:28:07] <kinglozzer> Robke: No problem :P
644: [11:28:22] <Robke> one single line.... after 5 hours of google...
645: [11:28:52] <Py887k> adrexia: but all the frameworks are shit :<
646: [11:28:54] <Py887k> :P
647: [11:29:15] <Py887k> r3v3rb: hello, is this the poisons hotline?
648: [11:29:20] * cloph_away is now known as cloph
649: [11:30:19] <adrexia> Py887k:
650: [11:30:19] <adrexia> adrexia: but all the frameworks are shit :<
651: [11:30:21] <adrexia> lol
652: [11:30:47] <adrexia> they are all magical unicorns and will save us from eternal damnation
653: [11:31:34] <Py887k> kinglozzer: woh gawd fk me is that stupid SEO bullshit thread still going on?
654: [11:32:23] <Py887k> oh, no it's a different one :<
655: [11:32:36] <adrexia> SEO seems like a good con. If I ever find I can't keep up with technology I might pretend to know about that instead
656: [11:34:23] * Eliseth has joined #silverstripe
657: [11:34:36] * zlinux_ has joined #silverstripe
658: [11:34:37] * zlinux quit (Ping timeout: 264 seconds)
659: [11:34:44] <Py887k> poor Martine, caught up in SEO on module maintenance.
660: [11:34:59] <kinglozzer> Client called us the other day because their niece's friend's uncle's son said that you can get to the top of Google by putting white text filled with keyworks on a white background
661: [11:35:07] <kinglozzer> keywords*
662: [11:35:15] <kinglozzer> Seems legit
663: [11:35:23] <Py887k> IMO it makes no difference. Perhaps a tickbox for 'include lang on default locale' would suffice. As for what Patrick Nelson has talked about - dude use PostRequestProcessor
664: [11:35:27] <Py887k> hook
665: [11:35:32] <Py887k> or whatever it is.
666: [11:35:37] <Py887k> but hey, whatevers.
667: [11:35:41] <Py887k> You only know what you know I guess.
668: [11:35:54] <Py887k> and yeah adrexia - SEO is the superlative con.
669: [11:36:44] <Py887k> kinglozzer: hahahahahahaha spam the shit and watch them plummit.
670: [11:36:59] <Py887k> keywords! keywords allowa!
671: [11:37:05] <adrexia> These days it seems to be: make an accessible website that follows standards
672: [11:37:34] <adrexia> which is quite a nice requirement to build to
673: [11:37:36] <Py887k> adrexia: that's all it's EVER been. And it's also the only concept that has NOT changed since the inception of HTTP.
674: [11:37:52] <Py887k> 1) Don't be a moron. 2) Content is king.
675: [11:37:54] <Py887k> that's IT.
676: [11:38:04] <kinglozzer> Yep, good content + inbound links (which good content gets you)
677: [11:38:15] <adrexia> semantic integrity seems to help too
678: [11:38:22] <Py887k> _everything_ else is a con.
679: [11:38:26] <adrexia> yep
680: [11:38:31] <Py887k> adrexia: yeah, that's what I mean by "don't be a moron" :P
681: [11:38:37] <adrexia> hahaha
682: [11:38:51] <Py887k> Code with sense, have good content.
683: [11:39:01] <Py887k> (NB last character. FULL STOP, THE END)
684: [11:39:44] <Py887k> For the most part though, there are a _LOT_ of web devs out there with nary much clue to the first part. Thus leaving a tonne of room for snake oil salesfolk to manuvre in.
685: [11:40:13] <Py887k> That and snake oil sales folk always gonna peddle snake oil.
686: [11:40:54] <Py887k> Getting caught up in the latest and greatest web developer trend on best practice is never helpful.
687: [11:42:22] <Py887k> http://benhowdle.im/everything-changes-but-you.html
688: [11:42:54] <Py887k> I don't necessarily agree with everything this chap says, but for the most part the overall concept is something I came to realise a fair number of years back.
689: [11:45:42] <Py887k> Back when I first realised that 'the latest and greatest'(tm) in web development concepts mostly amount to some 40+ year old concepts that some web dev 're-discovered and renamed'(tm) - like BEM and encapsulation. Or how CSS actually cascades, and how to use that to ones advantage instead of bitching about it. etc. https://twitter.com/iamdevloper/status/611236271776632832
690: [11:46:09] <Py887k> (eg classnames and 'object oriented' css)tm
691: [11:46:32] <Py887k> alright, rant owa. got shit to do. Still not gonna use a css preprocessor :P
692: [11:46:36] <Py887k> xD
693: [11:46:41] <r3v3rb> Py887k: hopefully not necessary… we’ll see
694: [11:46:46] <adrexia> postprocessor, then?
695: [11:46:49] <adrexia> ;)
696: [11:47:27] * zlinux_ quit (Ping timeout: 248 seconds)
697: [11:47:48] <adrexia> I read that too. I think... it's important to not stop learning, but the things you choose to learn don't have to be 'everything under the sun'
698: [11:48:09] * zlinux has joined #silverstripe
699: [11:48:10] <adrexia> as much as the industry makes you feel like it should be at times
700: [11:48:16] <Py887k> adrexia: xD
701: [11:48:27] <Py887k> was that a sass vs less comment?
702: [11:48:35] <adrexia> I actually really like the concept of post processors
703: [11:48:38] <Py887k> (like, I know less can be done via JS in browser)
704: [11:48:59] <adrexia> nah - there's a .... new *thing*
705: [11:49:04] <Py887k> adrexia: but please summarise, what is a post-processor in this context?
706: [11:49:05] <adrexia> well *new*
707: [11:49:49] <Py887k> *new* *thing*™
708: [11:49:57] <adrexia> http://ai.github.io/about-postcss/en/?full#1
709: [11:50:03] <adrexia> https://github.com/postcss/postcss
710: [11:50:04] <Py887k> gg web dev community, you've done it again!
711: [11:50:05] <Py887k> xD
712: [11:50:11] <adrexia> ;)
713: [11:50:19] <adrexia> that's if you want to write css
714: [11:51:04] <Py887k> adrexia: so like, this post process thing is basically less, only that the community at large seems to have forgotten that it (at least originally) provided js wrappers for this exact reason.
715: [11:51:10] <adrexia> I mean, a lot of people are relying on js to help them with taht these days
716: [11:51:40] <Py887k> A lot of people are relying on too fuck'n much to do some obscure shit these days IMO
717: [11:51:44] <adrexia> https://github.com/webpack/css-loader#local-scope
718: [11:51:45] <adrexia> https://github.com/css-modules/postcss-modules-local-by-default
719: [11:51:51] <adrexia> bwhahaha
720: [11:52:06] <adrexia> yeah. I'm quietly watching to see what happens
721: [11:52:10] <Py887k> 1) Learn the meaning of the word *declarative*. 2) shut up and get on with it. 3) don't be shit at it.
722: [11:52:12] <Py887k> :P
723: [11:52:16] <adrexia> though I have started using postcss stuff a bit
724: [11:52:38] <adrexia> its useful and helps us untangle ourselves from the likes of compass
725: [11:52:58] <Py887k> It's like I was explaining to a mate of mine the other day who works in a web-ish niche, but is not a web dev.
726: [11:53:13] <Py887k> (basically more like generic systems support and databases)
727: [11:53:16] <adrexia> Py887k, well, no matter what I do, I always end up hating css with a passion
728: [11:53:18] * novaweb quit (Remote host closed the connection)
729: [11:53:24] <Py887k> Used to be a case of web server, database, done.
730: [11:53:30] <adrexia> so, I get why people are looking for answers elsewhere
731: [11:53:35] <Py887k> and an interpreter probably.
732: [11:54:10] * adrexia nods
733: [11:54:42] <Py887k> now days, git, nginx, apache, database, another database (eg mongo), php, ruby, compass, sass, node, bower, grunt, gulp, and python (to manage all this shit).
734: [11:54:53] <Py887k> just to deploy some fuck'n html & css.
735: [11:55:39] <Py887k> And that is basically the root of my sass opposition. Not that it's inherintly a bad idea ;)
736: [11:56:02] <adrexia> you drew a line in the sand
737: [11:56:06] <adrexia> fair
738: [11:56:18] <Py887k> minimal dependencies & requirements.
739: [11:56:21] <Py887k> that's what I like.
740: [11:56:21] <adrexia> I need this stuff or I'd go insane
741: [11:56:47] <adrexia> minimal is fine for small projects
742: [11:56:51] <Py887k> "All that is useful in the world is simple; all that is not simple is not useful." - Mikhail Kalashnikov.
743: [11:57:13] <adrexia> though, I like that I can ditch the ruby dependency and use lib-sass
744: [11:57:21] <adrexia> one less thing
745: [11:57:22] <r3v3rb> Py887k: i’m with you but its easy if you use codekit/koala or some such
746: [11:57:24] <Py887k> Yeah, I was excietd when I found out about that.
747: [11:57:28] <Py887k> (libsass)
748: [11:57:38] <adrexia> it's pretty good these days too
749: [11:57:44] <adrexia> and lightening fast to compile
750: [11:57:56] <Zauberfisch> r3v3rb: did you try the cache key thingy?
751: [11:57:57] <Py887k> but then I start hearing about how there are syntactical differences and that ruby sass is not complatible with libsass and I'm all WTF OMG GUYS
752: [11:58:22] <Py887k> if I can install libsass and process sass in php, I'd be much happier.
753: [11:58:26] <r3v3rb> Zauberfisch: nah, cached the children, not the items within the children and it worked perfectly for the translated items
754: [11:58:31] <Py887k> Might even think about using it.
755: [11:58:42] <adrexia> Py887k not as true anymore
756: [11:58:47] <r3v3rb> Py887k: not sure how fast libsass is though
757: [11:58:48] <adrexia> they have parity
758: [11:58:51] * Mike123 has joined #silverstripe
759: [11:58:53] <Py887k> yeah, I mean naturally they'll converge.
760: [11:59:09] <Py887k> It's more a hint at how it's a barrier for pick-up
761: [11:59:12] <adrexia> r3v3rb:
762: [11:59:12] <adrexia> Py887k: not sure how fast libsass is though
763: [11:59:16] <Py887k> you hear stuff like that it puts a chap off.
764: [11:59:17] <adrexia> much _much_ faster
765: [11:59:22] <adrexia> about 40 *
766: [11:59:29] <r3v3rb> adrexia: then precompiled on 8core cpu
767: [11:59:34] <Py887k> yeah but also ruby is on par wiht Java these days.
768: [11:59:46] <r3v3rb> adrexia: not to ruby, but to precompiling and just uploading the css
769: [12:00:06] <Py887k> the age old "Knock knock.", "Who's there?", "..................................................................................................................................................................................................................................................................................................................................................................................................
770: [12:00:16] * stecman has joined #silverstripe
771: [12:00:22] <Py887k> pretty much applies to Ruby these days too. Plus has the added barrier of fuck'n gem.
772: [12:00:26] <adrexia> like, we removed ruby sass and comapss from a project in favour of libsass and autoprefixer and to compile time went form ~20seconds to under a second
773: [12:00:31] * glenn-bautista has joined #silverstripe
774: [12:00:31] * glenn-bautista quit (Client Quit)
775: [12:00:39] <r3v3rb> adrexia: nice
776: [12:00:44] <Py887k> build a package system and then build a package system for your package system because your packages are so f'n incompatible with themselves (bundler)
777: [12:00:47] <Py887k> (rake, etc)
778: [12:01:08] <adrexia> that was a happy day
779: [12:01:34] <Py887k> plus eliminated the need for having ruby on a server at all.
780: [12:02:07] <Py887k> And like coffeescript, erhmahgherd.
781: [12:02:16] <r3v3rb> Py887k: lol
782: [12:02:34] <adrexia> I liked coffeescript
783: [12:02:39] <Py887k> then now they're adding f'n classes to javascript, because people can't get their fuck'n small heads around prototypal inheritance.
784: [12:02:40] <r3v3rb> packaged, package of packeging items
785: [12:02:48] <adrexia> but its not common enough to bother with
786: [12:02:52] <r3v3rb> how much bubblewrap would you like sir Py887k
787: [12:03:03] <Py887k> r3v3rb: eh whatnow? :P
788: [12:03:11] <Mike123> is it possible to make 6 different color, so that client could pick them through a dropdown ?
789: [12:03:20] <r3v3rb> Mike123: sure
790: [12:03:31] <Py887k> How about none, I prefer to ship stuff that isn't fragile as fuck in the first place :P
791: [12:03:46] <Mike123> r3v3rb how ?
792: [12:03:46] <r3v3rb> create an k->v array and then use style attributes in the template
793: [12:04:20] <Mike123> hmm
794: [12:04:22] <adrexia> https://github.com/heyday/silverstripe-colorpalette
795: [12:04:27] <r3v3rb> or that adrexia e
796: [12:04:29] <r3v3rb> :D
797: [12:04:33] <Py887k> it's like ruby, nah the other version of ruby, nah the enterprise version of the other version of ruby. OK now gem that thing. now bunder. now get this gem. Nah the other version. Not compatible with the dependencies? hangon, lets sort this shit out (literally over 24 hours later) ... OK READY TO GO NOW
798: [12:04:51] * r3v3rb doesn’t use ruby
799: [12:04:54] <Py887k> how about apt-get install python OK DONE MOTHERFUCKERS
800: [12:05:01] <Py887k> :P
801: [12:05:06] <r3v3rb> Py887k: yar
802: [12:05:19] <adrexia> Py887k - see!more reasons to remove ruby sass and comapss from core!
803: [12:05:39] * r3v3rb prefers sudo apt-get install lamp-server^
804: [12:05:40] <r3v3rb> done
805: [12:05:44] <adrexia> lol
806: [12:06:02] <r3v3rb> don’t need pythonathon
807: [12:06:21] <adrexia> bed time. night! Or... ahhh... good afternoon, or whatever :)
808: [12:06:32] <r3v3rb> adrexia: GTA V time :D
809: [12:07:16] * MrGuits quit (Ping timeout: 272 seconds)
810: [12:08:07] <Py887k> g'nite adrexia :>
811: [12:09:33] <Py887k> kinglozzer: so I just noticed that form only sets itself on it's fields on creation. If you modify the fieldlists (fields or actions) afterwards $form->fields()->push() then it's $form isn't set. Or at least doesn't look to be this way.
812: [12:10:58] <Py887k> am I right or wrong?
813: [12:12:10] * UndefinedOffset has joined #silverstripe
814: [12:12:37] * ss-helper quit (Remote host closed the connection)
815: [12:12:54] * ss-helper has joined #silverstripe
816: [12:23:11] * Colin[pi] quit (Ping timeout: 248 seconds)
817: [12:29:02] * david_ has joined #silverstripe
818: [12:29:50] <david_> is dot notation still supported in searchable_fields and has_one relations?
819: [12:30:11] * stecman quit (Quit: This computer has gone to sleep)
820: [12:31:15] * Alboes quit (Remote host closed the connection)
821: [12:45:08] <kinglozzer> Py887k: You're right
822: [12:55:33] * guci0 has joined #silverstripe
823: [12:55:35] <guci0> Hello World!
824: [12:57:40] <david_> ? anyone
825: [12:59:29] <darjus01> how to set FormAction not clickable
826: [12:59:30] <darjus01> ?
827: [13:00:42] <david_> $action->setDisabled(true);
828: [13:07:28] * Guits has joined #silverstripe
829: [13:09:52] * Hailwood quit (Ping timeout: 255 seconds)
830: [13:23:56] * catcher has joined #silverstripe
831: [13:34:22] * david_ quit (Ping timeout: 246 seconds)
832: [13:42:30] * DimiStripe has joined #silverstripe
833: [13:48:20] * catcher quit (Remote host closed the connection)
834: [13:48:45] * UndefinedOffset quit (Quit: Leaving.)
835: [13:52:15] * Eliseth quit (Read error: Connection reset by peer)
836: [13:54:52] * UndefinedOffset has joined #silverstripe
837: [13:57:38] <Py887k> kinglozzer: right, so that means one must $form->Fields()->push(Field::create()->setForm($form))
838: [13:57:44] <Py887k> slightly convoluted but not unpossible.
839: [13:57:50] <kinglozzer> Py887k: Yup
840: [13:58:01] <kinglozzer> Or you can add all the fields, then do $form->Fields()->setForm($form)
841: [13:58:07] <kinglozzer> Which is equally werid
842: [13:58:09] <kinglozzer> weird
843: [13:59:12] <r3v3rb> huh, so overwrite itself with a modified version of itself? not that weird is it ?
844: [13:59:22] <Py887k> r3v3rb: eh what?
845: [13:59:38] <r3v3rb> the $form->setForm($form)
846: [13:59:46] <Py887k> no
847: [13:59:50] <r3v3rb> or whatever it was
848: [13:59:53] <Py887k> it sets the relation.
849: [14:00:11] <Py887k> relationship, field has one form, in an object oriented sense, not a data structure sense.
850: [14:00:27] <Py887k> It's important for the rendering.
851: [14:00:43] <r3v3rb> arh, I’ll go back to GTA V then :)
852: [14:00:46] <Py887k> :P
853: [14:01:01] <Py887k> Haven't played any since the first one.
854: [14:01:20] <Py887k> Maybe a little of the second, I dont' particularly remember though.
855: [14:01:22] <r3v3rb> V is awesome, I only completed the first two missions so I can free wheel through the city
856: [14:01:30] <r3v3rb> its insane, the level of details
857: [14:01:50] <Py887k> freeball'n like a bawss?
858: [14:02:03] <r3v3rb> Py887k: plus it plays on the surface pro 3 at 30fps with some low settings - that still look great on a 12” screen
859: [14:02:14] <Py887k> Wholey fuck it's proper well hot outside like.
860: [14:02:35] <r3v3rb> Py887k: not here, nice see breeze costing through my office window ;)
861: [14:02:39] <Py887k> r3v3rb: I bet you say that to all the ladies.
862: [14:02:41] <r3v3rb> coasting*
863: [14:02:48] <Py887k> great pun!
864: [14:03:00] <Py887k> twat! :<
865: [14:03:07] * Py887k desires coastal breeze.
866: [14:03:18] <Py887k> I mean, the city is technically on the coast, but... it's just not the same.
867: [14:03:19] <r3v3rb> aye, got sea fishing with eldest tonight
868: [14:03:45] <r3v3rb> not expecting to catch but it’s mighty fine still
869: [14:07:06] * darjus01 quit (Quit: Leaving)
870: [14:10:38] <Py887k> r3v3rb: there's something weird about the smell here.
871: [14:10:44] <Py887k> The beach just doesn't... smell like the beach.
872: [14:10:57] <Py887k> idk, haven't been out to it much
873: [14:11:10] <Py887k> haven't been to the south of england yet at all.
874: [14:11:12] <Py887k> so yeh
875: [14:11:21] <Py887k> I should come visit like
876: [14:11:45] <Py887k> you can take us oot fer ice creems
877: [14:11:55] <r3v3rb> fo sho
878: [14:12:51] <r3v3rb> bring yo bawwd and we bee wheelin d bawdwolk al nite
879: [14:13:02] <r3v3rb> rotflmao.. something very wrong about that
880: [14:13:28] <r3v3rb> hmm, surface stuck in boot loop - eek!
881: [14:23:56] * Guits quit (Ping timeout: 244 seconds)
882: [14:24:13] * UndefinedOffset quit (Quit: Leaving.)
883: [14:28:50] * zlinux_ has joined #silverstripe
884: [14:29:43] * zlinux quit (Ping timeout: 265 seconds)
885: [14:39:15] * zlinux_ quit (Ping timeout: 264 seconds)
886: [14:46:06] * UndefinedOffset has joined #silverstripe
887: [14:46:27] * Mike123 quit (Quit: Page closed)
888: [14:49:58] * Guits has joined #silverstripe
889: [14:53:40] * Robke quit (Remote host closed the connection)
890: [14:56:42] * adrexia quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
891: [15:01:36] * r3v3rb quit (Quit: r3v3rb)
892: [15:15:35] * zlinux has joined #silverstripe
893: [15:19:04] * zlinux_ has joined #silverstripe
894: [15:20:07] * zlinux quit (Ping timeout: 250 seconds)
895: [15:52:20] * zlinux has joined #silverstripe
896: [15:54:38] * zlinux_ quit (Ping timeout: 272 seconds)
897: [16:01:51] * zlinux_ has joined #silverstripe
898: [16:02:54] * zlinux quit (Ping timeout: 246 seconds)
899: [16:28:08] * ss-helper quit (Remote host closed the connection)
900: [16:28:21] * ss-helper has joined #silverstripe
901: [16:30:17] * Py887k quit ()
902: [16:32:51] * kinglozzer quit ()
903: [16:43:28] * darjus01 has joined #silverstripe
904: [16:44:01] <darjus01> has anyone installed http://swipestripe.com/products/extensions/shipping/
905: [16:44:03] <darjus01> ?
906: [16:44:27] <darjus01> it dependence on https://github.com/swipestripe/silverstripe-swipestripe-addresses
907: [16:44:38] <darjus01> ant after instal it server error
908: [16:44:54] <darjus01> maybe someone faced this?
909: [17:23:03] * GioVdK quit (Ping timeout: 264 seconds)
910: [17:27:52] * zlinux_ quit (Ping timeout: 244 seconds)
911: [18:50:52] * Stomach has joined #silverstripe
912: [18:58:15] * Stomach quit (Quit: zzz)
913: [19:10:48] * Shrike_Finland has joined #silverstripe
914: [19:12:42] * Stomach has joined #silverstripe
915: [19:27:58] * Stomach quit (Quit: zzz)
916: [19:34:15] <darjus01> maybe some one know how to change redirection page after swipestripe payment?
917: [19:45:31] * camfindlay has joined #silverstripe
918: [19:49:33] * kinglozzer has joined #silverstripe
919: [20:01:58] <camfindlay> morning o/
920: [20:02:50] <camfindlay> Core commiter hangout live now at https://plus.google.com/b/106943799421369121040/events/c1u85rrkb9maq6miv9fqq5kelbk - we’ll do Q&A time via IRC or hangout Q&A
921: [20:11:31] * novaweb has joined #silverstripe
922: [20:12:50] * Stomach has joined #silverstripe
923: [20:23:59] * stecman has joined #silverstripe
924: [20:24:02] * Kowiana has joined #silverstripe
925: [20:30:12] <camfindlay> Any questions for core committers?
926: [20:30:43] <camfindlay> We are running the core committer hangout now at https://plus.google.com/b/106943799421369121040/events/c1u85rrkb9maq6miv9fqq5kelbk
927: [20:31:21] * Penguinman98 has joined #silverstripe
928: [20:31:36] * Penguinman98 resurfaces
929: [20:32:18] <Penguinman98> I would love nothing more than to keep my inline javascripts in the template file where they are used
930: [20:32:43] <Penguinman98> But my other designers have conspired against me and moved the jquery files to the bottom of the page
931: [20:34:44] <Kowiana> Do you guys share the minutes of the meeting somewhere? (Sorry fairly new so may have been mentioned many times)
932: [20:34:45] <Penguinman98> what are my options to make sure my scripts get loaded only on the right pages and after jquery has been loaded?
933: [20:37:09] <camfindlay> Kowiana: we record the meeting and put on youtube
934: [20:37:32] <Kowiana> camfindlay: Ah cheers :)
935: [20:38:29] <camfindlay> think the vidcast becomes available pretty quickly after the actual session run too
936: [20:38:43] <camfindlay> should be available via the hangout link https://plus.google.com/b/106943799421369121040/events/c1u85rrkb9maq6miv9fqq5kelbk
937: [20:40:14] * kinglozzer quit ()
938: [20:41:03] <Kowiana> Sweet - missed the first 10mins >_<
939: [20:44:43] * camfindlay quit (Quit: camfindlay)
940: [20:45:39] <Penguinman98> found this http://stackoverflow.com/questions/11994174/how-to-use-javascript-in-silverstripe-cms
941: [20:47:20] * camfindlay has joined #silverstripe
942: [20:55:13] * darjus01 quit (Quit: Leaving)
943: [20:55:31] <Penguinman98> bah
944: [20:55:32] <Penguinman98> didn't work
945: [20:55:34] * DanaeNZ has joined #silverstripe
946: [20:56:09] <Penguinman98> I added this line to mysite/_config.php
947: [20:56:10] * Azure quit (Quit: Oops.)
948: [20:56:10] <Penguinman98> LeftAndMain::require_javascript('mysite/assets/js/flightForm.js');
949: [20:56:39] <Penguinman98> I created the file in themes/slcair/assets/js/flightForm.js
950: [20:57:28] <Penguinman98> Since the javascript is pretty specific to the template I figure that was the right place for it
951: [20:57:43] * UndefinedOffset quit (Quit: Leaving.)
952: [20:58:37] * lerni has joined #silverstripe
953: [20:59:43] * Ryan-Toast has joined #silverstripe
954: [21:00:27] <Penguinman98> did I mess up the pathing?
955: [21:00:36] <simon_w> Penguinman98, then why did you use a path within mystic?
956: [21:00:44] <simon_w> •mysite?
957: [21:01:11] <Penguinman98> I tried the path themes/slcair/assets/js/flightForm.js but that didn't work either
958: [21:01:38] <DanaeNZ> Penguinman98: you’ll want to use Controller::join_links($this->ThemeDir(), ‘assets/js/flightForm.js’) or something
959: [21:02:51] <Penguinman98> Fatal error: Call to undefined method SS_ConfigManifest::ThemeDir()
960: [21:02:56] * glenn-bautista has joined #silverstripe
961: [21:03:25] <DanaeNZ> > or something
962: [21:03:30] <simon_w> Penguinman98, are you sure the file's not being loaded? Or is it just not appearing to be executed
963: [21:03:33] <DanaeNZ> you’ll want to look it up in the api or something
964: [21:03:34] <simon_w> DanaeNZ, nope
965: [21:03:51] <Penguinman98> I have an alert in the file so if it loads I'll know about it
966: [21:04:18] <simon_w> Penguinman98, what version of SS are you running?
967: [21:04:23] <Penguinman98> 3.1
968: [21:04:35] <DanaeNZ> What function and what class are you calling it from?
969: [21:04:39] <DanaeNZ> method
970: [21:04:40] <DanaeNZ> whatever
971: [21:04:58] <Penguinman98> the SO article said to put the include line in the mysite/_config.php
972: [21:05:56] <simon_w> camfindlay, if the core hangout's still going, what's being done to increase diversity in both the community and core team?
973: [21:06:06] <DanaeNZ> Penguinman98: http://docs.silverstripe.org/en/3.1/developer_guides/templates/requirements/
974: [21:06:37] <simon_w> DanaeNZ, that doesn't help with the CMS
975: [21:06:44] <camfindlay> hey simon_w it finished up and that is a really good question man :D Can I hold on to that and raise at the next one?
976: [21:06:53] <simon_w> camfindlay, sure
977: [21:06:56] <camfindlay> thanks
978: [21:07:31] <Ryan-Toast> camfindlay: why was the meeting at 8am?
979: [21:07:32] <Ryan-Toast> :P
980: [21:07:39] <Ryan-Toast> Last itime it was ~930
981: [21:08:00] <camfindlay> yeah mostly coz the UK guys joining
982: [21:08:08] <Ryan-Toast> Ah, kay.
983: [21:08:11] <Ryan-Toast> Makes sense.
984: [21:08:13] <simon_w> Penguinman98, so, LeftAndMain::require_javascript('themes/slcair/assets/js/flightForm.js') is the correct way to add it (assuming the path is correct)
985: [21:08:14] <camfindlay> hard due to time zones
986: [21:08:43] <camfindlay> and I’m thinking perhaps we’ll get questions from community in advance as I realise people might still be sleeping on this side of the world lol
987: [21:08:56] <simon_w> Penguinman98, I'd check the path's correct (including case), then the permissions on the file (make sure the web user can read it)
988: [21:08:58] * veb has joined #silverstripe
989: [21:09:28] * veb quit (Client Quit)
990: [21:09:36] * simon_w starts the slow morph into simon_w|air
991: [21:10:08] <Penguinman98> Unfortunately, neither approach is working for me
992: [21:11:41] <Penguinman98> http://screencast.com/t/MVCwjn33totS
993: [21:12:28] * ss-helper quit (Ping timeout: 276 seconds)
994: [21:13:06] <Penguinman98> It's hillariously disturbing that whenever I need to hack the hell out of SS, it responds happily but when I need to do something really simple like send a variable to the view or include a javascript, it fails hard.
995: [21:14:13] * veb has joined #silverstripe
996: [21:15:51] * micmania1 has joined #silverstripe
997: [21:19:11] <Penguinman98> I've tried this: <% require javascript("$ThemeDir/assets/js/flightForm.js") %>
998: [21:19:14] <Penguinman98> in the template
999: [21:19:42] <Penguinman98> (Yes, I flushed)
1000: [21:21:27] * Stomach quit (Quit: zzz)
1001: [21:23:05] * Stomach has joined #silverstripe
1002: [21:26:00] * Azure has joined #silverstripe
1003: [21:26:09] * micmania1 quit (Quit: micmania1)
1004: [21:27:30] * micmania1 has joined #silverstripe
1005: [21:27:44] * Jakx has joined #silverstripe
1006: [21:28:45] * zlinux has joined #silverstripe
1007: [21:29:49] <Jakx> One of my contributions to silverstripe-framework received a comment to have something changed (by dhensby), but then chillu merged it. Should I amend the commit with the changes dhensby suggested, or make a new commit?
1008: [21:31:28] <Penguinman98> Is this a good place to mention that the 'further reading' bit at the bottom of your 'lessons' pages only shows links to the tutorial videos you have already watched instead of the next few.
1009: [21:32:13] * novaweb quit (Remote host closed the connection)
1010: [21:36:17] * Hailwood has joined #silverstripe
1011: [21:39:38] * ss-helper has joined #silverstripe
1012: [21:41:56] <Penguinman98> Question: Say I wanted to preprocess some data and send it to the view (The user submitted a form and I need to get the result from an API for display), where would I do this? My instinct tells me the controller is the right spot but what shall I just use the constructor? Or what is best practice?
1013: [21:44:29] <Stomach> Jakx - nope
1014: [21:44:36] * zlinux quit (Ping timeout: 256 seconds)
1015: [21:44:40] <Stomach> shortcodes make sense to be StudlyCase
1016: [21:44:40] <Jakx> Penguinman98, there's a few ways you could do this. I'm not sure what best practice is, but you could use ->customise()->renderWith()? (http://docs.silverstripe.org/en/3.2/developer_guides/templates/rendering_templates/)
1017: [21:44:51] <Stomach> imho ;)
1018: [21:45:14] <Jakx> Stomach, I did wonder...
1019: [21:46:01] <Jakx> Stomach, soo how do I confirm whether I should follow dhensby's suggestion or not?
1020: [21:46:09] <Stomach> ask :P
1021: [21:46:40] <Jakx> What is this thing you say...
1022: [21:46:46] <Stomach> haha
1023: [21:46:52] <Stomach> I'll ask ingo for you :P
1024: [21:47:02] * adrexia_phone has joined #silverstripe
1025: [21:47:24] <Jakx> Stomach, thanks. Though, I'm happy to ask via the commit comments too
1026: [21:47:41] <Stomach> I would just ignore it :D
1027: [21:47:42] <Stomach> but thats me
1028: [21:50:01] <Jakx> Cool. Thanks for the second opinion
1029: [21:50:30] * adrexia_phone quit (Remote host closed the connection)
1030: [21:53:03] * adrexia_phone has joined #silverstripe
1031: [21:55:04] <Penguinman98> Jakx: Thanks for that. That'll work great for making the call and getting the results to the view
1032: [21:55:23] <Penguinman98> The one missing bit now is how to get the form parameters into that code
1033: [21:56:15] <Jakx> Penguinman98, so I'm imagining your user submits the form first, then this "preprocess" happens?
1034: [21:56:20] * UncleCheese has joined #silverstripe
1035: [21:56:23] * adrexia_phone quit (Remote host closed the connection)
1036: [21:56:25] <Penguinman98> The simple form sends 2 parameters via GET, yes.
1037: [21:56:49] <Penguinman98> The advanced form sends 8 parameters via POST
1038: [21:57:18] <Penguinman98> iirc
1039: [21:58:02] <Jakx> Penguinman98, in the form handler set your values to session, and redirect to the new page. (This is how the forms handle validation errors)
1040: [21:59:25] * guci0 quit (Ping timeout: 246 seconds)
1041: [22:00:07] <Jakx> Penguinman98, it's also how it's suggestion in the Forms tutorial (http://docs.silverstripe.org/en/3.1/tutorials/forms/) under "Showing the poll results"
1042: [22:00:24] <Penguinman98> coo, ty
1043: [22:00:48] * adrexia_phone has joined #silverstripe
1044: [22:01:03] * adrexia has joined #silverstripe
1045: [22:03:58] * adrexia_phone quit (Remote host closed the connection)
1046: [22:11:29] <Penguinman98> I'm really feeling that frustration when you could have had this form done an hour ago if you'd just coded it the old school way
1047: [22:11:38] * novaweb has joined #silverstripe
1048: [22:11:46] <Penguinman98> But here you are, staring at tutorials while deadlines loom
1049: [22:15:05] <Jakx> Penguinman98, I feel ya. But learning new conventions takes time, and following the conventions of the framework you've chosen pays off.
1050: [22:15:14] * novaweb quit (Remote host closed the connection)
1051: [22:15:37] <Penguinman98> So I've been told
1052: [22:15:49] <Penguinman98> but I've never made it far enough with any framework to know for myself
1053: [22:15:56] <Penguinman98> In 8 years
1054: [22:16:23] <Penguinman98> By the time you learn one, the next greatest thing is out and you need to learn that instead
1055: [22:16:42] <Ryan-Toast> Wat
1056: [22:17:02] <Penguinman98> You heard me
1057: [22:17:10] <Jakx> Penguinman98's got sass.
1058: [22:17:20] * lerni quit (Remote host closed the connection)
1059: [22:17:25] <Ryan-Toast> How many Frameworks have you used in the last 8 years?
1060: [22:17:26] <Penguinman98> in 8 years doing web development I have never used the same framework for more than one project
1061: [22:17:37] <Penguinman98> Except code igniter
1062: [22:17:56] <Ryan-Toast> That seems unproductive.
1063: [22:18:02] <Penguinman98> You name it, I've probably used it once
1064: [22:18:09] * spronk has joined #silverstripe
1065: [22:18:40] <Penguinman98> drupal, joomla, wordpress, zend framework, magento, yii2, symfony, laravel, slim, silex, etc.
1066: [22:18:43] <Penguinman98> the list goes on
1067: [22:18:51] <Ryan-Toast> Why not stick with one?
1068: [22:18:57] <Penguinman98> Tell my boss
1069: [22:19:07] <Ryan-Toast> Why don’t you tell your boss?
1070: [22:19:09] <Penguinman98> well.. bosses
1071: [22:19:20] <Penguinman98> I can't keep a job for more than 3 months at a time usually
1072: [22:19:49] <Penguinman98> The two I held longest were the zend framework one and the code igniter one
1073: [22:20:33] <Penguinman98> It's always: We see you have experience with tech ____ so we'd like to hire you to work on tech __other__
1074: [22:20:52] <Penguinman98> I don't ask for this, but I can't be picky because I need the money
1075: [22:21:49] <spronk> o_O
1076: [22:22:19] <Jakx> ^
1077: [22:22:54] <Penguinman98> "Oh hey, you can do PHP. That means you can work on our project. It uses php."
1078: [22:23:04] <Penguinman98> Frog CMS
1079: [22:23:08] <Penguinman98> Wolf CMS
1080: [22:23:15] <Penguinman98> oscommerce
1081: [22:23:17] <Penguinman98> zend cart
1082: [22:23:18] <spronk> who cares
1083: [22:23:19] <Penguinman98> cake
1084: [22:23:20] <spronk> it's all the same
1085: [22:23:25] <Penguinman98> I wish
1086: [22:23:31] <spronk> all the MVC frameworks are more or less exactly the same
1087: [22:23:34] <Penguinman98> every single one has a learning curve
1088: [22:23:42] <Penguinman98> and they all have stupid nigglies
1089: [22:23:49] * Stomach quit (Quit: zzz)
1090: [22:23:49] <spronk> you can learn most of them in a day
1091: [22:23:51] <spronk> job done
1092: [22:24:09] <Penguinman98> I've been learning silverstripe for a month now and I can't make one form without getting help
1093: [22:24:19] <spronk> then you're not learning it properly
1094: [22:24:23] <Penguinman98> Thank you, not all of us are as intelligent as others
1095: [22:24:42] <spronk> go through the tutorials. deep dive.
1096: [22:25:07] <spronk> spend this effort you're expending on complaining on learning instead
1097: [22:25:23] <Penguinman98> This is my third time going through the tutorials
1098: [22:25:30] <spronk> so what's the issue then?
1099: [22:25:35] <Penguinman98> me. apparently
1100: [22:25:47] <Ryan-Toast> If you can’t pick up on an api doc after 8 years, maybe programming isn’t for you :/
1101: [22:26:10] * irogue_ has joined #silverstripe
1102: [22:26:25] <spronk> O WAT
1103: [22:26:30] <spronk> when did parker rerelease the classic vector!?
1104: [22:26:32] <Penguinman98> lol
1105: [22:27:47] <Penguinman98> My difficulty lies in trying to do the things that the tutorials dont' cover
1106: [22:27:49] <spronk> oo
1107: [22:27:49] <spronk> and its all metal
1108: [22:27:59] <spronk> so... you want to add some javascript?
1109: [22:28:23] * camfindlay quit (Quit: camfindlay)
1110: [22:28:23] <Penguinman98> That's one of the things that didn't work for me, yes.
1111: [22:28:34] <spronk> probably because your path was wrnog
1112: [22:28:35] <spronk> what else?
1113: [22:28:45] <Penguinman98> I sent a screenshot to prove my path was right
1114: [22:29:17] <Penguinman98> And I tried both approaches, putting the require in the template or in the _config.php file
1115: [22:29:33] <spronk> and ... no template include?
1116: [22:29:33] <Penguinman98> neither worked
1117: [22:29:38] <spronk> LeftAndMain::require_javascript...
1118: [22:29:49] <spronk> are you building an interface for the CMS?
1119: [22:30:02] <Penguinman98> In this case, no. It's on the front.
1120: [22:30:11] <Penguinman98> in the footer
1121: [22:30:17] <spronk> probably dont want to use LeftAndMain then
1122: [22:30:29] <Penguinman98> I didn't think so
1123: [22:30:34] <spronk> probably want to use requirements
1124: [22:31:05] <Penguinman98> uhh
1125: [22:31:05] * travis-ci has joined #silverstripe
1126: [22:31:06] <travis-ci> silverstripe/silverstripe-framework#5234 (3.1 - 3453969 : Ingo Schommer): The build has errored.
1127: [22:31:07] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/dcd378c53906...34539691f6fc
1128: [22:31:07] <travis-ci> Build details : https://travis-ci.org/silverstripe/silverstripe-framework/builds/69046689
1129: [22:31:07] * travis-ci has left #silverstripe
1130: [22:31:18] <Penguinman98> How can I do that?
1131: [22:31:33] <Ryan-Toast> Google “Silverstripe Javascript“
1132: [22:31:45] <Ryan-Toast> It’s the second result.
1133: [22:31:47] <Penguinman98> for the moment I got around it by going old school and adding an 'onClick=""'
1134: [22:31:49] <spronk> http://lmgtfy.com/?q=silverstripe+requirements+include+javascript
1135: [22:31:57] <spronk> there you go
1136: [22:32:11] <Penguinman98> spronk: thank you, I have it open already
1137: [22:32:20] <DanaeNZ> Penguinman98: that tutorial I linked to like an hour ago had what you needed
1138: [22:32:32] <Penguinman98> DanaeNZ: I tried that. It didn't work.
1139: [22:33:27] <Penguinman98> I love watching those silver fingered guys who just wave at a keyboard and the code writes itself. I have a black thumb. Anything I touch breaks.
1140: [22:33:31] <spronk> the top two code examples on the Requirements docs, Penguinman98, are all you need for including javascript, although you should really use themeDir if you're including js from your theme folder
1141: [22:34:12] <Penguinman98> spronk: if you'll check my screenshot, you'll see I used $ThemeDir
1142: [22:34:31] <Penguinman98> http://screencast.com/t/MVCwjn33totS
1143: [22:34:39] <Penguinman98> oh wait
1144: [22:34:41] <spronk> thats not using themedir
1145: [22:34:45] <Penguinman98> wrong one
1146: [22:35:02] <Penguinman98> <% require javascript("$ThemeDir/assets/js/flightForm.js") %>
1147: [22:35:03] <DanaeNZ> See the heading, “PHP Requirements API”?
1148: [22:35:08] <DanaeNZ> There’s a controller
1149: [22:35:12] <DanaeNZ> and there’s an init
1150: [22:35:23] <DanaeNZ> and if you put that in your Page_Controller
1151: [22:35:32] <DanaeNZ> it will include the javascript on all your frontend pages
1152: [22:35:38] <DanaeNZ> Which sounds like what you wnat
1153: [22:35:52] <DanaeNZ> http://docs.silverstripe.org/en/3.1/developer_guides/templates/requirements/
1154: [22:35:52] <Penguinman98> Yes. That is what I want
1155: [22:35:57] <DanaeNZ> Do it
1156: [22:37:00] * camfindlay has joined #silverstripe
1157: [22:38:03] <Penguinman98> It loads it but before jQuery is defined so it breaks
1158: [22:38:09] <Penguinman98> Which is an improvement
1159: [22:38:11] <Penguinman98> thank you
1160: [22:38:55] <spronk> you'll probably want to sort your requirements out in one place. Requirements is a shitty API
1161: [22:39:29] <Ryan-Toast> should be combining that biz
1162: [22:39:44] <Penguinman98> Heh. "You just gotta learn to use it and then it's great" followed by "Yeah, we didn't do it very good"
1163: [22:39:57] <Ryan-Toast> well**
1164: [22:39:59] <spronk> noone said requirements were great
1165: [22:40:09] <spronk> but
1166: [22:40:09] <adrexia> requirements suck
1167: [22:40:12] <spronk> "working" > not
1168: [22:40:17] <adrexia> I just don't use them
1169: [22:40:25] <Penguinman98> F** it. I'm going to make them put jQuery at the top instead.
1170: [22:40:34] <adrexia> stick the js in the page template like you normally would.
1171: [22:40:39] <spronk> tbh, a simple "level" param would make requirmeents 10000x more usable
1172: [22:40:45] <Penguinman98> Exactly adrexia
1173: [22:40:46] <adrexia> its easier, and it works
1174: [22:40:46] <Ryan-Toast> adrexia: I use them once :P https://github.com/Rhym/silverstripe-boilerplate/blob/master/code/extensions/PageController.php#L23
1175: [22:40:58] <adrexia> might not have cahcing busting, but that's a problem for anotehr time
1176: [22:41:18] <adrexia> *cache
1177: [22:41:42] <DanaeNZ> Baby steps
1178: [22:42:34] * veb quit (Quit: veb-irc: &)
1179: [22:42:52] <spronk> gotta run before you can walk and all tat
1180: [22:44:34] <Penguinman98> So I make the shout that I'm going to move the jQuery to the top and the guys respond with, "Well, you should be using gulp anyway"
1181: [22:44:44] <Penguinman98> Which is yet another new tech I dont' have time to learn
1182: [22:45:05] <spronk> wat
1183: [22:45:17] <adrexia> bwhahaha
1184: [22:45:20] <spronk> developers should be learning new shit all the itme
1185: [22:45:23] <spronk> if you're not learning new shit
1186: [22:45:25] <spronk> you're failing as a developer
1187: [22:45:29] <spronk> cold hard truth
1188: [22:45:32] <Penguinman98> I learn every day
1189: [22:45:36] <adrexia> true
1190: [22:45:51] <adrexia> but you don't have to learn everythign at once
1191: [22:46:05] <Penguinman98> And I dont' want to spend all my free time learning the stuff I need for work
1192: [22:46:11] <Penguinman98> but that's not possible
1193: [22:46:23] <adrexia> yeah, wrong industry
1194: [22:46:26] <spronk> yup
1195: [22:46:49] * spronk tries to combine work with learning as much as possible
1196: [22:46:55] * Stomach has joined #silverstripe
1197: [22:46:57] <spronk> but there's no getting around having to learn in free time to be good
1198: [22:47:34] <adrexia> lucky for some of us that bit is fun
1199: [22:47:47] <adrexia> if it weren't I don't think I'd manage it eitehr
1200: [22:47:49] <spronk> sometimes
1201: [22:48:03] <adrexia> oh, its hard too.
1202: [22:48:11] <Penguinman98> brb
1203: [22:48:15] <adrexia> but I still do it for fun
1204: [22:48:18] * spronk grows increasingly frustrated with it these days
1205: [22:48:28] <spronk> esp when "new" stuff is just reinventing the wheel
1206: [22:48:34] * adrexia shrugs
1207: [22:48:40] <adrexia> you leanr to selectively ignore things
1208: [22:48:44] <Ryan-Toast> Just don’t learn edge stuff.
1209: [22:48:49] <spronk> like the entire javascript ecosystem :')
1210: [22:48:53] <adrexia> bwhahah
1211: [22:49:06] <adrexia> actually it's css that has me on edge right now
1212: [22:49:32] <spronk> oh fuck
1213: [22:49:34] <spronk> fuck css
1214: [22:49:35] <spronk> fuck flexbox
1215: [22:49:36] <adrexia> I'm waiting to see if this little experiement that changes everything goes ahead of falls flat
1216: [22:49:38] <spronk> GSS FOR LYF
1217: [22:49:49] <spronk> ??
1218: [22:49:56] <Ryan-Toast> spronk: flex has been in the spec for ages :P
1219: [22:50:00] <spronk> yes
1220: [22:50:03] <spronk> and it's been shit for even longer
1221: [22:50:09] <spronk> what a fucking terrible way to layout a page
1222: [22:50:15] <adrexia> I'll by into post css. I quite like it. scoped css seems like a good thing, but... waiting
1223: [22:50:18] <Ryan-Toast> IT has it’s use-cases
1224: [22:50:25] <adrexia> *buy into
1225: [22:50:26] <Ryan-Toast> adrexia: +1
1226: [22:50:40] <Ryan-Toast> adrexia: react is really driving that front.
1227: [22:50:51] <adrexia> It really is
1228: [22:50:55] * DanaeNZ still needs to learn react
1229: [22:50:56] <spronk> hmm
1230: [22:50:59] <spronk> scoped css is good
1231: [22:51:00] <DanaeNZ> this is why i like backend
1232: [22:51:01] <spronk> IMO
1233: [22:51:04] <DanaeNZ> it moves so much slower
1234: [22:51:11] <spronk> allows for much more modular development
1235: [22:51:22] <spronk> however, easy to make a maintenance nightmare
1236: [22:51:23] <adrexia> oh yes. it's more the... complexity of the whole thing
1237: [22:51:30] <adrexia> it;'s literally changing fundamentals
1238: [22:51:50] <adrexia> DanaeNZ:
1239: [22:51:50] <adrexia> this is why i like backend
1240: [22:51:51] <adrexia> lol
1241: [22:52:11] <adrexia> true unless you want to learn every new tech that comes out
1242: [22:52:50] <adrexia> but there is no expectation that you will like there is fro frontend. I think backend devs are grumpier and more likely to say no
1243: [22:52:52] <adrexia> ;)
1244: [22:53:02] * DanaeNZ grumps
1245: [22:53:11] <adrexia> :D
1246: [22:53:30] <adrexia> "hey there's this new cool thing!" "Friggin hipsters"
1247: [22:53:48] <DanaeNZ> I just had to roll back a feature because the row size on this older database has been exceeded
1248: [22:53:54] <DanaeNZ> fucking bloat
1249: [22:54:04] <DanaeNZ> you kids get off my lawn!
1250: [22:54:15] <DanaeNZ> and the php version is ancient
1251: [22:54:27] <DanaeNZ> so it doesn’t actually support the ability to increase the row size limit
1252: [22:56:49] <DanaeNZ> out of curiosity, who here is backend/frontend/full stack?
1253: [22:57:00] <DanaeNZ> who is your daddy
1254: [22:57:03] <DanaeNZ> and what does he do
1255: [22:57:04] * spronk is technically your daddy
1256: [22:57:15] <DanaeNZ> mein gott
1257: [22:57:22] <spronk> ACH MEIN GOTT!
1258: [22:57:28] <spronk> NEIN NEIN!
1259: [22:57:33] <irogue_> DanaeNZ: i'm most-stack :P
1260: [22:57:40] <spronk> VAS IST LOS!?
1261: [22:57:43] <irogue_> sysadmin, backend, some frontend
1262: [22:57:49] <spronk> yeah
1263: [22:57:49] * spronk is likewise
1264: [22:57:54] <spronk> used to be more frontend
1265: [22:57:57] <spronk> is more backend now
1266: [22:58:04] <spronk> frontend is too fucke dup
1267: [22:58:09] <DanaeNZ> lmao
1268: [22:58:10] <adrexia> I don't do sysadmin stuff
1269: [22:58:26] <DanaeNZ> I like sysadmin stuff, just haven’t had the opportunity to dive right in there
1270: [22:58:31] <adrexia> I'm midstack ;)
1271: [22:59:17] <spronk> tbh thugh, with some of the "front end" developers i've seen recently
1272: [22:59:22] <spronk> dear god
1273: [22:59:34] <adrexia> oh?
1274: [22:59:36] <spronk> you know nothing, Jon Snow.
1275: [22:59:46] <adrexia> haha
1276: [23:00:28] <simon_w|air> I've only been learning new stuff at work
1277: [23:00:29] <simon_w|air> Too tired to do anything at home
1278: [23:00:30] <adrexia> I think it's a false dichotomy a little bit
1279: [23:01:00] <simon_w|air> DanaeNZ, looked into Hack?
1280: [23:01:01] <simon_w|air> Moves so much faster than PHP :D
1281: [23:01:02] <DanaeNZ> yeah that line is really blurring
1282: [23:01:11] <DanaeNZ> simon_w|air: nope :O
1283: [23:01:12] <simon_w|air> Unless you're using CWP. Then you're stuck on 5.3
1284: [23:01:13] * spronk reads about new stuff at "home"
1285: [23:01:21] <spronk> hmm
1286: [23:01:23] <simon_w|air> Heh, our frontend guy is the grumpiest of all of us
1287: [23:01:24] <spronk> do you use hack with ss, simon_w|air ?
1288: [23:01:29] <DanaeNZ> simon_w|air: not CWP, but still 5.3
1289: [23:01:29] <simon_w|air> He's the reason we're still using Smarty :(
1290: [23:01:35] <adrexia> hahaha
1291: [23:01:44] <adrexia> I've actually been using smarty
1292: [23:01:45] <simon_w|air> Who's ready for everything Linux based to break in an hour?
1293: [23:01:50] <adrexia> honestly, it doesn't cuck
1294: [23:01:53] <adrexia> *suck
1295: [23:02:01] <DanaeNZ> simon_w|air: I thought the leap second already happened
1296: [23:02:11] <spronk> haha
1297: [23:02:12] <DanaeNZ> is that what you’re talking about?
1298: [23:02:21] * spronk has new relic open just in case shit goes south
1299: [23:02:26] <simon_w|air> I'm whatever-is-breaking-right-now-stack
1300: [23:02:47] <simon_w|air> spronk, when I can
1301: [23:02:47] <adrexia> I was lead to believe it was a completely dumb templating system from the dark ages... but it's actually pretty decent
1302: [23:02:48] <DanaeNZ> I’m gonna use the leap second as an excuse for anything that breaks today
1303: [23:02:49] <spronk> adrexia go home, you're drink
1304: [23:02:49] <spronk> fuck
1305: [23:02:51] <spronk> fuckety fucked that one up didn't i
1306: [23:02:53] <simon_w|air> Though, when I can, I don't use SS
1307: [23:02:54] <simon_w|air> adrexia, worst thing is it doesn't escape by default
1308: [23:02:55] <simon_w|air> DanaeNZ, 23:59:59 UTC
1309: [23:03:09] <adrexia> ahh right
1310: [23:03:11] <DanaeNZ> 23:59:60 UTC OOOHH MYYY GOOODODDD
1311: [23:03:12] <irogue_> yeah, there's really no benefit at all in smarty over just PHP files
1312: [23:03:21] <adrexia> we're technically using Dwoo
1313: [23:03:24] <irogue_> it isn't safer, isn't easier for a frontender
1314: [23:03:28] <DanaeNZ> Awesome we can have a leap second drink
1315: [23:03:45] <adrexia> which is a smarty based templating engine
1316: [23:03:53] <adrexia> irogue_:
1317: [23:03:54] <adrexia> yeah, there's really no benefit at all in smarty over just PHP files
1318: [23:03:57] <adrexia> disagree
1319: [23:04:03] <irogue_> we should switch ss to twig ;) ;)
1320: [23:04:07] <adrexia> its much nicer for tempaltign than php :P
1321: [23:04:12] <adrexia> hipster
1322: [23:04:28] <DanaeNZ> ooooh Hack has hard typing?
1323: [23:04:32] <DanaeNZ> ooohhh niiiice
1324: [23:04:50] <irogue_> yeah hack can have my babies. unfortunately i haven't actually had a chance to use it yet
1325: [23:04:54] <DanaeNZ> Ooooh generics
1326: [23:05:04] * adrexia laughs
1327: [23:05:36] * spronk is just waiting for C# and .net on linux
1328: [23:05:36] <irogue_> simon_w|air: was the SS fork you were working on just making it more HHVM-friendly, or did you actually throw some Hack in there?
1329: [23:05:49] <spronk> C# is fucking GORGEOUS
1330: [23:05:50] * spronk would do it straight away.
1331: [23:05:52] <adrexia> honestly, I don't much care what temaplting system people use, so long as I don't have to use php to write html
1332: [23:05:56] <adrexia> taht shit's wierd
1333: [23:05:56] <simon_w|air> irogue_, pulled out some crap, used some Hack
1334: [23:06:03] <simon_w|air> irogue_, stopped using SS and gave up on it
1335: [23:06:15] <irogue_> simon_w|air: yep. just thinking I should pick it up ;)
1336: [23:06:25] <DanaeNZ> Ohh had a play around with the latest .net MVC
1337: [23:06:31] <DanaeNZ> like a while ago tho
1338: [23:06:43] <DanaeNZ> goddamn like fully functional datamodel including CRUD in 10 mins
1339: [23:06:52] <DanaeNZ> plus frontend admin
1340: [23:06:57] <spronk> yeah.... mvc is nice
1341: [23:07:05] <spronk> and .net is easily the best set of stdlibs around
1342: [23:07:21] <spronk> java pips it on collections still though, imo
1343: [23:07:49] <spronk> but fuck enterprise java and its stupid baggage
1344: [23:07:55] <DanaeNZ> I have no reason to hate Java which frustrates me because I just don’t like it
1345: [23:08:10] <spronk> modern java is pretty nice really, tbh
1346: [23:10:31] <spronk> and jetty is good enough that you don't even need to fck around with tomcat
1347: [23:10:34] <spronk> just embed jetty
1348: [23:10:35] <UncleCheese> adrexia can you help with this?
1349: [23:10:40] <spronk> reverse proxy via nginx
1350: [23:10:41] <spronk> done
1351: [23:10:41] <UncleCheese> "Just one thing... Coming from the Drupal world, where Taxonomy is something built-in, I still miss a good tutorial on how to tag pages with custom dictionary, and how to build the tag browsing pages in SilverStripe. This would be necessary for product website that need to be organized."
1352: [23:12:14] <hamror> if i have a new dataobject and it hasn't been saved yet, how do i access the object that has initiated the creation of it - in the cms admin, so i have a Campaign that has just caused a new Post to be created and now i want a reference to the campaign object (before it's been saved)
1353: [23:13:55] <UncleCheese> hamror that can be a bit tricky.. can you share your code?
1354: [23:14:14] <DanaeNZ> spronk: yssss nginx
1355: [23:14:15] <adrexia> well, taxonomy's are central to drupal in a way they just aren't to silverstripe
1356: [23:14:24] <DanaeNZ> i miss my winginx
1357: [23:14:27] <adrexia> some of that is flipping how you think of things
1358: [23:14:38] <spronk> taxonomy is shit
1359: [23:14:39] <DanaeNZ> easiest local server setyup ever
1360: [23:14:49] <spronk> it doens't even make for good websites
1361: [23:15:04] <DanaeNZ> drupal combines it’s taxonomy with it’s sitetree and it’s like ugughgh
1362: [23:15:11] <adrexia> there's the taxonomy module - but if you want it to do stuff, you implement it yourself
1363: [23:15:16] <DanaeNZ> expressionengine has neither
1364: [23:15:46] <adrexia> spronk you mean drupal's taxonomy?
1365: [23:15:49] <adrexia> I agree
1366: [23:15:50] <spronk> ja
1367: [23:15:55] <adrexia> they use it for everything
1368: [23:15:59] * glenn-bautista quit (Quit: Leaving.)
1369: [23:16:03] <spronk> drupal is a clusterfuck of shit
1370: [23:16:11] <DanaeNZ> wahaha
1371: [23:16:12] <adrexia> and all the things end up unorganised and unordered
1372: [23:16:18] <spronk> oh god
1373: [23:16:19] <spronk> yes
1374: [23:16:20] <spronk> this
1375: [23:16:30] <adrexia> I do like it as an extra layer of relation on top of the usual structure though
1376: [23:16:39] <adrexia> like.. .using it for tagging :)
1377: [23:16:52] <DanaeNZ> that’s the only thing I can see it being useful for
1378: [23:17:24] <adrexia> I actually use it for all sorts of things :D
1379: [23:17:30] * Vedran__ has joined #silverstripe
1380: [23:17:38] <adrexia> I love it as an extra layer of meaning
1381: [23:17:57] <adrexia> but it just isn't the central focal point for things in silverstripe
1382: [23:18:31] <adrexia> hmm. yeah. a tutorial on that would probably be good
1383: [23:18:35] <hamror> UncleCheese: sure give me 5
1384: [23:19:03] * glenn-bautista has joined #silverstripe
1385: [23:19:19] <UncleCheese> thanks, adrexia
1386: [23:21:02] * adrexia_phone has joined #silverstripe
1387: [23:23:55] * adrexia_phone quit (Remote host closed the connection)
1388: [23:24:07] <Penguinman98> my buddy just finished fixing all the broken gulp stuff
1389: [23:25:57] * joelpittet has joined #silverstripe
1390: [23:27:07] * Colin[pi] has joined #silverstripe
1391: [23:30:41] <hamror> UncleCheese: http://dpaste.com/2J7D236
1392: [23:31:10] <hamror> UncleCheese: so right now i'm just doing the old id !=0 thing but i assume i can ask for the controller that triggered this objects construction maybe
1393: [23:31:16] <hamror> or the DO
1394: [23:31:21] <Vedran__> How do I define the /templates/Page.ss to use? By the looks of it $this->renderWith(array( goes into /templates/Layout
1395: [23:31:22] <hamror> since you have that new unsavedrelationlist thing now
1396: [23:31:49] <UncleCheese> Vedran__ what do you mean?
1397: [23:32:01] * Colin[pi] quit (Ping timeout: 265 seconds)
1398: [23:32:06] <Vedran__> UncleCheese: When I use renderWith
1399: [23:32:21] <Vedran__> it is not rendering /templates/Foo.ss
1400: [23:32:52] <Vedran__> it appears to look in /templates/Layout/Foo.ss
1401: [23:33:34] <Vedran__> the site I am building has a 'sub section' with a different header. I want this class to use a different 'default template' or /template/Page.ss
1402: [23:34:20] * Colin[pi] has joined #silverstripe
1403: [23:34:37] <UncleCheese> Vedran__ you're using renderWith in a controller action or something, I assume?
1404: [23:35:00] <Vedran__> inside public function init() {
1405: [23:35:03] <Colin[pi]> morning all o/
1406: [23:35:09] <irogue_> Vedran__: just to be sure, you've done a flush after creatiing the templates/Foo.ss file?
1407: [23:35:12] <UncleCheese> Vedran__ yikes,.. that's not a good place for a renderWith
1408: [23:35:21] <Vedran__> irogue_:
1409: [23:35:23] <Vedran__> yes
1410: [23:35:26] * Stomach quit (Quit: zzz)
1411: [23:35:28] <Vedran__> UncleCheese: where should it be?
1412: [23:35:28] <UncleCheese> can i ask what it is you're trying to do? You might be trying to solve the wrong problem
1413: [23:35:58] <UncleCheese> why is it that you're using renderWith in your controller? the controller does that for you, unless you're doing somethign custom
1414: [23:36:00] <DanaeNZ> Colin[pi]: \o
1415: [23:36:17] <spronk> how bout that aston vulcan eh?
1416: [23:36:44] <UncleCheese> hamror are you looking to avoid using the ->ID != 0 check?
1417: [23:37:10] <Vedran__> UncleCheese: there are subpages that need to have a different header/menu to the rest of the site. I was previously using an if $className inside Page.ss and someone recommended going with renderWith instead.
1418: [23:37:14] * Stomach has joined #silverstripe
1419: [23:37:24] <UncleCheese> gotcha
1420: [23:37:39] <Vedran__> UncleCheese: is there a better way of doing this?
1421: [23:37:42] <UncleCheese> so if you have MyCustomPageType.ss in /Layout
1422: [23:37:51] <UncleCheese> and you put a MyCustomPageType.ss in templates/
1423: [23:38:05] <hamror> UncleCheese: well i assume in 3.1 we can now build a new DO with relations before it has been saved
1424: [23:38:16] <hamror> UncleCheese: since file attachments seem to work that way no
1425: [23:38:17] <UncleCheese> it will fall back on templates/MyCustomPageType.ss over templates/Page.ss
1426: [23:38:33] <irogue_> Vedran__: whats the full renderWith array you're using?
1427: [23:38:48] <Vedran__> return $this->renderWith(array('MyCustomPageType','Page'));
1428: [23:38:54] <UncleCheese> but, you should know that 99% of sites use only Page.ss in their root templates/ directory
1429: [23:39:05] <hamror> maybe it'll be easier to just do the id 0 check
1430: [23:39:06] <hamror> for now
1431: [23:39:19] <irogue_> Vedran__: ok, and you're expecting it to use templates/MyCustomPageType.ss?
1432: [23:39:38] <Vedran__> irogue_: yes?
1433: [23:40:19] <UncleCheese> Vedran__ a better solution may be something like creating a function called getHeader() in your Page_Controller
1434: [23:40:30] <UncleCheese> and having it return $this->renderWith($this->ClassName.'_Header');
1435: [23:40:32] <irogue_> have you tried just do renderWith('MyCustomPageType.ss') instead of using the array?
1436: [23:40:38] <UncleCheese> and then just add $Header to your Page.ss
1437: [23:41:04] <UncleCheese> and in that function you'd also want to check if the template exists with SSViewer::hasTemplate() so you can gracefully fall back on some generic one
1438: [23:41:27] <DanaeNZ> I believe renderWith even accepts an array of template names
1439: [23:41:35] <DanaeNZ> THe first being the preferred template
1440: [23:41:36] <UncleCheese> DanaeNZ yes
1441: [23:42:17] <irogue_> DanaeNZ: yeah, but thats what isn't working for Vedran__, so I'd like to try the simpler version to see whether that works as expected
1442: [23:42:38] * DanaeNZ didn’t read the rest of the conversation
1443: [23:42:39] <Vedran__> irogue_: same deal, its using templates/Page.ss
1444: [23:44:02] <irogue_> very weird
1445: [23:44:55] <adrexia> maybe I'm missing something, but if it's a different class, you don';t need renderwith at all?
1446: [23:45:15] <adrexia> you should just be able to use the default rendering and dump the page as a top level page in templates
1447: [23:45:27] <adrexia> so long as the tamplate name matches the classname
1448: [23:45:33] <adrexia> *template
1449: [23:45:54] <Vedran__> adrexia: the subpage/directory will look 'inverted'
1450: [23:46:06] * travis-ci has joined #silverstripe
1451: [23:46:07] <travis-ci> dhensby/silverstripe-framework#369 (pulls/chzn-upgrade - 19c6d48 : Daniel Hensby): The build has errored.
1452: [23:46:08] <travis-ci> Change view : https://github.com/dhensby/silverstripe-framework/commit/19c6d485ddc4
1453: [23:46:08] <travis-ci> Build details : https://travis-ci.org/dhensby/silverstripe-framework/builds/69060800
1454: [23:46:08] * travis-ci has left #silverstripe
1455: [23:46:14] <Vedran__> header was 'black on white' will now be 'white on black'
1456: [23:46:18] * adrexia nods
1457: [23:46:22] <adrexia> I've done that a lot
1458: [23:46:23] <adrexia> :D
1459: [23:46:30] <adrexia> I usually just use a css class
1460: [23:46:35] <Vedran__> the menu / subnav would be different to main sites anv
1461: [23:46:36] <adrexia> and reuse templates
1462: [23:46:37] <Vedran__> *nav
1463: [23:46:45] * adrexia nods
1464: [23:46:47] <Vedran__> different logo's etc
1465: [23:47:01] <Vedran__> just seems like a new /template/Page.ss would make more sense
1466: [23:47:02] <adrexia> yeah, silverstripe provides top level tempattes by default
1467: [23:47:20] <adrexia> yep - you should be able to do /template/CustomPage.ss
1468: [23:47:35] <adrexia> where CustomPage is the name of your custom page type
1469: [23:47:47] <adrexia> but... *is* it a seperate class?
1470: [23:48:04] <Vedran__> yep, seperate class. Still inherits from page, but a seperate class
1471: [23:48:13] <adrexia> sweet
1472: [23:48:20] <adrexia> then you shouldn't need renderwith
1473: [23:48:28] <Vedran__> adrexia: you are correct. That worked ;)
1474: [23:48:32] <irogue_> yeah, so renderwith is completely pointless
1475: [23:48:34] <adrexia> haha sweet :)
1476: [23:49:11] <Vedran__> I would need renderWith for all subpages right?
1477: [23:49:39] <Vedran__> in the case of /CustomPage/SubPage
1478: [23:49:41] <adrexia> of the same page type?
1479: [23:49:51] <Vedran__> will it render using Page.ss or CustomPage.ss
1480: [23:49:54] <adrexia> or a new page type?
1481: [23:50:08] <Vedran__> new page type
1482: [23:50:33] <Vedran__> there are 'services' for both the main site and /CustomPage
1483: [23:50:34] <adrexia> so Page.ss CustomPage.ss CustomSubPage.ss ?
1484: [23:50:36] <adrexia> thing?
1485: [23:50:51] <adrexia> if you extend CustomPage.ss it will ingerit tempaltes from tehre
1486: [23:50:55] <adrexia> *inherit
1487: [23:51:18] <adrexia> wow, typo's are epic this morning
1488: [23:51:29] <Colin[pi]> adrexia: ha, I get them every day :P
1489: [23:51:47] <adrexia> me too, but usually not three in amlost as many words
1490: [23:51:53] <adrexia> lols
1491: [23:52:10] <Vedran__> extend CustomPage.ss ?
1492: [23:52:21] <adrexia> by "if you extend CustomPage.ss it will ingerit tempaltes from tehre" I mean extend CustomPage.php
1493: [23:52:24] <adrexia> sorry
1494: [23:52:49] <adrexia> so CustomSubPage extends CustomPage
1495: [23:52:50] <Vedran__> hrmm... interesting
1496: [23:52:56] <Vedran__> yerp, got it ;)
1497: [23:53:10] <adrexia> only thing is, hif the colour is supposed to be based on heirachy - this won't really achive that
1498: [23:53:13] <adrexia> *if
1499: [23:53:15] * Phlunk3 has joined #silverstripe
1500: [23:53:44] <adrexia> it will so long as no one messes with the sub structures, but people.
1501: [23:54:01] <adrexia> * sub == page, aparently
1502: [23:54:25] <Vedran__> :/ nup
1503: [23:54:41] <Vedran__> rendering default header now
1504: [23:55:11] <adrexia> flushed?
1505: [23:55:18] <adrexia> oh, and build db
1506: [23:55:40] <Vedran__> flushed. didnt build
1507: [23:56:04] <adrexia> the manifest will need updating if you've changed what a page it extending :)
1508: [23:56:21] <Vedran__> adrexia: default header is rendering
1509: [23:56:37] <adrexia> really? Weird
1510: [23:56:44] <Vedran__> adrexia: renderWith?
1511: [23:56:51] <adrexia> ...shouldn't need it
1512: [23:57:21] <adrexia> it shouldn't be using Page is both your class and controller extend custompage/custompage_controller
1513: [23:58:15] <Vedran__> shit. i didnt chagne the controller
1514: [23:58:25] <Vedran__> I only changed the class
1515: [23:58:30] * Jakx has left #silverstripe
1516: [23:58:39] <adrexia> aha! hope its that :)
1517: [23:58:59] <Vedran__> tis ;)
1518: [23:59:07] <adrexia> awesome!
1519: [23:59:46] <Vedran__> hey, instead of hitting /dev/build and then ?flush. can you /dev/buid?flush and it do it all at once?
1520: [23:59:56] <adrexia> I think it's technically just the controller that would need to extend custompage. but good practice to have them match

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