#silverstripe IRC Log

IRC log for 20 May 2016

All timestamps are in UTC.

1: [00:00:02] * ss-helper quit (Remote host closed the connection)
2: [00:00:17] * ss-helper has joined #silverstripe
3: [00:08:22] * sslearner quit (Ping timeout: 250 seconds)
4: [00:15:03] <ss-helper> Using the personal development server... - https://groups.google.com/d/msg/silverstripe-dev/dG_yJZGoeyE/n58AwsfsCQAJ
5: [00:15:07] <Exor> Hi all, anyone know how I can retrieve a tab by name from a FieldList object?
6: [00:15:15] <Exor> fieldByName doesn't work...
7: [00:18:59] <robbiea> FieldList::findOrMakeTab() returns a Tab, is that what you're after?
8: [00:27:53] <Firesphere> Exor, $fieldList->dataFieldByName() should also work.
9: [00:30:04] <ss-helper> Re: [silverstripe-dev] Using the personal development server... - https://groups.google.com/d/msg/silverstripe-dev/dG_yJZGoeyE/rnV7kXvtCQAJ
10: [00:30:04] <ss-helper> Re: [silverstripe-dev] Using the personal development server... - https://groups.google.com/d/msg/silverstripe-dev/dG_yJZGoeyE/pS9xCHWjCwAJ
11: [00:37:37] * robbiea quit (Remote host closed the connection)
12: [00:38:45] * micmania1 quit (Quit: micmania1)
13: [00:44:59] <Exor> All sorted now thanks guys. Had to do $tab_set = $fields->findOrMakeTab('Root'); $tab = $tab_set->fieldByName('MyTab')
14: [00:45:17] <Exor> A bit confusing I think. Lol.
15: [00:49:06] <Exor> Now, I don't suppose anyone knows how to reorder existing tabs? Their doesn't seem to be any documentation anywhere?
16: [01:16:21] * micmania1 has joined #silverstripe
17: [01:20:04] * Tanger_ has joined #silverstripe
18: [01:42:34] * Stomach quit (Quit: zzz)
19: [01:59:19] * PenguinMan98 quit (Ping timeout: 260 seconds)
20: [02:04:05] * Stomach has joined #silverstripe
21: [02:06:54] * robbiea has joined #silverstripe
22: [02:13:50] <robbiea> What's the current best practice for creating fields? TextField::create() or new TextField() ?
23: [02:15:07] <Stomach> TextField::create
24: [02:15:09] <Firesphere> create
25: [02:15:15] <Stomach> boom
26: [02:15:16] <Stomach> twins
27: [02:15:19] * slievr has joined #silverstripe
28: [02:15:28] <Stomach> robbiea - then you can override the class with an injector if needed :)
29: [02:15:38] <robbiea> cool
30: [02:15:40] <robbiea> thanks
31: [02:16:04] <robbiea> Have parts of the framework been left in the style of new ABC deliberately for backward compatibility?
32: [02:16:41] <Stomach> some things don't extend object
33: [02:16:46] <Stomach> which is where ::create is defined
34: [02:18:44] <robbiea> I see. So for example, I'm currently looking at the TreeDropdownField, which I copied a usage example from SiteTree, and that uses "new TreeDropdownField(...)'
35: [02:18:49] <Firesphere> Although you could call them through Injector::inst()
36: [02:19:43] <Firesphere> That's because it's not updated yet.
37: [02:20:41] <Firesphere> If you look at SiteTree, you see it's used mixed. It should probably be updated
38: [02:21:15] <robbiea> Cool - just wondering :) thanks
39: [02:24:48] * Exor quit (Quit: Page closed)
40: [02:34:38] * Stomach_ has joined #silverstripe
41: [02:37:04] * Stomach quit (Ping timeout: 240 seconds)
42: [03:00:05] <ss-helper> Silverstripe: Email variables not displaying correct information - http://stackoverflow.com/questions/37337218/silverstripe-email-variables-not-displaying-correct-information
43: [03:00:05] * Stomach_ quit (Quit: zzz)
44: [03:02:12] * Stomach has joined #silverstripe
45: [03:06:38] <robbiea> Can I create my own extension hook in a custom method via $this->extend('myHookName', $myData) ?
46: [03:13:10] <Stomach> sure can
47: [03:23:12] <robbiea> party time
48: [03:29:25] <Stomach> :D
49: [03:38:40] * Stomach quit (Read error: Connection reset by peer)
50: [03:39:19] * Stomach has joined #silverstripe
51: [04:04:26] <robbiea> Have a good weekend all - thanks
52: [04:14:05] <Tanger_> Hi all. Has the CMS styling for tabs and stuff in 3.3 changed completely?
53: [04:16:18] * robbiea quit (Remote host closed the connection)
54: [04:22:22] <Tanger_> All good, found it in the 3.3.3 changelogs. Thought I’d deleted a sprite file by accident, haha
55: [04:28:40] * cheddam quit (Quit: Textual IRC Client: www.textualapp.com)
56: [04:35:22] * cheddam has joined #silverstripe
57: [04:36:54] * slievr quit (Ping timeout: 276 seconds)
58: [04:37:14] * Stomach quit (Quit: zzz)
59: [04:41:26] * Stomach has joined #silverstripe
60: [05:00:07] <ss-helper> Silverstripe: Instagram Widget - Undefined property: stdClass::$data - http://stackoverflow.com/questions/37338125/silverstripe-instagram-widget-undefined-property-stdclassdata
61: [05:00:39] * slievr has joined #silverstripe
62: [05:21:07] * Stomach quit (Quit: zzz)
63: [05:23:49] * micmania1 quit (Quit: micmania1)
64: [05:25:10] * Stomach has joined #silverstripe
65: [05:47:57] * wmk has joined #silverstripe
66: [06:03:33] * Mike123 has joined #silverstripe
67: [06:05:17] * Stomach quit (Ping timeout: 276 seconds)
68: [06:30:55] * Eliseth has joined #silverstripe
69: [06:33:53] * Stomach has joined #silverstripe
70: [06:41:14] * Tanger_ quit (Quit: Tanger_)
71: [06:52:51] * Tanger_ has joined #silverstripe
72: [07:02:45] * arnhoe has joined #silverstripe
73: [07:02:59] * swaiba has joined #silverstripe
74: [07:14:18] * cheddam quit (Ping timeout: 246 seconds)
75: [07:19:36] * Stomach quit (Quit: zzz)
76: [07:27:29] <wmk> hmm, login to a ss3.1 site hangs... firebug doesn't show an error
77: [07:30:16] <ss-helper> Re: [silverstripe-dev] Re: PHP/Silverstripe IDE Survey : What IDE do you use for SS work ? - https://groups.google.com/d/msg/silverstripe-dev/bozY5hh9g4c/6s_4hWu6CwAJ
78: [07:33:37] * arnhoe_ has joined #silverstripe
79: [07:34:15] * arnhoe quit (Ping timeout: 260 seconds)
80: [07:37:25] * Stomach has joined #silverstripe
81: [07:43:51] * glenn-bautista quit (Quit: Leaving.)
82: [07:45:17] <ss-helper> AW: [silverstripe-dev] Re: PHP/Silverstripe IDE Survey : What IDE do you use for SS work ? - https://groups.google.com/d/msg/silverstripe-dev/bozY5hh9g4c/wdtZHYG7CwAJ
83: [08:00:26] * kinglozzer has joined #silverstripe
84: [08:21:56] * Agilix_ has joined #silverstripe
85: [08:25:39] * arnhoe has joined #silverstripe
86: [08:28:02] * arnhoe_ quit (Ping timeout: 260 seconds)
87: [08:28:07] * arnhoe__ has joined #silverstripe
88: [08:30:10] * arnhoe quit (Ping timeout: 244 seconds)
89: [08:31:58] * arnhoe__ quit (Read error: Connection reset by peer)
90: [08:31:59] * arnhoe has joined #silverstripe
91: [08:40:58] <Agilix_> hi o/
92: [08:45:18] <ss-helper> Re: [silverstripe-dev] Re: PHP/Silverstripe IDE Survey : What IDE do you use for SS work ? - https://groups.google.com/d/msg/silverstripe-dev/bozY5hh9g4c/q8emB8S-CwAJ
93: [08:45:18] <ss-helper> Re: [silverstripe-dev] SS4 build tooling now documented - https://groups.google.com/d/msg/silverstripe-dev/-lWznj3Wi6I/m7eu54O-CwAJ
94: [09:09:06] * Agent47 has joined #silverstripe
95: [09:15:19] <ss-helper> Re: [silverstripe-dev] Re: PHP/Silverstripe IDE Survey : What IDE do you use for SS work ? - https://groups.google.com/d/msg/silverstripe-dev/bozY5hh9g4c/IDeUNZXACwAJ
96: [09:25:06] * Stomach quit (Quit: zzz)
97: [09:25:23] * Tanger_ quit (Quit: Tanger_)
98: [09:30:19] <ss-helper> Re: [silverstripe-dev] SS4 build tooling now documented - https://groups.google.com/d/msg/silverstripe-dev/-lWznj3Wi6I/xsG2x5nBCwAJ
99: [09:30:20] <ss-helper> Re: [silverstripe-dev] SS4 build tooling now documented - https://groups.google.com/d/msg/silverstripe-dev/-lWznj3Wi6I/wiohiofBCwAJ
100: [09:40:10] * agent44 has joined #silverstripe
101: [09:44:23] * swaiba quit (Remote host closed the connection)
102: [09:45:20] <ss-helper> Re: [silverstripe-dev] PHP/Silverstripe IDE Survey : What IDE do you use for SS work ? - https://groups.google.com/d/msg/silverstripe-dev/bozY5hh9g4c/FTC6jC_CCwAJ
103: [10:00:44] * WebDevB has joined #silverstripe
104: [10:00:47] * wmk quit (Ping timeout: 260 seconds)
105: [10:00:54] <WebDevB> Hey guys, is anyone around to help?
106: [10:05:21] <WebDevB> $Auction = AuctionLot::get()->filter('VehicleID', $vehicle->ID)->limit(1); why would this return all the records?
107: [10:07:52] <kinglozzer> WebDevB: It won't, it'll return 1
108: [10:07:56] <kinglozzer> Do you mean ->first() ?
109: [10:08:11] <WebDevB> kinglozzer it's not working though it's bringing back all the records.
110: [10:09:29] <kinglozzer> WebDevB: $Auction will be a DataList containing one item, if you want it to be an AuctionLot object you need to use ->first() instead of ->limit(1);
111: [10:09:57] <kinglozzer> If it's returning a DataList containing more than one item then that's a very strange bug... Tried using ?showqueries=1 ?
112: [10:13:00] <WebDevB> kinglozzer ok so: $players = AuctionLot::get()->filter('VehicleID', $vehicle->ID)->first();
113: [10:13:17] <WebDevB> $Auction = AuctionLot::get()->filter('VehicleID', $vehicle->ID)->first();
114: [10:13:36] <kinglozzer> Yep
115: [10:15:04] <WebDevB> kinglozzer I then do this: echo $Auction->Estimate; and it bring back every estimate in the table.
116: [10:16:37] * MMKJay has joined #silverstripe
117: [10:16:45] <kinglozzer> WebDevB: Can you paste your model somewhere?
118: [10:17:37] <MMKJay> I've just upgraded a site from 3.1.6 to 3.3.2, and now our Forms are not working. I'm getting a Page Not Found when it tries to hit the form action.
119: [10:17:52] <MMKJay> $LogInForm = new Form( $this, 'doSubmit', $fields, $actions, $validator );
120: [10:18:12] <MMKJay> doSubmit is an Allowed Action and public function. but we just get 404. Same code on 3.1.6 works fine. Any ideas?
121: [10:18:47] <WebDevB> kinglozzer: https://codeshare.io/WdmA6
122: [10:18:51] <kinglozzer> MMKJay: Isn't the 2nd argument the form name, not action name?
123: [10:19:08] <kinglozzer> 'doSubmit' sounds like an action name, I usually just pass __FUNCTION__ as the 2nd arg
124: [10:19:40] <MMKJay> According to the documentation it has to match the action function name.
125: [10:19:55] <kinglozzer> WebDevB: How many times are you calling the method?
126: [10:20:09] <kinglozzer> WebDevB: If you just echo $Auction->ID; does it echo once or many times?
127: [10:20:24] <WebDevB> many times.
128: [10:20:36] <kinglozzer> WebDevB: Well that's why it's echoing multiple estimates
129: [10:20:54] <kinglozzer> MMKJay: Where in the docs does it say that? Sounds wrong... it should be the form name
130: [10:20:57] <WebDevB> kinglozzer: i'm only calling it once
131: [10:21:05] <WebDevB> it's within a foreach statement
132: [10:21:32] <kinglozzer> WebDevB: Can you paste that?
133: [10:21:43] <MMKJay> Kinglozzer: https://docs.silverstripe.org/en/3.3/developer_guides/forms/introduction/
134: [10:21:45] <kinglozzer> I'm not really sure what the problem is
135: [10:21:47] <WebDevB> kinglozzer ignore me.
136: [10:22:05] <MMKJay> under 'Create Form' The URL is known as the $controller instance will know the 'contact-us' link and we provide HelloForm as the $name of the form. $name needs to match the method name.
137: [10:22:05] <kinglozzer> MMKJay: $name, // name of the method that returns this form on the controller
138: [10:22:33] <kinglozzer> Yeah the method name of the method that returns the form ^
139: [10:23:54] <MMKJay> kinglozzer: Ok, i'll give it a go. it seemed to work in the old version of SS
140: [10:24:26] <MMKJay> kinglozzer: if I change it to SubmitForm it tries to submit to Account_Controller/SubmitForm
141: [10:24:35] <kinglozzer> That's correct
142: [10:24:35] <MMKJay> But SubmitForm isn't the method..? doSubmit is...
143: [10:24:53] <kinglozzer> MMKJay: It should submit to that URL, then the action is passed in the POST data
144: [10:25:03] <kinglozzer> action_doSubmit or something
145: [10:25:15] <kinglozzer> It'll then call doSubmit
146: [10:26:17] <MMKJay> kinglozzer: Ok thanks, I'll take a look
147: [10:26:19] <WebDevB> what's the best way to format a money value in a template?
148: [10:26:29] <WebDevB> good old PHP?
149: [10:27:42] <MMKJay> WebDevB: $Money.Nice ?
150: [10:28:04] <MMKJay> WebDevB: You can set the currency symbol with Currency::setCurrencySymbol('&pound;');
151: [10:29:17] * MattyBalaam has joined #silverstripe
152: [10:29:36] <WebDevB> MMKJay so $VehicleEstimate.Nice
153: [10:30:28] <MattyBalaam> I'm trying to get my theme folder, but within _config.php. Unfortunately it always gives me 'mysite', in this case. How do I get my theme folder at this point?
154: [10:31:02] <MMKJay> WebDevB: Yeah should output it in a nice format
155: [10:31:32] <WebDevB> MMKJay nothing gets outputted.
156: [10:31:36] <MMKJay> WebDevB: Looking at your codeshare it would be $Estimate.nice
157: [10:31:57] <MMKJay> WebDevB: VehicleEstimate.Nice isn't a field
158: [10:31:57] <WebDevB> MMKJay yea thanks i've changed it from then.
159: [10:32:13] <WebDevB> It works without the Nice.
160: [10:32:22] <MMKJay> WebDevB: Cool, Got what you want?
161: [10:32:36] <WebDevB> MMKJay yea but it's not formatting it nicely.
162: [10:33:44] <MMKJay> WebDevB: change 'Estimate' => 'Varchar(100)', to 'Estiamte' => 'Currency'
163: [10:34:07] <MMKJay> WebDevB: then you should be able to use nice method on it
164: [10:44:53] <WebDevB> How do I access a has many inside a model?
165: [10:45:18] <WebDevB> So Vehicle->Images ??
166: [10:45:21] <MMKJay> WebDevB: $Object->Many()
167: [10:45:30] <MMKJay> WebDevB: $Vehicle->Images()
168: [10:45:39] <WebDevB> Can I just return 1?
169: [10:45:45] <MMKJay> ->First()
170: [10:45:47] <WebDevB> $Vehicle->Images()->first()
171: [10:45:49] <WebDevB> haha
172: [10:45:52] <WebDevB> Thanks MMKJay
173: [10:45:57] <MMKJay> WebDevB: Or you can run a filter() on it
174: [10:46:17] <WebDevB> Do i have to pass it an ID?
175: [10:46:27] <WebDevB> or will it work that out already?
176: [10:46:39] <MMKJay> WebDevB: You shouldn't have to. it'll just return them all and return just the first in the dataset
177: [10:46:54] <WebDevB> For the relevant Vehicle?
178: [10:46:58] <MMKJay> $Vehicle->Images()->first() should just work. Than you can do things like $Image.ID or $Image.Name
179: [10:47:16] <MMKJay> WebDevB: the vehicle you have returned into $Vehicle Variable
180: [10:47:35] <MMKJay> you'll need one Dataobject in $Vehicle variable. Then you can access Images() on that
181: [10:48:20] <WebDevB> Call to a member function Images() on a non-object
182: [10:48:32] <MMKJay> WebDevB: So it'll be something like $Vehicle = Vehicle::get()->ByID(1); $Vehicle->Images()->First(); Will get you the first image for the Vehicle with an ID of 1
183: [10:48:50] <MMKJay> What are you returning into $Vehicle?
184: [10:49:16] <WebDevB> MMKJay So i'm inside a foreach $vehicles as $vehicle at the moment
185: [10:49:36] <MMKJay> WebDevB: Ok, that should work
186: [10:49:42] <MMKJay> CodeShare you file and i'll take a look
187: [11:01:26] <MMKJay> WebDevB: An improvement I see on your initial Codeshare is $auction = AuctionLot::get()->filter('VehicleID', '1')->first(); can be done with AuctionLot::get()->byID(1);
188: [11:01:48] <MMKJay> WebDevB: this will then return you a single Dataobject saving you from doing a ->first(); or a filter. :)
189: [11:09:27] <elgabbu> hi .... I am intiating an RSSFeed .... but for some weird reason its is ignoring any parameter I send except the first 3 ....
190: [11:09:44] * agent44 quit (Quit: agent44)
191: [11:39:58] <elgabbu> my fuck up sorted thanks
192: [11:55:46] <WebDevB> Hi guys, can anyone help me with a pagination issue?
193: [11:58:07] * kinglozzer quit (Remote host closed the connection)
194: [12:07:30] <MMKJay> WebDevB: I'll take a look if you have some code to share?
195: [12:08:48] <WebDevB> https://codeshare.io/hDwoe line 101 is the PaginatedList
196: [12:27:08] * swaiba has joined #silverstripe
197: [12:36:55] * UndefinedOffset has joined #silverstripe
198: [12:37:17] * marvanni has joined #silverstripe
199: [12:41:50] * kinglozzer has joined #silverstripe
200: [12:49:24] * MMKJay quit (Quit: Page closed)
201: [13:12:22] * Eliseth quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
202: [13:14:34] * DonkeyCongo has joined #silverstripe
203: [13:17:29] <DonkeyCongo> Looking for a freelancer who can help close up a project in the next 5-7 days.
204: [13:23:29] * UndefinedOffset quit (Quit: Leaving.)
205: [13:32:55] * martimiz has joined #silverstripe
206: [13:36:45] * martimiz quit (Client Quit)
207: [13:40:12] * UndefinedOffset has joined #silverstripe
208: [13:40:25] * marvanni quit (Quit: marvanni)
209: [13:46:39] * ss32noob has joined #silverstripe
210: [13:46:58] <WebDevB> MMKJay you managed to take a look?
211: [13:47:28] <ss32noob> hi guys.. is there a way in silverstripe to run the core code first then the dataextension?
212: [13:48:12] <ss32noob> i wanted to decorate a redirectorpage by changing the type of field.. buti couldnt because the field is being created after the dataextension is called...
213: [13:53:37] <kinglozzer> ss32noob: I don't think it's possible. Really, RedirectorPage::getCMSFields() should be wrapped in $this->beforeUpdateCMSFields(function() { .... });
214: [14:01:59] <ss32noob> hmm okay. thanks kinglozzer
215: [14:06:08] * muskie9 has joined #silverstripe
216: [14:11:47] * UndefinedOffset quit (Quit: Leaving.)
217: [14:13:31] * PenguinMan98 has joined #silverstripe
218: [14:15:37] * UndefinedOffset has joined #silverstripe
219: [14:19:00] * Agilix_ quit (Ping timeout: 250 seconds)
220: [14:19:25] * swaiba quit (Remote host closed the connection)
221: [14:36:12] * MattyBalaam quit (Quit: Page closed)
222: [14:51:42] * marvanni has joined #silverstripe
223: [14:56:42] * r3v3rb has joined #silverstripe
224: [14:56:57] <r3v3rb> afternoon
225: [15:02:27] * arnhoe quit ()
226: [15:02:35] * WebDevB quit ()
227: [15:05:22] * Mike123 quit (Ping timeout: 250 seconds)
228: [15:09:56] <kinglozzer> Hey r3v3rb
229: [15:10:06] <r3v3rb> howdy, hows norwich
230: [15:10:19] <r3v3rb> stack is offline! woot
231: [15:10:42] <r3v3rb> no cached version…
232: [15:12:11] <kinglozzer> r3v3rb: Grey :P
233: [15:12:22] <kinglozzer> How's things down your neck of the woods?
234: [15:12:30] <r3v3rb> heh, same here and windy
235: [15:12:53] <kinglozzer> but FRIDAYYY so can't complain :D
236: [15:13:10] <r3v3rb> whats that, makes no difference to me… :D
237: [15:25:32] * Agent47 quit (Quit: Leaving)
238: [15:27:14] <kinglozzer> Heh r3v3rb, it's the precious time of week where I wash my car :D
239: [15:27:38] <r3v3rb> it’ll rain the following day you know
240: [15:27:42] <r3v3rb> kinglozzer: ^^
241: [15:27:56] <kinglozzer> It'll probably rain while I'm washing it :P
242: [15:28:01] <kinglozzer> That's usually my luck
243: [15:28:06] <r3v3rb> its the law
244: [15:28:30] <kinglozzer> I'm gonna spend *hours* on cleaning the damn glass this time... can never get that right
245: [15:28:46] * ss32noob quit (Ping timeout: 250 seconds)
246: [15:28:46] <kinglozzer> It always looks great, until I next drive at night and I see how streaky it is with lights shining on it :(
247: [15:31:06] <r3v3rb> remember to use the über glass repellent http://www.halfords.com/motoring/engine-oils-fluids/screenwash-de-icer/rain-x-rain-repellent-trigger-500ml
248: [15:31:31] <r3v3rb> hardly had to use wipers in lotus whilst it was on the screen
249: [15:31:34] <r3v3rb> love it
250: [15:31:56] <r3v3rb> 70mph hard rain and other drivers think you’re nuts for no wipers!
251: [15:37:36] <kinglozzer> r3v3rb: Nice, need some of that for the rear screen
252: [15:37:49] <kinglozzer> No wiper, supposed to be rain repellent... perhaps the coating has worn off over the years
253: [15:38:11] <r3v3rb> probably
254: [15:39:21] <kinglozzer> Just sitting here looking at it out of the window, it always looks like the front of the car is lifted
255: [15:39:39] <kinglozzer> Gap between the wheel arch and the wheel is about 3x what it is on the rear!
256: [15:40:05] <kinglozzer> Presumably softer suspension to cope with the big lump at the front? Dunno..
257: [15:42:01] * muskie9 quit (Quit: My Mac has gone to sleep. ZZZzzz…)
258: [15:42:20] <r3v3rb> wierd
259: [15:45:41] <r3v3rb> i love colorspaces
260: [15:46:10] <r3v3rb> who would think cmyk to rgb conversion could be so wrong still
261: [15:47:50] * swaiba has joined #silverstripe
262: [15:48:03] * brasileric has joined #silverstripe
263: [15:48:11] <swaiba> hi all quick question
264: [15:48:31] <swaiba> tempalte include order... it goes mysite, modules (in order) and then theme right?
265: [15:48:40] <r3v3rb> illustrator 100c0m0y0k = r0g174b239 = c69m14y0k0 when doing a round trip
266: [15:48:55] <r3v3rb> swaiba: sounds right
267: [15:49:08] <kinglozzer> swaiba: I don't think 'mysite' has any priority over other modules
268: [15:49:16] * muskie9 has joined #silverstripe
269: [15:49:18] <kinglozzer> As far as core is aware 'mysite' *is* a module
270: [15:49:26] <brasileric> hello. How can I remove the left search box in modeladmin?
271: [15:49:31] <swaiba> so modules (including mysite, order by the yml) and then theme?
272: [15:50:00] <kinglozzer> Yeah theme has higher priority, except in admin when theme is disabled of course
273: [15:50:15] <kinglozzer> So it'll look in theme first, then modules
274: [15:50:30] <kinglozzer> I don't know if the template manifest respects yaml orders (I suspect not)
275: [15:50:39] <swaiba> theme has higher prioty, but is overidden by something else?
276: [15:50:50] <r3v3rb> brasileric: have no searchable_fields maybe?
277: [15:51:03] <r3v3rb> on the managed models?
278: [15:51:15] <kinglozzer> swaiba: I don't think it should be..
279: [15:51:39] <r3v3rb> and then have an empty model_importers array too
280: [15:51:49] <swaiba> brasileric http://api.silverstripe.org/3.1/source-class-DataObject.html#1944-2005 and return an empty field list
281: [15:52:19] <swaiba> and every time to test a nice dev build and flush (talking to myself)
282: [15:52:26] <kinglozzer> Oh wait, looking at the template manifest it loos like it could be overridden if global $project is set?
283: [15:52:51] <kinglozzer> Code docs in template manifest say - Returns the correct candidate template. In order of importance, application project code, current theme and finally modules.
284: [15:53:45] <kinglozzer> swaiba: So if you set global $project; $project = 'mysite'; then mysite should override all
285: [15:54:02] <r3v3rb> damn it i’ve overwritten my code that turned my ‘search box’ into a dropdown and cant remember off the top of my head where I had previously added it??!?!? It must be Friday
286: [15:54:36] <swaiba> kinglozzer I'm getting so confsued... https://docs.silverstripe.org/en/3.3/developer_guides/templates/template_inheritance/
287: [15:54:50] <swaiba> this makes it sound very simple... overide by putting it in the theme - end of
288: [15:55:11] <kinglozzer> Yeah, that's correct
289: [15:55:23] <kinglozzer> Theme > modules
290: [15:56:36] <r3v3rb> right time to deal with kids!
291: [15:56:43] <r3v3rb> bb-monday
292: [15:56:54] <r3v3rb> maybe sooner if I get bored and start coding the next stage
293: [15:56:59] * r3v3rb has left #silverstripe
294: [15:56:59] <kinglozzer> swaiba: My list of things I always double-check for template issues: 1. not in the CMS where theme is disabled, 2. Template paths/names match, 3. SSViewer.theme setting is set
295: [15:57:05] * r3v3rb has joined #silverstripe
296: [15:57:09] <r3v3rb> whoops!
297: [15:57:11] <r3v3rb> bye all
298: [15:57:12] <kinglozzer> cya r3v3rb
299: [15:57:15] <r3v3rb> :)
300: [15:57:20] <swaiba> bye r3v3b
301: [15:57:29] <r3v3rb> au revoir
302: [15:57:34] * r3v3rb quit (Quit: r3v3rb)
303: [15:57:46] <swaiba> cheers kinglozzer
304: [15:58:46] * kinglozzer quit ()
305: [15:59:14] <brasileric> swaiba: with that the filters disappear, but the seach box is still there (empty without any filter)
306: [15:59:29] <swaiba> brasileric my bad, sorry
307: [15:59:47] <swaiba> you could always include custom CSS to hide it if desperate
308: [16:00:14] * swaiba quit (Remote host closed the connection)
309: [16:00:30] <brasileric> okay
310: [16:18:58] * brasileric quit (Remote host closed the connection)
311: [16:33:51] * slievr quit (Ping timeout: 276 seconds)
312: [17:00:31] * slievr has joined #silverstripe
313: [17:02:38] * DonkeyCongo quit (Remote host closed the connection)
314: [17:45:53] <ss-helper> Overload Enum in SilverStripe DataExtension - http://stackoverflow.com/questions/37352714/overload-enum-in-silverstripe-dataextension
315: [18:48:11] <neomang> Im writing a BuildTask to update a database with information coming from an api, but I also need to set up a has_one relation for each dataobject with an image file I'll have on the server
316: [18:49:01] <neomang> how would I do that in php, I see the dataobject has_one() function but I'm not sure how I'd actually use it in this case
317: [18:50:36] <muskie9> neomang to set the relation for the has one you can get the image and set the HasOneRelationID = $yourImage->ID
318: [18:55:11] <neomang> so I'd grab the image as a dataobject, then just $baseDataObject->$SeriesImage = $Image->ID assuming my has one was 'SeriesImage'
319: [18:55:25] <neomang> err, ignore the second $ in that
320: [18:56:30] <muskie9> yes, that should work
321: [18:57:06] <muskie9> a has_one relation creates a column in the DataObject/Page's table as RelationNameID
322: [19:02:54] * Stomach has joined #silverstripe
323: [19:05:36] <neomang> alright, awesome. That's nice and easy
324: [19:08:20] * Stomach quit (Quit: zzz)
325: [19:12:05] * gelignite has joined #silverstripe
326: [19:27:12] * Stomach has joined #silverstripe
327: [19:48:23] * Dedra has joined #silverstripe
328: [20:24:05] * UndefinedOffset quit (Read error: Connection reset by peer)
329: [20:30:56] <ss-helper> ModelAdmin Customization of Searchable fields - http://stackoverflow.com/questions/37355219/modeladmin-customization-of-searchable-fields
330: [20:35:39] * Stomach quit (Quit: zzz)
331: [20:42:53] * Stomach has joined #silverstripe
332: [21:02:22] * Stomach quit (Quit: bye)
333: [21:06:34] * shellbac1pacific has joined #silverstripe
334: [21:08:09] * shellbackpacific quit (Ping timeout: 276 seconds)
335: [21:15:06] * shellbac1pacific quit (Ping timeout: 276 seconds)
336: [21:23:25] * Dedra quit (Quit: Bye guys, have to go!)
337: [21:41:47] * marvanni quit (Quit: marvanni)
338: [21:50:04] * Stomach has joined #silverstripe
339: [22:04:11] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
340: [22:14:50] * Stomach quit (Quit: zzz)
341: [22:19:53] * Stomach has joined #silverstripe
342: [22:24:16] * Stomach quit (Client Quit)
343: [23:00:42] <ss-helper> Re: [silverstripe-dev] Re: PHP/Silverstripe IDE Survey : What IDE do you use for SS work ? - https://groups.google.com/d/msg/silverstripe-dev/bozY5hh9g4c/cBtv5ObtCwAJ
344: [23:15:42] <ss-helper> New developer(s) required for PHPstorm SilverStripe plugin. - https://groups.google.com/d/msg/silverstripe-dev/d-uaYWg4uSY/c4ghnv03CgAJ
345: [23:45:59] * PenguinMan98 quit (Ping timeout: 260 seconds)
346: [23:56:34] * gelignite quit (Quit: http://bit.ly/1kso8Ta)

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