#silverstripe IRC Log

IRC log for 27 May 2016

All timestamps are in UTC.

1: [00:00:01] * ss-helper quit (Remote host closed the connection)
2: [00:00:13] * ss-helper has joined #silverstripe
3: [00:06:14] * t8 has joined #silverstripe
4: [00:06:34] <t8> why does silverstripe strip the fullscreen tag from you embedded video
5: [00:06:38] <t8> and how do i prevent it
6: [00:06:43] <t8> its stupid
7: [00:22:00] * t8 quit (Ping timeout: 250 seconds)
8: [00:27:51] * spronk quit (Quit: bleep bleep bloop bloop)
9: [00:30:03] <ss-helper> Using Zenhub for managing work in progress - https://groups.google.com/d/msg/silverstripe-dev/tY_aiEDZg9Q/XygpwanJDQAJ
10: [00:33:10] * spronk has joined #silverstripe
11: [00:38:49] * PenguinMan98 quit (Ping timeout: 260 seconds)
12: [01:00:03] <ss-helper> Re: [silverstripe-dev] Using Zenhub for managing work in progress - https://groups.google.com/d/msg/silverstripe-dev/tY_aiEDZg9Q/UEClyZbLDQAJ
13: [01:11:06] * micmania1 quit (Quit: micmania1)
14: [01:19:48] * UncleCheese quit (Read error: Connection reset by peer)
15: [01:51:26] * Tanger_ has joined #silverstripe
16: [02:00:19] * Embraden quit (Read error: Connection reset by peer)
17: [02:07:28] * micmania1 has joined #silverstripe
18: [02:10:56] * Stomach quit (Quit: zzz)
19: [02:27:29] * deepclone has joined #silverstripe
20: [02:27:30] <ss-helper> deepclone: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
21: [02:29:06] <deepclone> Hey dudes - I've had a quick google around but couldn't turn up anything. Is there any modules that allow you to "deep clone" data objects? I would like to be able to clone a dataobject, and if there are relations ideally it would cascade and clone each item and attach it to the parent
22: [02:29:39] <deepclone> I understand this would be quite a technical undertaking to develop this for my client myself - keen to hear any tips or modules you guys might know of :)
23: [02:31:13] <deepclone> Specifically I want to clone widgets https://github.com/silverstripe/silverstripe-widgets however as they are all dataobjects, and some of the nested objects are too I figured I could probably write a module to extend dataobjects and make them cloneable
24: [02:31:35] <deepclone> any help/tips greatly appreciated :D
25: [02:32:47] <deepclone> oh I just found this I might give it a try https://scrutinizer-ci.com/g/silverstripe/silverstripe-framework/code-structure/master/operation/%2Bglobal%5CDataObject%3A%3Aduplicate
26: [02:44:45] * ticktock has joined #silverstripe
27: [02:44:46] <ss-helper> ticktock: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
28: [02:44:48] <ticktock> hey
29: [02:48:09] <ticktock> is it difficult to get silverstripe to use a smtp client in php rather than using the python mail command
30: [02:48:26] <ticktock> er php mail command
31: [02:48:44] <ticktock> the hosting provider has done an upgrade and has had a drama with their php setup so i need to just work around that easily using a php smtp client or something similar
32: [03:13:21] <Tanger_> ticktock: https://github.com/xeraa/silverstripe-smtp
33: [03:13:23] <Tanger_> Check that out
34: [03:13:31] <Tanger_> It’s a bit old, but it might get you on the right path
35: [03:38:39] * Stomach has joined #silverstripe
36: [03:58:23] * Phlunk3 quit (Ping timeout: 244 seconds)
37: [03:58:32] * cheddam_ has joined #silverstripe
38: [04:01:09] * cheddam quit (Ping timeout: 276 seconds)
39: [04:08:06] * micmania1 quit (Quit: micmania1)
40: [04:15:25] * Stomach quit (Quit: zzz)
41: [04:21:09] * Admonish has joined #silverstripe
42: [04:22:58] * micmania1 has joined #silverstripe
43: [04:25:17] <Admonish> Hey guys I was wondering. Can you change the name of the temporary file that is created when a user uses the UploadField? I am trying to make it so that the file is saved to the server with a different name then its original.
44: [04:25:44] <Admonish> Spacifically Im going to do some md5 hashing on unique data and use that hash for the file names.
45: [04:26:16] <Admonish> I was thinking I might be able to do this if I subclass upload or upload_Validator but im not sure
46: [04:48:00] * Admonish quit (Quit: Going offline, see ya! (www.adiirc.com))
47: [04:52:59] * Admonish has joined #silverstripe
48: [04:53:42] * deepclone quit (Ping timeout: 250 seconds)
49: [05:06:18] * jules0x quit (Quit: Leaving)
50: [05:07:26] * micmania1 quit (Quit: micmania1)
51: [05:10:46] * Embraden has joined #silverstripe
52: [05:10:46] * Embraden quit (Changing host)
53: [05:10:46] * Embraden has joined #silverstripe
54: [05:19:20] * cheddam_ quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
55: [05:27:11] * adrexia has joined #silverstripe
56: [05:28:03] * cheddam has joined #silverstripe
57: [05:28:55] * Embraden quit (Ping timeout: 252 seconds)
58: [05:29:21] <Admonish> was setAllowedFileCategories() removed from upload ? I tried to use it in my code and I get an error
59: [05:29:50] <Admonish> Heres the documentation for it
60: [05:29:51] <Admonish> https://docs.silverstripe.org/en/3.2/developer_guides/forms/field_types/uploadfield/#configuration-reference
61: [05:33:25] * Embraden has joined #silverstripe
62: [05:42:29] * Agilix_ has joined #silverstripe
63: [05:49:46] * Embraden quit (Read error: Connection reset by peer)
64: [05:56:28] * Embraden has joined #silverstripe
65: [06:03:17] * Embraden quit (Read error: Connection reset by peer)
66: [06:06:54] * adrexia quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
67: [06:08:56] * Admonish quit (Quit: Going offline, see ya! (www.adiirc.com))
68: [06:14:00] * spronk quit (Quit: I may need a longer sleep timer...)
69: [06:22:10] * Embraden has joined #silverstripe
70: [06:43:24] * wmk has joined #silverstripe
71: [06:46:15] * arnhoe has joined #silverstripe
72: [06:51:06] * Mike123 has joined #silverstripe
73: [06:56:51] * spronk has joined #silverstripe
74: [07:05:30] * liori quit (Remote host closed the connection)
75: [07:06:57] * darianno has joined #silverstripe
76: [07:28:57] * spronk quit (Quit: I may need a longer sleep timer...)
77: [08:03:32] * kinglozzer has joined #silverstripe
78: [08:19:55] * Embraden quit (Read error: Connection reset by peer)
79: [08:38:52] * Embraden has joined #silverstripe
80: [08:38:53] * Embraden quit (Changing host)
81: [08:38:54] * Embraden has joined #silverstripe
82: [08:40:50] * DimiStripe has joined #silverstripe
83: [09:10:07] * cheddam quit (Ping timeout: 244 seconds)
84: [09:17:41] * Tanger_ quit (Quit: Tanger_)
85: [09:29:37] * XorPush has joined #silverstripe
86: [09:40:50] * agent44 has joined #silverstripe
87: [10:02:36] * Embraden quit (Read error: Connection reset by peer)
88: [10:18:53] * HARVS1789UK has joined #silverstripe
89: [10:19:23] <HARVS1789UK> Morning all
90: [10:19:56] <HARVS1789UK> has anyone experienced issues with SilverStripe ignoring symlinked directories?
91: [10:21:16] <HARVS1789UK> My (apache based) web server is configured to '+FollowSymLinks' but when I SymLink to a module I am developing locally and do a /dev/build or load the site, it acts as if the module's code base doesnt exist
92: [10:21:30] <HARVS1789UK> the module works fine if I physically copy it to the root dir of my SS site
93: [10:22:20] <HARVS1789UK> I have looked at ManifestFileFinder to see if there is some stupidity in there saying to ignore symlinked files/dirs, but cant see anything
94: [10:22:38] <HARVS1789UK> not sure if this would be a SilverStripe issue or an Apache issue :-(
95: [10:26:02] <kinglozzer> HARVS1789UK: I'd dig into FileFinder further and see if it's even visible
96: [10:26:09] <kinglozzer> Permissions possibly?
97: [10:28:45] <HARVS1789UK> kinglozzer the SS_FileFinder class yeah? I had a quick look there, nothing obvious, could start error logging stuff out though I guess on a /dev/build
98: [10:29:15] <HARVS1789UK> the symloink has an owner and group of 'apache' and has read + write for both wner and group, not sure what else it would need
99: [10:33:00] * Agilix_ quit (Ping timeout: 250 seconds)
100: [10:35:09] <kinglozzer> HARVS1789UK: Does your symlinked module have an _config.php or an _config/ directory?
101: [10:35:18] <kinglozzer> If it's missing either of those it won't be picked up
102: [10:35:45] <HARVS1789UK> both, I thought that might have been an issue as it was missing _config.php, but ive since added that
103: [10:36:27] <HARVS1789UK> also, if I copy and paste the module in (or more accurately install it using composer) it all builds/works as expected
104: [10:36:48] <HARVS1789UK> so I believe it's down to the symlinking (as it works fine otherwise)
105: [10:38:33] <HARVS1789UK> For some background, I am using this - https://github.com/franzliedke/studio - as developing a composer module and website locally and having to commit all my module changes, push to origin, then run a composer update every single time I want to see the outcome of my code changes is a rediculously slow work flow
106: [10:45:01] <kinglozzer> I seem to remember trying that before and I wasn't able to get it to work... I can't remember what exactly I tried using it for though
107: [10:45:55] <kinglozzer> I'm sure there is an alternative workflow with --keep-vcs etc in composer... I just can't think of it ><
108: [10:58:01] * Embraden has joined #silverstripe
109: [10:58:01] * Embraden quit (Changing host)
110: [10:58:01] * Embraden has joined #silverstripe
111: [10:59:29] * Embraden quit (Read error: Connection reset by peer)
112: [11:00:02] * Embraden has joined #silverstripe
113: [11:00:06] * Embraden quit (Read error: Connection reset by peer)
114: [11:00:34] * Embraden has joined #silverstripe
115: [11:02:03] * Embraden_ has joined #silverstripe
116: [11:02:03] * Embraden_ quit (Changing host)
117: [11:02:03] * Embraden_ has joined #silverstripe
118: [11:02:20] * Embraden quit (Read error: Connection reset by peer)
119: [11:18:46] * SH__ has joined #silverstripe
120: [11:19:15] <SH__> Is it possible to filter() a DataList on a method? For example I want to get all SiteTree records, but only isPublished()
121: [11:22:06] <kinglozzer> SH__: ->filterByCallback(function($item) { return $item->isPublished(); });
122: [11:25:07] <wmk> SH__, is "isPublished" something self-made or from SiteTree / Versioned?
123: [11:27:43] <SH__> kinglozzer Cool thanks, Ill try to use that. wmk, isPublished() is a method on SiteTree class
124: [11:30:33] <wmk> well, then you can use the Versioned methods to get published stuff
125: [11:32:13] <wmk> get_by_stage should be ok, http://api.silverstripe.org/3.3/source-class-Versioned.html#1356-1377
126: [11:32:50] <wmk> SH__, ^^
127: [11:34:41] <SH__> I see, kinglozzers method worked very nicely though. Very good method to know
128: [11:34:55] <kinglozzer> SH__: It's slower though
129: [11:35:21] <kinglozzer> As it involves getting every page, then looping through them and calling isPublished() which then does another database query
130: [11:35:28] <kinglozzer> So 50 pages means 50 queries
131: [11:36:14] * gelignite has joined #silverstripe
132: [11:39:16] <SH__> kinglozzer, oh wow I see. So I guess one should really think about that before using it hehe
133: [11:40:28] <kinglozzer> Yep. It's still useful of course, but ->filterByCallback() will be run in PHP, and it's best to do as much querying at a database level as possible :)
134: [11:41:36] <SH__> Indeed
135: [11:41:56] <SH__> If the data is not that big though, its alright, it wont be noticable hehe
136: [11:45:44] <kinglozzer> Exactly, just need to choose carefully when to use it!
137: [11:52:48] <HARVS1789UK> Update on my issue, it's nothingnto do with SilverStripe, PHP's is_dir() method is supposed to return true when passed a symlink which points to a directory and on my set up it does not #Fuming
138: [11:53:23] <HARVS1789UK> Works correctly on my colleagues set up which is from an almost identical vagrant install (I literally copied his set up files)
139: [11:54:07] <HARVS1789UK> so there must be something borked with either my PHP set up, the symlink itself or my apache set up, im clueless as to what though :-(
140: [11:54:42] <cloph> and your webserver has access to the link's target?
141: [12:02:17] * Agent47 has joined #silverstripe
142: [12:06:32] <wmk> SH__, yup, performance was the reason i showed you how e.g. SiteTree is filtering for published pages in DB directly
143: [12:06:51] <wmk> you might read docs about "Versioned" class
144: [12:06:58] <wmk> which is responsible for doing this
145: [12:14:43] * HARVS1789UK quit (Remote host closed the connection)
146: [12:17:58] * liori has joined #silverstripe
147: [12:21:03] * kinglozzer quit (Remote host closed the connection)
148: [12:21:29] * kinglozzer has joined #silverstripe
149: [12:22:19] * UndefinedOffset has joined #silverstripe
150: [12:49:30] * kinglozzer quit (Remote host closed the connection)
151: [12:49:37] * kinglozzer has joined #silverstripe
152: [12:51:06] * gelignite quit (Read error: Connection reset by peer)
153: [12:55:39] * gelignite has joined #silverstripe
154: [13:09:54] * Stomach has joined #silverstripe
155: [13:11:19] * Firesphere quit (Ping timeout: 260 seconds)
156: [13:13:34] * HARVS1789UK has joined #silverstripe
157: [13:15:47] * Firesphere has joined #silverstripe
158: [13:17:56] * HARVS1789UK quit (Ping timeout: 244 seconds)
159: [13:20:11] * Stomach quit (Quit: zzz)
160: [13:34:45] * HARVS1789UK has joined #silverstripe
161: [13:39:07] * jcwacky has joined #silverstripe
162: [13:39:34] <jcwacky> Is it at all possible to set the CMS menu to be sticky and uncollapsed by default?
163: [13:41:52] * muskie9 has joined #silverstripe
164: [13:50:20] <UndefinedOffset> jcwacky in theory you could just set a cookie called "cms-menu-sticky" to "true" see https://github.com/silverstripe/silverstripe-framework/blob/3.3/admin/javascript/LeftAndMain.Menu.js#L87-L93
165: [13:50:56] <jcwacky> Ah, good idea!
166: [13:51:23] <jcwacky> Any reason these settings are stored in cookies rather than with the Member obj?
167: [13:52:14] <UndefinedOffset> ya not sure, always been a pet peve of myn with the preview two up too :P which is why i wrote this module for work https://github.com/webbuilders-group/silverstripe-cmspreviewpreference
168: [13:52:41] <UndefinedOffset> my screens here at work are only 1600x900 which i find makes the editing area a bit on the small site with the two up
169: [14:10:01] * kinglozzer quit (Remote host closed the connection)
170: [14:10:47] * kinglozzer has joined #silverstripe
171: [14:17:16] * kinglozzer quit (Remote host closed the connection)
172: [14:17:23] * kinglozzer has joined #silverstripe
173: [14:19:38] * Mike123 quit (Ping timeout: 250 seconds)
174: [14:38:23] * PenguinMan98 has joined #silverstripe
175: [14:39:58] * arnhoe quit ()
176: [14:45:06] * ElPinguino98 has joined #silverstripe
177: [14:45:27] <ss-helper> How to get second to last item in loop - http://stackoverflow.com/questions/37486256/how-to-get-second-to-last-item-in-loop
178: [14:46:59] * PenguinMan98 quit (Ping timeout: 260 seconds)
179: [14:46:59] * ElPinguino98 is now known as PenguinMan98
180: [14:48:58] <kinglozzer> Does anyone else *never* use the short array syntax? I just always instinctively type array(... :P
181: [14:49:48] <muskie9> kinglozzer I force myself to lol
182: [14:49:57] <kinglozzer> Even though I'm never going to host a site on an old PHP version... I just never remember to use the new syntax ><
183: [14:50:15] <kinglozzer> muskie9: Yeah I'm now going through a half-finished codebase and forcing myself to do it :P
184: [14:50:41] <muskie9> it's definitely weird doing it... so used to array
185: [14:51:15] <kinglozzer> I think part of me likes being verbose with it :P it stands out more.. especially with syntax highlighting
186: [14:51:25] <muskie9> that's true
187: [14:56:54] * SH__ quit (Ping timeout: 250 seconds)
188: [15:10:43] * HARVS1789UK quit ()
189: [15:12:39] * PenguinMan98 quit (Ping timeout: 260 seconds)
190: [15:13:24] * PenguinMan98 has joined #silverstripe
191: [15:15:15] * ElPinguino98 has joined #silverstripe
192: [15:17:54] * PenguinMan98 quit (Ping timeout: 260 seconds)
193: [15:17:54] * ElPinguino98 is now known as PenguinMan98
194: [15:19:07] * PenguinMan98 quit (Read error: Connection reset by peer)
195: [15:19:51] * PenguinMan98 has joined #silverstripe
196: [15:26:18] * ElPinguino98 has joined #silverstripe
197: [15:27:14] * PenguinMan98 quit (Ping timeout: 260 seconds)
198: [15:27:14] * ElPinguino98 is now known as PenguinMan98
199: [15:29:35] * Agent47 quit (Quit: Leaving)
200: [15:51:43] * muskie9 quit (Quit: My Mac has gone to sleep. ZZZzzz…)
201: [16:00:50] * ElPinguino98 has joined #silverstripe
202: [16:01:39] * PenguinMan98 quit (Ping timeout: 260 seconds)
203: [16:01:51] * ElPinguino98 is now known as PenguinMan98
204: [16:06:19] * PenguinMan98 quit (Ping timeout: 260 seconds)
205: [16:07:00] * PenguinMan98 has joined #silverstripe
206: [16:14:25] * kinglozzer quit ()
207: [16:23:49] * PenguinMan98 quit (Ping timeout: 260 seconds)
208: [16:24:46] * PenguinMan98 has joined #silverstripe
209: [16:33:43] * XorPush quit (Quit: Page closed)
210: [16:38:24] * PenguinMan98 quit (Ping timeout: 260 seconds)
211: [16:39:05] * PenguinMan98 has joined #silverstripe
212: [16:51:39] * wmk quit (Read error: Connection reset by peer)
213: [16:57:42] * muskie9 has joined #silverstripe
214: [17:01:51] * ElPinguino98 has joined #silverstripe
215: [17:02:54] * PenguinMan98 quit (Ping timeout: 260 seconds)
216: [17:02:54] * ElPinguino98 is now known as PenguinMan98
217: [17:09:54] * PenguinMan98 quit (Ping timeout: 260 seconds)
218: [17:14:02] * PenguinMan98 has joined #silverstripe
219: [17:15:02] * ElPinguino98 has joined #silverstripe
220: [17:15:02] * PenguinMan98 quit (Read error: Connection reset by peer)
221: [17:15:04] * ElPinguino98 is now known as PenguinMan98
222: [17:16:38] * agent44 quit (Quit: zzz)
223: [17:25:28] * jcwacky has left #silverstripe
224: [17:38:29] * PenguinMan98 quit (Read error: Connection reset by peer)
225: [17:38:38] * PenguinMan98 has joined #silverstripe
226: [17:43:44] * PenguinMan98 quit (Ping timeout: 260 seconds)
227: [17:46:04] * PenguinMan98 has joined #silverstripe
228: [17:50:54] * ElPinguino98 has joined #silverstripe
229: [17:52:29] * PenguinMan98 quit (Ping timeout: 260 seconds)
230: [17:52:46] * ElPinguino98 is now known as PenguinMan98
231: [17:55:26] * ElPinguino98 has joined #silverstripe
232: [17:57:09] * PenguinMan98 quit (Ping timeout: 260 seconds)
233: [18:00:39] * ElPinguino98 quit (Ping timeout: 260 seconds)
234: [19:13:57] * Azure quit (Remote host closed the connection)
235: [20:55:48] * muskie9 quit (Quit: My Mac has gone to sleep. ZZZzzz…)
236: [20:57:03] * muskie9 has joined #silverstripe
237: [20:57:07] * muskie9 quit (Client Quit)
238: [23:17:56] * UndefinedOffset quit (Quit: Leaving.)
239: [23:22:48] * UndefinedOffset has joined #silverstripe
240: [23:24:51] * UndefinedOffset quit (Client Quit)
241: [23:40:15] * adrexia has joined #silverstripe
242: [23:44:39] * Azure has joined #silverstripe

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