#silverstripe IRC Log

IRC log for 12 October 2013

All timestamps are in UTC.

1: [00:04:52] * AlphaCactus quit (Quit: kthxbai)
2: [00:15:12] * sminnee_ has joined #silverstripe
3: [00:15:12] * sminnee_ quit (Changing host)
4: [00:15:12] * sminnee_ has joined #silverstripe
5: [00:15:25] * sminnee quit (Ping timeout: 240 seconds)
6: [00:15:26] * sminnee_ is now known as sminnee
7: [00:33:07] <DesignerX> hi, how to Sort DataObjects in many_many relation when using "GridFieldOrderableRows" ?
8: [00:34:53] <DesignerX> By default the SortID field is on the object, but having many_many relations will change that field when the order changes . shouldnt the SortID be on the "RelationTable" instead of the object ?
9: [00:38:07] * spronk2 has joined #silverstripe
10: [01:04:05] * SightUnseen1 has joined #silverstripe
11: [01:04:10] * SightUnseen1 has left #silverstripe
12: [01:43:00] * spronk2 quit (Quit: spronk2)
13: [01:52:49] * joelpittet quit (Remote host closed the connection)
14: [02:14:51] * MichaelDesignerX has joined #silverstripe
15: [02:17:53] * DesignerX quit (Ping timeout: 272 seconds)
16: [03:31:46] * cloph_away quit (Read error: Operation timed out)
17: [03:32:16] * cloph_away has joined #silverstripe
18: [03:44:11] * willr has joined #silverstripe
19: [03:59:30] * joelpittet has joined #silverstripe
20: [04:07:39] * willr quit (Quit: willr)
21: [04:13:33] * willr has joined #silverstripe
22: [04:31:26] * MichaelDesignerX quit (Ping timeout: 264 seconds)
23: [05:02:49] * joelpittet quit (Remote host closed the connection)
24: [05:18:37] * willr quit (Quit: willr)
25: [06:27:32] * SightUnseen has joined #silverstripe
26: [06:29:39] * SightUnseen has left #silverstripe
27: [07:49:52] <guzzlefry> Anyone around? Had a quick question. Does it matter how granular I get with the template includes, as far as performance is concerned?
28: [08:05:19] * slid3r quit (Ping timeout: 250 seconds)
29: [08:21:31] * SightUnseen has joined #silverstripe
30: [08:22:17] * SightUnseen has left #silverstripe
31: [09:01:13] * zippy__ has joined #silverstripe
32: [09:28:04] * MichaelDesignerX has joined #silverstripe
33: [09:59:30] * Colin[pi] has joined #silverstripe
34: [10:10:11] * zippy__ quit (Quit: zippy__)
35: [10:21:45] * mobiusnz quit (Quit: Leaving.)
36: [10:22:45] * mobiusnz has joined #silverstripe
37: [10:24:35] * Alexw has joined #silverstripe
38: [10:24:48] <Alexw> Hi everyone
39: [10:28:35] <Alexw> Does anyone know how to make a second navigation menu? And all items inside and their parent are not included in the main navigation menu.
40: [10:42:38] * mobiusnz quit (Quit: Leaving.)
41: [10:44:14] * skorp has joined #silverstripe
42: [10:44:34] * spronk2 has joined #silverstripe
43: [10:45:45] <Colin[pi]> Alexw: you need to use Menu(1) and Menu(2)
44: [10:46:41] <Alexw> How to edit Menu #2?
45: [10:46:51] <Alexw> Since the Pages tab only covers #1 right?
46: [10:47:12] <Colin[pi]> No, #1 is the top-level, #2 is the next level down, so the children under the top
47: [10:47:30] <Colin[pi]> so if you loop over Menu(1) in the template, you'll get the main top-level nav
48: [10:47:39] <Colin[pi]> Menu(2) will be the sub-nav
49: [11:13:21] * mobiusnz has joined #silverstripe
50: [11:18:18] <Alexw> What would be in the sub-nav?
51: [11:29:08] <Colin[pi]> Alexw
52: [11:29:19] <Colin[pi]> any pages you've added in the CMS as sub-nav
53: [11:35:58] <Alexw> Is it possible check if it has chidlren
54: [11:36:08] <Alexw> So I loop through the first meni
55: [11:36:09] <Alexw> menu
56: [11:36:15] <Alexw> and check if it has children
57: [11:38:13] <Alexw> Found it: <% if $Children.count > 0 %>
58: [11:40:07] <Colin[pi]> Alexw: you can shorten to <% if Children %>
59: [11:40:29] <Alexw> Ah cool
60: [11:41:00] <Alexw> Is it possible if a specific theme is selected that the top menu is limited to X pages?
61: [11:41:19] <Alexw> So it can't exceed and so can't let the template explode
62: [11:42:01] <Colin[pi]> hmm you could probably program it in, but no you can't do that out of the box
63: [11:42:07] <Alexw> Ic
64: [11:42:33] <Alexw> Is it possible to get $CMSVersion in the frontend?
65: [11:44:04] <Colin[pi]> no, it's a function on the backend only; you'd need to write your own CMSVersion() controller function on your Page class to return it
66: [11:44:56] <Alexw> Ok, how to get the version using PHP
67: [11:45:43] <Colin[pi]> look at the CMSVersion() method in the core code
68: [11:47:50] <Alexw> Long function :)
69: [12:09:56] <Alexw> How to add at every 2 item in a loop a class?
70: [12:10:42] <Colin[pi]> Alexw: use $Even and $Odd
71: [12:10:50] <Alexw> ok
72: [12:11:26] <Colin[pi]> i.e. class="<% if Even %>even-class<% end_if %>"
73: [12:12:19] <Alexw> Ok thanks
74: [12:13:15] * mobiusnz quit (Ping timeout: 265 seconds)
75: [12:13:32] <Colin[pi]> there is also $EvenOdd which will return "even" or "odd"
76: [12:30:48] * Alexw quit ()
77: [12:32:52] * spronk2 quit (Quit: spronk2)
78: [12:45:27] * robert_ quit (Ping timeout: 252 seconds)
79: [12:45:42] * robert_ has joined #silverstripe
80: [13:07:00] * mobiusnz has joined #silverstripe
81: [13:11:44] * mobiusnz quit (Ping timeout: 265 seconds)
82: [13:13:44] * cloph_away is now known as cloph
83: [13:17:22] * ARNHOE has joined #silverstripe
84: [13:25:02] * MichaelDesignerX quit (Ping timeout: 240 seconds)
85: [14:07:27] * mobiusnz has joined #silverstripe
86: [14:16:08] * mobiusnz quit (Ping timeout: 240 seconds)
87: [14:32:57] * osterlaus has joined #silverstripe
88: [14:36:05] * osterlaus has left #silverstripe
89: [14:58:46] * ss23 quit (Ping timeout: 245 seconds)
90: [15:07:58] * swordsmanz quit (Quit: ooh ponies kinkeyyy)
91: [15:12:39] * ss23 has joined #silverstripe
92: [15:12:40] * mobiusnz has joined #silverstripe
93: [15:17:38] * mobiusnz quit (Ping timeout: 264 seconds)
94: [16:13:09] * mobiusnz has joined #silverstripe
95: [16:17:26] * mobiusnz quit (Ping timeout: 240 seconds)
96: [16:43:10] * ARNHOE quit (Remote host closed the connection)
97: [16:43:46] * ARNHOE has joined #silverstripe
98: [16:46:26] * ARNHOE quit (Read error: Operation timed out)
99: [17:13:39] * mobiusnz has joined #silverstripe
100: [17:18:13] * mobiusnz quit (Ping timeout: 272 seconds)
101: [18:14:08] * mobiusnz has joined #silverstripe
102: [18:18:14] * mobiusnz quit (Ping timeout: 240 seconds)
103: [18:34:24] * ARNHOE has joined #silverstripe
104: [18:35:24] * ARNHOE quit (Read error: Connection reset by peer)
105: [18:35:31] * ARNHOE has joined #silverstripe
106: [19:01:01] * skorp has left #silverstripe
107: [19:14:42] * mobiusnz has joined #silverstripe
108: [19:19:21] * mobiusnz quit (Ping timeout: 252 seconds)
109: [19:26:30] * hutou has left #silverstripe
110: [19:56:29] * ARNHOE quit (Remote host closed the connection)
111: [19:57:03] * ARNHOE has joined #silverstripe
112: [19:57:28] * skorp has joined #silverstripe
113: [20:01:22] * ARNHOE quit (Ping timeout: 246 seconds)
114: [20:05:57] * skorp quit (Quit: skorp)
115: [20:15:08] * mobiusnz has joined #silverstripe
116: [20:19:21] * mobiusnz quit (Ping timeout: 245 seconds)
117: [21:13:21] * mobiusnz has joined #silverstripe
118: [21:55:33] * Colin[pi] quit (Ping timeout: 252 seconds)
119: [22:27:01] * Colin[pi] has joined #silverstripe
120: [22:40:19] * MichaelDesignerX has joined #silverstripe
121: [23:04:55] * atmos quit (Ping timeout: 250 seconds)
122: [23:13:24] * cloph is now known as cloph_away
123: [23:39:36] * Colin[pi] quit (Ping timeout: 265 seconds)
124: [23:42:02] * Colin[pi] has joined #silverstripe

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