#silverstripe IRC Log

IRC log for 19 June 2016

All timestamps are in UTC.

1: [00:00:01] * ss-helper quit (Remote host closed the connection)
2: [00:00:16] * ss-helper has joined #silverstripe
3: [00:42:28] * helenclarko quit (Ping timeout: 250 seconds)
4: [00:46:00] * Stomach quit (Quit: zzz)
5: [02:08:58] * neomang quit (Ping timeout: 250 seconds)
6: [03:54:31] * Stomach has joined #silverstripe
7: [04:14:21] * helenclarko has joined #silverstripe
8: [04:14:34] <helenclarko> Anyone online?
9: [04:28:48] * helenclarko quit (Ping timeout: 250 seconds)
10: [04:29:26] * helenclarko has joined #silverstripe
11: [04:29:39] <helenclarko> Anyone around?
12: [04:29:54] <helenclarko> Stomach: o/
13: [04:30:03] <Stomach> afternoon
14: [04:30:06] <Stomach> \o
15: [04:30:37] <helenclarko> NO WAY YOU ARE ONLINE!!!! YAY!
16: [04:30:57] <helenclarko> So I forgot to ask, how do you access that dataobject.
17: [04:31:08] <helenclarko> No idea why I am having trouble.
18: [04:31:12] <Stomach> haha, just got home from the pub :P
19: [04:31:19] <Stomach> set a global template helper for it
20: [04:32:20] <helenclarko> I've tried the old DataObject::get();
21: [04:32:29] <helenclarko> Which by surprise didnt work
22: [04:32:58] <helenclarko> I'll need to look up global template helper, Dont think I've used one before.
23: [04:33:03] <Stomach> http://pastie.org/10882705
24: [04:33:13] <Stomach> then in template you can do $MyObject.StuffAndThings
25: [04:35:35] <helenclarko> Can I attach that to the SingleObjectAdmin
26: [04:36:07] <helenclarko> so, class BedrijfAdmin extends SingleObjectAdmin implements TemplateGlobalProvider
27: [04:37:13] <Stomach> yep
28: [04:37:23] <helenclarko> Or would it be on the dataobject
29: [04:37:28] <Stomach> thats what we usually do
30: [04:37:33] <Stomach> implement it on the admin
31: [04:37:39] <helenclarko> Oh
32: [04:37:46] <helenclarko> sweet
33: [04:37:50] <Stomach> (although we also have that global template for other things too)
34: [04:38:18] <helenclarko> Just looking at how siteconfig does it
35: [04:38:33] <Stomach> who knows! :D
36: [04:41:17] <helenclarko> You know haha
37: [04:52:26] <helenclarko> Nice, That worked.
38: [04:52:35] <helenclarko> Thanks again Stomach
39: [04:52:41] <Stomach> no worries
40: [04:52:43] <Stomach> :)
41: [04:53:28] <helenclarko> So you were right, do it on the Admin. Otherwise you have to check that the dataobject has been saved
42: [04:53:33] <helenclarko> or created
43: [04:53:48] <helenclarko> Looked like a real mess.
44: [05:05:41] * helenclarko quit (Quit: Page closed)
45: [06:12:46] * Stomach quit (Quit: zzz)
46: [06:26:10] * Stomach has joined #silverstripe
47: [06:42:04] * Stomach quit (Quit: zzz)
48: [07:12:11] * Stomach has joined #silverstripe
49: [07:41:38] * Stomach quit (Quit: zzz)
50: [08:38:18] * DimiStripe quit (Quit: DimiStripe)
51: [09:23:18] * gelignite has joined #silverstripe
52: [09:26:15] <Audlex> what would cause a 'doAction' 404 error if the form displays properly?
53: [11:58:33] * DimiStripe has joined #silverstripe
54: [12:03:34] * Azure quit (Ping timeout: 260 seconds)
55: [13:18:31] * Azure has joined #silverstripe
56: [13:27:04] * kerozene quit (Ping timeout: 240 seconds)
57: [13:47:09] * kerozene has joined #silverstripe
58: [18:48:35] * FrozenFire[alt] has joined #silverstripe
59: [18:50:08] * ss23 quit (*.net *.split)
60: [18:50:09] * FrozenFire quit (*.net *.split)
61: [18:50:56] * ss23 has joined #silverstripe
62: [19:24:00] * Stomach has joined #silverstripe
63: [19:35:57] * Stomach quit (Quit: zzz)
64: [20:09:41] * Stomach has joined #silverstripe
65: [21:00:04] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
66: [21:11:15] * adrexia has joined #silverstripe
67: [21:26:57] * micmania1 has joined #silverstripe
68: [21:28:22] * Stomach quit (Read error: Connection reset by peer)
69: [21:28:44] * Stomach has joined #silverstripe
70: [21:36:55] * Stomach quit (Quit: zzz)
71: [21:39:08] * Stomach has joined #silverstripe
72: [21:40:29] * Stomach quit (Client Quit)
73: [21:41:14] * micmania1 quit (Quit: micmania1)
74: [21:45:40] * robbiea has joined #silverstripe
75: [21:47:05] * Stomach has joined #silverstripe
76: [21:47:14] <robbiea> morning all - i'm having some fun with showing messages to CMS (admin) users in a custom function. previously I've used Form::messageForForm(), now i'm using $this->owner->response->addHeader('X-Status', '...') for success but can't work out the failed equivalent of it... throwing ValidationException works but isn't a suitable exception to throw, and throwing SS_HTTPResponse_Exception doesn't show my message at all... any advic
77: [21:47:14] <robbiea> e?
78: [21:47:49] * micmania1 has joined #silverstripe
79: [21:53:08] <robbiea> I really just want to be able to display a "bad" message saying "hello world" in the admin after using one of my custom defined actions.
80: [21:54:01] <robbiea> SS_HTTPResponse_Exception shows a bad "Internal server error" if I throw ->('hello world', 500), and ValidationException throws a bad "Validation failed: Hello world" which is an improvement, but not ideal still. Throwing Exception shows "error in path/to/file one line xxx"
81: [21:55:00] * novaweb has joined #silverstripe
82: [21:56:32] * FrozenFire[alt] is now known as FrozenFire
83: [22:07:16] * zippy has joined #silverstripe
84: [22:08:06] <zippy> Hello
85: [22:16:28] <zippy> $myPage->writeToStage('Stage'); $myPage->publish('Stage', 'Live');
86: [22:16:40] <zippy> I feel that should trigger the onAfterPublish event
87: [22:21:48] <robbiea> I agree. Versioned::publish() has a before hook but not an after hook
88: [22:23:35] <zippy> there is an onAFterPuslish event, but that ^ doesn't fire it
89: [22:23:46] <zippy> doPublish does thou
90: [22:25:11] <zippy> maybe I should call that, but then I need to be logged in, while on the command line.. hm
91: [22:42:09] * novaweb quit (Remote host closed the connection)
92: [22:44:39] * robbiea quit (Remote host closed the connection)
93: [22:45:44] * Azure|dc has joined #silverstripe
94: [22:46:10] * Azure quit (Disconnected by services)
95: [22:46:14] * Azure|dc is now known as Azure
96: [22:54:14] * novaweb has joined #silverstripe
97: [23:04:36] * Stomach quit (Quit: zzz)
98: [23:08:00] * Stomach has joined #silverstripe
99: [23:28:22] * pippy has joined #silverstripe
100: [23:28:46] <zippy> two screens on the mac jsut feels so dis-joined
101: [23:28:49] <zippy> *jointed
102: [23:31:51] * novaweb quit (Remote host closed the connection)
103: [23:54:49] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)

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