#silverstripe IRC Log

IRC log for 11 August 2013

All timestamps are in UTC.

1: [00:00:28] * simon_w|air has joined #silverstripe
2: [00:00:29] * simon_w has joined #silverstripe
3: [00:00:30] * priithansen quit (Quit: priithansen)
4: [00:04:49] * DigNZ has joined #silverstripe
5: [00:05:13] * DigNZ quit (Client Quit)
6: [00:09:32] * digitaldesign has joined #silverstripe
7: [00:09:36] <digitaldesign> awesome thanks
8: [00:11:25] <Zauberfisch> micmania1: the blog module looks interesting
9: [00:11:53] <micmania1> thanks :) Just trying to figure out a few bugs with composer at the mo
10: [00:12:04] <Zauberfisch> so far i always hand made it because using the module had little benefit for me
11: [00:12:16] <micmania1> I've made a sub-theme of simple that i'm trying to add as a dev requirement but its not playing nice.
12: [00:12:24] <simon_w> micmania1, can I suggest renaming it to remove confusion? As well as dropping the redundant composer requirements, allowing it to be installed on 3.2 and removing the minimum-stability and prefer-stable entries (since it's a module, not a project)
13: [00:12:41] <Zauberfisch> but it looks from the screenshot like you have done the gridfield based entry stuff well
14: [00:13:37] <Zauberfisch> i have to agree with simon_w
15: [00:13:52] <micmania1> simon_w, no problem. I'm still learning this whole composer malarky :)
16: [00:14:18] <simon_w> micmania1, basically, the only thing you should require is CMS, with something like ~3.1 or >=3.1.*
17: [00:14:43] <micmania1> ok
18: [00:14:53] <Zauberfisch> well, maybe the framework aswell simon_w
19: [00:15:03] <Zauberfisch> ah, right, thats in cms
20: [00:15:04] <simon_w|air> Zauberfisch, it's redundant
21: [00:15:15] <Zauberfisch> wasnt thinking straight
22: [00:15:23] <micmania1> that makes sense.
23: [00:15:23] <simon_w|air> Oh man, IRC over VNC to a much bigger screen is hard
24: [00:16:14] <micmania1> also, Zauberfish, we normally create from scratch too.
25: [00:16:17] <Zauberfisch> simon_w|air: btw, after my long search for a decent guiirc client on both windows and mac i have given up
26: [00:16:34] <Zauberfisch> i am now backto irssi
27: [00:16:35] <micmania1> I tried to use the official blog yesterday but wasn't very happy at all with it.
28: [00:17:11] <micmania1> You can rename modules on github now can't you? Does that update packagist too?
29: [00:17:20] <micmania1> or should I delete that too?
30: [00:17:44] <simon_w|air> It should update on packagist, but you just need to update the composer.json file and maybe change the URL on packagist
31: [00:18:11] <Zauberfisch> anyway, bed time
32: [00:18:17] <Zauberfisch> good night
33: [00:18:30] <simon_w|air> nn
34: [00:19:36] <micmania1> gn
35: [00:19:53] <micmania1> ss-blog should be okay?
36: [00:20:15] <simon_w|air> "I'm using the blog module"
37: [00:20:15] <simon_w|air> "Which one?"
38: [00:20:51] <simon_w|air> Having silverstripe-'s fine (though it's usually preferred to not include it in your composer name)
39: [00:20:58] <simon_w|air> It's more the "blog" part of it
40: [00:21:14] <micmania1> what else can I call a blog?
41: [00:23:14] <simon_w|air> Whatever you like. It'll just be nice to not have the same problem that ecommerce modules have
42: [00:23:24] <simon_w|air> There's like 10 of them all called ecommerce
43: [00:24:54] <simon_w|air> UncleCheese seems to like calling things "BetterBlah", there's also things like "ReBlah", or just come up with a name not based on the function
44: [00:25:46] <micmania1> silverstripe-blogger?
45: [00:25:54] <simon_w|air> Could work
46: [00:57:45] <micmania1> all updated: https://github.com/micmania1/silverstripe-blogger
47: [01:03:04] * simon_w quit (Quit: Leaving)
48: [01:08:19] * simon_w has joined #silverstripe
49: [01:15:24] * simon_w|air quit (Quit: Leaving)
50: [02:12:04] * simon_w quit (Quit: Leaving)
51: [02:43:03] * howardgrigg quit (Remote host closed the connection)
52: [03:41:27] * cloph has joined #silverstripe
53: [03:41:57] * cloph_away quit (Ping timeout: 248 seconds)
54: [03:53:30] * howardgrigg has joined #silverstripe
55: [03:57:59] * howardgrigg quit (Ping timeout: 260 seconds)
56: [04:15:15] * henkpoley has joined #silverstripe
57: [04:26:06] * pippy_ has joined #silverstripe
58: [04:28:07] * pippy quit (Ping timeout: 276 seconds)
59: [05:07:08] * howardgrigg has joined #silverstripe
60: [05:42:41] * funkygibbon has joined #silverstripe
61: [06:28:19] * DigNZ has joined #silverstripe
62: [06:35:44] * xmark has joined #silverstripe
63: [06:37:48] * xmark quit (Client Quit)
64: [07:04:18] * SightUnseen has joined #silverstripe
65: [07:04:19] * SightUnseen has left #silverstripe
66: [07:09:36] * DigNZ quit (Quit: DigNZ)
67: [07:35:06] * CodeTrap has joined #silverstripe
68: [07:47:27] * CodeTrap quit (Quit: CodeTrap)
69: [08:14:38] * Pyromanik has joined #silverstripe
70: [08:15:50] * Nightjar has left #silverstripe
71: [08:16:12] * Nightjar has joined #silverstripe
72: [08:26:23] * howardgrigg quit (Remote host closed the connection)
73: [08:36:26] * kerosene quit (Quit: Reconnecting)
74: [08:36:42] * kerosene has joined #silverstripe
75: [08:37:47] * mobiusnz has joined #silverstripe
76: [08:42:09] * mobiusnz quit (Ping timeout: 256 seconds)
77: [08:45:15] * osterlaus has joined #silverstripe
78: [09:07:47] * mobiusnz has joined #silverstripe
79: [09:09:10] * digitaldesign quit (Quit: digitaldesign)
80: [09:16:35] * mobiusnz quit (Ping timeout: 246 seconds)
81: [09:36:50] * howardgrigg has joined #silverstripe
82: [09:41:30] * howardgrigg quit (Ping timeout: 264 seconds)
83: [09:43:00] * mobiusnz has joined #silverstripe
84: [09:44:17] * micmania1 has joined #silverstripe
85: [09:44:32] * henkpoley quit (Quit: henkpoley)
86: [09:50:16] * Shadefrozen has joined #silverstripe
87: [09:51:13] * priithansen has joined #silverstripe
88: [09:52:39] * ARNHOE has joined #silverstripe
89: [10:04:13] <Shadefrozen> For those awake - I have a CategoryHolder Page, a Category Page, and a CategoryLink dataobject with the appropriate relations (many links per category). Everything is working fine and I can get all the links and group them...but only by the Category ID and not the name...
90: [10:04:53] <Shadefrozen> the full code is here for anyone interested : http://pastie.org/8226446
91: [10:06:24] <Shadefrozen> I think the easiest solution might be to write the associated Category Title (or URLSegment) into the Link record when it's created, but I'm not sure how to do this
92: [10:07:06] * chillu has joined #silverstripe
93: [10:08:59] <micmania1> what;s the purpose of CateogryLink?
94: [10:09:00] * chillu quit (Read error: Connection reset by peer)
95: [10:09:37] <Shadefrozen> thats the Link dataobject
96: [10:10:08] <Nightjar> what
97: [10:10:34] <Nightjar> so you have a CategoryLink has one Category, has one category holder?
98: [10:11:24] <Nightjar> you do.
99: [10:11:26] <Shadefrozen> ok there's a category page holder that contains category pages and each category page contains links
100: [10:11:36] <Shadefrozen> yes
101: [10:11:56] <Nightjar> why don't you just CategoryHolder many many Category
102: [10:12:09] <Nightjar> is there a reason for the link object?
103: [10:12:32] <Nightjar> oh it has an image too
104: [10:12:35] <Shadefrozen> well I thought there was but maybe not....
105: [10:12:38] <Shadefrozen> yes it does
106: [10:13:00] <Nightjar> and you're working in SilverStripe 2.4?
107: [10:13:12] <Nightjar> and you're using DataObjectManager?
108: [10:13:13] <Shadefrozen> sorry my bad should have clarified..yes
109: [10:13:21] <Shadefrozen> yes and yes
110: [10:13:52] <Nightjar> so your issue is that you're trying to group by name?
111: [10:13:57] <Nightjar> the link name?
112: [10:14:42] <Shadefrozen> no its actually kinda working, including the group
113: [10:15:20] <Shadefrozen> I'm grouping by <% control GetLinks.GroupedBy(LinksCategoryID) %>
114: [10:15:34] <Shadefrozen> because the category ID is all I have available in that function
115: [10:16:23] <Shadefrozen> I really want to get the title of the category page related to each link (instead of just the ID which is created by the relation I guess)
116: [10:17:16] * CodeTrap has joined #silverstripe
117: [10:18:00] <Nightjar> right
118: [10:18:04] <Nightjar> when you GroupedBy
119: [10:18:08] <Shadefrozen> I have a child loop inside that too
120: [10:18:10] <Nightjar> it gives you a list in a list
121: [10:18:12] <Shadefrozen> *listening*
122: [10:18:13] <Nightjar> right
123: [10:18:15] <Shadefrozen> yes
124: [10:18:18] <Nightjar> so you're doing it right by the sounds
125: [10:18:34] <Nightjar> so what's the issue?
126: [10:18:57] <Shadefrozen> yeah I'm getting what I want as far as the info that's available...well I can only group by the Category ID
127: [10:19:34] <Nightjar> <% control GetLinks.GroupedBy(LinksCategoryID) %><% control Children %>$Category.Name<% end_control %><% end_control %>
128: [10:19:47] <Nightjar> I'm sorry I don't understand your issue
129: [10:22:13] * chillu has joined #silverstripe
130: [10:22:22] <Shadefrozen> it's ok...hold on let me try something then I will attempt to be clearer
131: [10:27:19] <Shadefrozen> so when I do a debug : <% control GetLinks.GroupedBy(LinksCategoryID) %><h3>$LinksCategoryID</h3><% control Children %>$Debug<% end_control %> what I'm saying is that inside the GetLinks function, I don't have access to the associated category name, there's only LinksCategoryID
132: [10:28:25] <Nightjar> try GroupedBy LinksCategory.Name
133: [10:28:50] <Nightjar> or you'll have to write your own function that orders them yourself
134: [10:36:13] <Shadefrozen> oki doki....thanks
135: [10:36:41] * henkpoley has joined #silverstripe
136: [11:02:01] * hamror has left #silverstripe
137: [11:18:14] * MiniZeka has joined #silverstripe
138: [11:18:19] <MiniZeka> hi guys!
139: [11:18:40] <Nightjar> hi
140: [11:18:44] <MiniZeka> I'm building custom page in CMS, but can't set proper template
141: [11:19:22] <MiniZeka> is there a some sort of naming convention to make it work?
142: [11:20:11] <MiniZeka> let's say that I have CustomAdminPage extends LeftAndMain
143: [11:20:20] <MiniZeka> and only "index" action in class
144: [11:20:50] <MiniZeka> how should I name the template, and where should I put it to display it properly?
145: [11:22:33] <Nightjar> admin does not have a theme
146: [11:23:17] <Nightjar> if the template is in the theme dir, it won't work.
147: [11:24:14] <MiniZeka> as always, found a solution right after asking question, although I spent last hour to figure it out...
148: [11:24:56] <MiniZeka> in this case, template should be named CustomAdminPage_Content.ss and should be in mysite/templates/Includes ;)
149: [11:25:36] * zfmf1 has joined #silverstripe
150: [11:28:54] * mobiusnz quit (Ping timeout: 264 seconds)
151: [11:32:41] * DesignerX has joined #silverstripe
152: [11:32:44] * henkpoley quit (Quit: henkpoley)
153: [11:36:31] * Shadefrozen quit (Quit: Page closed)
154: [11:37:35] * howardgrigg has joined #silverstripe
155: [11:44:51] <Zauberfisch> blubb gents
156: [11:45:12] <Zauberfisch> the php extension tidy is only needed for unit tests, right?
157: [11:46:39] * MiniZeka quit (Ping timeout: 250 seconds)
158: [12:02:46] * micmania1 quit (Ping timeout: 248 seconds)
159: [12:14:39] * swordsmanz quit (Quit: swordsmanz)
160: [12:16:35] * micmania1 has joined #silverstripe
161: [12:25:05] * mobiusnz has joined #silverstripe
162: [12:29:23] * mobiusnz quit (Ping timeout: 256 seconds)
163: [13:10:27] * ARNHOE quit (Remote host closed the connection)
164: [13:10:53] * Shrike_Finland has joined #silverstripe
165: [13:13:45] * Shrike_Finland1 has joined #silverstripe
166: [13:15:50] * Shrike_Finland1 quit (Read error: Connection reset by peer)
167: [13:16:24] * Shrike_Finland quit (Ping timeout: 240 seconds)
168: [13:25:32] * mobiusnz has joined #silverstripe
169: [13:30:29] * mobiusnz quit (Ping timeout: 264 seconds)
170: [13:33:24] <Zauberfisch> oh noez
171: [13:33:27] <Zauberfisch> the end must be near
172: [13:33:30] <Zauberfisch> simon_w is not in rc
173: [13:33:33] <Zauberfisch> *irc
174: [13:34:23] <Pyromanik> Zauberfisch: because it's 1:30am on a school night
175: [13:36:02] <Zauberfisch> Pyromanik: exactly my point. its 1:30am and he is not here
176: [13:39:26] * ARNHOE has joined #silverstripe
177: [13:40:28] * ARNHOE_ has joined #silverstripe
178: [13:40:28] * ARNHOE quit (Read error: Connection reset by peer)
179: [13:54:26] <Nightjar> Zauberfisch: that's normal
180: [13:54:31] <Nightjar> so
181: [13:54:38] <Nightjar> php and the session
182: [13:55:26] <Nightjar> I'm storing array("$integer" => $anotherInt), and am getting back array of 0 => int(#)
183: [13:55:34] <Zauberfisch> Nightjar: woot?
184: [13:56:00] <Nightjar> trying to store a string key that is an integer (convert int to string, use as key)
185: [13:56:41] <Nightjar> but when I var_dump the array, I have a numeric array with only the value set in slot 0 (as expected with a numeric array)
186: [13:56:42] <Zauberfisch> ah, right, a question
187: [13:56:45] <Zauberfisch> I was confused
188: [13:57:12] <Nightjar> oh
189: [13:57:23] <Zauberfisch> Nightjar: many array operations reset the int keys
190: [13:57:23] <Nightjar> I think I see my issue :P
191: [13:57:33] <Nightjar> array_merge instead of array_somethingelse
192: [13:57:39] <Nightjar> yeh
193: [13:58:35] <Nightjar> wait no, array merge is what I want
194: [13:58:36] <Nightjar> :<
195: [13:58:49] <Zauberfisch> Nightjar: just not use int keys
196: [13:58:53] <Zauberfisch> or prefix them with a string
197: [13:58:58] <Zauberfisch> its a little hacky
198: [13:59:13] <Zauberfisch> like "int_$i"
199: [13:59:28] <Nightjar> yeah
200: [13:59:56] <Nightjar> this code should work, the only issue is that the first array is empty when I merge in new data for the first time
201: [14:00:23] <Nightjar> so it converts my key to numeric
202: [14:00:45] <Nightjar> ie, merge array() & array('key'=>value)
203: [14:01:40] * CodeTrap quit (Ping timeout: 264 seconds)
204: [14:02:14] * henkpoley has joined #silverstripe
205: [14:03:36] <Nightjar> hmm, array_replace perhaps
206: [14:04:13] <Nightjar> BOOM
207: [14:04:15] <Nightjar> :D
208: [14:04:19] <Nightjar> thanks Zauberfisch_i
209: [14:04:26] <Nightjar> err, Zauberfisch
210: [14:04:40] <micmania1> Nightjar, try $array += $array2
211: [14:04:51] <micmania1> or that lol
212: [14:04:54] * howardgrigg quit (Remote host closed the connection)
213: [14:05:22] * howardgrigg has joined #silverstripe
214: [14:05:31] <Nightjar> micmania1: doesn't seem like that's a thing...
215: [14:05:36] <Nightjar> http://nz1.php.net/manual/en/language.operators.array.php
216: [14:06:03] <Nightjar> + does an array merge
217: [14:06:50] <micmania1> https://github.com/micmania1/sstwitter/blob/1.1/phptwitter/Twitter.php#L269 - I use it there.
218: [14:08:19] <micmania1> Its a while since I used it so I can't remember its exact usage
219: [14:08:49] <micmania1> I think it keeps the existing keys
220: [14:09:32] * howardgrigg quit (Ping timeout: 246 seconds)
221: [14:25:00] * osterlaus quit (Quit: Leaving.)
222: [14:26:01] * mobiusnz has joined #silverstripe
223: [14:30:29] * mobiusnz quit (Ping timeout: 248 seconds)
224: [14:45:25] * nickspiel123 has joined #silverstripe
225: [14:46:07] * nickspiel quit (Ping timeout: 264 seconds)
226: [15:04:37] * micmania1 quit (Ping timeout: 248 seconds)
227: [15:04:53] * funkygibbon quit (Quit: Leaving)
228: [15:07:01] * Pyromanik quit (Quit: leaving)
229: [15:09:08] * Nightjar has left #silverstripe
230: [15:14:54] * violetina has joined #silverstripe
231: [15:15:55] * howardgrigg has joined #silverstripe
232: [15:20:52] * howardgrigg quit (Ping timeout: 264 seconds)
233: [15:26:35] * mobiusnz has joined #silverstripe
234: [15:30:44] * mobiusnz quit (Ping timeout: 246 seconds)
235: [16:27:01] * mobiusnz has joined #silverstripe
236: [16:31:54] * mobiusnz quit (Ping timeout: 264 seconds)
237: [16:37:40] * chillu quit (Quit: chillu)
238: [16:38:29] * chillu has joined #silverstripe
239: [17:16:27] * howardgrigg has joined #silverstripe
240: [17:27:31] * mobiusnz has joined #silverstripe
241: [17:32:02] * mobiusnz quit (Ping timeout: 264 seconds)
242: [17:32:48] * micmania1 has joined #silverstripe
243: [18:10:19] * mobiusnz has joined #silverstripe
244: [18:26:31] * mobiusnz quit (Quit: Leaving.)
245: [18:31:36] * howardgrigg quit (Remote host closed the connection)
246: [18:32:03] * howardgrigg has joined #silverstripe
247: [18:36:24] * howardgrigg quit (Ping timeout: 240 seconds)
248: [18:53:16] * Liquide has joined #silverstripe
249: [19:00:55] * SightUnseen has joined #silverstripe
250: [19:07:26] * SightUnseen has left #silverstripe
251: [19:17:22] * jrthomer quit (Remote host closed the connection)
252: [19:17:50] * jrthomer has joined #silverstripe
253: [19:34:22] * zfmf1 has left #silverstripe
254: [19:42:37] * howardgrigg has joined #silverstripe
255: [19:47:26] * howardgrigg quit (Ping timeout: 256 seconds)
256: [19:58:57] * abitran quit (Ping timeout: 264 seconds)
257: [20:05:20] * Peavers has joined #silverstripe
258: [20:05:39] <Peavers> ss23 you at work yet? You're in a might fine amount of trouble when I find you
259: [20:06:42] * Peavers_Server has joined #silverstripe
260: [20:15:03] * abitran has joined #silverstripe
261: [20:20:46] * Peavers_Server quit (Quit: Leaving)
262: [20:21:19] * henkpoley quit (Quit: henkpoley)
263: [20:23:25] * micmania1 has joined #silverstripe
264: [20:31:50] * zfmf1 has joined #silverstripe
265: [20:33:45] * DigNZ has joined #silverstripe
266: [20:41:01] * nickmolhoek has joined #silverstripe
267: [20:41:02] * nickmolhoek quit (Remote host closed the connection)
268: [20:41:16] * nickmolhoek has joined #silverstripe
269: [20:54:26] * zippy__ has joined #silverstripe
270: [20:57:44] * ARNHOE_ quit (Remote host closed the connection)
271: [20:58:13] * violetina quit (Remote host closed the connection)
272: [20:59:08] <zippy__> argh monday morning
273: [20:59:17] <zippy__> and a bollock task to start off with
274: [20:59:27] <Peavers> I enjoy Monday
275: [20:59:38] <Peavers> I've normally had enough of the weekend come sunday night.
276: [21:01:28] <zippy__> fair enough
277: [21:01:39] <zippy__> I just can't wait for the end of the day TBH
278: [21:01:44] <zippy__> breaking bad....!
279: [21:01:51] <Peavers> this is true
280: [21:05:41] <zippy__> and dexter, but breaking bad! hopefully will be as good as expted
281: [21:12:50] * mobiusnz has joined #silverstripe
282: [21:13:23] * UncleCheese has joined #silverstripe
283: [21:15:37] * SSmandrew quit (Ping timeout: 250 seconds)
284: [21:15:47] * coldblooded01 has joined #silverstripe
285: [21:24:54] <Zauberfisch> Peavers: what did he do? :D
286: [21:25:57] <Peavers> He knows.
287: [21:42:38] * howardgrigg has joined #silverstripe
288: [21:54:30] * pippy has joined #silverstripe
289: [21:55:14] <ss23> Peavers: :O
290: [21:55:16] <ss23> I'm at work now!
291: [21:55:28] <zippy__> 3.1 rc1 eh
292: [21:55:38] <ss23> Peavers: I saw that my patch didn't work for you
293: [21:55:48] <Peavers> Because you're a terrible person.
294: [21:55:51] <ss23> Though I thought it did, because the mailto version did... so must be something else later in breaking it
295: [21:55:54] <ss23> WHAAAT
296: [21:55:58] <ss23> boi watch ur mouf
297: [21:56:01] <zippy__> I don't understand why a 3.0.5 wasn't released for the security, was it not effected by the flush?
298: [21:56:16] <Peavers> even mailto didn't stop the baseURL being added
299: [21:56:25] <ss23> zippy__: A 3.0.6 was, which is the same as 3.0.5 in terms of no API braeks or anything that would break code
300: [21:56:31] <Peavers> obviously if it was so easy I would have fixed it myself ;)
301: [21:56:38] * pippy_ quit (Ping timeout: 256 seconds)
302: [21:56:46] <ss23> Peavers: I tested it and it did for me, so I suspect there's more hackery going on (I tested the mailto patch that is)
303: [21:56:46] <zippy__> ss23: Whys it rc then if it wont break code?
304: [21:57:01] <Peavers> what version of ss did you test it with?
305: [21:57:54] <ss23> zippy__: Because you can never be 100% sure, better safe than sorry
306: [21:58:00] <ss23> Peavers: I can't remember sorry, but I presume it was 3.0.x
307: [21:58:26] <Peavers> it didn't work on my 3.1.x-dev server
308: [21:58:30] <Peavers> but might try a clean install and try again
309: [21:58:41] <Peavers> finally got xdebug working so I can prob figure it out myself now
310: [21:59:15] * pippy quit (Ping timeout: 260 seconds)
311: [22:00:47] * travis-ci has joined #silverstripe
312: [22:00:47] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#783 (required-attrs - 085d2e6 : Mateusz Uzdowski): The build has errored.
313: [22:00:47] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/090f07d97880^...085d2e62cb07
314: [22:00:47] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/10095246
315: [22:00:47] * travis-ci has left #silverstripe
316: [22:04:32] * pippy has joined #silverstripe
317: [22:17:16] * Liquide quit ()
318: [22:20:20] * zagoodwin has joined #silverstripe
319: [22:23:27] * mobiusnz has left #silverstripe
320: [22:26:21] * metanat has joined #silverstripe
321: [22:32:28] <ss23> Don't forget to flush!
322: [22:33:13] * DigNZ1 has joined #silverstripe
323: [22:33:16] * DigNZ1 quit (Remote host closed the connection)
324: [22:33:36] * DigNZ1 has joined #silverstripe
325: [22:38:00] * DigNZ1 quit (Client Quit)
326: [22:38:44] <Zauberfisch> gents, help me out
327: [22:38:54] <Zauberfisch> I am to tired to think straight
328: [22:39:03] <ss23> lol
329: [22:39:06] <Zauberfisch> ss is not using my theme
330: [22:39:10] <ss23> The gay jokes! THE GAY JOKES EVERYWHERE
331: [22:39:18] <ss23> Zauberfisch: Did you select it in the CMS and flush?
332: [22:39:22] * swordsmanz has joined #silverstripe
333: [22:39:22] <Zauberfisch> yes
334: [22:39:25] <Zauberfisch> did both
335: [22:39:46] <Zauberfisch> thing is, the last time I used themes feels years ago
336: [22:39:54] <Zauberfisch> so, I created a folder called themes
337: [22:40:04] * DigNZ1 has joined #silverstripe
338: [22:40:04] * DigNZ1 quit (Remote host closed the connection)
339: [22:40:19] * DigNZ1 has joined #silverstripe
340: [22:40:28] <Peavers> You shouldn't have needed to create a folder called themes...
341: [22:40:29] * DigNZ1 quit (Client Quit)
342: [22:40:32] <Peavers> should have already been one there.
343: [22:40:42] <Zauberfisch> so there is a file: /themes/templates/Page.ss
344: [22:40:51] <Zauberfisch> the theme name shows up in the CMS
345: [22:40:58] <Zauberfisch> but it still renders with the default controller template
346: [22:41:03] <Zauberfisch> I don't know what I am doing wrong
347: [22:41:18] <ss23> that's not right
348: [22:41:19] <ss23> lol
349: [22:41:35] <ss23> Zauberfisch: Copy the existing folder structure you should have in themes
350: [22:41:55] <Zauberfisch> what do you mean?
351: [22:41:59] <ss23> It's like themes/thename/templates/PageType, along with themes/thename/templates/Layout/PageTypeSubTypeFooBar.ss
352: [22:42:10] <ss23> Zauberfisch: I mean, that folder structure, themes/templates/Page.ss, isn't going to work
353: [22:42:14] <ss23> There's no theme to select if you do that
354: [22:42:29] <Zauberfisch> no its actually themes/name/templates/Page.ss
355: [22:42:33] <Zauberfisch> was miss telling, sorry
356: [22:42:39] <Zauberfisch> thats what I am talking about, to tired
357: [22:42:45] <ss23> lol
358: [22:42:59] <ss23> Zauberfisch: Go to sleep then. Think of how much extra time you'll save by doing this in the morning!
359: [22:43:46] * chillu quit (Quit: chillu)
360: [22:44:38] * zfmf1 has left #silverstripe
361: [22:44:48] <Zauberfisch> ss23: well, doing it in the morning will be even harder, considering that I will be more tiered then
362: [22:45:14] <Zauberfisch> sleep is not going to be happening tonight
363: [22:45:52] <Zauberfisch> so, why is it not rendering with my template :/
364: [22:46:17] <Zauberfisch> hmm, maybe its the mobile module
365: [22:46:19] <Zauberfisch> I will disable it
366: [22:47:23] <Zauberfisch> nope
367: [22:47:25] <Zauberfisch> still not working
368: [22:48:58] <Zauberfisch> echo $this->ThemeDir() even echos the correct folder
369: [22:48:59] <Zauberfisch> hmm
370: [22:49:09] * metanat1 has joined #silverstripe
371: [22:51:56] <ss23> Wrong page type, Zauberfisch?
372: [22:52:03] <ss23> It'll fall back to another page.ss if the page type isn't right
373: [22:52:23] <ss23> Zauberfisch: You can use ?showtemplate=1 to see which one it's using (though it'll be in the tmp folder, the name should tell you what one it's using)
374: [22:52:38] * metanat quit (Ping timeout: 240 seconds)
375: [22:52:43] <Zauberfisch> I have show templates configured in the yml config
376: [22:56:53] <Zauberfisch> hmmm
377: [22:58:19] <Zauberfisch> renderwith(page) is not working
378: [22:59:26] <Zauberfisch> as in, no template found
379: [22:59:40] <Zauberfisch> oh, wait thats an include not found
380: [23:03:11] <Zauberfisch> omg
381: [23:03:14] <Zauberfisch> bloody hell
382: [23:03:27] <Zauberfisch> i fugired it out
383: [23:04:05] <Zauberfisch> i renamed mysite/templates to mysite/_templates with the assumtion that it will then be ignored
384: [23:04:27] <Zauberfisch> turns out it was still used
385: [23:04:38] <ss23> lol
386: [23:04:40] <ss23> :D
387: [23:05:16] * DigNZ1 has joined #silverstripe
388: [23:05:18] * DigNZ1 quit (Remote host closed the connection)
389: [23:05:36] * DigNZ1 has joined #silverstripe
390: [23:05:48] * howardgrigg quit (Remote host closed the connection)
391: [23:06:15] * howardgrigg has joined #silverstripe
392: [23:07:19] <ss23> fuck, sneezing hurts when you have a sore throat :<
393: [23:07:23] <ss23> wtf
394: [23:07:26] <ss23> simon_w isn't here today :O
395: [23:07:31] <ss23> He must be on jury duty this week
396: [23:07:49] * micmania1 quit (Ping timeout: 248 seconds)
397: [23:07:57] <Zauberfisch> ss23: yeah, I noticed yesterday
398: [23:08:25] <Zauberfisch> figured the end of the world must be comming
399: [23:08:35] <ss23> XD
400: [23:09:26] * Jayden90 has joined #silverstripe
401: [23:09:36] * Nightjar has joined #silverstripe
402: [23:10:52] * howardgrigg quit (Ping timeout: 256 seconds)
403: [23:12:46] <Zauberfisch> i think I am finally getting somewhere
404: [23:13:31] * Colin[pi] has joined #silverstripe
405: [23:13:36] <Colin[pi]> morning!
406: [23:13:40] <ss23> moin Colin[pi]
407: [23:14:18] <Jayden90> I was working on a gridfield on Friday, that is managed on about page and containes a list of staff. I wondered how to remove the last drop down field when editing staff records that relates back to the about page. The solution was to remove it with getCMSFields() in Person.php. Now the person records to do save with the AboutPageID defaulting to 0. how can I set a default without a field in the CMS?
408: [23:16:16] <Zauberfisch> Jayden90: are you letting ss generate the fields for you?
409: [23:16:33] <Nightjar> good morning Colin[pi]
410: [23:17:09] <Jayden90> Zauberfisch: No, I have getCMSFields() constructing them in class Person
411: [23:17:22] <Nightjar> Jayden90: what config are you using?
412: [23:17:39] <Nightjar> GridFieldConfig_RelationEditor ?
413: [23:17:58] <Zauberfisch> ss23: thanks for holding my hand through this
414: [23:18:02] <ss23> <3
415: [23:18:03] <Zauberfisch> ss23: I have it working now
416: [23:18:05] <Zauberfisch> <3
417: [23:18:05] <ss23> I'll hold your hand all the time
418: [23:18:06] * ss23 blushes
419: [23:18:15] <Jayden90> Nightjar: GridFieldConfig::create()->addComponents …...
420: [23:18:51] <Nightjar> Jayden90: use relation editor
421: [23:19:19] <Nightjar> or add the component it uses to set parent ID's (I assume there is one)
422: [23:20:15] <Jayden90> if I use the default relation editor I lose control of the gridfield appearance in the CMS
423: [23:20:31] <Nightjar> what?
424: [23:21:20] <Nightjar> it's just a pre-defined set of components. You can still add and remove them like with any other config.
425: [23:21:21] <ss23> https://twitter.com/simon_w/status/366700480442802176 RIP
426: [23:21:22] <ss23> :<
427: [23:21:48] <spronk> o_O
428: [23:21:53] <Zauberfisch> :S
429: [23:22:21] <Jayden90> ahh ok, I will now test using GridFieldConfig_RelationEditor::create() instead :)
430: [23:22:41] <Nightjar> Zauberfisch: up late?
431: [23:24:25] <Zauberfisch> Nightjar: not sure if my current state could be described as up, but yes ^^
432: [23:25:08] <Nightjar> cat o'clock
433: [23:25:08] <Nightjar> http://devopsreactions.tumblr.com/post/57051683487/dealing-with-your-6-months-old-backlog
434: [23:29:02] <spronk> hahaha
435: [23:29:06] <spronk> so tryuue
436: [23:29:24] <ss23> </3 Chrome bus
437: [23:29:25] <ss23> bugs
438: [23:29:34] <ss23> doesn't display properly? refresh! Works now
439: [23:29:36] <ss23> FUCKING CHROME
440: [23:29:45] <ss23> Maybe I *should* just switch to safari.
441: [23:31:08] <Zauberfisch> haha, ss23 https://twitter.com/ss2342/status/366148425592487936
442: [23:31:27] <ss23> :D
443: [23:31:59] <spronk> ugh
444: [23:32:03] <spronk> i'm sick of web browsers
445: [23:32:06] <spronk> they ALL suck right now
446: [23:32:25] <ss23> trudat
447: [23:32:33] <Zauberfisch> well, the web sucks
448: [23:32:44] <ss23> Not like Desktop is much better on the whole
449: [23:32:49] <spronk> yeah..
450: [23:32:53] <spronk> desktop is shit right now to
451: [23:32:54] <spronk> o
452: [23:33:03] <ss23> Like I always say -- Everything is shit
453: [23:33:08] <spronk> i mean, linux has gone wayward
454: [23:33:12] <spronk> windows 8 is fucked
455: [23:33:18] <Colin[pi]> i actually dont mind windows 8
456: [23:33:18] <spronk> and OSX has incorporated way too much ios shit
457: [23:33:25] <Colin[pi]> once you get used to it
458: [23:33:27] <spronk> yeah, it's probably the best of the bunch
459: [23:33:27] <ss23> Colin[pi]: I do
460: [23:33:28] <ss23> :D
461: [23:33:36] <spronk> needs the start menu back...
462: [23:33:43] <spronk> get stardock;'s tool and its not too bad
463: [23:33:46] <Colin[pi]> ehh after two weeks of getting pissed off, I dont mind it
464: [23:33:49] <ss23> Even if Linux has gone up (and I agree, it's way nicer now), it's sitll crappy IMO
465: [23:33:55] <Colin[pi]> i never used the start menu much anyway
466: [23:34:03] <ss23> Colin[pi]: I ran for the entire beta/rc/everything right up until the month it was released properly
467: [23:34:08] <Colin[pi]> as a launcher, the metro start is great
468: [23:34:13] <ss23> Didn't like it, I ran iwthout any third party tools to remove metro though
469: [23:34:18] <Colin[pi]> plus i like how I can start typing and it will find the app
470: [23:34:28] <ss23> Colin[pi]: You know Windows has done that since vista?
471: [23:34:45] <ss23> The only difference is that now, instead of being a small thing in the corner, it completely stops *everything* you were doing for a complete context shift while you type
472: [23:34:50] <ss23> then you press enter and it goes back to being how it was
473: [23:35:05] <Colin[pi]> ss23: yeah i know but the start screen seems more responsive
474: [23:35:05] <ss23> so it's like if your entire screen turned black while you typed in Windows 7, that's how much useful shit that launcher is
475: [23:35:47] <ss23> :q
476: [23:35:49] <ss23> fuck
477: [23:36:18] <Colin[pi]> I've customised the shit out of my screen though: http://i.imgur.com/1jbqhkT.png
478: [23:39:43] <priithansen> windows 8.1 will have start button
479: [23:40:01] <priithansen> but http://penny-arcade.com/comic/2013/06/28
480: [23:40:27] <Colin[pi]> I probably wont re-enable it
481: [23:41:26] <ss23> The start button doesn't have a menu, priithansen
482: [23:41:30] <ss23> It just opens metro
483: [23:41:59] <ss23> Also, oh god charms are annoying. Right up until release (I haven't tested stable), playing a full screen game, and you move your mouse to the edge of the screen? BOOM MINIMIZES
484: [23:42:11] <ss23> Nothing worse than an intense moment in your game and it minimizes cause you accidently scrolled
485: [23:42:14] <Colin[pi]> I've never had that happen :P
486: [23:42:18] <ss23> Failed to execute git clone 'https://gitlab.cwp.govt.nz/Shkardoon/nelson-marlborough-institute-of-technology-cms-404-reduction-hack-2.git' 'cms/' && cd 'cms/' && git remote add composer 'https://gitlab.cwp.govt.nz/Shkardoon/nelson-marlborough-institute-of-technology-cms-404-reduction-hack-2.git' && git fetch composer
487: [23:42:23] <ss23> holy shit fuck wrong window
488: [23:42:26] <ss23>
489: [23:42:31] <Colin[pi]> lol
490: [23:42:35] <ss23> please ignore you ever saw that
491: [23:42:37] <ss23> ;);
492: [23:42:39] <ss23> ;_;
493: [23:42:46] <zippy__> IRC logs available at http://logs.silverstripe.org :)
494: [23:42:50] <ss23> fuck, lol
495: [23:42:55] <Colin[pi]> lol
496: [23:44:17] <zippy__> TIL NMIT is runing SS
497: [23:45:59] <spronk> Colin[pi]: i've had nothing but bad luck with the metro launcher thing
498: [23:46:05] <spronk> it's bad HCI, too
499: [23:46:24] <Colin[pi]> bad luck in which way?
500: [23:46:44] <spronk> i just find it disruptive and slow
501: [23:46:56] <spronk> but then, the way i use comp is probably different
502: [23:46:58] * spronk never launches shit
503: [23:47:01] <spronk> just leave it all open >:D
504: [23:47:06] <Colin[pi]> hehe
505: [23:47:26] <Colin[pi]> I actually find it faster because of spatial memory... I know where each tile is so I go straight to it (or type the app namE)
506: [23:47:32] <spronk> the real reason why i have three monitors is so i can have space to read all the items on my taskbars
507: [23:47:41] <spronk> yeah, then spatial factor is significant
508: [23:47:52] * spronk did his research on spatially consistent task switching interfaces
509: [23:48:05] <Colin[pi]> oic so you know all about that then :)
510: [23:49:50] <Colin[pi]> I feel the metro interface has great potential, but it's only about 75% there so far
511: [23:50:02] <Colin[pi]> also some apps are just god awful clumsy
512: [23:52:11] <Colin[pi]> they need to tighten up the compliance and standards, like with Holo for Android
513: [23:52:30] <Jayden90> Nightjar: That config just sets the interface for the gridfield, the change from GridFieldConfig to GridFieldConfig_RelationEditor has not fixed the issue.
514: [23:54:13] <Nightjar> usually works for me
515: [23:54:15] <Nightjar> *shrug*
516: [23:55:11] <Jayden90> Im looking into hiding the field rather than removing it, its value still gets saved in the db.
517: [23:55:45] <Nightjar> Don't define it
518: [23:55:58] <Nightjar> or make it a hidden field
519: [23:57:40] <Jayden90> There has to be a simple tutorial or something explaining this. I dont want users to be able to manage complex relationships, they should just see a table of staff memebers in the about page that they can add or remove to.
520: [23:57:53] <Peavers> any linux xorg pros about?

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