#silverstripe IRC Log

IRC log for 11 March 2016

All timestamps are in UTC.

1: [00:00:04] <ss-helper> Re: [silverstripe-dev] Word / character count field - https://groups.google.com/d/msg/silverstripe-dev/sCz95P5P4iU/2GlMv7eCBgAJ
2: [00:01:18] <Pyromanik> vanny, Top, capital may or may not count.
3: [00:01:21] <Pyromanik> no ()
4: [00:01:25] <Pyromanik> this is template, not php.
5: [00:02:30] <vanny> ok, i did trim down the details, the exact line is $Top.AddToCart($ID)
6: [00:02:50] <Pyromanik> you sure top is the correct scope?
7: [00:05:28] <vanny> I tried without it and same result. I figured it if was in Page_controller top would get me there :)
8: [00:06:04] <Pyromanik> depends on which page you are on vanny
9: [00:06:44] <vanny> i get lost at times. But I was following DRY, as I need to call this function in multiple places across the site.
10: [00:07:15] <Pyromanik> yeah, so it's on the top level page right? So all pages should have that function.
11: [00:07:26] <Pyromanik> top level class hierarchially
12: [00:07:41] <Pyromanik> that is i mean
13: [00:07:58] <vanny> Yes, that is what I thought. I am calling it from and include that is inside a loop or with block
14: [00:08:05] <vanny> depending on page
15: [00:08:13] <Pyromanik> Oh, an include.
16: [00:08:15] <Pyromanik> :/
17: [00:09:29] <vanny> I dont like the sounds of that?
18: [00:09:38] <vanny> did I just break it!
19: [00:09:47] <Pyromanik> nup
20: [00:09:52] <Pyromanik> includes are just a bit shit
21: [00:09:54] <Pyromanik> break my head
22: [00:10:24] <vanny> i tried putting the form in the data object, but it wouldnt render :P .... I was desperate
23: [00:12:08] * micmania1 has joined #silverstripe
24: [00:21:18] <vanny> now you have me worried Pyro :P
25: [00:21:41] <ss23> Pyromanik: Prefer to be doing less dev stuff
26: [00:23:29] <Pyromanik> more research?
27: [00:23:41] <ss23> sysadmin, security, whatever else like that I guess
28: [00:26:56] <Pyromanik> cool :>
29: [00:44:51] * Tanger has joined #silverstripe
30: [00:49:28] * Admonish has joined #silverstripe
31: [00:49:39] <Admonish> Hey there everyone.
32: [00:50:19] <vanny> hi
33: [00:51:35] <Admonish> Does anyone know how to check if a user is not logged in (in the template)? I tried <% if $CurrentMember != true %> but I get errors in certain situations
34: [00:52:11] <Admonish> I also tried <% if !$CurrentMember>
35: [00:54:17] <vanny> I just use
36: [00:54:19] <vanny> <% if CurrentMember %>
37: [00:54:55] <Admonish> with an else?
38: [00:55:03] <vanny> try != 1 rather that true
39: [00:55:07] <Admonish> k
40: [00:55:18] <Admonish> thanks for the replies btw
41: [00:55:45] <Pyromanik> because the syntax isn't !$Thing
42: [00:55:54] <Pyromanik> it's "not $Thing"
43: [00:56:04] <Pyromanik> ie <% if not $CurrentMember %>
44: [00:56:19] <Admonish> oh. Im sorry
45: [00:56:30] <Pyromanik> Don't be, easy mistake.
46: [00:56:45] <Pyromanik> the differences between template and PHP trip folks up all the time.
47: [00:57:29] <vanny> gets me. and I still support ASP software as well, so I find myself writing vbscript and wondering why it doesnt work
48: [00:57:32] <Admonish> Thank you both for your help
49: [00:57:37] <Admonish> That worked
50: [00:57:47] <Pyromanik> :)
51: [00:57:56] <Pyromanik> You're welcome
52: [01:00:05] <Admonish> Pyromanik, I see you on the IRC a lot and you seem to know a lot about SS. Are you a SS team member?
53: [01:00:24] * joelpittet has joined #silverstripe
54: [01:03:56] <Pyromanik> nope
55: [01:04:29] <Admonish> oh ok :)
56: [01:04:42] <Pyromanik> Not many of us are.
57: [01:05:14] <vanny> pyro just a good source of knowledge. Im only 1 year into my SS journey and only 3 months serious
58: [01:05:38] * BrewNaked quit (Remote host closed the connection)
59: [01:05:43] * DanaeNZ has joined #silverstripe
60: [01:05:44] <Admonish> Just for future referance, do you happen to know any of the team members IRC usernames?
61: [01:05:48] <Pyromanik> I've been around the block a while :>
62: [01:05:57] <Pyromanik> Yes, but it doesn't matter.
63: [01:06:07] * DanaeNZ quit (Client Quit)
64: [01:06:10] <Pyromanik> You shouldn't direct your questions.
65: [01:06:34] <Admonish> all right
66: [01:06:39] <Admonish> np
67: [01:06:46] <Pyromanik> many are idle, don't get checked very often. Some don't idle and only drop by infrequently, etc.
68: [01:07:06] <Pyromanik> relying on an employee or core committer to be present is not a good idea :>
69: [01:07:07] <Admonish> understood
70: [01:07:42] <vanny> there are good people on here who help when they can
71: [01:07:56] <Pyromanik> or anyone in particular. If you don't post a question in main chat then you're relying on that single person to be present, checking irc, and awake.
72: [01:08:19] <Pyromanik> If you put it in main chat then anyone available can try to help :>
73: [01:08:34] <Pyromanik> even if it takes a while for an answer to eventuate, most things get answered eventually.
74: [01:09:35] <Admonish> nice :)
75: [01:09:45] <Pyromanik> Some know more than others, but sometimes knowledge is area specific. Eg. I don't know much about helping with versioned data objects.
76: [01:09:51] <Admonish> I will make sure to post my questions in the main chat then
77: [01:09:54] <Pyromanik> but Stomach probably does.
78: [01:10:30] <Pyromanik> also, be sure to ask a real question Admonish :> Don't be like that chap earlier (that's you Mitcheru-san) asking "Does anyone know Versioned DataObjects?"
79: [01:10:31] <Admonish> Stomach seems like a normal as well (from the short time I have been in the IRC)
80: [01:10:38] <Pyromanik> because the only help that could ever come from that is "yes."
81: [01:10:42] <vanny> I think I found my include issue. I need to add TopScope=$top in the include that is called
82: [01:11:07] <Pyromanik> and by the time Stomach said as such, Mitcheru-san is idle and gone.
83: [01:11:21] <Pyromanik> vanny, yeh.
84: [01:11:29] <Pyromanik> sounds about right.
85: [01:11:40] <Pyromanik> includes make their own scope stack.
86: [01:11:55] <Pyromanik> which is a bit weird, but was done like that for some reason I can never remember
87: [01:12:18] <Admonish> Makes sense to me pyromanik, Ask a spacific question, get a spacific answer (in theory anyway)
88: [01:12:46] <Pyromanik> Yup. Just don't ask x=>y questions either (you can google that, I'm crap at explaining it)
89: [01:13:05] <Pyromanik> Admonish, also, tab key is your friend (just like in most shells)
90: [01:13:10] <Pyromanik> (for usernames)
91: [01:13:48] <Pyromanik> :>
92: [01:13:49] <vanny> yeah, took me two days to find that, and lots of googling, but I finally got it
93: [01:14:02] <Admonish> tab key?
94: [01:14:30] <Pyromanik> yeah, basically don't go "How do I ram a data object into an email?" and instead ask "I'd like to send users all this info from a data object, what would be the best way to do that?" or something.
95: [01:14:36] <Pyromanik> probably a bad example.
96: [01:14:47] <Pyromanik> Admonish, yes. I type "ad" then press tab.
97: [01:14:56] <Admonish> ad
98: [01:14:59] <Pyromanik> you type py then press tab. see what happens :>
99: [01:15:02] <Admonish> Admonish ahhh
100: [01:15:06] <Admonish> LOL
101: [01:15:10] <Admonish> thanks
102: [01:15:30] <Admonish> Pyromanik
103: [01:15:34] <Pyromanik> a lot of newbies don't get that, keep prefixing thinking it's twitter and all kinda things.
104: [01:15:36] <Admonish> much quicker
105: [01:15:42] <Pyromanik> which usually makes the 'notification' not work.
106: [01:15:59] <vanny> im doing a happy dance now
107: [01:16:18] <Pyromanik> I get notified by flashing icon or whatever if you mention my name, but it has to be exact (although case insensitive it seems). Tab key is your friend there.
108: [01:16:35] <Pyromanik> but as I said earlier, I may not always be around to see such flashing.
109: [01:16:38] <Pyromanik> etc etc.
110: [01:16:44] <Admonish> understood
111: [01:16:45] <vanny> what dev tools do you use. What is the one uncle cheese uses in his videos. I dont like mine
112: [01:16:55] <Pyromanik> vanny, probably sublime text
113: [01:17:04] <Admonish> I personally use atom.io
114: [01:17:05] <Pyromanik> that or atom, iirc.
115: [01:17:12] <Pyromanik> they have similar interfaces.
116: [01:17:14] <Stomach> I try to reply
117: [01:17:22] <Stomach> but alas work often gets in the way of chat
118: [01:17:22] <Pyromanik> Stomach, most people do!
119: [01:17:29] <Pyromanik> but timing can be an issue.
120: [01:17:43] <Admonish> Stomach hi :)
121: [01:17:46] <Stomach> hi :)
122: [01:17:50] <Stomach> I'm glad I'm a normal
123: [01:18:10] <Pyromanik> Wholey crap it's friday.
124: [01:18:26] <Pyromanik> Another week wasted away :<
125: [01:18:30] <Pyromanik> oh well
126: [01:18:33] * Pyromanik goes to play games
127: [01:19:06] * vanny likes that
128: [01:19:25] <vanny> I have to go paint something now, rest my brain for a while
129: [01:19:45] <Admonish> <- has no idea how they did that
130: [01:20:10] * Stomach does
131: [01:20:18] <Admonish> * tests a theory
132: [01:20:33] <Admonish> <- fails it up
133: [01:24:49] * joelpittet quit ()
134: [01:27:30] <Mitcheru-san> Hey all. I'm trying to do this: $blog_posts->sort("FIELD (BlogPost.ID," . implode(",", $ordered_post_ids) . ")");
135: [01:27:52] <Mitcheru-san> ... But for non-staged content it should read FIELD (BlogPost_Live.ID,....
136: [01:28:14] <Mitcheru-san> That is, BlogPost_Live should be used instead of BlogPost.
137: [01:29:33] <Mitcheru-san> Any way to work around this? (I hope that made sense...)
138: [01:45:27] * Admonish quit (Ping timeout: 244 seconds)
139: [01:47:37] <micmania1> Mitcheru-san: you can use http://api.silverstripe.org/3.1/source-class-Versioned.html#1001-1008
140: [01:48:07] <micmania1> if($stage == ‘Stage’) BlogPost; else BlogPost_$stage
141: [01:48:57] <Mitcheru-san> Ah thank you!
142: [02:50:01] * Admonish has joined #silverstripe
143: [02:54:28] * BrewNaked has joined #silverstripe
144: [02:58:49] * BrewNaked quit (Ping timeout: 240 seconds)
145: [03:00:12] <Stomach> Admonish - /me ;)
146: [03:01:24] * Mitcheru-san quit (Ping timeout: 252 seconds)
147: [03:02:40] <Pyromanik> /me <action>
148: [03:02:52] * Pyromanik demonstrates
149: [03:16:47] * Stomach quit (Quit: zzz)
150: [03:23:13] <Pyromanik> Admonish, ^
151: [03:45:39] * kerozene quit (Ping timeout: 248 seconds)
152: [03:52:36] * Stomach has joined #silverstripe
153: [04:14:22] * robbieaverill quit (Ping timeout: 252 seconds)
154: [04:14:53] * micmania1 quit (Quit: micmania1)
155: [04:19:20] * Stomach quit (Quit: zzz)
156: [04:20:08] * Stomach has joined #silverstripe
157: [04:20:25] * Pyromanik quit (Quit: Leaving)
158: [04:25:57] * Shrike_Finland has joined #silverstripe
159: [04:31:01] * vanny quit (Quit: Page closed)
160: [04:42:38] * Azure quit (Remote host closed the connection)
161: [04:43:22] * BrewNaked has joined #silverstripe
162: [04:47:03] * Stomach quit (Ping timeout: 276 seconds)
163: [04:48:21] * BrewNaked quit (Ping timeout: 276 seconds)
164: [04:52:49] * cheddam quit (Ping timeout: 240 seconds)
165: [05:42:40] * Shrike_Finland quit (Quit: Leaving.)
166: [06:15:21] * ss-helper quit (Ping timeout: 268 seconds)
167: [06:25:35] * ss-helper has joined #silverstripe
168: [06:27:54] * Admonish wooties
169: [06:32:13] * BrewNaked has joined #silverstripe
170: [06:33:33] * Shrike_Finland has joined #silverstripe
171: [06:36:23] * BrewNaked quit (Ping timeout: 244 seconds)
172: [06:52:32] * Shrike_Finland quit (Quit: Leaving.)
173: [06:59:41] * Stomach has joined #silverstripe
174: [07:01:41] * Tanger quit (Quit: Tanger)
175: [07:19:46] * Shrike_Finland has joined #silverstripe
176: [07:23:18] * Mike123 has joined #silverstripe
177: [07:30:25] * Shrike_Finland quit (Quit: Leaving.)
178: [07:38:19] * Shrike_Finland has joined #silverstripe
179: [07:41:57] * swaiba has joined #silverstripe
180: [07:53:41] * Shrike_Finland quit (Quit: Leaving.)
181: [08:11:52] * arnhoe has joined #silverstripe
182: [08:16:24] * Admonish quit (Quit: ThrashIRC v2.9 sic populo comunicated)
183: [08:21:04] * BrewNaked has joined #silverstripe
184: [08:25:15] * BrewNaked quit (Ping timeout: 246 seconds)
185: [08:26:14] * Stomach quit (Quit: zzz)
186: [08:34:13] * Shrike_Finland has joined #silverstripe
187: [08:39:09] * wmk has joined #silverstripe
188: [08:54:55] * kinglozzer has joined #silverstripe
189: [08:55:25] * Shrike_Finland quit (Quit: Leaving.)
190: [08:58:33] * camfindlay has joined #silverstripe
191: [09:00:21] * camfindlay quit (Client Quit)
192: [09:06:55] * HARVS1789UK has joined #silverstripe
193: [09:21:14] * MattyBalaam has joined #silverstripe
194: [09:21:25] * MattyBalaam quit (Client Quit)
195: [09:24:02] * Shrike_Finland has joined #silverstripe
196: [09:24:13] * Shrike_Finland quit (Client Quit)
197: [09:26:44] * r_hector has joined #silverstripe
198: [09:26:54] * Shrike_Finland has joined #silverstripe
199: [09:32:15] * Shrike_Finland quit (Read error: Connection reset by peer)
200: [09:32:32] * Shrike_Finland has joined #silverstripe
201: [09:37:07] * Shrike_Finland quit (Ping timeout: 248 seconds)
202: [09:40:29] * kerozene has joined #silverstripe
203: [10:02:58] * spronka has joined #silverstripe
204: [10:10:00] * BrewNaked has joined #silverstripe
205: [10:14:18] <Firesphere> Hello
206: [10:14:24] * BrewNaked quit (Ping timeout: 244 seconds)
207: [10:14:28] <swaiba> hi Firesphere
208: [10:16:04] <madmatt> Hello and goodnight o/
209: [10:17:30] * Shrike_Finland has joined #silverstripe
210: [10:17:47] <Firesphere> Hi and bye madmatt
211: [10:52:14] * spronka quit (Quit: My Mac has gone to sleep. ZZZzzz…)
212: [10:52:24] * kinglozzer quit ()
213: [10:57:06] * Shrike_Finland quit (Quit: Leaving.)
214: [10:59:19] * Shrike_Finland has joined #silverstripe
215: [11:02:06] * wmk quit (Ping timeout: 276 seconds)
216: [11:07:16] * Firesphere quit (Quit: Bye now)
217: [11:14:21] <Mike123> hey guys, has anyone ever made optimized search form with about 50k records ? i need it very fast working
218: [11:32:44] * Shrike_Finland quit (Quit: Leaving.)
219: [11:33:07] * Shrike_Finland has joined #silverstripe
220: [11:37:55] * Azure has joined #silverstripe
221: [11:49:02] * swaiba quit (Remote host closed the connection)
222: [11:58:49] * BrewNaked has joined #silverstripe
223: [12:03:51] * BrewNaked quit (Ping timeout: 276 seconds)
224: [12:37:08] * HARVS1789UK quit (Remote host closed the connection)
225: [12:47:58] * Shrike_Finland quit (Quit: Leaving.)
226: [13:31:08] * swaiba has joined #silverstripe
227: [13:32:30] * UndefinedOffset has joined #silverstripe
228: [13:36:25] * Shrike_Finland has joined #silverstripe
229: [13:43:56] * arnhoe_ has joined #silverstripe
230: [13:44:03] * arnhoe_ quit (Client Quit)
231: [13:46:18] * HARVS1789UK has joined #silverstripe
232: [13:47:10] * arnhoe quit (Ping timeout: 248 seconds)
233: [13:47:46] * BrewNaked has joined #silverstripe
234: [13:49:10] * kinglozzer has joined #silverstripe
235: [13:51:58] * BrewNaked quit (Ping timeout: 248 seconds)
236: [14:00:19] <swaiba> http://stackoverflow.com/questions/35942180/automatically-save-and-close-a-has-many-dataobject-with-no-db-items
237: [14:00:26] <swaiba> (as the bot is sleeping)
238: [14:01:27] <UndefinedOffset> the helper bot is passed out? musta been quite the night :P
239: [14:11:58] * Shrike_Finland quit (Quit: Leaving.)
240: [14:15:17] <ss-helper> Automatically Save and Close a has_many DataObject with no db items - http://stackoverflow.com/questions/35942180/automatically-save-and-close-a-has-many-dataobject-with-no-db-items
241: [14:15:54] <swaiba> ooops
242: [14:16:02] <swaiba> well it wasn't about the other day...
243: [14:16:30] <UndefinedOffset> swaiba just having a bit of a slow start this morning, needs more coffee :P
244: [14:16:48] * swaiba always need more coffee
245: [14:18:35] <Mike123> need to make search form, but really fast one, there will be about 70k records and filters with relations
246: [14:18:47] <Mike123> any tips ? caching ? indexing ?
247: [14:21:47] * Shrike_Finland has joined #silverstripe
248: [14:30:21] <swaiba> Mike123 - how about this... https://github.com/gordonbanderson/silverstripe-elastica
249: [14:30:46] <swaiba> he has been on here talking about this several times - but I'm nust passing that on
250: [14:30:53] <swaiba> I've got no other answers
251: [14:39:32] * Shrike_Finland quit (Quit: Leaving.)
252: [14:46:17] * swaiba quit (Remote host closed the connection)
253: [14:48:20] <elgabbu> hi
254: [14:48:40] <elgabbu> i m looking at the URLSegmentFilter filter function
255: [14:48:52] <elgabbu> specifically the part where it does transliteration
256: [14:49:27] <elgabbu> still haven't figuered out why but when $name is /61229/eilmeldung-polizeirazzia-in-den-geschäftsräumen-von-amaya-2/
257: [14:49:42] <elgabbu> its not being transliterated
258: [14:54:24] * muskie9 has joined #silverstripe
259: [14:56:27] <elgabbu> hmmm would seem that transliterator doesn't work during a dev tasks
260: [14:57:32] <elgabbu> basically strtr not working ...
261: [14:58:52] <elgabbu> i m running the build task via command line
262: [15:36:37] * BrewNaked has joined #silverstripe
263: [15:40:51] * BrewNaked quit (Ping timeout: 250 seconds)
264: [15:41:05] * slievr has joined #silverstripe
265: [15:41:27] <slievr> how would I go about hiding a classes subclasses from a model admin?
266: [15:44:38] * Shrike_Finland has joined #silverstripe
267: [15:45:02] * DESPER has joined #silverstripe
268: [15:45:02] <ss-helper> DESPER: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
269: [16:04:40] * BrewNaked has joined #silverstripe
270: [16:08:55] * DimiStripe has joined #silverstripe
271: [16:14:39] <HARVS1789UK> slievr in your ModelAdmin extension add/edit the getList() method and add a $list = $list->filter("ClassName", "[YOUR BASE CLASS]");
272: [16:15:19] <ss-helper> Render Arbitrary HTML in custom summary_field - http://stackoverflow.com/questions/35944815/render-arbitrary-html-in-custom-summary-field
273: [16:20:49] <slievr> HARVS1789UK: thanks, thought there might be a config option
274: [16:24:56] * r_hector quit (Remote host closed the connection)
275: [16:27:20] * slievr quit (Ping timeout: 252 seconds)
276: [16:30:25] <ss-helper> Re: [silverstripe-dev] Re: SilverStripe Stack Site - https://groups.google.com/d/msg/silverstripe-dev/eEBz5dRPvf8/-sr2qSq5BgAJ
277: [16:37:25] * slievr has joined #silverstripe
278: [16:37:58] * slievr has left #silverstripe
279: [16:38:04] * slievr_ has joined #silverstripe
280: [16:38:05] * slievr_ quit (Client Quit)
281: [16:38:41] * slievr has joined #silverstripe
282: [16:38:57] * Azure quit (Remote host closed the connection)
283: [16:45:25] <ss-helper> Re: [silverstripe-dev] Word / character count field - https://groups.google.com/d/msg/silverstripe-dev/sCz95P5P4iU/5rTpUMu5BgAJ
284: [16:47:40] <BrewNaked> Heya all. Could someone help steer me toward how I might go about modifying an UploadField's destination folder within the object's onBeforeWrite() function?
285: [16:57:32] * arnhoe has joined #silverstripe
286: [17:02:30] * kinglozzer quit ()
287: [17:03:40] * Shrike_Finland quit (Quit: Leaving.)
288: [17:07:50] * HARVS1789UK quit (Remote host closed the connection)
289: [17:11:08] * HARVS1789UK has joined #silverstripe
290: [17:12:27] * Shrike_Finland has joined #silverstripe
291: [17:24:06] * Mike123 quit (Quit: Page closed)
292: [17:26:00] * DESPER quit (Ping timeout: 252 seconds)
293: [17:31:19] * HARVS1789UK quit (Remote host closed the connection)
294: [17:58:22] * siteLease has joined #silverstripe
295: [17:58:48] <siteLease> Anyone know what's going on with http://api.silverstripe.org?
296: [17:59:06] <siteLease> Anyone know how to notify the team that it appears to be down?
297: [18:18:30] * siteLease quit (Ping timeout: 244 seconds)
298: [18:23:47] * muskie9 quit (Quit: My Mac has gone to sleep. ZZZzzz…)
299: [18:39:01] * HARVS1789UK has joined #silverstripe
300: [18:40:01] * muskie9 has joined #silverstripe
301: [18:43:27] * HARVS1789UK quit (Ping timeout: 260 seconds)
302: [18:45:28] <ss-helper> Re: [silverstripe-dev] Re: SilverStripe Stack Site - https://groups.google.com/d/msg/silverstripe-dev/eEBz5dRPvf8/64ZSqoDABgAJ
303: [18:51:44] * muskie9 quit (Quit: My Mac has gone to sleep. ZZZzzz…)
304: [18:53:01] * Stomach has joined #silverstripe
305: [18:54:55] * muskie9 has joined #silverstripe
306: [18:55:17] * siteLease has joined #silverstripe
307: [18:55:45] <siteLease> Anyone know what's going on with http://api.silverstripe.org?
308: [18:56:59] * gelignite has joined #silverstripe
309: [18:57:12] <siteLease> Anyone know what's going on with http://api.silverstripe.org?
310: [18:57:35] <UndefinedOffset> siteLease: unfortunatly it's the weekend in new zealand so the people who could look into it likely aren't around :(
311: [18:57:47] <siteLease> sniff sniff
312: [18:57:53] <siteLease> :'(
313: [18:58:12] <UndefinedOffset> could always dig through the files in the mean time
314: [18:59:08] <siteLease> thanks
315: [19:08:04] * arnhoe quit ()
316: [19:09:18] * muskie9 quit (Ping timeout: 248 seconds)
317: [19:09:42] * muskie9 has joined #silverstripe
318: [19:13:12] * siteLease quit (Quit: Leaving)
319: [19:36:12] * spronka has joined #silverstripe
320: [19:46:42] * Stomach quit (Quit: zzz)
321: [19:48:08] * spronka quit (Quit: My Mac has gone to sleep. ZZZzzz…)
322: [19:52:49] * Neomang quit (Quit: Page closed)
323: [20:02:47] * Neomang has joined #silverstripe
324: [20:11:45] <Neomang> If I were looking to create a custom mutator for the get() function of a data object I've made, how would I go about doing so?
325: [20:15:30] <ss-helper> Re: [silverstripe-dev] Word / character count field - https://groups.google.com/d/msg/silverstripe-dev/sCz95P5P4iU/D97ZihXFBgAJ
326: [20:16:58] <Neomang> for example, I can do Object::get()-byID(); but what if I wanted to instead use byTitle or byURLSegment or what have oyu
327: [20:17:00] <Neomang> *you
328: [20:41:06] * Shrike_Finland quit (Quit: Leaving.)
329: [20:45:31] <ss-helper> Re: [silverstripe-dev] Word / character count field - https://groups.google.com/d/msg/silverstripe-dev/sCz95P5P4iU/cNlAn6rGBgAJ
330: [21:45:43] * UndefinedOffset quit (Quit: Leaving.)
331: [21:53:41] * Stomach has joined #silverstripe
332: [22:13:20] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
333: [22:14:00] * Stomach quit (Quit: zzz)
334: [22:15:39] * HARVS1789UK has joined #silverstripe
335: [22:20:26] * HARVS1789UK quit (Ping timeout: 268 seconds)
336: [22:27:56] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
337: [22:29:35] * Stomach has joined #silverstripe
338: [22:32:18] <madmatt> Neomang: Create a subclass of Extension that extends DataList, and define your 'byXX()' method on that
339: [22:44:07] * Stomach quit (Quit: zzz)
340: [22:44:43] * Admonish has joined #silverstripe
341: [22:45:05] <Admonish> Hello everyone
342: [22:45:08] * HARVS1789UK has joined #silverstripe
343: [22:45:09] * Stomach has joined #silverstripe
344: [22:45:32] * HARVS1789UK quit (Client Quit)
345: [22:46:57] <Admonish> I am creating a custom login form by extending MemberLoginForm. From what I can see there seems to be a redirect on success function (logInUserAndRedirect) however I cannot see a redirect on fail. So I have set out to create a function to do this.
346: [22:47:28] <Admonish> What would be the best way of doing this?
347: [22:49:12] <Admonish> I'm thinking that, I should just be able to check whether the login was successful and return $this->controller->redirect(); if the login attempt failed.
348: [23:00:01] * ss-helper quit (Remote host closed the connection)
349: [23:00:15] * ss-helper has joined #silverstripe
350: [23:17:07] * Admonish quit (Ping timeout: 244 seconds)
351: [23:30:04] * Copperis quit (Quit: Leaving)
352: [23:43:23] * Admonish has joined #silverstripe
353: [23:44:57] * Stomach quit (Quit: zzz)
354: [23:45:18] * Stomach has joined #silverstripe
355: [23:45:47] * Stomach quit (Client Quit)
356: [23:51:44] * Admonish quit (Ping timeout: 244 seconds)
357: [23:54:28] * Admonish has joined #silverstripe

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