#silverstripe IRC Log

IRC log for 3 February 2017

All timestamps are in UTC.

1: [00:10:20] * DanaeNZ quit (Remote host closed the connection)
2: [00:17:31] * DanaeNZ has joined #silverstripe
3: [00:22:53] * BackEndCoder quit (Excess Flood)
4: [00:24:48] * BackEndCoder has joined #silverstripe
5: [00:33:17] * micmania1 has joined #silverstripe
6: [00:45:02] * micmania1 quit (Quit: micmania1)
7: [00:47:01] * micmania1 has joined #silverstripe
8: [00:58:34] * janneklouman-- has joined #silverstripe
9: [01:02:47] * janneklouman-- quit (Ping timeout: 240 seconds)
10: [01:16:22] * micmania1 quit (Quit: micmania1)
11: [01:22:32] * micmania1 has joined #silverstripe
12: [01:24:58] * spronk has joined #silverstripe
13: [01:25:01] <spronk> YESSSSSSSSSS
14: [01:27:42] <DanaeNZ> cricket?
15: [01:27:46] <spronk> no
16: [01:27:54] <spronk> my code is working!
17: [01:27:58] <DanaeNZ> oh.
18: [01:28:00] <DanaeNZ> my.
19: [01:28:01] <DanaeNZ> god.
20: [01:28:04] <spronk> I F K R
21: [01:28:10] <spronk> a. mazing.
22: [01:28:13] <DanaeNZ> well that makes one of us
23: [01:29:12] <spronk> :(*
24: [02:01:39] * terryapodaca has left #silverstripe
25: [02:53:35] <DanaeNZ> yay my local server has decided it's beer o'clock
26: [02:53:40] <DanaeNZ> who needs to dev/build anywys
27: [02:55:13] <Robdgreat> DanaeNZ: your server's jumping the gun, it seems
28: [03:07:06] <spronk> why are almonds so tasty
29: [03:07:18] <spronk> more importantly, why have i run out :(
30: [03:11:55] * Robdgreat DCCs spronk some almonds
31: [03:11:59] <spronk> woot
32: [03:12:07] <spronk> ... if onyl
33: [03:13:02] <Robdgreat> got a neglected pam's mix bag on my desk
34: [03:13:17] <Robdgreat> *pams
35: [03:25:19] <spronk> mm..
36: [03:25:30] <spronk> Lines: 100.00% (745/745)
37: [03:25:32] <spronk> #coverageking
38: [03:27:06] <DanaeNZ> aww yiss
39: [04:19:35] * micmania1 quit (Quit: micmania1)
40: [04:31:41] * DanaeNZ quit (Quit: TIME TO FEED)
41: [04:41:44] * spronk quit (Quit: I may need a longer sleep timer...)
42: [05:32:03] * terryapodaca has joined #silverstripe
43: [05:32:48] <terryapodaca> anyone awake?
44: [05:56:03] <Robdgreat> terryapodaca: possibly
45: [05:56:15] <Robdgreat> if you have a real question you could just ask that instead :)
46: [05:57:18] <Robdgreat> I always fall into this trap in support channels, particularly when I'm not that well-versed in the subject - I advise people with metaquestions to just ask their question and it's assumed I'm volunteering to answer said question
47: [05:57:34] <Robdgreat> which, in the case of silverstripe, I can't make any promises
48: [06:06:07] <terryapodaca> oh I get that all the time...just ask the question already...
49: [06:06:15] <terryapodaca> maybe I was just seeing who was on for a simple chat
50: [06:06:28] <terryapodaca> or just actually seeing who was awake and on the channel
51: [06:09:55] <terryapodaca> o/
52: [06:10:08] * Audlex quit (Ping timeout: 240 seconds)
53: [06:26:16] <Robdgreat> that's why I said the "if" part :)
54: [06:26:29] <Robdgreat> sorry, I'm a bit latent here
55: [06:32:12] * Audlex has joined #silverstripe
56: [06:45:57] * wmk has joined #silverstripe
57: [06:51:13] <terryapodaca> All good, all good!!!
58: [06:58:08] <wmk> that's great!
59: [07:35:33] * Eliseth has joined #silverstripe
60: [07:37:36] <terryapodaca> wmk: what's good?
61: [07:41:24] <terryapodaca> will Silverstripe ever have a built in "update/upgrade" in the CMS? I guess like WP does?
62: [07:41:34] <wmk> hopefully not
63: [07:41:46] <terryapodaca> I assume not since the plugin/module system would totally blow up
64: [07:42:50] <Eliseth> Morning o/
65: [07:44:38] <terryapodaca> o/
66: [07:58:41] <wmk> terryapodaca, dunno if there is a composer UI
67: [07:59:11] <wmk> but i'd definitely don't want it
68: [07:59:29] <terryapodaca> wmk: I host on Dreamhost and they don't allow Composer
69: [07:59:39] <wmk> update locally (which is very easy w/ composer), test it, deploy it
70: [07:59:44] <terryapodaca> if/when I use Composer, I have to build the sites locally
71: [07:59:48] <wmk> of course.
72: [07:59:57] <Eliseth> That would be my preferred method anyway
73: [08:00:14] <wmk> there is a service called "ftploy" for hosting without ssh / composer
74: [08:00:51] <wmk> terryapodaca, https://ftploy.com/
75: [08:01:03] <wmk> they once sponsored stripeconEU in London
76: [08:01:23] <wmk> afaik firesphere uses their service
77: [08:02:53] <Eliseth> I really like deploybot.com (although I use it i.c.m. Beanstalk, where my repositories are hosted), but it isn't free.
78: [08:03:08] <Eliseth> *in combination with
79: [08:03:33] <terryapodaca> honestly, I don't mind using FileZilla to deploy, I just have to get use to Composer more often
80: [08:03:42] <wmk> Eliseth, i use a proper hoster and can use https://deployer.org/
81: [08:07:22] <wmk> terryapodaca, with filezilla - is there a way to delete unused files at remote? I have one customer i can only use ftp unfortunately. Built in ftp in my phpstorm doesn'T work with their configuration for some reason
82: [08:08:05] <terryapodaca> absolutely...
83: [08:10:05] <wmk> ok. good to know
84: [08:37:34] * Eliseth quit (Quit: Textual IRC Client: www.textualapp.com)
85: [08:38:43] * mrG_ has joined #silverstripe
86: [08:41:03] <mrG_> What reserved parameters are there in Silverstripe? using the parameter "url" in a link does not work obviously but are there others?
87: [08:54:50] * deschebbs has joined #silverstripe
88: [08:56:43] * kinglozzer has joined #silverstripe
89: [08:56:45] <wmk> mrG_, i don't understand your question. Did you have a look at the api docs?
90: [08:56:48] <wmk> kinglozzer, ☺/
91: [08:57:03] <kinglozzer> \o wmk
92: [08:57:16] <wmk> seems to work with login redirec now
93: [08:57:58] <wmk> it's all a matter of configuration. Unfortunately i didn't find an explanation for that field in the help pages kinglozzer, so it's sometimes just trial and error (and stackoverflow history)
94: [09:03:38] * janneklouman-- has joined #silverstripe
95: [09:06:51] <kinglozzer> nice wmk
96: [09:17:51] * Mike123 has joined #silverstripe
97: [09:20:13] * agent44 has joined #silverstripe
98: [10:00:18] * filisko has joined #silverstripe
99: [10:16:46] * samsamek has joined #silverstripe
100: [10:23:13] <mrG_> wmk : http://site.com/foo/bar/?url=somevar Does not work -- while http://site.com/foo/bar/?theurl=somevar will work (since framework uses $_GET["url"] to build friendly URL)
101: [10:23:54] <mrG_> Cannot find this in any documentation and perhaps there are other get parameters that cannot be used
102: [10:23:55] <mrG_> ?
103: [10:24:09] <wmk> ah.
104: [10:24:33] <wmk> not that i know of. See Framework/main.php if there are any other get params.
105: [10:24:44] <wmk> BackURL is often used internally for redirecting back
106: [10:24:53] <wmk> but on a per-module basis
107: [10:31:13] <wmk> hmm... ::get()->map('ID', 'Title')->toArray() returns me empty values
108: [10:31:25] <wmk> ::get()->column('Title') returns me values...
109: [10:31:28] <wmk> bug?
110: [10:34:28] * r5v3rb has joined #silverstripe
111: [10:34:44] <r5v3rb> morning all, sorry kinglozzer
112: [10:35:14] <r5v3rb> !seen swaiba
113: [10:35:15] <ss-helper> r5v3rb: I last saw swaiba 3 weeks ago
114: [10:35:21] <r5v3rb> :(
115: [10:35:53] <kinglozzer> r5v3rb: Apology accepted
116: [10:35:59] <kinglozzer> Though I don't know what you're apologising for :D
117: [10:36:06] <r5v3rb> my pull request
118: [10:36:07] <wmk> r5v3rb, he's on slack sometimes
119: [10:36:14] <r5v3rb> that I then deleted
120: [10:36:33] <r5v3rb> wmk, I tried signing up to slack twice but never get the email to confirm :|
121: [10:36:48] <wmk> oh
122: [10:37:26] <r5v3rb> kinglozzer: your multiselectfield has an error in the readme, many_many >> many_many should be many_many >> belongs_many_many in the example classes?
123: [10:37:37] <r5v3rb> no
124: [10:37:39] <r5v3rb> ?
125: [10:37:40] <r5v3rb> ?
126: [10:39:02] <r5v3rb> wmk: Awesome! You've been invited into the team. Check your inbox for the invitation email from slack! << this email never arrives, not in junk or anywhere
127: [10:39:28] <r5v3rb> I think I’m not slacky enough
128: [10:44:47] <wmk> weird r5v3rb
129: [10:45:24] <r5v3rb> normal wmk for me
130: [10:45:36] <r5v3rb> everything is against me !
131: [10:47:14] <kinglozzer> r5v3rb: oh yeah sorry i did see that, i still haven't fixed it
132: [10:47:18] * kinglozzer has no time atm D:
133: [10:47:40] <r5v3rb> :D I sent a pull request, but it said there were 13 other changes so I deleted the fork… odd
134: [10:48:46] <r5v3rb> kinglozzer: I know that feeling, company is official now, VAT being registered today/tomorrow, marketing material designed next week, first official meeting 1st March and then onwards!
135: [10:52:43] * wmk quit (Ping timeout: 255 seconds)
136: [11:10:09] * NETim has joined #silverstripe
137: [11:10:43] <NETim> Morning. Any reason my scaffolded treedropdownfields are becoming Int fields when moving the site to another server?
138: [11:19:33] <kinglozzer> NETim: Too many pages?
139: [11:20:09] <kinglozzer> IIRC once you hit a certain number of items in a list, it replaces the scaffolded DropdownField with a NumericField
140: [11:20:14] <kinglozzer> So it doesn't run out of memory and crash
141: [11:20:18] <kinglozzer> it's a stupid behaviour
142: [11:20:20] <kinglozzer> :P
143: [11:20:22] <NETim> There are a few more pages. Got a DO which has_one page. On the local dev server it's scaffolded as a dropdown. Live it becomes an int field.
144: [11:20:29] <NETim> That sound right?
145: [11:20:34] <kinglozzer> Yep
146: [11:20:39] <NETim> nuts.
147: [11:20:42] <kinglozzer> You'll need to manually add your DropdownField
148: [11:20:56] <NETim> Any way to get around that beside changing it in the get/updateCMSFields?
149: [11:21:09] <kinglozzer> Nope
150: [11:21:16] <NETim> Ah. A job for a monday.
151: [11:21:50] <kinglozzer> NETim: The magic number is 100 btw
152: [11:22:03] <NETim> When you reference memory, is that a server issue or something within SS?
153: [11:22:17] <kinglozzer> https://github.com/silverstripe/silverstripe-framework/blob/3.5/model/fieldtypes/ForeignKey.php#L43
154: [11:22:51] <kinglozzer> If you try to load like 1000 items into a dropdown, that uses up a lot of memory
155: [11:23:11] <NETim> I can see the potential benefits of it doing that.
156: [11:24:43] <NETim> What are your thoughts on the best way around that? If I manually add the dropdown it would face that issue anyway.
157: [11:26:03] <kinglozzer> In the past I've used either https://github.com/dnadesign/gridfieldrelationhandler, or https://github.com/briceburg/silverstripe-pickerfield instead of DropdownField
158: [11:27:58] <NETim> https://github.com/briceburg/silverstripe-pickerfield
159: [11:28:09] <NETim> That one take you to a list view of sorts for the has_one?
160: [11:32:45] <kinglozzer> NETim: Yeah
161: [11:32:49] <NETim> cool.
162: [11:32:51] <kinglozzer> I had one issue with that module
163: [11:32:57] <NETim> ?
164: [11:32:59] <kinglozzer> It didn't seem to work properly for new objects
165: [11:33:05] <NETim> how so?
166: [11:33:29] <kinglozzer> It wouldn't save the has_one if you were creating a new object
167: [11:33:38] <kinglozzer> Editing an existing one and adding/changing the has_one works fine
168: [11:33:49] <kinglozzer> Ah, this issue: https://github.com/briceburg/silverstripe-pickerfield/issues/8
169: [11:33:50] <NETim> Ah. That is less of a problem given the linked objects are SiteTree.
170: [11:34:03] <kinglozzer> NETim: Not the linked object, the "source" object
171: [11:34:13] <kinglozzer> If both are SiteTree it'll be fine I think
172: [11:34:23] <NETim> Oh. That's a potential problem.
173: [11:34:38] <NETim> Does it work if you create, save and then add the relation?
174: [11:34:43] <kinglozzer> Yeah
175: [11:35:01] <NETim> Ok. A lot of the source objects are controlled to limit fields before save anyway.
176: [11:37:45] <r5v3rb> hooray, just the notification email and server response page to do for completed purchases!
177: [11:38:07] * r5v3rb looks down the barrel and sees light - before the next round of compnay crud to deal with
178: [11:39:52] * Eliseth has joined #silverstripe
179: [11:56:49] * oldmols has joined #silverstripe
180: [11:59:09] <oldmols> hey
181: [11:59:31] <oldmols> anybody who knows to change layout for the /admin page?
182: [12:02:52] <r5v3rb> oldmols: with great difficulty!
183: [12:03:01] <oldmols> :(
184: [12:03:07] <oldmols> don't break my heart
185: [12:17:34] <r5v3rb> oldmols: sorry, it’s not easy - you can hack the leftandmain panel but its a bit nasty
186: [12:18:48] <oldmols> Thanks :)
187: [12:19:03] <oldmols> what about making a custom login page, is that difficult too?
188: [12:19:06] <oldmols> frontend
189: [12:19:55] <r5v3rb> there are a couple of modules for that oldmols
190: [12:21:10] <oldmols> guess I need to take some time to understand how I implement the modules now.
191: [12:27:21] <r5v3rb> composer require “module/name” at it’s simplest
192: [12:27:26] <r5v3rb> oldmols: ^^
193: [12:27:48] <oldmols> so far so good man, but the docs often are so bad.
194: [12:27:50] <r5v3rb> or download zip, decompress in root folder, dev/build?flush=1
195: [12:28:30] <oldmols> etc https://addons.silverstripe.org/add-ons/axyr/silverstripe-adminlogin
196: [12:28:42] <r5v3rb> oldmols: I think they expect a level of familiarity as most of us have been using SS for quite sometime and it has grown exponentially since its first/second revisions
197: [12:28:42] <oldmols> i need some steps after the composer install
198: [12:29:35] <r5v3rb> what are you trying to acheive?
199: [12:29:56] <oldmols> yeah, I get that. And it's totally fine. It's just difficult to figure this out in the beginning and often you feel lost when starting out.
200: [12:30:13] <oldmols> I just need a custom login for my client.
201: [12:30:29] <oldmols> right now I'm using $form in my Page.ss
202: [12:32:05] <r5v3rb> the admin theme is for when they visit /admin I believe
203: [12:32:18] <r5v3rb> it will use your custom admin theme
204: [12:33:07] <r5v3rb> I haven’t used that particular one, I built my own but it has lots of other routing built in based on groups etc, otherwise you could have it
205: [12:33:37] <oldmols> I just need to figure out how to go about routing and stuff. I'm used to Laravel
206: [12:34:01] <r5v3rb> routes.yml
207: [12:34:11] <r5v3rb> there is a great section in the docs for that
208: [12:36:05] * samsamek quit (Quit: samsamek)
209: [12:36:50] * mrG_ quit (Ping timeout: 260 seconds)
210: [12:50:37] * filisko quit (Ping timeout: 240 seconds)
211: [12:59:05] * Shrike_Finland has joined #silverstripe
212: [13:03:27] * filisko has joined #silverstripe
213: [13:18:11] * wmk has joined #silverstripe
214: [13:20:20] * filisko quit (Ping timeout: 256 seconds)
215: [13:22:46] * wmk_ has joined #silverstripe
216: [13:23:20] * UndefinedOffset has joined #silverstripe
217: [13:23:53] * wmk_ quit (Client Quit)
218: [13:35:32] * filisko has joined #silverstripe
219: [13:40:54] * samsamek has joined #silverstripe
220: [13:45:42] * BackEndCoder quit (Excess Flood)
221: [13:45:51] * BackEndCoder has joined #silverstripe
222: [14:04:28] * oldmols quit (Remote host closed the connection)
223: [14:04:55] * oldmols has joined #silverstripe
224: [14:09:08] * oldmols quit (Ping timeout: 240 seconds)
225: [14:25:00] * samsamek quit (Quit: samsamek)
226: [14:25:48] * r5v3rb quit (Quit: r5v3rb)
227: [14:26:12] * r3v3rb has joined #silverstripe
228: [14:26:26] <r3v3rb> hi
229: [14:26:58] <amistupidorsomet> hi
230: [14:28:00] * Shrike_Finland quit (Quit: Leaving.)
231: [14:30:00] <kinglozzer> r3v3rb: You're back!
232: [14:30:17] <r3v3rb> kinglozzer, i am
233: [14:30:26] <kinglozzer> remember your password?
234: [14:37:52] <r3v3rb> nope
235: [14:38:04] <r3v3rb> :) different client - needed to use PC
236: [14:50:28] * samsamek has joined #silverstripe
237: [14:53:38] * muskie9 has joined #silverstripe
238: [15:11:15] * eric______ has joined #silverstripe
239: [15:11:15] <ss-helper> eric______: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
240: [15:12:01] <eric______> hi all, I am using dropdownfield when I try to save getting this error
241: [15:12:02] <eric______> Please select a value within the list provided. Name is not a valid option
242: [15:12:13] <eric______> why I am getting this error
243: [15:13:53] * Azure quit (Read error: Connection reset by peer)
244: [15:15:10] * DarjusIT has joined #silverstripe
245: [15:18:18] <amistupidorsomet> Does anyone here know much about pulling data from a 2nd db?
246: [15:24:52] <muskie9> eric______ what does your dropdown field code look like?
247: [15:25:29] <muskie9> amistupidorsomet I've done it before... tedious, but possible
248: [15:26:26] <muskie9> amistupidorsomet this is the basics on setting up the second connection: http://silverstrip.es/blog/access-external-database/
249: [15:26:31] <amistupidorsomet> I am trying to basically pull dataobjects from one db, and display them on a site connected to a different one.
250: [15:27:16] <muskie9> if your second DB is from an SS instance with the same classes and all, then once you have the second connection you can use the ORM to query the second
251: [15:27:39] <amistupidorsomet> oh really? Interesting. Maybe I am overthinking this then.
252: [15:28:23] <muskie9> but in cases I've dealt with that's not the case, so you have to build your db queries (I think I've used SS to build the queries) then re-connect to your main db if you're then creating the data for storing or what have you
253: [15:28:47] <muskie9> I'd post an example, but they're from large data migrations and it's spaghetti code so wouldn't be much help
254: [15:29:15] <muskie9> on my todo list for that blog... show an example of how you could migrate data once the second connection is setup
255: [15:29:23] <amistupidorsomet> lol, that is fine. Let me take another crack at this and see what I can come up with.
256: [15:29:32] <muskie9> 👍
257: [15:29:37] <amistupidorsomet> thank you for the point in the right direction though!
258: [15:30:25] <eric______> let me show you
259: [15:30:39] <eric______> $country = DropdownField::create('Country','Country');//->setValue($c); $country->setAttribute('id', 'country'); $state = DropdownField::Create('State','State');//->setValue($s);; $state->setAttribute('id', 'state');
260: [15:30:46] <eric______> two fields
261: [15:31:04] <eric______> using js country to populate with states
262: [15:33:34] <muskie9> hmmmmm, four the country dropdown why not use the built in CountryDropdownField provided by SS
263: [15:38:34] <r3v3rb> hmm, so I need a controller route that can do this: 1 accept a $Action/$ID and route to A, then have a $Action that routes to B, and finally $ID only that pushes to a specific route on the same controller
264: [15:39:43] <eric______> But I also need state drop down is there any in ss
265: [15:40:01] <muskie9> I can provide one, we've build one that we've used internally
266: [15:43:44] <eric______> oh! please
267: [15:47:29] <muskie9> eric______ https://gist.github.com/muskie9/d2efe649c325dc89472ed0e96a09f3a4
268: [15:47:45] <amistupidorsomet> ok muskie, I feel like I am close here
269: [15:48:29] <muskie9> we have a better version somewhere, but can't remember where it is... if I find it I'll update the gist, but that's the one we've used for a long time
270: [15:48:42] * Mike123 quit (Quit: Page closed)
271: [15:48:53] <eric______> Thanks, if I select country will it populate the state as well?
272: [15:49:26] <amistupidorsomet> https://thepasteb.in/p/O7h5zjJM46khq
273: [15:49:26] * samsamek quit (Quit: samsamek)
274: [15:49:54] <amistupidorsomet> this seems to work, the page loads fine, but when I call to $Leaderboard in my template, the page fails to load.
275: [15:50:03] <muskie9> eric______ unfortunately no, our dropdown field is geared towards north america and doesn't work directly with CountryDropdownField... that could be a nice feature though... maybe we'll modularize it and work on features like that
276: [15:51:16] <muskie9> amistupidorsomet your reconnection to your main DB probably isn't getting hit since it's below the return... try storing the Leader::get() to a var, reconnecting to the main db, then returning the leader var
277: [15:52:12] <amistupidorsomet> I hate to ask, but can you give me some guidance here?
278: [15:52:21] <muskie9> sure
279: [15:52:25] <amistupidorsomet> My knowledge of database stuff is limited.
280: [15:52:40] <DimiStripe> Hey guys,
281: [15:52:40] <DimiStripe> I have a long list of addresses in XML, and need grouping those so i only get every street once , and sort by name . Is there any easy way of doing this with SS ? (without manual loop etc) ?
282: [15:55:22] * oldmols has joined #silverstripe
283: [15:56:15] <muskie9> DimiStripe I was going to suggest converting it to an array and utilizing ArrayList to detect duplicates, but I don't think ArrayList has that feature like DataList does unfortunately
284: [15:57:32] <muskie9> amistupidorsomet something like this might work: https://gist.github.com/muskie9/193b3c8c165cb4db3dabd371b4c71983
285: [15:58:12] <DimiStripe> muskie9: well my point here is keeping this as fast as possible wiht big data sets , so was hoping maybe SS has kinda XML DB engine , or smth :)
286: [15:59:28] * oldmols quit (Ping timeout: 240 seconds)
287: [16:01:24] * Eliseth quit (Quit: Textual IRC Client: www.textualapp.com)
288: [16:01:58] * muskie9 quit (Ping timeout: 245 seconds)
289: [16:02:25] * muskie9 has joined #silverstripe
290: [16:02:36] * Shrike_Finland has joined #silverstripe
291: [16:02:56] <muskie9> DimiStripe I know what you mean... if you're going to be looping it, why not use generators... hear they're supposed to speed things up a bit
292: [16:04:13] <DimiStripe> i think i'll make it with $xml->xpath() + loop for now ...
293: [16:04:28] <DimiStripe> and then array_unique
294: [16:04:33] <DimiStripe> see how it goes
295: [16:07:09] <muskie9> :thumbsup:
296: [16:07:18] <muskie9> 👍
297: [16:10:13] <eric______> I think using country.js is better solution as I need all world's states
298: [16:10:16] * wmk quit (Quit: Leaving)
299: [16:10:58] <eric______> If the this error could be resolved: Please select a value within the list provided. Name is not a valid option
300: [16:12:09] * samsamek has joined #silverstripe
301: [16:12:46] * Shrike_Finland quit (Quit: Leaving.)
302: [16:15:13] * Shrike_Finland has joined #silverstripe
303: [16:15:39] <muskie9> eric______ can you point me towards a source for country.js... working on an open source dropdown field today :D
304: [16:27:05] <muskie9> eric______ does this look like what you're referencing? http://jsfiddle.net/bdhacker/eRv2W/
305: [16:27:12] * helenclarko has joined #silverstripe
306: [16:27:20] <helenclarko> Hey everyone 0/
307: [16:28:22] <helenclarko> Okay quick question. Whats the easiest way to defer JS and CSS in SilverStripe when loading through init on page.php?
308: [16:29:45] <muskie9> helenclarko what do you mean by defer JS and CSS
309: [16:30:06] <helenclarko> defer or async load the files
310: [16:36:58] <muskie9> ah, not sure on that one
311: [16:37:18] <eric______> muskie9 yes that one
312: [16:38:01] <muskie9> cool
313: [16:39:32] * Shrike_Finland quit (Quit: Leaving.)
314: [17:00:22] <ss-helper> Silverstripe How to get datas in SiteConfig from subclasses - http://stackoverflow.com/questions/42029141/silverstripe-how-to-get-datas-in-siteconfig-from-subclasses
315: [17:02:17] * helenclark0 has joined #silverstripe
316: [17:02:24] * helenclarko quit (Ping timeout: 248 seconds)
317: [17:04:19] * slievr quit (Quit: Leaving.)
318: [17:09:04] * samsamek quit (Quit: samsamek)
319: [17:09:34] <amistupidorsomet> Sorry Muskie9, ended up in an unexpected meeting.
320: [17:09:41] <muskie9> no worries
321: [17:09:51] <muskie9> happens to me all the time ;P
322: [17:10:47] * janneklouman-- quit (Ping timeout: 276 seconds)
323: [17:10:51] <amistupidorsomet> Thank you for the assist. It still seems to be broken. Should I be declaring the has_many on the page? Because I am looping a few dataobjects
324: [17:12:15] <muskie9> you might have to do something with the queried data, like convert it to an ArrayList first... are you calling db fields from the queried Leaders or are there relations being referenced as well?
325: [17:13:00] <muskie9> $db vs $has_one/$has_many/etc on the Leader object
326: [17:14:51] <amistupidorsomet> on the original site, the Leader is a has_one, to Page
327: [17:14:57] * kinglozzer quit ()
328: [17:14:59] <amistupidorsomet> Page has it under has_many
329: [17:18:07] * helenclark0 is now known as helenclarko
330: [17:23:28] * r3v3rb quit (Quit: Leaving)
331: [17:26:58] * samsamek has joined #silverstripe
332: [17:33:30] * NETim quit (Quit: Leaving)
333: [17:33:39] * helenclark0 has joined #silverstripe
334: [17:34:53] * helenclarko quit (Ping timeout: 245 seconds)
335: [17:44:02] * deschebbs quit (Quit: Konversation terminated!)
336: [17:47:10] * eric______ quit (Ping timeout: 260 seconds)
337: [17:56:36] * Robdgreat quit (*.net *.split)
338: [17:56:42] * Robdgreat has joined #silverstripe
339: [17:56:57] * oldmols has joined #silverstripe
340: [18:00:23] <ss-helper> Silverstripe How get function from another template PHP - http://stackoverflow.com/questions/42030244/silverstripe-how-get-function-from-another-template-php
341: [18:03:05] * agent44 quit (Quit: zzz)
342: [18:03:27] * agent44 has joined #silverstripe
343: [18:03:50] * agent44 quit (Client Quit)
344: [18:04:12] * agent44 has joined #silverstripe
345: [18:04:38] * agent44 quit (Client Quit)
346: [18:05:25] * agent44 has joined #silverstripe
347: [18:06:07] * oldmols quit (Ping timeout: 240 seconds)
348: [18:09:37] * agent44 quit (Ping timeout: 240 seconds)
349: [18:16:58] * gelignite has joined #silverstripe
350: [18:30:23] <ss-helper> SilverStripe single one-to-one objects bug - http://stackoverflow.com/questions/41653975/silverstripe-single-one-to-one-objects-bug
351: [18:35:57] * Shrike_Finland has joined #silverstripe
352: [18:44:04] * janneklouman-- has joined #silverstripe
353: [18:47:21] * helenclark0 is now known as helenclarko
354: [18:47:54] <amistupidorsomet> Muskie9, I am getting close lol
355: [18:48:21] <amistupidorsomet> I put my connection into _config.php, so I don't have to reference it each time
356: [18:48:33] <muskie9> good call, that def makes it easier
357: [18:48:56] * janneklouman-- quit (Ping timeout: 276 seconds)
358: [18:49:12] <amistupidorsomet> https://thepasteb.in/p/X6hBVR90Xn6f3
359: [18:49:38] <amistupidorsomet> then i do this, and my information is dumped to the top of my page. so the connection is happening, it gets what I want and gives it back
360: [18:49:50] <amistupidorsomet> Now I just need to figure out how to display that info the way I want.
361: [18:58:30] * UndefinedOffset quit (Quit: Leaving.)
362: [19:02:07] * UndefinedOffset has joined #silverstripe
363: [19:10:10] * Shrike_Finland quit (Quit: Leaving.)
364: [19:22:07] <muskie9> amistupidorsomet is each $row an object or array
365: [19:43:42] * samsamek quit (Quit: samsamek)
366: [19:53:22] * samsamek has joined #silverstripe
367: [19:55:47] * DimiStripe quit (Quit: DimiStripe)
368: [20:02:53] * oldmols has joined #silverstripe
369: [20:05:02] <amistupidorsomet> each row is an array
370: [20:07:10] * oldmols quit (Ping timeout: 240 seconds)
371: [20:07:38] <amistupidorsomet> I can get the info to come back in an echo, I just cannot figure out how to get it on my page when I do a return.
372: [20:10:17] <amistupidorsomet> and the weird part is, both databases are maintained by Silverstripe, so it should be MUCH easier than this.
373: [20:16:35] * muskie9 quit (Read error: Connection reset by peer)
374: [20:18:01] <amistupidorsomet> hey UndefinedOffset, do you have any experience with displaying data from a separate database?
375: [20:37:59] * muskie9 has joined #silverstripe
376: [20:45:01] <muskie9> sorry amistupidorsomet running around today... gist coming
377: [20:45:47] <amistupidorsomet> I understand, I've had a wild day myself lol
378: [20:46:04] <amistupidorsomet> But I've kept chugging along here, battling this thing.
379: [20:46:25] <muskie9> try something like this: https://gist.github.com/muskie9/c05d327046c986eb5cc6616d3933c440
380: [20:48:19] * UndefinedOffset quit (Quit: Leaving.)
381: [20:50:54] <amistupidorsomet> looks like it's dropping something, because when I do echo $arraylist, it just prints ArrayList
382: [20:51:05] <amistupidorsomet> So the data is not being passed.
383: [20:51:40] <amistupidorsomet> If I do echo $row['Name'};
384: [20:51:45] <amistupidorsomet> I get the actual data
385: [20:53:54] <amistupidorsomet> OH, wait.
386: [20:53:58] <amistupidorsomet> YOU LOVELY MAN!
387: [20:54:14] <amistupidorsomet> That was presumptuous, but, you're lovely regardless lol
388: [20:59:22] <muskie9> lol
389: [20:59:27] <muskie9> so all working now?
390: [20:59:33] <amistupidorsomet> It seems to be!
391: [20:59:36] <muskie9> nice
392: [20:59:54] <amistupidorsomet> Now to try something more complicated! But this is a HUGE step forward.
393: [20:59:57] <muskie9> ArrayData and ArrayList are pretty flexible when dealing w/ambiguous data sources
394: [21:03:01] * samsamek quit (Quit: samsamek)
395: [21:13:17] <amistupidorsomet> This worked out great, with your help, I got it working on the same server, now I have it working on 2 separate servers. It's exactly what I needed!
396: [21:16:19] <muskie9> 👍
397: [21:23:12] * helenclarko quit (Ping timeout: 248 seconds)
398: [21:25:13] * samsamek has joined #silverstripe
399: [21:26:38] * UndefinedOffset has joined #silverstripe
400: [21:30:08] * samsamek quit (Ping timeout: 240 seconds)
401: [21:33:53] * oldmols has joined #silverstripe
402: [21:35:00] * oldmols quit (Client Quit)
403: [21:43:28] * samsamek has joined #silverstripe
404: [21:47:48] * samsamek quit (Ping timeout: 240 seconds)
405: [22:00:35] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
406: [22:16:32] * samsamek has joined #silverstripe
407: [22:17:51] * UndefinedOffset quit (Quit: Leaving.)
408: [22:22:40] * samsamek quit (Ping timeout: 240 seconds)
409: [22:55:34] * muskie9 has joined #silverstripe
410: [23:00:02] * ss-helper quit (Remote host closed the connection)
411: [23:00:17] * ss-helper has joined #silverstripe
412: [23:19:14] * helenclarko has joined #silverstripe
413: [23:40:26] * BackEndCoder quit (Excess Flood)
414: [23:41:21] * BackEndCoder has joined #silverstripe
415: [23:53:28] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
416: [23:59:41] * helenclark0 has joined #silverstripe

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