#silverstripe IRC Log

IRC log for 27 September 2015

All timestamps are in UTC.

1: [00:58:25] * Embraden quit (Read error: Connection reset by peer)
2: [00:59:30] * Embraden has joined #silverstripe
3: [01:06:54] * Hailwood quit (Remote host closed the connection)
4: [02:16:31] * Azure quit (Quit: My Mac has gone to sleep. ZZZzzz…)
5: [02:42:41] * Stomach has joined #silverstripe
6: [03:11:22] * Stomach quit (Quit: bye)
7: [04:07:51] * r_hector has joined #silverstripe
8: [04:26:14] <Audlex> Thank you for your reply Zauberfisch. It was down to stupidity in the end.
9: [04:26:24] <Audlex> It has been a while since I set up a new install -_-
10: [04:26:42] <Audlex> brb, installing ruby
11: [04:26:45] * Audlex quit ()
12: [04:27:58] * Audlex has joined #silverstripe
13: [06:04:42] * _longines has joined #silverstripe
14: [07:24:20] * mobiusnz quit (Read error: Connection reset by peer)
15: [07:24:30] * mobiusnz has joined #silverstripe
16: [08:59:37] * masnun has joined #silverstripe
17: [09:17:57] * EasyCo quit (Quit: Connection closed for inactivity)
18: [09:55:21] * masnun quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
19: [10:02:04] * masnun has joined #silverstripe
20: [10:32:15] * gelignite has joined #silverstripe
21: [10:38:53] * masnun has left #silverstripe
22: [10:55:40] <ss-helper> Why is $Students and $Mentors accessible in ProjectsHolder.ss? - http://stackoverflow.com/questions/32807096/why-is-students-and-mentors-accessible-in-projectsholder-ss
23: [11:26:44] * Seraphia_ has joined #silverstripe
24: [11:26:44] <ss-helper> Seraphia_: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
25: [11:27:54] <Seraphia_> hey there - is there an alternative for generic views in SS 3.1? used the generic views plugin back in the 2.x times, but it seems, it is obsolete?
26: [11:44:53] <Seraphia_> or - alternativly - what is the best practice to filter and sort a paged list?
27: [12:30:11] * Azure has joined #silverstripe
28: [12:32:14] * TRB143_ has joined #silverstripe
29: [12:48:41] * r_hector quit (Remote host closed the connection)
30: [12:52:37] * TRB143_ is now known as trb143
31: [12:55:20] * swaiba has joined #silverstripe
32: [13:40:37] * MrGuits has joined #silverstripe
33: [13:41:15] * Guits quit (Read error: Connection reset by peer)
34: [14:00:46] * DimiStripe has joined #silverstripe
35: [14:05:22] * Guits has joined #silverstripe
36: [14:05:33] * MrGuits quit (Read error: Connection reset by peer)
37: [14:11:51] * MrGuits has joined #silverstripe
38: [14:11:51] * Guits quit (Read error: Connection reset by peer)
39: [14:36:52] * Guits has joined #silverstripe
40: [14:37:10] * MrGuits quit (Read error: Connection reset by peer)
41: [14:39:42] * Guits quit (Read error: Connection reset by peer)
42: [14:40:20] * Guits has joined #silverstripe
43: [14:44:48] * swaiba quit (Remote host closed the connection)
44: [16:27:10] * Copperis has joined #silverstripe
45: [16:44:12] * Azure quit (Quit: My Mac has gone to sleep. ZZZzzz…)
46: [16:47:59] <ss-helper> Security issue with login? - https://groups.google.com/d/msg/silverstripe-dev/2YQLa6v07Jo/phXwPp3JAwAJ
47: [16:49:05] * Azure has joined #silverstripe
48: [17:45:43] * Azure quit (Quit: My Mac has gone to sleep. ZZZzzz…)
49: [19:03:03] * Stomach has joined #silverstripe
50: [19:14:30] * Copperis quit (Remote host closed the connection)
51: [19:28:09] * helenclarko has joined #silverstripe
52: [19:31:47] * muskie9 has joined #silverstripe
53: [19:46:18] <helenclarko> Morning o/
54: [19:48:17] <ss-helper> Re: Customizing charset/collation per-column. - https://groups.google.com/d/msg/silverstripe-dev/FXG5Yg7KzSo/IgRsRXTTAwAJ
55: [19:48:17] <ss-helper> Re: Customizing charset/collation per-column. - https://groups.google.com/d/msg/silverstripe-dev/FXG5Yg7KzSo/Mc8ZoGXTAwAJ
56: [19:52:23] * muskie9 quit (Ping timeout: 264 seconds)
57: [20:07:37] * jules0x has joined #silverstripe
58: [20:13:34] * micmania1 has joined #silverstripe
59: [20:13:37] * DanaeNZ has joined #silverstripe
60: [20:13:39] <MichalKleiner_aw> o/
61: [20:13:43] * MichalKleiner_aw is now known as MichalKleiner
62: [20:13:45] <MichalKleiner> morning
63: [20:13:48] <DanaeNZ> \o
64: [20:29:27] * Stomach quit (Quit: zzz)
65: [20:32:25] * Stomach has joined #silverstripe
66: [20:35:37] <DanaeNZ> where's my damn coffee
67: [20:41:09] * Jakx has joined #silverstripe
68: [20:41:09] * micmania1 quit (Quit: micmania1)
69: [20:41:27] <Jakx> Good morning
70: [20:42:31] * Olliepop has joined #silverstripe
71: [20:42:34] <Olliepop> morning
72: [20:49:09] <Jakx> is it possible to $DataList->filter() by a joined tables column/property?
73: [20:50:07] * micmania1 has joined #silverstripe
74: [20:50:12] <Olliepop> yes Jakx
75: [20:52:53] <Jakx> Olliepop, $list->canFilterBy("JoinedTable.Property") returns false. Is my reference wrong?
76: [20:54:30] * Olliepop quit (Ping timeout: 246 seconds)
77: [20:54:55] * DanaeNZ quit (Remote host closed the connection)
78: [20:55:32] * DanaeNZ has joined #silverstripe
79: [20:58:36] * novaweb has joined #silverstripe
80: [20:58:48] <novaweb> Yeow
81: [20:59:33] * DanaeNZ quit (Remote host closed the connection)
82: [20:59:46] * DanaeNZ has joined #silverstripe
83: [21:01:21] <Jakx> $list->canFilterBy("JoinedTable.Property"); Is this the correct way to filter by a joined table column/property?
84: [21:03:31] <Jakx> correct way to check if a list can be filtered by...*
85: [21:18:29] <ss-helper> Re: RFC-5: JavaScript Module Management - https://groups.google.com/d/msg/silverstripe-dev/RbTENuAJK9w/8p1z_j7YAwAJ
86: [21:34:34] * vanny has joined #silverstripe
87: [21:35:10] <vanny> ok silly questions, but is it possible to use two partial match filters in one query, on the same field.
88: [21:36:43] * DanaeNZ quit (Remote host closed the connection)
89: [21:37:38] * DanaeNZ has joined #silverstripe
90: [21:39:23] <DanaeNZ> mmmm coffee
91: [21:45:48] * vanny quit (Quit: Page closed)
92: [21:50:14] * novaweb quit (Remote host closed the connection)
93: [21:50:46] * novaweb has joined #silverstripe
94: [21:52:03] * Azure has joined #silverstripe
95: [21:55:02] * Phlunk3 has joined #silverstripe
96: [21:55:22] * novaweb quit (Ping timeout: 250 seconds)
97: [21:56:04] * Troy has joined #silverstripe
98: [21:56:05] <ss-helper> Troy: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
99: [21:58:42] <Troy> Hi, I'm just learning SS. Is there an easy way to include a JS file only in certain PageTypes? combining statements in the template doesn't seem to work , e.g. <% if ClassName = PhotoPage || ClassName = OverviewPage
100: [22:01:18] <DanaeNZ> Troy: you can include JS in a Page type's controller (in the init() function)
101: [22:06:43] <Troy> At the moment it is actually in the Page.php as Requirements::javascript... I was just not sure how the variable is called in php to to something in php like if($ClassName=="PhotoPage" || ...) { Requirements...}
102: [22:11:42] <Troy> My guess is I should create a custum php function that checks the page type and only returns a true/false that I can then check in the template. I'm just not sure how the function should look like...it probably has to be in the Page.php somewhere
103: [22:15:05] <helenclarko> Troy, if($('#ID').length > 0){
104: [22:15:23] <helenclarko> Maybe?
105: [22:16:04] <helenclarko> Its hacky, but it works... It'll only fire if That ID exists on a page.
106: [22:29:12] * novaweb has joined #silverstripe
107: [22:30:33] <DanaeNZ> Troy: I'm a little confused - wouldn't each Page Type have a class anyway?
108: [22:38:13] <Troy> I solved my problem, apparently you can chain up conditions in template in SS3.x like this: <% if $ClassName == 'PageType1' || $ClassName = PageType1 ...
109: [22:38:46] * Hailwood has joined #silverstripe
110: [22:44:41] <Hailwood> Hey folks, given we're in the context of a function on a Page, what's the cleanest way to get the storage table based off stage (so MyCustomPage_Live vs just MyCustomPage if stage == 'Draft' etc)
111: [22:52:06] <MichalKleiner> is there a way how to reorder tabs in admin? If I have $fields->addFieldToTab('Root.Tab1'.. and $fields->addFieldToTab('Root.Tab2', how do I make Tab2 to be in front of Tab1?
112: [22:55:39] <helenclarko> MichalKleiner, cany you not just move it up above tab1 in your php file. I guess once you have run /dev/build its commited it to your database so changing order becomes difficult.
113: [22:57:00] <MichalKleiner> I could around tabs that I control, but I want to move it in front of tabs that comes from other extensions
114: [23:01:04] <helenclarko> MichalKleiner, Interesting question. I've not really come across a tab that's needed to be moved.
115: [23:01:32] <MichalKleiner> We can live with whatever order but it'd be beter
116: [23:01:35] <MichalKleiner> better
117: [23:03:45] <ss-helper> Re: [silverstripe-dev] Re: RFC-5: JavaScript Module Management - https://groups.google.com/d/msg/silverstripe-dev/RbTENuAJK9w/VYah5hfeAwAJ
118: [23:03:57] <helenclarko> MichalKleiner, You could possibly remove the tab and re-add it using the tab2 .php file. I'm not sure if that will work though.
119: [23:04:49] <MichalKleiner> when I remove it and add it again, it complains I have it there two times.. but maybe I'm just doing something wrong.. not a big deal, don't worry, thanks anyway :)
120: [23:11:16] * DanaeNZ quit (Remote host closed the connection)
121: [23:15:53] * micmania1 quit (Quit: micmania1)
122: [23:16:46] <Jakx> How do I filter a datalist by a joined table? e.g $list->filter("JoinedTable.Property"...)
123: [23:34:41] * DanaeNZ has joined #silverstripe
124: [23:54:11] * spronk has joined #silverstripe

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