#silverstripe IRC Log

IRC log for 19 August 2016

All timestamps are in UTC.

1: [00:00:02] * ss-helper quit (Remote host closed the connection)
2: [00:00:06] * darjusIT quit (Read error: Connection reset by peer)
3: [00:00:15] * ss-helper has joined #silverstripe
4: [00:08:22] * Dedra quit (Quit: Bye guys, have to go!)
5: [00:08:34] * UncleCheese quit (Ping timeout: 258 seconds)
6: [00:18:18] * micmania1 quit (Quit: micmania1)
7: [00:22:57] * bubaphex quit (Quit: My Mac has gone to sleep. ZZZzzz…)
8: [00:24:56] <Hailwood> That was some good food
9: [00:34:58] * Hailwood quit (Ping timeout: 258 seconds)
10: [00:49:13] * DanaeNZ quit (Remote host closed the connection)
11: [00:51:50] * Hailwood has joined #silverstripe
12: [00:52:07] * DanaeNZ has joined #silverstripe
13: [00:59:43] * Azure quit (Ping timeout: 250 seconds)
14: [01:00:36] <DanaeNZ> mmm burgerfuel
15: [01:01:04] * Azure has joined #silverstripe
16: [01:02:55] * bubaphex has joined #silverstripe
17: [01:05:40] <spronk> oooo
18: [01:05:41] * spronk wants
19: [01:05:44] <spronk> all i have is this lousy macintosh toffee
20: [01:14:55] * bubaphex quit (Quit: My Mac has gone to sleep. ZZZzzz…)
21: [01:24:19] <Hailwood> Is there a more efficient way to sync a many_many relationship than $do1->RelationName()->removeAll(); $do1->RelationName()->addMany($IDsOfOtherObjects);
22: [01:26:29] * bubaphex has joined #silverstripe
23: [01:41:38] <DanaeNZ> I wanna do removeDuplicates() on a DataList
24: [01:41:43] <DanaeNZ> but I know you can't do that
25: [01:41:53] <DanaeNZ> can you just convert a DataList() to an ArrayList?
26: [01:41:57] <DanaeNZ> or something
27: [01:48:23] <muskie9> Hailwood I was gonna say ->merge() but that doesn't work on DataList 😞
28: [01:50:48] * Azure quit (Remote host closed the connection)
29: [01:56:47] * bubaphex quit (Quit: My Mac has gone to sleep. ZZZzzz…)
30: [01:58:06] * DanaeNZ quit (Remote host closed the connection)
31: [01:58:41] * DanaeNZ has joined #silverstripe
32: [02:03:24] * DanaeNZ quit (Ping timeout: 265 seconds)
33: [02:07:44] * DanaeNZ has joined #silverstripe
34: [02:07:53] <Hailwood> muskie9, Yeah, the ORM needs to relationship love
35: [02:12:07] * bubaphex has joined #silverstripe
36: [02:12:48] <DanaeNZ> man we all have some DataList probs
37: [02:14:04] <DanaeNZ> isn't there an easy way to select unique records?
38: [02:14:33] <DanaeNZ> maybe I'm doing it wrong
39: [02:14:38] <muskie9> DanaeNZ http://api.silverstripe.org/3.3/source-class-DataList.html#260-269
40: [02:14:39] <muskie9> ?
41: [02:15:08] <DanaeNZ> oo !muskie9
42: [02:15:31] <muskie9> should work for DataList, ArrayList, HasManyList, etc
43: [02:21:09] <DanaeNZ> ugh debug y u no breakpoint
44: [02:24:06] * micmania1 has joined #silverstripe
45: [02:28:37] <DanaeNZ> impossible to find those fackin dialogs
46: [02:32:41] <DanaeNZ> oh goddammit i remember now
47: [02:32:45] <DanaeNZ> changing pp ver
48: [02:32:46] <DanaeNZ> lol
49: [02:32:49] <DanaeNZ> php*
50: [02:33:58] <muskie9> u know what's no fun... migrating pages to versioned dataobjects 3/4 through a project... and seeing errors that make no sense when trying to view the object in a model admin
51: [02:43:55] * spronk quit (Quit: I may need a longer sleep timer...)
52: [02:48:51] * bubaphex quit (Quit: My Mac has gone to sleep. ZZZzzz…)
53: [02:53:10] * bubaphex has joined #silverstripe
54: [03:09:11] * spronk has joined #silverstripe
55: [03:12:31] * UncleCheese has joined #silverstripe
56: [03:12:43] <UncleCheese> Anyone know what this is? Unable to unnest root Injector, please make sure you don't have mis-matched nest/unnest
57: [03:16:13] * muskie9 quit (Ping timeout: 250 seconds)
58: [03:16:44] <DanaeNZ> UncleCheese: that sounds frightening
59: [03:16:54] <UncleCheese> it only ever happens when running tests
60: [03:16:57] <UncleCheese> bloody awful
61: [03:24:33] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
62: [03:30:02] * bubaphex quit (Quit: My Mac has gone to sleep. ZZZzzz…)
63: [03:35:34] * micmania1 quit (Ping timeout: 260 seconds)
64: [03:35:37] * micmania2 has joined #silverstripe
65: [04:11:38] <DanaeNZ> i always forget how to do global template vr
66: [04:11:39] <DanaeNZ> var
67: [04:38:44] * muskie9 has joined #silverstripe
68: [04:56:04] * Hailwood quit (Remote host closed the connection)
69: [05:14:42] * bubaphex has joined #silverstripe
70: [05:29:26] * bubaphex quit (Quit: My Mac has gone to sleep. ZZZzzz…)
71: [05:36:24] * micmania2 quit (Quit: micmania2)
72: [05:47:16] * Shrike_Finland has joined #silverstripe
73: [05:49:54] * spronk quit (Quit: I may need a longer sleep timer...)
74: [05:59:50] * muskie9 quit (Quit: My Mac has gone to sleep. ZZZzzz…)
75: [06:33:04] * UncleCheese has joined #silverstripe
76: [06:51:04] * DanaeNZ quit (Quit: TIME TO FEED)
77: [06:58:57] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
78: [07:00:08] * UncleCheese has joined #silverstripe
79: [07:01:40] * arnhoe has joined #silverstripe
80: [07:35:36] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
81: [07:52:44] * micmania1 has joined #silverstripe
82: [08:00:10] * pweh has joined #silverstripe
83: [08:13:18] * janneklouman-- has joined #silverstripe
84: [08:41:52] * wmk has joined #silverstripe
85: [08:43:49] <wmk> swaiba, we missed it's birthday!
86: [08:44:10] <swaiba> hey wmk, whats going on?
87: [08:44:29] <wmk> http://www.silverstrip.es/blog/multiple-line-enumerations/
88: [08:44:51] <swaiba> ahhhh
89: [08:47:52] * pweh quit (Ping timeout: 252 seconds)
90: [08:50:24] <swaiba> should we do something specail?
91: [08:53:22] * agent44 has joined #silverstripe
92: [08:57:58] <wmk> sounds good... but... what?
93: [09:07:21] * otterpocket has joined #silverstripe
94: [09:08:37] <otterpocket> It seems that I have forgotten to use the most basic features of silverstripe, my model has a has_one to a File, have all the uploading and what not sorted but how to I save the file in the Objects has_one ?
95: [09:10:23] <wmk> otterpocket, you already have the file DO?
96: [09:10:39] <wmk> or do you upload it? Then UploadField is your friend
97: [09:10:49] <wmk> if file exists, get the ID of the file
98: [09:11:06] <wmk> $myDO->FileID = $file->ID;
99: [09:11:26] <otterpocket> Ahh yea U forgot its just a value on the object
100: [09:12:11] <otterpocket> I forgot*
101: [09:12:22] <otterpocket> also forgotten how to type
102: [09:12:59] * spronka has joined #silverstripe
103: [09:16:56] <wmk> friday...? otterpocket
104: [09:23:29] * pweh has joined #silverstripe
105: [09:30:12] <ss-helper> How to pass custom data to a template - http://stackoverflow.com/questions/12075176/how-to-pass-custom-data-to-a-template
106: [09:47:57] <otterpocket> When you create a has_one, by default the CMS shows this as a dropdown. I would also like to have a tab with the has_one data in in say Root.Submisison, so the dataobject can be viewed a bit like how as has_many works I suppose
107: [09:52:38] <wmk> otterpocket, for a simple hasone you might use an UploadField
108: [09:52:52] <wmk> or if you just want to _view_ you might create a LiteralField with some generated HTML
109: [09:52:59] <wmk> or just make the UploadField readonly
110: [09:53:23] * micmania1 quit (Quit: micmania1)
111: [09:53:55] <swaiba> otterpocket, like this... https://github.com/stevie-mayhew/hasoneedit ?
112: [09:54:26] <wmk> hasoneedit is when you want to edit the has_one's fields in the related DO directly
113: [09:55:14] <swaiba> ok otterpocket
114: [09:55:57] * wmk likes https://github.com/briceburg/silverstripe-pickerfield/ HasOnePickerField
115: [10:01:21] * Robdgreat has joined #silverstripe
116: [10:01:21] <ss-helper> Robdgreat: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
117: [10:03:06] * wmk quit (Read error: Connection reset by peer)
118: [10:04:26] * wmk has joined #silverstripe
119: [10:22:20] * darjusIT has joined #silverstripe
120: [10:43:02] * wmk_ has joined #silverstripe
121: [10:43:04] * wmk quit (Ping timeout: 240 seconds)
122: [10:48:29] * wmk_ quit (Read error: Connection reset by peer)
123: [10:48:44] * wmk_ has joined #silverstripe
124: [11:14:20] * wmk__ has joined #silverstripe
125: [11:16:05] * spronka quit (Quit: My Mac has gone to sleep. ZZZzzz…)
126: [11:17:30] * wmk_ quit (Ping timeout: 250 seconds)
127: [11:25:03] * UncleCheese has joined #silverstripe
128: [11:46:06] * wmk__ quit (Ping timeout: 250 seconds)
129: [11:46:11] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
130: [11:46:32] * agent44 quit (Ping timeout: 240 seconds)
131: [11:56:23] * agent44 has joined #silverstripe
132: [12:19:28] * UndefinedOffset has joined #silverstripe
133: [12:35:36] * Embraden has joined #silverstripe
134: [12:54:53] * muskie9 has joined #silverstripe
135: [13:27:06] * Shrike_Finland quit (Quit: Leaving.)
136: [13:52:36] <otterpocket> swaiba, Thanks
137: [13:53:37] <otterpocket> I'm deleting a has_one DO in the CMS but a ID is still returned when I $member->TheObjectID ?
138: [13:54:03] <swaiba> that is because silverstripe doesn't remove relationships at the same time
139: [13:54:05] <swaiba> otterpocket
140: [13:55:43] <otterpocket> swaiba, How do I remove the relationship in the cms?
141: [13:56:04] <swaiba> searching for them and setting them to 0
142: [13:56:09] <swaiba> and writting
143: [13:57:41] * kerozene quit (Ping timeout: 265 seconds)
144: [14:06:08] * kerozene has joined #silverstripe
145: [14:13:28] * darjusIT quit (Ping timeout: 252 seconds)
146: [14:13:54] * emi has joined #silverstripe
147: [14:18:47] <emi> Hi all folks, I have an issue about method Director::is_https(). My server has installed https certificate and its installed correctly - look on it (https://emitor.net). But Director::is_https() is returning false. Thats the reason of loading mixed content. My css, js arent loaded, because base_tag returning only http... is it some bug or not?
148: [14:19:45] <muskie9> emi in your _config.php add a line with Director::forceSSL();
149: [14:19:53] <emi> Not loaded mixed content you can see here https://emitor.net/ahoj/
150: [14:21:31] <emi> I tried it already, but then my web cannot be loaded
151: [14:21:58] <muskie9> may be something with the server then
152: [14:21:59] <emi> I cannot run flush or dev/build U can see it now: https://emitor.net/ahoj/?flush=all
153: [14:23:02] <emi> I thougt it - thats the server issue... SS Rocks :)
154: [14:24:36] <emi> basic solution rewrite <% base_tag %> with <base href="https://emitor.net/ahoj/"> in Page.ss
155: [14:41:16] * Arcax has joined #silverstripe
156: [14:42:30] <Arcax> Hello people, someone know how to hide admin page like WordPress?
157: [14:42:31] <Arcax> Thanks for help.
158: [14:43:12] <muskie9> Arcax what do you mean by hide the admin page? admittedly I haven't used wordpress much
159: [14:45:02] <Arcax> change the location from www.example.com/admin to www.example.com/secret-admin123 (similar to WordPress or Prestashop)
160: [14:46:06] <muskie9> ah, I don't think that feature will make it into SS 3.x, but will be in SS 4.x which is slated to come out later this year
161: [14:46:28] <muskie9> there may be a module to aid with it though
162: [14:47:06] <swaiba> not heard of one, muskie9, only ones that provide additional login pages
163: [14:47:29] <swaiba> If possible restrict access to the url by IP in htaccess if major concerns
164: [14:47:33] <muskie9> thread from '04: http://stackoverflow.com/a/24134459/995883
165: [14:47:43] <muskie9> not sure if it's practical though
166: [14:47:56] <muskie9> er, '14
167: [14:48:15] <muskie9> need more coffee 😞
168: [14:48:26] <swaiba> coffee is good
169: [14:48:42] <muskie9> had all the coffeez yesterday
170: [14:52:52] <Arcax> Thanks for help, i'm reading from thread
171: [14:53:00] * arnhoe quit ()
172: [14:53:29] <Arcax> (Coffee is good only a vital moments)
173: [14:57:28] <muskie9> Arcax all moments are vital moments when coding ;P
174: [14:58:16] <Arcax> muskie9 I have to give the reason
175: [14:59:06] * UndefinedOffset quit (Quit: Leaving.)
176: [14:59:15] <Arcax> I try to follow the tread but i change the config.yml and not work.
177: [14:59:16] <Arcax> I must create the controller "AdminRootController"?
178: [15:00:16] <muskie9> did you ?flush=all
179: [15:00:45] <muskie9> also, there was an edit for the thread that noted there may be additional work to get the CMS module working with that example
180: [15:06:10] <Arcax> Yes and i go to www.example.com/admin and show the error: [User Error] Uncaught ReflectionException: Class does not exist
181: [15:07:30] * pweh quit (Read error: Connection reset by peer)
182: [15:14:25] <otterpocket> How can I populate a form from a dataobject?
183: [15:15:41] <muskie9> $form->loadDataFrom($yourObject);
184: [15:15:44] <muskie9> otterpocket ^
185: [15:15:51] <muskie9> or something like that
186: [15:17:14] * emi quit (Ping timeout: 264 seconds)
187: [15:17:58] <otterpocket> muskie9, great, thanks
188: [15:33:39] * TombL quit (Ping timeout: 260 seconds)
189: [15:36:56] <slievr> does filter match case? If not can I force it too?
190: [15:37:44] <muskie9> slievr could try 'MyFilter:ExactMatch'
191: [15:37:55] <slievr> thanks will give it a go
192: [15:44:38] <slievr> Thanks for reminding of ORM filters
193: [15:44:43] <slievr> :case seems like the way to go
194: [15:44:49] <muskie9> 👍
195: [15:56:07] * swaiba quit (Read error: Connection reset by peer)
196: [15:57:22] <Arcax> Thanks for help, care with coffee muskie9.
197: [15:57:26] <Arcax> See soon!.
198: [15:57:45] * otterpocket quit (Remote host closed the connection)
199: [16:05:42] * janneklouman-- quit (Ping timeout: 258 seconds)
200: [16:38:13] * darjusIT has joined #silverstripe
201: [16:58:59] * agent44 quit (Quit: zzz)
202: [17:05:36] * slievr quit (Quit: Leaving.)
203: [17:15:22] * darjusIT quit (Ping timeout: 265 seconds)
204: [17:20:05] * darjusIT has joined #silverstripe
205: [17:42:16] * Neomang has joined #silverstripe
206: [17:54:34] * darjusIT quit (Ping timeout: 252 seconds)
207: [20:00:24] <ss-helper> Silverstripe custom search - http://stackoverflow.com/questions/39046798/silverstripe-custom-search
208: [20:28:41] * UncleCheese has joined #silverstripe
209: [21:24:45] * DorsaiNZ quit (Quit: DorsaiNZ)
210: [21:31:11] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
211: [21:31:40] * UncleCheese has joined #silverstripe
212: [21:33:57] * UncleCheese quit (Client Quit)
213: [21:34:00] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
214: [21:47:17] * Azure has joined #silverstripe
215: [22:43:34] * gelignite has joined #silverstripe
216: [23:22:43] * pweh has joined #silverstripe
217: [23:34:23] * Azure quit (Ping timeout: 265 seconds)

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