#silverstripe IRC Log

IRC log for 24 August 2013

All timestamps are in UTC.

1: [00:18:19] * toddmorey quit (Quit: Leaving.)
2: [00:27:54] * toddmorey has joined #silverstripe
3: [00:44:26] * toddmorey quit (Quit: Leaving.)
4: [00:46:58] <AlphaCactus> C10ne: I kinda did it, but it is in my own custom LeftAndMain extension.
5: [00:47:30] <AlphaCactus> I'm still using GridField, but I copied ideas from a couple different areas.
6: [00:48:02] <AlphaCactus> i basically create a gridfield with checkboxes, similar to what GridFieldRelationHandler does.
7: [00:48:12] <AlphaCactus> but the select all/select none is pure entwine JS
8: [00:48:15] <AlphaCactus> http://www.sspaste.com/paste/show/52180153d2aff
9: [00:50:03] <AlphaCactus> For the buttons, I created a GridField Component which I add to my gridfield. in the component, there is a getFields function that returns buttons that trigger the js.
10: [00:51:00] * swordsmanz quit (Quit: ooh ponies kinkeyyy)
11: [00:51:37] <AlphaCactus> actually wait no, those buttons are hard coded into my template which is rendered by getHTMLFragments in my component..
12: [00:52:09] <AlphaCactus> I would think you could use a similar mechanism for any GridField, I just needed my own left and main extension because I needed some (unrelated) unique functionality.
13: [00:53:09] <AlphaCactus> hope that helps. and I'm sure I'm just about the last person to start the weekend. Hit me up next week if you have questions.
14: [00:53:16] * AlphaCactus quit (Quit: kthxbai)
15: [00:58:54] * BPower has joined #silverstripe
16: [01:02:25] <BPower> Thoughts on adding an "allowed_parents" property?
17: [01:14:43] * toddmorey has joined #silverstripe
18: [01:16:07] * pippy has joined #silverstripe
19: [01:18:50] * pippy_ quit (Ping timeout: 264 seconds)
20: [01:22:06] * toddmorey quit (Ping timeout: 245 seconds)
21: [01:25:09] * Zauberfisch_ has joined #silverstripe
22: [01:26:17] * toddmorey has joined #silverstripe
23: [01:39:36] * willr quit (Quit: willr)
24: [01:40:59] * willr has joined #silverstripe
25: [02:05:20] <BPower> How can I change the CMS icon for ErrorPages?
26: [02:19:17] * kerosene quit (Quit: time to go)
27: [02:21:22] * digitaldesign has joined #silverstripe
28: [02:25:40] * digitaldesign quit (Client Quit)
29: [02:28:54] * SightUnseen has joined #silverstripe
30: [02:29:10] * SightUnseen has left #silverstripe
31: [02:33:50] * rodney_ has joined #silverstripe
32: [02:35:07] <rodney_> hello everyone. Quick question. I'm migrating a bunch of silverstripe sites to a new server. ZendCE installed & running, apache correctly configured. When I point Apache at 1st SS site it displays a directory listing instead of loading the site. Any idea why?
33: [02:41:31] * rodney_ quit (Ping timeout: 250 seconds)
34: [02:43:24] * toddmorey quit (Quit: Leaving.)
35: [02:48:01] * toddmorey has joined #silverstripe
36: [02:54:34] * aragonne has joined #silverstripe
37: [02:56:16] <aragonne> Hi, if I subclass Form, where should the form processor method reside? In the Form subclass or in the controller that instantiates the form?
38: [02:58:27] <batbadger> either or, i've found in the form subclass is logically more sensible in my case, but you may decide it's in the controller that's more sensible
39: [02:59:18] * toddmorey quit (Quit: Leaving.)
40: [02:59:45] * toddmorey has joined #silverstripe
41: [03:00:12] <aragonne> batbadger: I want to put it into the Form subclass, but not sure how to specify that when instantiating the form in the controller … trying to put example code on SSPaste right now … BRB
42: [03:05:52] <aragonne> http://www.sspaste.com/paste/show/5218220f4b9bb
43: [03:07:38] <aragonne> Where should 'formProcessorMethod' be defined? I want to encapsulate it into the CompanyForm but when I submit the form, it doesn't work. The resultant URL is /dashboard/formProcessorMethod
44: [03:08:42] <batbadger> i'll show you what i've got
45: [03:09:12] <aragonne> thanks batbadger … can't wait to see it … driving me bonkers
46: [03:09:17] <batbadger> http://bpaste.net/show/zEER0WzizlGVZcjh1iGM/
47: [03:10:24] <batbadger> so what i'm doing is ShowContactForm is what is called by my page template $ShowContactForm and then in my actions variable i say 'submitenquiry' which fires off the in-form method *after* it has validated, so i can send my email, and then once that's done on line 58 i am returning a redirect to ShowSuccess which is caught by my main controller as a route
48: [03:10:40] <batbadger> and in my template i check if Success is set, and if it is, i show a message, otherwise i show $ShowContactForm
49: [03:12:04] <batbadger> so that way i can do any special controller crap in ShowSuccess but the actual functionality of the form is ecapsulated nicely in submitenquiry method
50: [03:13:27] <aragonne> batbadger: I'm following you … so the $controllerMethod param in the CotanctForm constructor is 'ShowContactForm'
51: [03:13:31] <batbadger> so formProcessorMethod is actuallyexpecting the name of the method on the controller that generates the form, i think for routing back to it on failed validation say
52: [03:13:38] <batbadger> yeah
53: [03:13:39] <batbadger> exactly
54: [03:13:52] <batbadger> i found it confusing when i came to it the other day
55: [03:16:07] <aragonne> batbadger: I think because I'm not using the conventional $Action/$ID/$OtherID controller rules, my methodology fails … I'm going to have to think about this some more
56: [03:16:37] <batbadger> dude, i've got such a headache in 3.0.x with $Action/$ID/$OtherID routes
57: [03:17:06] <batbadger> i was digging around in the silverstripe code trying to sort it out the other day
58: [03:19:09] <aragonne> batbadger: Yea, it takes a little getting used to. I never get it right the first time. Always requires a little experimentation.My request url is /dashboard/manager/Company/edit/75 (corresponding to the rule: dashboard/$Role/$DataClass/$Action/$ID)
59: [03:21:04] <aragonne> so when I submit the form, the resulting url is /dashboard/formProcessorMethod but what I need is for it to be /dashboard/manager/Company/formProcessorMethod
60: [03:26:25] * cloph_away has joined #silverstripe
61: [03:27:00] * cloph quit (Ping timeout: 276 seconds)
62: [03:31:23] <aragonne> Ok, with some experimentation, looks like you can specify the url to the method that processes the form: $form = new CompanyForm($this, 'manager/Company/processCompanyForm');
63: [03:32:43] <aragonne> then define processCompanyForm in the controller that instantiates the form. Of course, this means I can't encapsulate the form process in my Form subclass, but good enough for now unless anyone has another suggestion for encapsulation
64: [03:36:11] * toddmorey quit (Quit: Leaving.)
65: [03:37:36] <batbadger> i think that's what the point of it is
66: [03:38:20] <batbadger> you can probably get the url from the controller
67: [03:38:27] <batbadger> so you just have to provide the final part
68: [03:38:51] <aragonne> batbader: right! working on that next. Thanks
69: [03:39:34] <aragonne> (basically working on a front end admin form for non-techies that don't want to hit the CMS)
70: [03:47:13] * digitaldesign has joined #silverstripe
71: [04:13:24] * toddmorey has joined #silverstripe
72: [04:14:40] * willr quit (Quit: willr)
73: [04:22:19] * willr has joined #silverstripe
74: [04:22:35] * IAmSS has joined #silverstripe
75: [04:22:56] <IAmSS> Hello SilverStripe!
76: [04:25:42] <IAmSS> Is there a way in SilverStripe that checks if a dataobject data has changed?
77: [04:27:24] <aragonne> in onBeforeWrite, you can use $myDO->isChanged('myField');
78: [04:28:07] <IAmSS> Oh I see thanks <aragonee>
79: [04:28:15] <aragonne> YW!
80: [04:41:07] * IAmSS quit (Ping timeout: 250 seconds)
81: [04:44:04] * willr quit (Quit: willr)
82: [05:05:08] * zippy__ quit (Ping timeout: 245 seconds)
83: [05:16:33] * robert_ quit (Read error: Connection reset by peer)
84: [05:16:49] * robert_ has joined #silverstripe
85: [05:16:50] * robert_ quit (Changing host)
86: [05:16:50] * robert_ has joined #silverstripe
87: [05:22:43] * rodney_ has joined #silverstripe
88: [05:23:06] * rodney_ quit (Client Quit)
89: [05:31:08] * toddmorey quit (Quit: Leaving.)
90: [05:38:30] * willr_ has joined #silverstripe
91: [05:38:31] * willr_ quit (Changing host)
92: [05:38:31] * willr_ has joined #silverstripe
93: [05:40:16] * willr_ quit (Client Quit)
94: [05:55:22] <BPower> Hey all - what's the proper way to create a directory in the assets folder? e.g. assets/uploads/logos/company (where "logos" and "company" are new)
95: [06:05:41] * Guits quit (Read error: Connection reset by peer)
96: [06:05:44] * MrGuits has joined #silverstripe
97: [06:19:32] * Peavers has joined #silverstripe
98: [06:20:00] * Peavers has left #silverstripe
99: [06:31:55] * toddmorey has joined #silverstripe
100: [06:34:12] * digitaldesign quit (Quit: digitaldesign)
101: [06:36:23] * toddmorey quit (Ping timeout: 246 seconds)
102: [06:37:22] * BPower quit (Remote host closed the connection)
103: [06:43:30] * toddmorey has joined #silverstripe
104: [06:59:57] * toddmorey quit (Quit: Leaving.)
105: [07:54:42] * toddmorey has joined #silverstripe
106: [07:56:21] * Shrike_Finland quit (Quit: Leaving.)
107: [08:11:12] * toddmorey quit (Quit: Leaving.)
108: [08:22:50] * toddmorey has joined #silverstripe
109: [08:39:17] * toddmorey quit (Quit: Leaving.)
110: [08:48:55] * toddmorey has joined #silverstripe
111: [09:04:40] * toddmorey quit (Quit: Leaving.)
112: [09:14:14] * ARNHOE has joined #silverstripe
113: [10:05:31] * toddmorey has joined #silverstripe
114: [10:06:47] * kerosene has joined #silverstripe
115: [10:10:16] * toddmorey quit (Ping timeout: 260 seconds)
116: [10:16:14] * micmania1 has joined #silverstripe
117: [10:33:40] * toddmorey has joined #silverstripe
118: [10:50:09] * toddmorey quit (Quit: Leaving.)
119: [11:07:44] * Motoservo has joined #silverstripe
120: [11:18:02] * toddmorey has joined #silverstripe
121: [11:57:53] * aragonne quit (Quit: aragonne)
122: [12:21:42] * priithansen has joined #silverstripe
123: [12:24:19] * toddmorey quit (Quit: Leaving.)
124: [12:30:24] * toddmorey has joined #silverstripe
125: [12:46:55] * toddmorey quit (Quit: Leaving.)
126: [12:48:13] * toddmorey has joined #silverstripe
127: [13:04:44] * toddmorey quit (Quit: Leaving.)
128: [13:55:44] * kerosene_ has joined #silverstripe
129: [13:56:18] * kerosene is now known as Guest67405
130: [13:56:18] * kerosene_ is now known as kerosene
131: [13:59:48] <ARNHOE> am i the only one having problems with dev/build in live when logged in as a admin?
132: [14:00:12] <ARNHOE> it returns me to the login screen, which shows You are already logged in, once I just go to /admin I can edit everything
133: [14:02:40] * toddmorey has joined #silverstripe
134: [14:17:07] * cloph has joined #silverstripe
135: [14:18:18] * cloph_away quit (Ping timeout: 276 seconds)
136: [14:54:48] * toddmorey quit (Quit: Leaving.)
137: [15:23:24] * priithan1en has joined #silverstripe
138: [15:28:04] * priithan1en quit (Client Quit)
139: [15:28:23] * priithansen quit (Quit: priithansen)
140: [15:29:03] * priithansen has joined #silverstripe
141: [15:34:53] * priithansen quit (Quit: leaving)
142: [15:40:47] * priithansen has joined #silverstripe
143: [15:48:10] * swordsmanz has joined #silverstripe
144: [15:55:07] * toddmorey has joined #silverstripe
145: [16:00:21] * toddmorey quit (Ping timeout: 276 seconds)
146: [16:05:44] * Motoservo quit (Quit: Shhh. I'm trying to get some sleep here.)
147: [16:38:22] * toddmorey has joined #silverstripe
148: [16:44:19] * sam__ has joined #silverstripe
149: [16:44:22] <sam__> hi
150: [16:44:35] <sam__> facing some error...... in my silverstripe site
151: [16:45:37] <sam__> http://www.sspaste.com/paste/show/5218e22c9a6c9
152: [16:48:21] <sam__> can any body help me?
153: [16:51:55] * priithansen quit (Ping timeout: 240 seconds)
154: [16:55:54] <sam__> hi
155: [16:56:04] <sam__> is there any body to help me?
156: [17:04:43] * sam__ quit (Ping timeout: 250 seconds)
157: [17:10:26] * toddmorey quit (Quit: Leaving.)
158: [17:40:42] * toddmorey has joined #silverstripe
159: [17:49:18] * toddmorey quit (Ping timeout: 245 seconds)
160: [17:52:01] * toddmorey has joined #silverstripe
161: [17:59:53] * sam__ has joined #silverstripe
162: [18:00:10] <sam__> hi
163: [18:00:19] <sam__> I am facing one error...
164: [18:00:20] <sam__> [Notice] Trying to get property of non-object
165: [18:00:27] <sam__> can you please help me?
166: [18:03:20] * asd has joined #silverstripe
167: [18:03:44] * asd is now known as Guest85246
168: [18:06:00] * toddmorey quit (Quit: Leaving.)
169: [18:06:31] * toddmorey has joined #silverstripe
170: [18:10:55] * Guest85246 quit (Quit: Page closed)
171: [18:17:13] * ARNHOE quit (Remote host closed the connection)
172: [18:20:07] * sam__ quit (Ping timeout: 250 seconds)
173: [18:22:19] * toddmorey quit (Quit: Leaving.)
174: [18:23:57] * ARNHOE has joined #silverstripe
175: [18:34:05] * ARNHOE quit (Remote host closed the connection)
176: [19:06:35] * toddmorey has joined #silverstripe
177: [19:23:02] * toddmorey quit (Quit: Leaving.)
178: [20:23:23] * toddmorey has joined #silverstripe
179: [20:27:38] * toddmorey quit (Ping timeout: 245 seconds)
180: [20:45:53] * NitinShah has joined #silverstripe
181: [20:47:04] <NitinShah> Hi, anyone here
182: [21:21:18] * zippy__ has joined #silverstripe
183: [21:23:58] * toddmorey has joined #silverstripe
184: [21:24:47] <NitinShah> hi, need some help with blog module and ss3.1. Anyone here?
185: [21:28:26] * toddmorey quit (Ping timeout: 264 seconds)
186: [21:54:13] * NitinShah quit (Quit: Leaving)
187: [22:00:43] * NitinShah has joined #silverstripe
188: [22:24:30] * toddmorey has joined #silverstripe
189: [22:28:53] * toddmorey quit (Ping timeout: 245 seconds)
190: [23:06:50] * travis-ci has joined #silverstripe
191: [23:06:50] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#870 (3.1 - 0ac9eff : Will Rossiter): The build passed.
192: [23:06:50] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/137aa5315614...0ac9eff8299b
193: [23:06:51] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/10580020
194: [23:06:51] * travis-ci has left #silverstripe
195: [23:22:49] * priithansen has joined #silverstripe
196: [23:25:09] * toddmorey has joined #silverstripe
197: [23:29:37] * toddmorey quit (Ping timeout: 245 seconds)
198: [23:47:30] * NitinShah quit (Quit: Leaving)

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