#silverstripe IRC Log

IRC log for 11 July 2016

All timestamps are in UTC.

1: [00:00:01] * ss-helper quit (Remote host closed the connection)
2: [00:00:15] * ss-helper has joined #silverstripe
3: [00:00:47] <Nightjar> Tron, yeah, sniff the domain.
4: [00:00:55] <Nightjar> the usual way these sorts of things happen.
5: [00:01:08] <Nightjar> :>
6: [00:01:51] <DanaeNZ> Tron: you could set a constant in your _ss_environment.php, then check for it in your config.yml. Although I guess you're doing it all in _config.php so same diff
7: [00:02:37] <Tron> Ok yea that makes sense, thanks guys
8: [00:03:01] <Tron> on a side note trainer names? =)
9: [00:11:01] <Stomach> zubatsrghey
10: [00:15:58] * DanaeNZ quit (Remote host closed the connection)
11: [00:16:32] * DanaeNZ has joined #silverstripe
12: [00:20:49] * DanaeNZ quit (Ping timeout: 252 seconds)
13: [00:35:55] <Nightjar> iliekmudkipz
14: [00:36:11] * Stomach quit (Ping timeout: 240 seconds)
15: [00:42:43] * DanaeNZ has joined #silverstripe
16: [00:43:06] <DanaeNZ> someone put lures on the pokestops by smales farm
17: [00:43:18] <DanaeNZ> all that's round there are fucking rattatas
18: [01:08:05] * Stomach has joined #silverstripe
19: [01:27:40] * Tron quit (Ping timeout: 250 seconds)
20: [02:04:26] <pippy> https://github.com/otago/remote-asset-download
21: [02:12:03] <Nightjar> It's always rattata in the beginning, if playing red & blue taught me anything 17 years ago.
22: [02:12:35] <DanaeNZ> The gym down the road is pretty contested at the moment
23: [02:12:41] <DanaeNZ> still not 100% sure how they work though
24: [02:13:12] <ss23> TEAM MYSTIC
25: [02:13:44] <DanaeNZ> haha what team are you really on ss23
26: [02:13:47] <DanaeNZ> TEAM ROCKET
27: [02:14:42] <ss23> I don't play
28: [02:14:42] <ss23> :(
29: [02:14:46] <DanaeNZ> broooo
30: [02:46:46] * Stomach quit (Quit: zzz)
31: [02:55:42] * Stomach has joined #silverstripe
32: [03:05:47] <Stomach> DanaeNZ yeah I haven't even entered a gym yet
33: [03:05:48] <Stomach> too scared
34: [03:10:48] * sminnee has left #silverstripe
35: [03:19:05] <DanaeNZ> There's a couple down the road
36: [03:19:16] <DanaeNZ> But my pokemon aren't very strong
37: [04:21:11] <Nightjar> bro, do they even lift?
38: [04:21:57] <DanaeNZ> not even
39: [04:22:23] <Nightjar> http://i.imgur.com/nRJQY.jpg
40: [04:34:00] * pippy quit (Ping timeout: 250 seconds)
41: [04:36:37] * DimiStripe_alt has joined #silverstripe
42: [04:36:39] * DimiStripe quit (Ping timeout: 250 seconds)
43: [04:36:40] * DimiStripe_alt is now known as DimiStripe
44: [04:44:24] * spronk has joined #silverstripe
45: [05:01:05] * Stomach quit (Quit: zzz)
46: [05:25:12] * Nightjar quit (Quit: Leaving)
47: [05:27:00] * DanaeNZ quit (Remote host closed the connection)
48: [05:27:35] * DanaeNZ has joined #silverstripe
49: [05:32:07] * DanaeNZ quit (Ping timeout: 252 seconds)
50: [05:34:56] * Stomach has joined #silverstripe
51: [05:53:59] * Stomach quit (Quit: zzz)
52: [05:55:56] * micmania1 quit (Quit: micmania1)
53: [07:21:02] * arnhoe has joined #silverstripe
54: [07:31:53] * darianno has joined #silverstripe
55: [07:32:01] * Stomach has joined #silverstripe
56: [07:32:42] * Stomach quit (Client Quit)
57: [07:41:03] * wmk has joined #silverstripe
58: [08:08:40] * kinglozzer has joined #silverstripe
59: [08:15:29] * XorPush has joined #silverstripe
60: [08:35:41] * spronk quit (Read error: Connection reset by peer)
61: [08:56:29] <XorPush> hi! I am trying to use gridfield on the frontend, and the link on edit button is looks like this : "EditForm/field/controller/item/10/edit" should I use routes.yml to overwrite it or there is a configuration oprion for it? I need only "edit/$ID"
62: [08:57:39] * swaiba has joined #silverstripe
63: [09:13:18] * Stomach has joined #silverstripe
64: [09:24:26] * DimiStripe quit (Quit: DimiStripe)
65: [09:28:49] * Stomach quit (Quit: zzz)
66: [09:28:54] * DanaeNZ has joined #silverstripe
67: [09:29:05] * DimiStripe has joined #silverstripe
68: [09:33:28] * DanaeNZ quit (Ping timeout: 264 seconds)
69: [09:45:31] * tester_ has joined #silverstripe
70: [09:45:33] <tester_> hi, everyone
71: [09:46:12] <tester_> I want to make dropdownfield on select changes other dropdownfield value according to records
72: [09:46:17] <tester_> here is the screeshot
73: [09:46:34] * wmk quit (Ping timeout: 240 seconds)
74: [09:47:08] <tester_> https://snag.gy/gGl1m2.jpg
75: [09:48:14] <TombL> tester_: you can check if https://github.com/sheadawson/silverstripe-dependentdropdownfield meets your requirements
76: [09:48:53] <tester_> how can I achieve this, is there any module for that
77: [09:53:22] * tester_ quit (Ping timeout: 250 seconds)
78: [09:58:26] <swaiba> tester_ what TombL said, great module
79: [09:58:36] * testrer has joined #silverstripe
80: [09:58:37] <ss-helper> testrer: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
81: [09:58:53] <swaiba> testrer what TombL said, great module
82: [10:05:20] <testrer> hi swaiba, hi had the question that can I get the records in that manner as I asked earlier
83: [10:05:37] <testrer> here is the screenshot https://snag.gy/XsjloB.jpg
84: [10:06:41] <swaiba> yes testrer I read your description and seen that image twice
85: [10:06:52] <swaiba> for third time :)
86: [10:06:52] <swaiba> testrer what TombL said, great module
87: [10:07:29] <testrer> sorry! but could I can get that module name again
88: [10:13:41] <testrer> please help me out, I am stuck at this point
89: [10:20:15] <testrer> ?
90: [10:22:49] <swaiba> https://github.com/sheadawson/silverstripe-dependentdropdownfield
91: [10:26:39] <testrer> thanks a lot swaiba
92: [10:26:45] <testrer> :)
93: [10:26:48] <swaiba> welcome
94: [10:33:25] * darianno quit (Quit: My Mac has gone to sleep. ZZZzzz…)
95: [10:38:33] * darianno has joined #silverstripe
96: [10:43:38] * testrer quit (Ping timeout: 250 seconds)
97: [11:02:02] * Faloude has joined #silverstripe
98: [11:02:02] <ss-helper> Faloude: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
99: [11:05:04] * Faloude quit (Client Quit)
100: [12:00:14] <ss-helper> SilverStripe CMS custom css - http://stackoverflow.com/questions/38306387/silverstripe-cms-custom-css
101: [12:22:35] * mbogaert has joined #silverstripe
102: [12:22:43] <mbogaert> hi everybody
103: [12:22:52] <mbogaert> i have a silverstripe memberprofiles question
104: [12:23:14] <mbogaert> i can't seem to find how to translate the labels of the profile form
105: [12:23:22] <mbogaert> anybody has an idea?
106: [12:30:59] * UndefinedOffset has joined #silverstripe
107: [12:36:18] * mbogaert quit (Ping timeout: 250 seconds)
108: [12:39:21] <swaiba> well mbogaert... oh...
109: [12:39:40] <swaiba> I was gonna ask if it is the module or not. but yeah it is quiet in here today
110: [12:40:11] * MrGuits quit (Ping timeout: 240 seconds)
111: [12:43:19] * muskie9 has joined #silverstripe
112: [12:52:30] * mbogaert has joined #silverstripe
113: [12:52:57] * elgabbu has joined #silverstripe
114: [12:53:01] <mbogaert> @swaiba
115: [12:53:07] <mbogaert> i'm back
116: [12:53:17] <swaiba> so mbogaert, is it the module?
117: [12:53:53] <mbogaert> you mean this: https://github.com/silverstripe-australia/silverstripe-memberprofiles
118: [12:53:55] <mbogaert> yes
119: [12:54:49] <elgabbu> hi guys how does one save the value of many many extrafield?
120: [13:04:24] <elgabbu> ok figured out using add function :) thanks anyways :)
121: [13:08:28] <muskie9> elgabbu in the cms or processing a frontend form?
122: [13:11:10] <swaiba> mbogaert then I'm sure they woudl have made the required cahnges to the module...
123: [13:11:47] <swaiba> e.g. /silverstripe-memberprofiles/blob/master/templates/Layout/MemberProfilePage_profile.ss#L8
124: [13:12:12] <swaiba> this uses the "_t" function that would translate the test based on the locale
125: [13:13:30] <mbogaert> indeed, they provide translated strings
126: [13:14:00] <mbogaert> I'm assuming the translation of the form fields is similar
127: [13:14:07] <mbogaert> by a specific key in the yaml file
128: [13:14:12] <mbogaert> but I can't seem to find it
129: [13:14:12] <swaiba> so whats the question then mbogaert?
130: [13:14:16] <muskie9> elgabbu if you're in the cms, here's an example new TextField('ManyMany[MyField]', 'My Field');
131: [13:14:20] <muskie9> https://silverstripe.logged.nz/index.php?date=2016-01-06#log_1822456
132: [13:14:56] <mbogaert> for example, there is the (default) field 'Surname' of a member
133: [13:15:18] <mbogaert> I want it translated, so I'm looking for the entry I need to write in the yml files
134: [13:15:37] <mbogaert> [lang].member.SURNAME isn't working...
135: [13:18:02] <swaiba> well the trick is you have to be sure you've got translatable text
136: [13:18:14] <swaiba> when you are sure it is because you've found the _t bit
137: [13:18:32] <swaiba> if you cannot find it then it might not be translatable right now
138: [13:18:42] <swaiba> and then you either have to make it so or hack it so or give up
139: [13:30:21] * DanaeNZ has joined #silverstripe
140: [13:31:11] * slievr has joined #silverstripe
141: [13:34:51] * DanaeNZ quit (Ping timeout: 250 seconds)
142: [13:38:27] * DarjusIT has joined #silverstripe
143: [13:43:00] <mbogaert> is there a way to have a dynamic translatable key in silverstripe?
144: [13:47:41] <cloph_away> please describe what a "dynamic translatable key" should do/what your end goal is...
145: [14:02:19] * DanaeNZ has joined #silverstripe
146: [14:07:00] * slievr1 has joined #silverstripe
147: [14:09:02] * mbogaert quit (Ping timeout: 250 seconds)
148: [14:10:13] * slievr quit (Ping timeout: 252 seconds)
149: [14:17:48] * muskie9 quit (Ping timeout: 276 seconds)
150: [14:20:38] * slievr has joined #silverstripe
151: [14:21:08] * mbogaert has joined #silverstripe
152: [14:21:12] <mbogaert> for example
153: [14:21:20] <mbogaert> i have a profile form
154: [14:21:27] <mbogaert> through silverstripe member profiles
155: [14:21:44] <mbogaert> which uses the formfield_holder.ss from the framework templates
156: [14:21:52] <mbogaert> in that holder the label is just rendered as $title
157: [14:22:06] <mbogaert> i want it to render as _t($title, $title)
158: [14:22:12] <mbogaert> but that doesn't seem to work
159: [14:23:16] * slievr1 quit (Ping timeout: 264 seconds)
160: [14:36:10] * muskie9 has joined #silverstripe
161: [14:36:20] * darianno quit (Quit: Textual IRC Client: www.textualapp.com)
162: [15:20:06] * arnhoe quit ()
163: [15:21:36] <elgabbu> Thanks muskie9 i was in GridField_action provider but thanks i managed with calling add function on the manymany list
164: [15:21:52] <elgabbu> and passing the field in the array of the second parameter :)
165: [15:22:07] <muskie9> ah, nice!
166: [15:23:03] <elgabbu> another question maybe you can help muskie9 ... if i'm in the index function of a page controller .. and I want to trigger a 404 page ...
167: [15:23:21] <elgabbu> I am using $this->httpError(404);
168: [15:23:44] <muskie9> you're returning that? or just $this->httpError(404)
169: [15:23:52] <elgabbu> but It seems that the page rendered is missing CSS ..
170: [15:24:25] <muskie9> you're calling the parent::init() in your init() function?
171: [15:25:35] <elgabbu> well im not overridding it ...
172: [15:27:34] <elgabbu> sry yes I am returning it ... i can see the content inserted in the admin for the 404 page ...
173: [15:27:41] <elgabbu> just no CSS files are included in the page
174: [15:28:05] <elgabbu> and I have confirmed that the Requirments:: calls to include have been done
175: [15:34:06] * Guits has joined #silverstripe
176: [15:37:26] * XorPush quit (Ping timeout: 250 seconds)
177: [15:40:30] * lietzmk has joined #silverstripe
178: [15:41:29] <AlphaCactus> One time we couldn't get requirements to work is is because the / was missing from the </head> tag in the template which is something SS specifically checks for before including requirements.
179: [15:59:24] <muskie9> elgabbu do you have the generated 404 file in the assets folder and a page in the site tree for 404's?
180: [16:00:05] <elgabbu> i have the page in the site tree ... when I publish the page the static file gets generated but its empty 0kb
181: [16:01:14] <muskie9> that's odd, just checked one of mine and it should have some content in it
182: [16:01:35] <muskie9> I'm not 100% sure how all the error handling is done unfortunately
183: [16:10:33] * Guits quit (Ping timeout: 240 seconds)
184: [16:14:42] * mbogaert quit (Ping timeout: 250 seconds)
185: [16:19:27] * Guits has joined #silverstripe
186: [16:26:30] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
187: [16:27:33] * Guits quit (Ping timeout: 240 seconds)
188: [16:28:26] * muskie9 has joined #silverstripe
189: [16:29:11] * kinglozzer quit ()
190: [16:34:19] * DanaeNZ quit (Ping timeout: 252 seconds)
191: [16:38:51] * muskie9 quit (Ping timeout: 240 seconds)
192: [16:40:10] * slievr quit (Quit: Leaving.)
193: [17:05:34] * Guits has joined #silverstripe
194: [17:19:56] * Guits quit (Quit: Leaving)
195: [17:32:37] * slievr has joined #silverstripe
196: [17:44:49] <AlphaCactus> Why on a server with cpanel is a command line script that refs a custom action in a custom controller is redirecting to login?
197: [17:49:07] <AlphaCactus> Directory thinks it isn't being called by cli
198: [17:50:51] <AlphaCactus> Found Answer: http://www.silverstripe.org/community/forums/general-questions/show/22663
199: [18:07:21] * slievr quit (Quit: Leaving.)
200: [18:50:03] <neomang> maybe I'm crazy but didnt silverstripe used to have (even within the last couple versions) a built in .csv handler for dataobjects?
201: [18:50:26] <neomang> I could have sworn I saw it, even gave you the required columns to include
202: [19:21:11] <AlphaCactus> you mean like CSVParser and CSVBulkLoader and CMSBatchActionHandler and such?
203: [19:30:22] <neomang> I'm looking at those but I swear I saw a built in one actually on the modeladmin page for the dataobject
204: [19:31:06] <AlphaCactus> Are you importing or exporting?
205: [19:33:39] <neomang> importing
206: [19:59:37] <neomang> the exporter is still there but that only exports the columns i have displayed in the gridfield
207: [20:01:53] * Stomach has joined #silverstripe
208: [20:09:23] * gelignite has joined #silverstripe
209: [20:13:35] <lietzmk> Yes I seen that Importer
210: [20:16:14] <lietzmk> its there in version 3
211: [20:17:02] <AlphaCactus> I think I saw something saying they removed it because you can write your own custom one? But I could be wrong about that. Mine always have funky conditions so I always write my own.
212: [20:23:42] <neomang> dang, i figured it'd just be easiest but i don't wanna downgrade just for that
213: [20:23:52] <neomang> just wanted to make sure I wasnt missing it
214: [20:31:42] * DanaeNZ has joined #silverstripe
215: [20:36:28] * DanaeNZ quit (Ping timeout: 264 seconds)
216: [20:40:47] * UndefinedOffset quit (Quit: Leaving.)
217: [20:55:16] * DanaeNZ has joined #silverstripe
218: [20:55:35] <neomang> Ah! I found it! They hid it within the search box
219: [20:56:05] <neomang> Excellent. I just need to transfer some data from wordpress so it's already in a similar format to what I needed
220: [20:56:11] * XorPush has joined #silverstripe
221: [20:56:48] * newbee has joined #silverstripe
222: [20:57:38] <newbee> hello, can anyone help me on DependentDropdownField, I can't get the selected field value for other DependentDropdownField values updateion
223: [20:57:42] <newbee> how can I do so
224: [20:58:58] * Stomach quit (Quit: zzz)
225: [20:59:01] * terryapodaca has joined #silverstripe
226: [20:59:18] * camfindlay has joined #silverstripe
227: [20:59:38] <DanaeNZ> pokemon servers were down this morning
228: [20:59:43] <DanaeNZ> what's the point walking to work
229: [21:00:25] <xyphoid> ikr
230: [21:00:56] * pippy has joined #silverstripe
231: [21:01:05] <newbee> could you please help me on this on DependentDropdownField, I can't get the selected field value for other DependentDropdownField values updation
232: [21:02:02] <neomang> DanaeNZ: servers crashed just as I was closing in on a scyther. of all the rotten luck
233: [21:02:20] <DanaeNZ> newbee: sorry I never heard of a DependentDropdownField
234: [21:02:29] <DanaeNZ> neomang: holy shit nooo
235: [21:02:40] <DanaeNZ> yesterday I caught a fucking gyarados tho
236: [21:02:45] <DanaeNZ> incense is OP
237: [21:02:59] <neomang> I'm still trying to farm magikarp. 400 is so ridiculous
238: [21:03:08] <DanaeNZ> it's the way it's meant to be
239: [21:03:20] <DanaeNZ> I'm surprised and disappointed I could catch a gyarados like that lol
240: [21:03:30] <neomang> what cp?
241: [21:03:42] <xyphoid> i was at the coffee shop last night, opened the app while waiting, and a dude opens the door, says 'hey the library portal has a lure!' and left
242: [21:03:57] <xyphoid> several people got up and left that way haha
243: [21:04:48] <DanaeNZ> xyphoid: ahahah awesome
244: [21:04:54] <DanaeNZ> neomang: about 600
245: [21:05:04] <DanaeNZ> I'm level 10
246: [21:05:05] <neomang> jesus, that's high
247: [21:05:12] <DanaeNZ> it's crazy
248: [21:05:19] <neomang> I'm 11 and I've only caught up to 309
249: [21:05:28] * newbee quit (Ping timeout: 250 seconds)
250: [21:05:36] <neomang> about to evolve some eevees though, should be nice
251: [21:05:42] * Stomach has joined #silverstripe
252: [21:06:12] <DanaeNZ> I need 2 more eevees
253: [21:06:20] <DanaeNZ> I want a vaporeon or a flareon
254: [21:07:31] <neomang> I'm actually hoping for a jolteon
255: [21:07:45] <neomang> lots of high vaporeons in gyms near me just begging to get shocked
256: [21:08:03] <DanaeNZ> I should hope for jolteon, there's a gym nearby with a lot of water types
257: [21:08:23] <DanaeNZ> but the higher levels are flying/bug type
258: [21:08:25] <DanaeNZ> oh wait
259: [21:08:33] <DanaeNZ> lightning v flying is good
260: [21:09:42] * Stomach quit (Client Quit)
261: [21:10:43] * Stomach has joined #silverstripe
262: [21:16:56] * XorPush quit (Quit: Page closed)
263: [21:17:38] * camfindlay quit (Quit: camfindlay)
264: [21:19:53] * Tron has joined #silverstripe
265: [21:20:54] * Nightjar has joined #silverstripe
266: [21:21:57] <Nightjar> Composer install started ~8:50.
267: [21:22:00] <Nightjar> Still going.
268: [21:23:06] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
269: [21:26:31] * DanaeNZ quit (Remote host closed the connection)
270: [21:26:46] * micmania1 has joined #silverstripe
271: [21:27:03] * DanaeNZ has joined #silverstripe
272: [21:27:55] * DanaeNZ quit (Remote host closed the connection)
273: [21:28:07] * DanaeNZ has joined #silverstripe
274: [21:28:44] <Tron> wow whys it taking so long...
275: [21:45:50] <Stomach> cardboard computer
276: [21:47:48] <terryapodaca> Hey guys, I've been working with SS for a long while and just now started getting these error/warnings: fileinfo support, tidy support and display_errors option
277: [21:48:01] <terryapodaca> should I find a fix or are these pretty common?
278: [21:48:07] <terryapodaca> Dreamhost VPS host
279: [21:50:39] <Nightjar> Tron, because it's composer. Also might have been a slight miscalculation on my part. Also wifi. and slow internet.
280: [21:51:06] <Nightjar> terryapodaca, they're not huge dealbreakers so far as I know, but fixing them would be nice I'm sure.
281: [21:51:38] <Nightjar> luckily for you 2 of the 3 are apt-get install php5-that-thing
282: [21:51:45] <Nightjar> and the other is an ini edit.
283: [21:52:25] <terryapodaca> alright...I am on a very tight deadline so I won't worry about them right away and try to fix them later
284: [21:52:29] <Nightjar> alternatively, take the opportunity to learn the Ansible, if you're not already using some magic conf control thing
285: [21:52:36] <terryapodaca> as long as the site should still function properly
286: [21:52:37] <Nightjar> oh, well yeah.
287: [21:52:44] <Nightjar> _should_, afaik.
288: [21:53:04] <terryapodaca> thanks!
289: [21:53:34] <Nightjar> but you could get things like deprecation warnings showing up in live site, but that's the simple ini change. Should take all of about 2 minutes, max.
290: [21:54:11] <Nightjar> SS tries to set at runtime iirc, but it's not ideal to rely on that.
291: [21:54:23] <terryapodaca> right
292: [22:09:52] <DorsaiNZ> Anyone know how to alter the SiteTree display - I want to alter the Title of a node/page for specific types under certain circumstances i.e. it is not a blanket change
293: [22:12:07] * micmania1 quit (Quit: micmania1)
294: [22:12:25] * micmania1 has joined #silverstripe
295: [22:13:04] <DorsaiNZ> I have tracked down a function in LeftAndMain_TreeNode that if I alter does what is required but I am not sure how to over ride that function from within my code
296: [22:17:35] <terryapodaca> The only one I didn't turn on is Tidy
297: [22:17:38] <terryapodaca> Don't care for that
298: [22:36:45] <DanaeNZ> holy crap pokemon servers are still down
299: [22:36:57] <DanaeNZ> I want to go for a walk
300: [22:37:05] <DanaeNZ> but what's the point if I can't catch pokemon
301: [22:45:31] <Stomach> hahahahaha
302: [22:49:05] * muskie9 has joined #silverstripe
303: [23:05:28] * tester has joined #silverstripe
304: [23:06:30] <tester> how to get value of dependent dropdown
305: [23:07:20] <tester> screenshot
306: [23:07:20] <tester> https://snag.gy/d3xrVe.jpg
307: [23:07:32] <DanaeNZ> What even is dependent dropdown
308: [23:07:41] <Nightjar> DorsaiNZ, I don't understand your question.
309: [23:08:01] <Nightjar> terryapodaca, depending on your version it might do some things with things that thing.
310: [23:08:03] <Nightjar> not sure though.
311: [23:08:27] <Nightjar> might just be a 'nice' rather than a 'need'.
312: [23:08:37] <tester> how can I get DependentDropdownField selected value for updating other DependentDropdownField field
313: [23:08:52] <tester> I am not getting value but getting id of records
314: [23:08:59] <Nightjar> is this a module tester ?
315: [23:09:07] <tester> www.sspaste.com/paste/show/578426bb28521
316: [23:09:23] <muskie9> Nightjar https://github.com/sheadawson/silverstripe-dependentdropdownfield#usage-example
317: [23:10:00] <Nightjar> tester, sounds like you need to specify your map.
318: [23:10:13] <Nightjar> rather than fret about the module and it's operations
319: [23:10:18] <muskie9> tester I believe val in your closure on line 15 is the selected value
320: [23:10:25] <muskie9> er, $val rather
321: [23:10:40] <Nightjar> tester, with no Name or Title, a DataObject will return eg. '#3'
322: [23:10:44] <Nightjar> as it's name.
323: [23:10:58] * micmania1 quit (Quit: micmania1)
324: [23:11:14] <Nightjar> so if your Model object has eg 'ModelName', implement a getName() method that returns the value of ModelName
325: [23:11:16] <muskie9> so if($val == 'something'){ return array(); }elseif($val === 'somethingelse'){return $anotherArray = array(); }
326: [23:11:34] <tester> muskie9 I am already using that module class, but I have issues with getting records DependentDropdownField value for other DependentDropdownField field
327: [23:11:36] <tester> https://github.com/sheadawson/silverstripe-dependentdropdownfield#usage-example
328: [23:12:00] <Nightjar> tester, you've just said "problems", not told us what the problem actually is :/
329: [23:13:40] <Nightjar> I gathered that from your description your Models are coming back as '#1, #151, #156' etc.
330: [23:13:54] <Nightjar> in which case, as I said above.
331: [23:14:16] * micmania1 has joined #silverstripe
332: [23:14:21] <Nightjar> Otherwise, please some more detail. The module should take care of getting the value and calling the appropriate endpoint to get the data correctly by itself.
333: [23:14:34] <tester> I am not getting record id, from DependentDropdownField, I am getting id
334: [23:14:58] <Nightjar> ok, that made little sense.
335: [23:15:02] <Nightjar> please, expand
336: [23:15:59] <tester> ok, I am using first dropdownfield, then I am using DependentDropdownField, and making source that dropdownfield for first DependentDropdownField field
337: [23:16:00] <muskie9> Nightjar it's an array with keys starting at 0... so their just normal array ID's rather than an ID from the db...
338: [23:16:10] <DanaeNZ> tester: perhaps give us the bit of code where you are trying to get the value
339: [23:16:28] <Nightjar> or the reason as to WHY you're trying to get the value?
340: [23:16:46] <DanaeNZ> also, I don't think you can get the value in the one getCMSFields function
341: [23:17:02] <Nightjar> DanaeNZ, <tester> www.sspaste.com/paste/show/578426bb28521
342: [23:17:48] <DanaeNZ> Nightjar: yeah saw that - I thought there was another spot he was getting the val, like some entwine script or something
343: [23:18:06] <DanaeNZ> I'm just wondering where that $val variable even comes from
344: [23:18:22] <DanaeNZ> line 15
345: [23:18:25] <Nightjar> yeh that's what I'm trying to figure out too
346: [23:18:36] <Nightjar> I assumed frontend, but seems like I'm probably wrong
347: [23:19:02] <pippy> I'm having composer slowness too. Frustrating
348: [23:19:03] <DanaeNZ> it seems like it would just break
349: [23:19:44] <DanaeNZ> is line 20 legit?
350: [23:19:47] <muskie9> DanaeNZ Nightjar the module does some of that I think... the closure is called via some ajax and returns the values based on the logic provided...
351: [23:20:14] * tester quit (Ping timeout: 250 seconds)
352: [23:20:16] <Nightjar> depends on how it all works really
353: [23:21:18] <muskie9> we've used it on a couple projects, but the closure logic was based on relations or getting the same list twice excluding the already selected value for the second dropdown... guessing there's something not quite right in the written code
354: [23:21:51] <DanaeNZ> Ok I would start first by using just Car::get()->map('ID', 'MakesNiceName')->toArray()
355: [23:21:57] <muskie9> the MakesName would probably be better managed as a has_one in some of the models since it seems a lot of cars share the name
356: [23:21:57] <DanaeNZ> instead of that loop
357: [23:22:39] <muskie9> DanaeNZ I think it needs to be unique too... and if it's just the make name that's needed then ->column('makesName')
358: [23:22:42] <DanaeNZ> then line 16: that's also a problem
359: [23:22:49] <muskie9> is there a unique() or something callable on DataList?
360: [23:22:55] * tester has joined #silverstripe
361: [23:23:09] <DanaeNZ> The map will be MakesNiceName -> MakesNiceName and the datesSource is looking for MakesName
362: [23:23:37] <tester> http://www.sspaste.com/paste/show/578429e9f1a6c
363: [23:23:37] <DanaeNZ> tester: change line 16 from MakesName to MakesNuceName
364: [23:23:43] <muskie9> ah, good catch
365: [23:23:46] <tester> how can I get DependentDropdownField selected value for updating other DependentDropdownField field, I am not getting value but getting id of records
366: [23:23:59] <DanaeNZ> tester read my comment
367: [23:24:09] <DanaeNZ> ok it's line 12 now
368: [23:24:18] <DanaeNZ> line 15 sorry
369: [23:24:46] <DanaeNZ> your source map is MakesNiceName => MakesNiceName
370: [23:25:01] <DanaeNZ> but the datesSource function is looking at MakesName
371: [23:25:53] <Nightjar> that is to say the comment on the sspaste
372: [23:26:07] <Nightjar> ?
373: [23:26:31] * muskie9 some cleanup: https://gist.github.com/muskie9/2ff6e80a8c8f5569d65d806491f90e04
374: [23:26:43] <muskie9> untested
375: [23:27:28] <Nightjar> :o
376: [23:27:48] <muskie9> I guess I didn't look at $yearSource... didn't even notice that if that's the one in question
377: [23:28:03] <Nightjar> ah, the form calls that field as an action
378: [23:28:06] <Nightjar> that's how it works.
379: [23:28:18] <muskie9> yup
380: [23:28:44] <tester> okay, let me check
381: [23:28:47] <muskie9> wonder if $map being overwritten for the dependent's source could be part of the issue depending on how it's called
382: [23:28:57] <Nightjar> tester, also, please... ->map()->toArray()
383: [23:29:05] <Nightjar> No need to manually iterate
384: [23:32:58] <DanaeNZ> Nightjar: god yes
385: [23:33:14] * tester quit (Ping timeout: 250 seconds)
386: [23:33:18] <DanaeNZ> to be specific ->map('MakesName' => 'MakesNiceName)
387: [23:33:19] <DanaeNZ> ffs
388: [23:33:43] <Nightjar> no DanaeNZ, incorrect usage of fat arrow
389: [23:33:49] <Nightjar> but close.
390: [23:34:01] <Nightjar> I'd expect tester to be able to figure that bit out.
391: [23:44:27] * DarjusIT quit (Read error: Connection reset by peer)
392: [23:45:49] * DarjusIT has joined #silverstripe
393: [23:47:47] <DanaeNZ> sorry I'm distracted
394: [23:54:31] <DanaeNZ> pokemon is uuup
395: [23:58:40] <muskie9> someone found a dead body in the US while trying to find a pokemon 😳

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