#silverstripe IRC Log

IRC log for 4 August 2016

All timestamps are in UTC.

1: [00:00:01] * ss-helper quit (Remote host closed the connection)
2: [00:00:17] * ss-helper has joined #silverstripe
3: [00:11:54] <Hailwood> Hey UncleCheese are you available?
4: [00:12:02] <UncleCheese> hi
5: [00:12:13] <ss23> Hailwood: No he has a wife!
6: [00:12:15] <ss23> Jeez...
7: [00:12:26] <Hailwood> Darn it, Had my hopes up for a moment.
8: [00:12:57] * micmania1 quit (Quit: micmania1)
9: [00:37:46] <spronk> ba dum
10: [00:41:16] * Nightjar quit (Ping timeout: 264 seconds)
11: [00:51:52] * Dedra has joined #silverstripe
12: [01:05:30] * muskie9 quit (Quit: My Mac has gone to sleep. ZZZzzz…)
13: [01:06:34] * muskie9 has joined #silverstripe
14: [01:11:37] <Admonish> Hey there guys. I have a question thats a bit outside of silverstripe this time. Has anyone here used one of the API Description Languages like swagger, RAML or API blueprint? I've been reading about them lately but I cannot make up my mind on A) if I should use one or B) which one I should use. It seems like all the comparisons are either done by the companies that own them or super high level.
15: [01:16:43] <spronk> Admonish yep
16: [01:16:56] <spronk> I've used API blueprint
17: [01:17:05] <spronk> in reality, I wouldn't touch them unless you had some sort of codegen
18: [01:17:16] <spronk> biggest problem for me is that without codegen docs and real code go way out of sync
19: [01:17:26] <spronk> have tried annotation-based approaches, they seem to work a lot better
20: [01:18:12] <Hailwood> Is there a method on a dataobject to dynamically add items to the statics? e.g. I want to loop over a couple of classes and call a method on them to find any db/has_one etc's that I need to add to this primary class
21: [01:18:32] <Admonish> spronk how long did you use API blueprints for ?
22: [01:18:39] <spronk> still using
23: [01:18:58] <spronk> used fora few years so far, through apiary.io
24: [01:20:16] <Admonish> spronk did you find that it helped your project stay more organized? The company Im working for is looking to create a very large scale RESTful API
25: [01:20:33] <spronk> Admonish hmm
26: [01:20:41] <spronk> we pretty much use it solely for documentation these days
27: [01:20:53] <Admonish> ahh ok
28: [01:21:01] <spronk> have set up gulp workflows to run integration tests to produce the API blueprint JSON
29: [01:21:24] <spronk> Admonish what were you hoping to get out of it?
30: [01:21:33] * Nightjar has joined #silverstripe
31: [01:22:56] <Admonish> spronk I had heard that these languages helped large scale API developers with not only documentation, and organization but also help with communication between the company and clients.
32: [01:23:07] <spronk> hmm
33: [01:23:15] <spronk> so basically, good docs :P
34: [01:23:34] <Admonish> ;D
35: [01:23:36] <spronk> for what it's worth, if I were starting fresh I'd probably be looking pretty closely at swagger over the rest
36: [01:23:37] * Audlex quit (Remote host closed the connection)
37: [01:23:49] * Audlex has joined #silverstripe
38: [01:23:50] <Admonish> oh?
39: [01:23:54] * Audlex quit (Changing host)
40: [01:23:54] * Audlex has joined #silverstripe
41: [01:23:58] <spronk> seems like it's got the best adoption and best tooling
42: [01:24:47] <Admonish> I read that they donated swagger to Open API Initiative (OAI).
43: [01:24:59] * micmania1 has joined #silverstripe
44: [01:25:01] <Admonish> Makes sense I suppose
45: [01:25:41] <spronk> yeah
46: [01:26:00] <spronk> i'd also look a little at protocol buffers and thrift, by the way
47: [01:26:02] <Admonish> Google, IBM, CapitolOne all teaming up to make an OpenAPISpec. Swagger would definitly help them to promote it
48: [01:26:06] <spronk> they don
49: [01:26:16] <Admonish> what are those?
50: [01:26:25] <spronk> xplatform serialisation and rpc tech
51: [01:27:20] <Admonish> :o I swear that wasn't english
52: [01:27:25] <spronk> :)
53: [01:27:28] <Admonish> ;D
54: [01:27:42] <Admonish> Ill take a look for sure
55: [01:29:06] <spronk> we've been looking at thrift for defining data schemas
56: [01:29:33] <spronk> using its JSON serialisation to produce output for our restful APIs, using its binary serialisation for internal RPC
57: [01:30:00] <Admonish> Is thrift run by apache now? Or am I looking at the wrong thing
58: [01:30:04] <spronk> yeah
59: [01:30:08] <spronk> really poor docs tho
60: [01:30:09] <spronk> :<
61: [01:30:28] <Admonish> Lol I can see that
62: [01:32:32] <Admonish> spronk thanks for your input by the way
63: [01:32:38] <spronk> all g
64: [01:32:50] <spronk> im still trying to find the right place for this stuff as well
65: [01:33:32] <Admonish> spronk super annoying when the companies that are competing for market share are the only ones that are comparing eachothers products
66: [01:33:50] <ss23> spronk: you should fix that
67: [01:33:51] <ss23> write docs.
68: [01:34:01] <spronk> lol?
69: [01:34:09] <spronk> Admonish mm
70: [01:34:36] * Admonish rubs spronk with a tortoise
71: [01:34:41] <Admonish> XD had to
72: [01:34:48] <spronk> :O
73: [01:34:50] <spronk> rape!
74: [01:34:59] <Admonish> :O
75: [01:36:19] <spronk> :P
76: [01:36:54] * Nightjar quit (Ping timeout: 260 seconds)
77: [01:39:37] * micmania1 quit (Quit: micmania1)
78: [01:42:25] <DanaeNZ> woah I missed something
79: [01:45:22] <spronk> o_O
80: [01:46:50] * Nightjar has joined #silverstripe
81: [01:53:33] * muskie9 quit (Quit: My Mac has gone to sleep. ZZZzzz…)
82: [02:00:11] <Admonish> lol
83: [02:00:25] <Admonish> spronk have you seen this already
84: [02:00:27] <Admonish> http://diwakergupta.github.io/thrift-missing-guide/
85: [02:00:31] <spronk> yep
86: [02:00:53] <Admonish> Just wanted to make sure :D
87: [02:01:44] * muskie9 has joined #silverstripe
88: [02:06:04] * Nightjar quit (Ping timeout: 260 seconds)
89: [02:10:43] <LokiNZ> Quick question, I have a GalleryItem class setup and it links a gallerypage using $has_one. I also have a class for Product, and i want to add a gallery to a product, can I add another $has_one for Product or will that mess up whats it happening with the gallerypage link. i guess what I am asking is do those $has_one links have to exist? Should I create a new class for productgallery instead?
90: [02:20:03] * Nightjar has joined #silverstripe
91: [02:21:32] * Dedra quit (Quit: Bye guys, have to go!)
92: [02:30:30] * muskie9 quit (Quit: My Mac has gone to sleep. ZZZzzz…)
93: [02:33:07] * muskie9 has joined #silverstripe
94: [02:35:23] <Hailwood> so, Hey LokiNZ You should be able to make "GalleryItem" has_one "Page" and the relationship will work for either class.
95: [02:37:25] <LokiNZ> my Product is not a Page, it's a standalone object
96: [02:39:12] <Hailwood> Oh I see, then in that case yeah two relations, one for Page and one for Product
97: [02:43:04] <LokiNZ> cool, I just dont want to break my pretty galleries :)
98: [02:43:32] <Admonish> So I am trying to use the TreeDropDown field like so: TreeDropdownField::create('CountryID','Country',Country::get()->map('ID','Name')),
99: [02:43:58] <Hailwood> Er... why TreeDropdownField for that?
100: [02:44:04] <Admonish> And Im getting this error: Object of class SS_Map could not be converted to string
101: [02:44:09] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
102: [02:44:14] <Admonish> Im trying to use the AJAX functionality
103: [02:44:34] <Admonish> its for a country dropdown....sooo yeah
104: [02:44:42] <Admonish> lots of countries
105: [02:44:48] <Hailwood> I see, well try TreeDropdownField::create('CountryID','Country','Country')
106: [02:44:59] <Hailwood> Side note, SS has a built in CountryDropdownField
107: [02:45:16] <Admonish> ...
108: [02:45:17] <Admonish> no
109: [02:45:20] <Admonish> does it?
110: [02:45:26] <Hailwood> Yeah, but it's not ajax
111: [02:45:38] <Admonish> oh ok I feel better now
112: [02:45:41] <Admonish> XD
113: [02:46:08] <Hailwood> Lol, anyway, did using the string 'Country' work?
114: [02:47:23] <Admonish> Well it did get rid of that error.. Now I get this one when I click the field:
115: [02:47:24] <Admonish> the method 'markpartialtree' does not exist
116: [02:47:24] <Admonish> on 'Country'
117: [02:48:24] <Hailwood> Heh, probably need to look at "SiteTree" and "Member" and see what they have in common to make them work with the TreeDropdownField
118: [02:48:43] <Admonish> Indeed. Thanks for the help :D
119: [02:50:47] <Admonish> This could be one of the following: - A DataObject class name with the Hierarchy extension. - An array of key/value pairs, like a DropdownField source. In this case, the field will act like show a flat list of tree items, without any hierarchy. This is most useful in conjunction with TreeMultiselectField, for presenting a set of checkboxes in a compact view. Note, that all value strings must be XML encoded safely prior to being passed in.
120: [02:50:58] <Admonish> thats what the docss say about the third parameter
121: [02:51:51] <Admonish> I think i can get around this if I retrieve the data and store it in an array and then use the array as the third param
122: [02:52:01] <Hailwood> Ok, so you can either implement Heirachy, or try TreeDropdownField::create('CountryID','Country',Country::get()->map('ID','Name')->toArray())
123: [02:55:02] <Admonish> ...Now I get this : [Warning] class_exists() expects parameter 1 to be string, array given
124: [02:55:11] <Admonish> lol it cant make up its mind
125: [02:57:23] <Admonish> and this :[Warning] interface_exists() expects parameter 1 to be string, array given
126: [02:57:50] <Hailwood> Sounds like the docs are wrong and it doesn't actually support an array
127: [02:58:05] <Hailwood> so if you want treedropdownfield then looks like heirachy is your only option
128: [02:58:21] <Admonish> Oh wait, I scrolled to the bottom and found this one
129: [02:58:21] <Admonish> [User Error] DataList::create Can't find data classes (classes linked to tables) for Array. Please ensure you run dev/build after creating a new DataObject.
130: [03:01:16] <Admonish> Hailwood I think your right though
131: [03:01:43] <Admonish> wouldn't be the first time I have had trouble with the docs
132: [03:02:16] * micmania1 has joined #silverstripe
133: [03:07:19] * UncleCheese has joined #silverstripe
134: [03:07:45] <micmania1> “ss23 was demoted from operator by ss23.” - who’s gunna write the docs now :(
135: [03:07:55] <ss23> :(
136: [03:28:08] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
137: [03:34:09] * Nightjar quit (Ping timeout: 260 seconds)
138: [03:57:47] <spronk> god 2degrees have turned snap useless
139: [04:01:20] * Stomach quit (Quit: zzz)
140: [04:07:28] <DanaeNZ> spronk: i feel you
141: [04:07:48] <DanaeNZ> can't wait to move out, then I get to leave snap hahaha
142: [04:07:54] <DanaeNZ> first to find a place to move to
143: [04:08:54] * Admonish quit (Quit: Going offline, see ya! (www.adiirc.com))
144: [04:09:13] * Phlunk3 quit (Quit: Leaving)
145: [04:09:25] * Stomach has joined #silverstripe
146: [04:12:18] * Nightjar has joined #silverstripe
147: [04:15:26] * spronk has just signed up for another 24 months with them :<
148: [04:16:11] <spronk> ... pretty much solely because it's going to be a lot cheaper. And the technical side of things has been OK. Just that god damn helpdesk..
149: [04:17:39] <spronk> oh look
150: [04:17:41] <spronk> and the first error
151: [04:18:00] <spronk> According to the confirmation email i signed up to an open term plan. But I did not.
152: [04:33:27] <Hailwood> Hey folks, is it possible to have a FormAction skip validation?
153: [04:33:45] <Hailwood> Basically I want a "Previous Step" action.
154: [04:45:19] * Nightjar quit (Ping timeout: 260 seconds)
155: [05:03:10] * Nightjar has joined #silverstripe
156: [05:04:27] * Admonish has joined #silverstripe
157: [05:06:07] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
158: [05:10:45] <Admonish> alright everyone Im out for the night
159: [05:10:50] <Admonish> Cya
160: [05:11:13] <Admonish> P.S. Thanks for the help Spronk and Hailwood
161: [05:11:22] * Admonish quit (Quit: Going offline, see ya! (www.adiirc.com))
162: [05:27:25] * UncleCheese has joined #silverstripe
163: [05:31:25] * Stomach quit (Quit: zzz)
164: [05:40:37] * metaspike has joined #silverstripe
165: [05:42:26] <metaspike> I want to define the what the -parent- of an object is in a has_many relationship.
166: [05:47:10] * micmania1 quit (Quit: micmania1)
167: [05:48:01] * DanaeNZ quit (Quit: TIME TO FEED)
168: [05:54:26] * Stomach has joined #silverstripe
169: [06:03:30] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
170: [06:17:38] <Nightjar> metaspike, huh?
171: [06:18:02] <Nightjar> you mean in that the parent is different to the reverse of the relationship?
172: [06:23:33] <metaspike> kinda, there are two has_many relationships on object1 to object2.
173: [06:25:17] <metaspike> but when referring to either of them, it comes up with the same objects, these need to be two seperate lists.
174: [06:25:57] <metaspike> so I end up here ;)
175: [06:33:18] <metaspike> nvm, think I found the issue
176: [06:33:49] * Nightjar quit (Ping timeout: 260 seconds)
177: [06:54:09] * Stomach quit (Ping timeout: 250 seconds)
178: [06:57:13] * pweh has joined #silverstripe
179: [07:03:09] * arnhoe has joined #silverstripe
180: [07:18:13] * Stomach has joined #silverstripe
181: [07:20:28] * Stomach quit (Client Quit)
182: [07:21:26] * Stomach has joined #silverstripe
183: [07:35:05] * deschebbs has joined #silverstripe
184: [07:42:42] * WebDevB has joined #silverstripe
185: [07:43:56] <WebDevB> Anyone around
186: [07:48:49] * darianno has joined #silverstripe
187: [07:49:23] * swaiba has joined #silverstripe
188: [07:49:48] * agent44 has joined #silverstripe
189: [07:57:13] * kinglozzer has joined #silverstripe
190: [07:57:40] * pweh quit (Ping timeout: 252 seconds)
191: [08:17:24] <WebDevB> I'm having an issue with a custom search function that i've wrote.
192: [08:17:51] * janneklouman-- has joined #silverstripe
193: [08:18:16] <WebDevB> Basically I query 4 models and then join them into an array which works fine and seems to be working ok... the issue is i'm trying to sort the results by date order again works well but it's grouping them in the models that they belong too not the overall array.
194: [08:18:28] <WebDevB> Can anyone help with this, don't mind sharing some code.
195: [08:22:18] * pweh has joined #silverstripe
196: [08:26:09] * Mike123 has joined #silverstripe
197: [08:26:23] <Mike123> hey
198: [08:26:57] * UncleCheese has joined #silverstripe
199: [08:28:53] <WebDevB> Hey
200: [08:34:01] <WebDevB> kinglozzer, could I pick your brain for a second.
201: [08:34:50] <swaiba> WebDevB why not just use an array with the date as teh key and then sort them
202: [08:35:10] <WebDevB> swaiba: what do you mean?
203: [08:35:11] <swaiba> you cannot use SQL style sorting on an ArrayList... like unless you implement a sql backend to it
204: [08:35:46] <swaiba> array( $date => $object,$date => $object,$date => $object,$date => $object)
205: [08:35:52] <swaiba> the ksort it
206: [08:35:58] <swaiba> you have the list of objects in date order
207: [08:43:40] * Mike123 quit (Ping timeout: 250 seconds)
208: [09:00:41] <WebDevB> swaiba... here's the code, can you help? I'm not used to SilverStripe and i'm picking this up from another developer: https://codeshare.io/MdLFH
209: [09:04:24] <WebDevB> swaiba: kinglozzer: can anyone help?
210: [09:04:30] * Stomach quit (Quit: zzz)
211: [09:05:34] <swaiba> WebDevB 250 lines of code? can you refine the question to something more clear and I'll look
212: [09:07:13] <WebDevB> swaiba: sorry, basically between lines 25 - 228 you can see the search queries and then adding it into the pagaination... this all works but it's grouping the results on within the models that they've come from and not sorting on the final view by date for all Models.
213: [09:08:55] <kinglozzer> ini_set('memory_limit','256M'); that's a bad sign (・_・;)
214: [09:08:56] <kinglozzer> :P
215: [09:09:31] <kinglozzer> Err, so you're doing ArrayList->sort('Date DESC') (I assume DESC is supposed to be quoted on line 225)
216: [09:11:03] <kinglozzer> Afaik it should inspect each object in the list and sort by the value it finds, but I'd guess it's not working as you're passing it a formatted date
217: [09:11:10] <kinglozzer> So it's just trying to sort on a string
218: [09:11:14] <kinglozzer> (probably, just a theory)
219: [09:11:45] <kinglozzer> I'd try adding something like 'Timestamp' => strtotime($vehicle_date) to your _addResult() function, then sort by Timestamp DESC
220: [09:11:47] <swaiba> I'd back that up a little, I saw some custom rearranging of date formats which made me think "oh dear"
221: [09:12:10] <swaiba> and yes time stamp is good, but I think the key point is to ensure that is one consistent field
222: [09:14:07] <swaiba> WebDevB when picking up code, it's often just as good oto refactor it to solve your problem
223: [09:14:18] <swaiba> of course provided there is some good test coverage, if not do that first :)
224: [09:16:33] <WebDevB> Thanks for looking guys... the field in the db is set to date so it should be Ok right?
225: [09:16:50] <WebDevB> haha we can remove that memory limit.
226: [09:19:20] <WebDevB> It's working in a away that the search results are sorted by date correctly but it's grouping the results by type e.g cars, bikes, automobilia so to see the latest automobilia you have to scroll to page 12.
227: [09:24:26] <WebDevB> swaiba: kinglozzer: any help guys would be great.
228: [09:25:24] * micmania1 has joined #silverstripe
229: [09:26:58] <kinglozzer> We have our own work to do WebDevB!
230: [09:27:24] <WebDevB> kinglozzer: swaiba: I know, sorry guys. :-(
231: [09:27:27] <kinglozzer> WebDevB: Also, you've got $data->sort('...'), but it should really be $data = $data->sort('...')
232: [09:28:30] <swaiba> WebDevB my advice stands, refactor to make it more clear and use a consitent key to sort by
233: [09:29:37] * Nightjar has joined #silverstripe
234: [09:31:53] <swaiba> evening Nightjar
235: [09:34:04] * Nightjar quit (Ping timeout: 260 seconds)
236: [09:34:20] * pweh is now known as p\-^w_e\\^wh
237: [09:35:56] * p\-^w_e\\^wh is now known as pweh
238: [09:46:07] <WebDevB> kinglozzer, that's fixed it!!!!
239: [09:46:09] <WebDevB> Thanks so much guys
240: [09:46:19] <kinglozzer> Heh, no problem
241: [09:48:32] * deschebbs quit (Ping timeout: 240 seconds)
242: [10:21:35] * deschebbs has joined #silverstripe
243: [10:33:04] * pweh quit (Read error: Connection reset by peer)
244: [10:52:33] <micmania1> I saw on irc this morning that someone had trouble with the node_modules directory. If you’re here today, here’s how to fix: add ‘node_modules’ to ignore_vcs in framework/core/FileFinder. We had this issue once and it took about 5 minutes to flush each time :(
245: [10:54:30] * spronka has joined #silverstripe
246: [10:55:01] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
247: [10:58:54] <swaiba> micmania1 you could update the forum post they highlighted...
248: [10:59:23] <micmania1> swaiba: will do :)
249: [10:59:35] <micmania1> I just made this too: https://github.com/silverstripe/silverstripe-framework/pull/5869
250: [10:59:54] * swaiba thumbs up to micmania1
251: [11:00:02] <micmania1> oh god, I remember forums :|
252: [11:00:21] <swaiba> I've mostly moved to stake overflow now
253: [11:00:31] <micmania1> I can’t even log in any more :/
254: [11:00:45] <swaiba> it's much cleaner, less noise and at least you get some rep for helping!
255: [11:00:55] <swaiba> I'd suggest SS to push SO much more
256: [11:03:04] <micmania1> I’m surprised more peole haven’t had that issue tbh
257: [11:15:13] <ss-helper> SilverStripe restrict level-3 child pages - http://stackoverflow.com/questions/38765668/silverstripe-restrict-level-3-child-pages
258: [11:32:51] <kinglozzer> micmania1, swaiba: Life is like an npm install, you never know what you're gonna get
259: [11:33:10] * micmania1 quit (Quit: micmania1)
260: [11:35:30] * micmania1 has joined #silverstripe
261: [11:35:41] <micmania1> kinglozzer: :|
262: [11:35:50] * micmania1 goes to clinic just in case
263: [11:36:02] <kinglozzer> lol
264: [11:36:22] <kinglozzer> there's probably a JS library named after everything you'd go to the clinic for
265: [11:36:33] <micmania1> haha probably
266: [11:36:35] <kinglozzer> <noun>.js
267: [11:36:41] <micmania1> npm install herpies
268: [11:37:16] <kinglozzer> npm test herpies?
269: [11:42:43] <micmania1> npm install -g herpies
270: [11:43:29] * agent44 quit (Ping timeout: 258 seconds)
271: [11:46:40] * darjusIT has joined #silverstripe
272: [11:47:43] <darjusIT> Hi, when I am making new page in code i do $newProduct->write(); and then doPublish(), how to make it live also?
273: [11:49:06] <swaiba> $newProduct->writeToStage('Stage');$newProduct->publish("Stage", "Live");
274: [11:49:11] <swaiba> darjusIT ^^
275: [11:54:10] * agent44 has joined #silverstripe
276: [12:18:07] * UndefinedOffset has joined #silverstripe
277: [12:42:27] * swaiba quit (Remote host closed the connection)
278: [12:50:34] * micmania1 quit (Quit: micmania1)
279: [12:55:58] <janneklouman--> I need to sort a datalist of virtualpages on a field of the page which it is copying content from. Easily achievable?
280: [13:03:50] * muskie9 has joined #silverstripe
281: [13:30:16] <ss-helper> Sorting list of VirtualPages on a field from its Page - http://stackoverflow.com/questions/38768557/sorting-list-of-virtualpages-on-a-field-from-its-page
282: [13:39:10] * agent44 quit (Quit: zzz)
283: [13:41:48] * UndefinedOffset quit (Quit: Leaving.)
284: [13:42:47] * agent44 has joined #silverstripe
285: [13:50:08] * agent44 has left #silverstripe
286: [14:01:15] * spronka quit (Quit: My Mac has gone to sleep. ZZZzzz…)
287: [14:21:20] * UndefinedOffset has joined #silverstripe
288: [15:05:01] * darianno quit (Quit: Textual IRC Client: www.textualapp.com)
289: [15:26:18] * arnhoe quit ()
290: [15:38:31] <terryapodaca> How can I use summary() or something similar to get the first 2 or 3 paragraphs instead of just the first like the default summary() does?
291: [15:38:34] <terryapodaca> in a template
292: [15:40:36] * adrexia quit (Read error: Connection reset by peer)
293: [15:41:05] * adrexia has joined #silverstripe
294: [15:44:31] <muskie9> terryapodaca if you're going for paragraphs you could write a method that parses out the 3 paragraphs... or add a summary field so the user can paste in what they want as a preview
295: [15:44:45] <muskie9> we tend to do the latter with a fallback to first paragraph
296: [15:46:21] <terryapodaca> muskie9: I just read that on nyeholt's news module, good idea with the summary field and fall back to the default .summary() first paragraph
297: [15:46:38] <muskie9> 👍
298: [15:47:06] <terryapodaca> I just didn't know if there was a SS default function that could tell how many paragraphs, like they have for counting words/characters, etc
299: [15:47:52] <muskie9> summary lets you count words for HtmlText: http://api.silverstripe.org/3.3/class-HTMLText.html#_Summary
300: [15:48:11] <muskie9> same with Text I guess
301: [15:48:37] <AlphaCactus> I didn't see anything more elaborate either
302: [15:49:12] <muskie9> fun fact for the day... when using site search and providing a summary, use .ContextSummary() and it'll display a summary focused around the found search term for each result: http://api.silverstripe.org/3.3/class-Text.html#_ContextSummary
303: [15:50:43] <terryapodaca> but $Content.Summary in the template pulls the first paragraph
304: [15:51:00] <terryapodaca> I was mostly talking or asking about a template function
305: [15:51:18] <muskie9> ya, there's nothing built in... you'd have to create it
306: [15:56:31] * kinglozzer quit ()
307: [16:06:51] * janneklouman-- quit (Ping timeout: 276 seconds)
308: [16:25:59] * WebDevB quit ()
309: [16:40:37] * darjusIT quit (Quit: Leaving)
310: [16:51:11] <AlphaCactus> How do I make my controller that extends Page_Controller render like a Page using Page.ss as outer template and place content from my controller into $Layout wither manually or from a layout template without putting it into the SiteTree?
311: [16:51:29] * Admonish has joined #silverstripe
312: [16:56:14] * XorPush has joined #silverstripe
313: [16:57:21] <AlphaCactus> AlphaCactus: you should just put it in the site tree...
314: [16:59:46] * Admonish quit (Quit: Going offline, see ya! (www.adiirc.com))
315: [17:04:00] <XorPush> anybody active now?
316: [17:07:22] <metaspike> Hell Xor
317: [17:07:34] <metaspike> Hello*
318: [17:08:02] <XorPush> hi :)
319: [17:08:17] <XorPush> I am stuck a bit, maybe you could help
320: [17:08:33] <metaspike> maybe, what's up?
321: [17:09:26] <XorPush> I have a dataobject A wich has a relation has_many to dataobject B and B has_one C, now I would like to filter dataobject A based on dataobject C id
322: [17:10:29] <XorPush> how can I achieve that using ORM
323: [17:10:57] <metaspike> heard of relational tables in traditional SQL schemas?
324: [17:11:13] <metaspike> im guessing B is like that?
325: [17:12:02] <AlphaCactus> $listofA->innerJoin('B','"B"."ID" = "A"."BID"')->filter(array('CID',42);
326: [17:12:47] <XorPush> ah that? never used it, saw it somwhere, Ill try, thanks!
327: [17:12:55] <metaspike> n1
328: [17:17:39] <AlphaCactus> Might have to rework that join a little bit ...
329: [17:20:21] <AlphaCactus> $listofA->innerJoin('B','"B"."AID" = "A"."ID"')->filter('CID',42); since it's a has_many B actually has ID's to A
330: [17:24:15] <XorPush> yes U R right, already got the error :)
331: [17:25:08] <XorPush> but the concept is clear, I wasn't aware of this use of innerjoin, thank you once again!
332: [17:27:54] <AlphaCactus> 👍
333: [17:33:18] * Admonish has joined #silverstripe
334: [17:33:38] * metaspike quit (Quit: Leaving)
335: [17:34:35] <terryapodaca> What's the syntax for controlling the number of rows the HtmlEditorField is in the CMS?
336: [17:34:47] <terryapodaca> i tried ->rows(10) and that didn't work
337: [17:35:55] <AlphaCactus> setRows() ?
338: [17:36:46] <terryapodaca> ah ha!
339: [17:36:50] <terryapodaca> thanks AlphaCactus
340: [17:37:57] <AlphaCactus> happy to help
341: [17:40:02] <XorPush> just a feedback: works like a charm !
342: [18:27:12] * XorPush quit (Quit: Page closed)
343: [18:28:20] * muskie9 quit (Quit: My Mac has gone to sleep. ZZZzzz…)
344: [18:28:38] <terryapodaca> Happy Friday you Kiwi's!!!!!!!!!!!!!
345: [18:28:59] <terryapodaca> it's still 1:30 PM Thursday over here in the states
346: [18:29:24] * muskie9 has joined #silverstripe
347: [18:32:59] <AlphaCactus> psh, 11:30 am...
348: [18:42:10] * adrexia quit (Read error: Connection reset by peer)
349: [18:42:39] * adrexia has joined #silverstripe
350: [18:49:08] * terryapodaca quit (Ping timeout: 250 seconds)
351: [18:51:46] * terryapodaca has joined #silverstripe
352: [18:52:10] * adrexia quit (Read error: Connection reset by peer)
353: [18:52:44] * adrexia has joined #silverstripe
354: [18:59:06] * terryapodaca quit (Ping timeout: 250 seconds)
355: [19:01:40] * terryapodaca has joined #silverstripe
356: [19:06:47] * UncleCheese has joined #silverstripe
357: [19:09:00] * deschebbs quit (Quit: Konversation terminated!)
358: [19:20:27] * terryapodaca quit (Ping timeout: 250 seconds)
359: [19:21:37] * terryapodaca has joined #silverstripe
360: [19:41:37] * janneklouman-- has joined #silverstripe
361: [20:07:38] * terryapodaca has left #silverstripe
362: [20:12:28] * Stomach has joined #silverstripe
363: [20:19:42] * janneklouman-- quit (Ping timeout: 276 seconds)
364: [20:28:31] * UndefinedOffset quit (Quit: Leaving.)
365: [20:31:35] * Nightjar has joined #silverstripe
366: [20:31:59] <Nightjar> oh fuck, forgot to tell metaspike to dot.notation
367: [20:32:22] <Nightjar> That's awkward
368: [20:32:24] <Nightjar> :(
369: [20:33:16] * Phlunk3 has joined #silverstripe
370: [20:34:10] <Nightjar> AlphaCactus, NOOOOOOOOOOOOOOOOO
371: [20:34:22] <AlphaCactus> what happened?
372: [20:34:45] <Nightjar> wait, hang on
373: [20:35:02] <Nightjar> oh ok, never mind :>
374: [20:35:09] <AlphaCactus> 0___o
375: [20:35:19] <Nightjar> reading wrong answer
376: [20:36:17] <Nightjar> !seen
377: [20:36:17] <ss-helper> Nightjar: Who do you want me to look up?
378: [20:36:17] <Audlex> Nightjar: I have not seen
379: [20:36:25] <Nightjar> !seen metaspike
380: [20:36:25] <ss-helper> Nightjar: I last saw metaspike 3 hours ago
381: [20:36:26] <Audlex> Nightjar: I last saw metaspike quiting 3hrs 2mins 47secs ago with the message Quit: Leaving
382: [20:36:29] <Nightjar> dang.
383: [20:37:23] <Nightjar> AlphaCactus, I thought for a sec you'd given this answer ( https://silverstripe.logged.nz/index.php?date=2016-08-04#log_1886142 ) to this question: https://silverstripe.logged.nz/index.php?date=2016-08-04#log_1885984
384: [20:38:07] <AlphaCactus> oh
385: [20:38:26] * janneklouman-- has joined #silverstripe
386: [20:38:28] <Nightjar> where the correct answer is simply instead of $has_many = ['Thing','Thing']; to $has_many = ['Thing.RelName', 'Thing.OtherRel'];
387: [20:39:01] <Nightjar> But I went AFK before giving answer to metaspike and so now I feel like a shitty person.
388: [20:39:35] <Nightjar> though they do say 'nvm, think I found the issue' which may imply it's in the docs somewhere. I hope it is :>
389: [20:40:09] * micmania1 has joined #silverstripe
390: [20:40:10] * micmania1 quit (Client Quit)
391: [20:41:26] <Nightjar> AlphaCactus, anyway... the dangers of using ctrl+f too early in the morning. Sorry, carry on :>
392: [20:41:30] <AlphaCactus> Don't think I've ever had to do that before. Time for an example in SO Docs
393: [20:41:42] <Nightjar> SO Docs?
394: [20:41:52] <AlphaCactus> StackOverflow Documentation beta
395: [20:41:58] <AlphaCactus> http://stackoverflow.com/documentation/silverstripe/topics
396: [20:41:59] <Nightjar> wut
397: [20:42:44] <Nightjar> also http://silverstrip.es
398: [20:43:01] <Nightjar> and of course docs.silverstripe.org & api.silverstripe.org
399: [20:43:32] <Nightjar> which, btw, are controlled via open source - so pull requests to update docs are always welcome! ;)
400: [20:45:31] <AlphaCactus> someday I shall have to have someone teach me about pull requests...
401: [20:47:25] * adrexia quit (Read error: Connection reset by peer)
402: [20:47:54] * adrexia has joined #silverstripe
403: [20:50:27] * terryapodaca has joined #silverstripe
404: [20:51:17] <terryapodaca> hey guys, how do I embed a youtube or vimeo video via that CMS with the Insert Media button from the Content WYSIWYG?
405: [20:52:04] <terryapodaca> the tutorial made it look as simple as clicking Add from Web, enter the URL and it just magically appears, but the tutorial looked like a much older version of SS 3
406: [20:52:25] <muskie9> terryapodaca it should be pretty much the same
407: [20:53:09] <terryapodaca> http://tpr.cultivateapps.com/stories/
408: [20:53:15] <terryapodaca> do you see a link or a video?
409: [20:53:37] <AlphaCactus> i see a video
410: [20:53:39] <terryapodaca> On mine, it's only showing a link
411: [20:56:31] <muskie9> ya, video for me
412: [20:56:54] <muskie9> https://puu.sh/qpYFG/5f04d18806.png
413: [20:57:07] <AlphaCactus> yeah looks like what I see
414: [20:57:31] <terryapodaca> http://i.imgur.com/W745w3O.png
415: [20:57:36] <terryapodaca> weird
416: [20:57:52] <AlphaCactus> I'm using firefox
417: [20:57:56] <muskie9> that IE?
418: [20:58:01] <muskie9> I was in chrome
419: [20:58:06] <terryapodaca> Opera
420: [20:58:15] <muskie9> ah
421: [20:58:18] <terryapodaca> but it's the same in IE/FF and Chrome
422: [20:58:21] <muskie9> maybe that's the reason
423: [20:58:28] <muskie9> chrome/safari are good here
424: [20:58:48] <AlphaCactus> Chrome ok for me too
425: [20:59:14] <muskie9> terryapodaca anything in console?
426: [20:59:21] <muskie9> or server logs?
427: [20:59:38] <terryapodaca> nope
428: [20:59:44] <muskie9> weird
429: [21:00:02] <terryapodaca> but I did a ctrl+f5 and it worked
430: [21:00:04] * Nightjar quit (Ping timeout: 260 seconds)
431: [21:01:10] <terryapodaca> ok, now how do I make those video's resopnsive? I see SS puts them in a div that holds a designated pixel height and width
432: [21:01:28] <terryapodaca> responsive
433: [21:01:44] <muskie9> have to add classes in via the html button me thinks
434: [21:06:57] * chillu_23 has joined #silverstripe
435: [21:07:21] <Hailwood> Morning people!
436: [21:07:34] <AlphaCactus> o/
437: [21:07:56] <Hailwood> - People and cacti
438: [21:08:20] <terryapodaca> o/
439: [21:09:58] * Nightjar has joined #silverstripe
440: [21:11:45] <Nightjar> AlphaCactus, is easy. Git your git like you git. Then you just click the button.
441: [21:11:57] * janneklouman-- quit (Ping timeout: 260 seconds)
442: [21:12:25] <Nightjar> terryapodaca, you just paste the video link, yeh.
443: [21:12:31] <Nightjar> it works via oembed
444: [21:13:14] <Nightjar> terryapodaca, I see a panda, yeh.
445: [21:13:39] <AlphaCactus> roger that Nightjar
446: [21:13:43] <Nightjar> terryapodaca, if you have only link, try re-enabling the javascript or whatever you've fiddled with to debug with.
447: [21:14:03] <Nightjar> blocking JS >may< cause it. Otherwise some other kind of adblocker or somesuch
448: [21:14:31] <muskie9> I've got ad blockers on and still see it
449: [21:14:38] <terryapodaca> Just pasting the video link just puts the link in there like my screenshot
450: [21:14:44] <Nightjar> AlphaCactus, yeh, the tricky bit is gitting your git like you don't normally git.
451: [21:14:54] <terryapodaca> I used the Media button on the WYSIWYG
452: [21:14:59] <Nightjar> always branch. That's a gimmie. But the squashing can be confusing.
453: [21:15:05] <terryapodaca> but I got it working now
454: [21:15:24] <terryapodaca> trying a technique from SmashingMag to make it responsive
455: [21:21:25] * DanaeNZ has joined #silverstripe
456: [21:23:42] <DanaeNZ> goooooood moooorning vietnam!
457: [21:24:53] * terryapodaca1 has joined #silverstripe
458: [21:25:08] * terryapodaca quit (Ping timeout: 250 seconds)
459: [21:28:40] * micmania1 has joined #silverstripe
460: [21:30:59] * Nightjar quit (Ping timeout: 260 seconds)
461: [21:35:10] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
462: [21:38:49] * UncleCheese quit (Read error: Connection reset by peer)
463: [21:45:10] * Nightjar has joined #silverstripe
464: [21:49:09] <Nightjar> terryapodaca1, you set in a container, define a width, then a percentage for the height. Tell the iframe or whatever to be 100%/100%. Then changing the width of the parent keeps aspect ratio and boom, ez.
465: [21:49:16] <Nightjar> or something like that.
466: [21:49:43] <Nightjar> I think maybe I used % on the padding, rather than the height maybe.
467: [21:49:52] <Nightjar> the abs. align the iframe.
468: [21:49:56] <Nightjar> idk, something like that.
469: [21:50:10] <Nightjar> It's not as mind blowingly hard as some people make out it might be.
470: [21:50:26] <Nightjar> gidday DanaeNZ
471: [21:50:34] <DanaeNZ> o/
472: [21:51:36] <Nightjar> Morgen, Morena, Dobre Rano, ohayoo gozaimasu
473: [21:51:43] <Nightjar> etc etc
474: [21:51:48] <Nightjar> 'n shit like that.
475: [21:52:15] <Nightjar> FRIDAY FRIDAY FRIDAY GOTTA GET DOWN ON FRIDAY
476: [22:01:37] <ss23> LOOKING FORWARD TO THE WEEKEND
477: [22:01:44] <ss23> time to play that on the office speakers
478: [22:02:21] <DanaeNZ> ss23: does your office use one of those "vote for music" things?
479: [22:02:26] <DanaeNZ> sneak it in
480: [22:02:30] <DanaeNZ> when no one is looking
481: [22:02:49] <ss23> lol
482: [22:02:54] <ss23> naw, plugged directly into my PC
483: [22:02:54] <ss23> :3
484: [22:03:00] <Hailwood> Even easier
485: [22:03:08] <ss23> currently playing Destroyer of the Universe - Amon Amarth
486: [22:03:12] <ss23> next up is Friday
487: [22:03:16] <ss23> The genre shift is going to be great
488: [22:03:45] <DanaeNZ> glory
489: [22:06:37] <ss23> it's not working they're liking it and someone is singing along to it
490: [22:08:28] <ss23> WE WE SO EXCITED
491: [22:08:30] <ss23> WE SO EXCITED
492: [22:09:31] <ss23> wow it goes on for a lot longer than you think doesn't it
493: [22:25:47] <DanaeNZ> generally terrible songs do
494: [22:26:04] <DanaeNZ> GOTTA GIT DEWN AHN FREIIDAYYYIII
495: [22:34:06] <DanaeNZ> hey cwp is thinking my base url is https
496: [22:34:08] <DanaeNZ> staahhhpp
497: [22:36:24] <ss23> fix it :O
498: [22:40:00] * pippy has joined #silverstripe
499: [22:40:27] <pippy> is it just me, or has $Me stopped working?
500: [22:40:28] <pippy> http://stackoverflow.com/questions/17921642/silverstripe-looping-over-non-associative-array-in-template
501: [22:40:44] <DanaeNZ> i'm tryyyying
502: [22:44:25] <DanaeNZ> ugh i can't figure out why it reckons base_tag is https
503: [22:47:50] <DanaeNZ> whatever, this shit should be using agnostic protocols anyway
504: [22:48:27] <AlphaCactus> pippy yeah i was trying to do that just today and didn't work, 3.3.2. had to use ArrayData
505: [22:59:42] * adrexia quit (Read error: Connection reset by peer)
506: [23:03:51] * spronk quit (Quit: I may need a longer sleep timer...)
507: [23:07:45] <Nightjar> DanaeNZ, more like, why is your base url NOT https!?
508: [23:08:02] <Nightjar> pippy, because array, don't array. It's not a thing.
509: [23:08:16] <Nightjar> template != php.
510: [23:08:50] <Nightjar> sometimes autocasting happens, but in that case it's probably array therefore arraylist, not arraydata.
511: [23:08:52] <Nightjar> maybe
512: [23:08:53] <Nightjar> idk
513: [23:09:01] <Nightjar> explicitly make it arraydata, problem solved.
514: [23:09:43] <Nightjar> oic, you have arraylist.
515: [23:09:51] <Nightjar> objects in it aren't Viewable
516: [23:09:55] <Nightjar> objects in it aren't ViewableData though.
517: [23:10:44] <Nightjar> but yeh, seems like it should work by magic still. If it doesn't make issue on the githubs.
518: [23:11:36] <DanaeNZ> Nightjar: I'd like https all the time
519: [23:11:43] <Nightjar> doitdoitdoit
520: [23:12:02] <Nightjar> DanaeNZ, you know what I want?
521: [23:12:16] <Nightjar> I quite wouldn't mind if npm install actually fuck'n worked for once.
522: [23:12:24] <Nightjar> NODE, ONLY NEVER ONCE.
523: [23:13:14] <Nightjar> npm ERR! Maximum call stack size exceeded
524: [23:13:20] <Nightjar> THE FUCK IS WRONG WITH YOU
525: [23:17:15] * DanaeNZ quit (Quit: TIME TO FEED)
526: [23:22:31] * Admonish quit (Quit: Going offline, see ya! (www.adiirc.com))
527: [23:23:10] * DanaeNZ has joined #silverstripe
528: [23:54:16] * spronk has joined #silverstripe
529: [23:57:03] <DanaeNZ> omg finally upgraded phpstorm

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