#silverstripe IRC Log

IRC log for 22 November 2016

All timestamps are in UTC.

1: [00:04:33] * darjusit quit (Quit: Leaving)
2: [00:08:13] * Stomach has joined #silverstripe
3: [00:21:27] * Stomach quit (Quit: zzz)
4: [00:24:17] * Stomach has joined #silverstripe
5: [00:27:21] * agent44 quit (Quit: zzz)
6: [00:29:19] * bubaphex quit (Quit: bubaphex)
7: [00:30:09] * bubaphex has joined #silverstripe
8: [00:35:42] * kinglozzer has joined #silverstripe
9: [00:40:37] * kinglozzer quit (Ping timeout: 240 seconds)
10: [00:49:52] * DanaeNZ quit (Remote host closed the connection)
11: [00:50:24] * DanaeNZ has joined #silverstripe
12: [00:54:38] * DanaeNZ quit (Ping timeout: 258 seconds)
13: [00:55:40] * DanaeNZ has joined #silverstripe
14: [00:57:07] * Stomach quit (Quit: zzz)
15: [00:57:18] * bubaphex quit (Quit: bubaphex)
16: [00:57:57] * janneklouman-- quit (Ping timeout: 240 seconds)
17: [01:00:04] <ss-helper> Why is Silverstripe not letting me login to admin site? - http://stackoverflow.com/questions/40732118/why-is-silverstripe-not-letting-me-login-to-admin-site
18: [01:01:07] * Stomach has joined #silverstripe
19: [01:02:09] * bubaphex has joined #silverstripe
20: [01:04:34] * bubaphex quit (Client Quit)
21: [01:06:36] * bubaphex has joined #silverstripe
22: [01:11:09] * Admonish has joined #silverstripe
23: [01:12:10] <Admonish> Hello all
24: [01:12:46] <Admonish> I was wondering if anyone knows how to use getIterator to loop over a datalist
25: [01:20:20] * pweh has joined #silverstripe
26: [01:33:03] <Admonish> Looking more into uses of getIterator I'm not even sure its the method I'm looking for. I just need to know the best way to loop over items in a datalist
27: [01:36:48] * kinglozzer has joined #silverstripe
28: [01:37:26] * Navid_ has joined #silverstripe
29: [01:38:24] * DanaeNZ quit (Remote host closed the connection)
30: [01:38:57] * DanaeNZ has joined #silverstripe
31: [01:39:45] <Navid_> Hi All Experts! I am developing form at the bottom of the homepage the homepage URL is http://localhost/silverstripe/ but when I submit the contactForm then it is sending to http://localhost/silverstripe/home/contactForm and I am getting following error i.e. "There seems to have been a technical problem. Please click the back button, refresh your browser, and try again."
32: [01:41:22] <Navid_> I know the URL is wrong and the form should submit to http://localhost/silverstripe/ instead of http://localhost/silverstripe/home/contactForm....How I can change the routing while defining the form?
33: [01:42:28] * kinglozzer quit (Ping timeout: 260 seconds)
34: [01:42:57] * DanaeNZ quit (Ping timeout: 240 seconds)
35: [01:43:30] * cjsissingh quit (Quit: cjsissingh)
36: [01:45:05] <ss-helper> SilverStripe using requirements() for each AJAX call - http://stackoverflow.com/questions/40330851/silverstripe-using-requirements-for-each-ajax-call
37: [01:46:01] <Navid_> In addition, to above the FormAction is not going to sendContactForm() this function to save the data to the DB and sending Email.
38: [01:47:40] * tombaldwin has joined #silverstripe
39: [01:47:41] <ss-helper> tombaldwin: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
40: [01:47:53] <Nightjar> No Navid_ - your assumption is incorrect.
41: [01:48:01] * tombaldwin has left #silverstripe
42: [01:48:24] <Nightjar> home/contactForm is correct, provided your form function in the controller is called contactForm
43: [01:48:41] * jbrungar quit (Remote host closed the connection)
44: [01:49:08] <Nightjar> The form action is not going to sendContactForm because it is not validating. It sounds as though you have a problem with the security token.
45: [01:49:10] * DanaeNZ has joined #silverstripe
46: [01:49:59] <Navid_> Nightjar: Thanks for your reply... so how I can handle the security token.... as I am using the custom template for rendering form...
47: [01:50:22] <Nightjar> Oh, that'll do it. You're not iterating the fields properly.
48: [01:50:55] <Nightjar> ie, the token is probably missing altogether
49: [01:51:18] <Navid_> Yes, I am rendering the field like Fields.dataByFieldname("txtName") and so on....there are 3-fields and I render using the same function
50: [01:52:16] <Nightjar> No, <% loop $Fields %>
51: [01:52:29] <Nightjar> use the default template as an example ;)
52: [01:53:19] <Navid_> the default is not rendering form as per the template design therefore, I have to customize the field rendering individually
53: [01:53:43] <DanaeNZ> Navid_: You can go: <% loop $HiddenFields %> I bleieve
54: [01:53:50] <DanaeNZ> then go through the others individually
55: [01:54:04] <DanaeNZ> That'll ensure you don't leave out the security token
56: [01:54:33] * janneklouman-- has joined #silverstripe
57: [01:57:57] <Navid_> Nightjar and DanaeNZ: thanks for your reply..... I fixed the routing by adding the following on the form i.e. $Fields.DataFieldByName("SecurityID") at the end :)
58: [01:59:16] * janneklouman-- quit (Ping timeout: 260 seconds)
59: [01:59:19] <Navid_> but now how I debug the request in the sendContactForm() function
60: [02:01:29] <Nightjar> die('we made it');
61: [02:03:25] <Navid_> I did already, but it didn't died in the function.... :(
62: [02:04:46] <Nightjar> is the function the name/first parameter of your form action?
63: [02:06:10] <Navid_> Yes, it is...
64: [02:06:32] <Navid_> FormAction::create('sendContactForm', 'Send')
65: [02:06:37] <Nightjar> what is happening instead?
66: [02:08:21] <Nightjar> back to the same page? blank page? Big error on screen?
67: [02:08:25] <Navid_> Just redirecting to the homepage after form submit..... I wrote to die the script in sendContactForm() but just the homepage reloads....
68: [02:08:52] <Nightjar> that's what it's supposed to do.
69: [02:09:00] <Nightjar> sounds like you have a validation error
70: [02:09:59] <Navid_> Yes, correct the routing is as expected now..... But it is not giving any validation error on the page and message is not showing......let me check...
71: [02:11:50] <Navid_> I don't think so there is the validation error. As, I am using the validation rule (the 3-fields are not empty). the message box has more than 20 characters... OK, I will take the validation off from the form and will report what I get?
72: [02:13:19] <Navid_> Nightjar: You were right.... It is because of the validation check that I have in sendContactForm() function...
73: [02:13:29] <Navid_> I got the values from the form now.... :)
74: [02:14:33] <Nightjar> Validation messages might be part of the form template.
75: [02:14:39] <Admonish> How do I check if a many_many is empty? Would i just do if(!isset(object->ManyMany())){//do something}
76: [02:15:14] <Nightjar> Admonish, you mean like http://api.silverstripe.org/3.4/class-DataList.html#_count
77: [02:15:45] <Nightjar> or http://api.silverstripe.org/3.4/class-DataList.html#_exists
78: [02:15:57] * cjsissingh has joined #silverstripe
79: [02:16:05] <Nightjar> ;) ?
80: [02:17:37] <Admonish> Nightjar: that would be the one. I thought I had read about the exists method on the "relationships between records" page but when I went back I couldn't find it
81: [02:17:46] <Admonish> Nightjar: Thanks :D
82: [02:17:47] <Nightjar> (so... if($object->RelationshipName()->exists()) { ...)
83: [02:18:56] <Admonish> Nightjar: gotcha ;D
84: [02:19:09] <Admonish> that will do nicely
85: [02:20:36] <Nightjar> of course in a template it's just <% if $RelationshipName %> (in the correct context, or $Object.RelationshipName perhaps)
86: [02:21:52] * bubaphex quit (Quit: bubaphex)
87: [02:22:52] * bubaphex has joined #silverstripe
88: [02:33:20] * micmania1 quit (Quit: micmania1)
89: [02:37:27] * jbrungar has joined #silverstripe
90: [02:37:50] * kinglozzer has joined #silverstripe
91: [02:42:58] * kinglozzer quit (Ping timeout: 250 seconds)
92: [02:45:27] * darianno quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
93: [03:09:11] * cloph quit (Ping timeout: 258 seconds)
94: [03:11:27] * cloph_away has joined #silverstripe
95: [03:13:33] * micmania1 has joined #silverstripe
96: [03:24:28] * Admonish quit (Ping timeout: 252 seconds)
97: [03:29:56] * Admonish has joined #silverstripe
98: [03:34:37] * janneklouman-- has joined #silverstripe
99: [03:39:02] * kinglozzer has joined #silverstripe
100: [03:39:06] * janneklouman-- quit (Ping timeout: 246 seconds)
101: [03:44:30] * kinglozzer quit (Ping timeout: 250 seconds)
102: [03:45:29] <ss-helper> Re: [silverstripe-dev] Re: Giving a greater Role to Silverstripe Sake - https://groups.google.com/d/msg/silverstripe-dev/p312W8Qh2fM/M32SN1dHBwAJ
103: [03:56:21] * Stomach quit (Ping timeout: 256 seconds)
104: [04:02:18] * agent44 has joined #silverstripe
105: [04:07:08] * agent44 quit (Ping timeout: 260 seconds)
106: [04:08:01] * Navid_ quit (Ping timeout: 260 seconds)
107: [04:15:38] * hewp has joined #silverstripe
108: [04:17:48] * pweh quit (Ping timeout: 260 seconds)
109: [04:22:43] * DanaeNZ quit (Remote host closed the connection)
110: [04:23:19] * DanaeNZ has joined #silverstripe
111: [04:27:24] * DanaeNZ quit (Ping timeout: 246 seconds)
112: [04:28:04] * F-u-c-k has joined #silverstripe
113: [04:28:23] * F-u-c-k is now known as pweh
114: [04:30:03] * bubaphex quit (Quit: bubaphex)
115: [04:30:34] <ss-helper> Re: [silverstripe-dev] Re: Giving a greater Role to Silverstripe Sake - https://groups.google.com/d/msg/silverstripe-dev/p312W8Qh2fM/JrOdM9RJBwAJ
116: [04:30:46] * DanaeNZ has joined #silverstripe
117: [04:31:48] * hewp quit (Ping timeout: 260 seconds)
118: [04:40:16] * kinglozzer has joined #silverstripe
119: [04:43:52] * DanaeNZ quit (Remote host closed the connection)
120: [04:44:28] * DanaeNZ has joined #silverstripe
121: [04:44:46] * kinglozzer quit (Ping timeout: 252 seconds)
122: [04:48:37] * DanaeNZ quit (Ping timeout: 248 seconds)
123: [04:49:14] * micmania1 quit (Quit: micmania1)
124: [05:08:51] * Nightjar quit (Quit: Leaving)
125: [05:18:18] * spronk has joined #silverstripe
126: [05:22:00] * Admonish quit (Ping timeout: 250 seconds)
127: [05:22:26] * muskie9 has joined #silverstripe
128: [05:22:28] * janneklouman-- has joined #silverstripe
129: [05:26:57] * janneklouman-- quit (Ping timeout: 240 seconds)
130: [05:34:50] * Stomach has joined #silverstripe
131: [05:37:59] * Stomach quit (Read error: Connection reset by peer)
132: [05:38:33] * Stomach has joined #silverstripe
133: [05:41:21] * kinglozzer has joined #silverstripe
134: [05:45:35] * kinglozzer quit (Ping timeout: 244 seconds)
135: [05:57:59] * Admonish has joined #silverstripe
136: [06:02:38] * agent44 has joined #silverstripe
137: [06:06:27] * Stomach quit (Quit: zzz)
138: [06:06:49] * Stomach has joined #silverstripe
139: [06:07:18] * Stomach quit (Client Quit)
140: [06:07:28] * agent44 quit (Ping timeout: 260 seconds)
141: [06:18:50] * janneklouman-- has joined #silverstripe
142: [06:21:20] * spronk quit (Quit: I may need a longer sleep timer...)
143: [06:23:24] * janneklouman-- quit (Ping timeout: 260 seconds)
144: [06:26:52] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
145: [06:27:41] * Shrike_Finland has joined #silverstripe
146: [06:28:56] * Admonish quit (Ping timeout: 260 seconds)
147: [06:30:45] <ss-helper> Re: [silverstripe-dev] Re: Giving a greater Role to Silverstripe Sake - https://groups.google.com/d/msg/silverstripe-dev/p312W8Qh2fM/g0dzEK9PBwAJ
148: [06:33:36] * pweh quit (Ping timeout: 260 seconds)
149: [06:42:17] * kinglozzer has joined #silverstripe
150: [06:42:29] * Admonish has joined #silverstripe
151: [06:42:41] * helenclarko quit (Ping timeout: 268 seconds)
152: [06:47:41] * kinglozzer quit (Ping timeout: 258 seconds)
153: [06:50:01] * micmania1 has joined #silverstripe
154: [07:00:16] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
155: [07:01:50] * micmania1 quit (Quit: micmania1)
156: [07:06:34] * cupcake quit (Quit: Page closed)
157: [07:07:56] * pweh has joined #silverstripe
158: [07:11:30] * Stomach has joined #silverstripe
159: [07:29:12] * UncleCheese has joined #silverstripe
160: [07:30:00] * wmk has joined #silverstripe
161: [07:43:35] * kinglozzer has joined #silverstripe
162: [07:48:50] * kinglozzer quit (Ping timeout: 252 seconds)
163: [07:50:00] * janneklouman-- has joined #silverstripe
164: [07:54:45] * janneklouman-- quit (Ping timeout: 248 seconds)
165: [08:02:25] * darianno has joined #silverstripe
166: [08:03:01] * pweh has left #silverstripe
167: [08:11:16] * Admonish quit (Ping timeout: 250 seconds)
168: [08:24:20] * Azure quit (Read error: Connection reset by peer)
169: [08:25:50] * Azure has joined #silverstripe
170: [08:25:51] * janneklouman-- has joined #silverstripe
171: [08:34:34] * Stomach quit (Quit: zzz)
172: [08:34:59] * Stomach has joined #silverstripe
173: [08:35:26] * Stomach quit (Client Quit)
174: [08:35:43] * Shrike_Finland quit (Quit: Leaving.)
175: [08:43:52] * janneklouman-- quit (Ping timeout: 260 seconds)
176: [08:44:46] * kinglozzer has joined #silverstripe
177: [08:45:56] * DanaeNZ has joined #silverstripe
178: [08:50:20] * DanaeNZ quit (Ping timeout: 260 seconds)
179: [08:50:20] * kinglozzer quit (Ping timeout: 256 seconds)
180: [08:56:19] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
181: [09:00:58] <ss-helper> Re: [silverstripe-dev] Re: Giving a greater Role to Silverstripe Sake - https://groups.google.com/d/msg/silverstripe-dev/p312W8Qh2fM/szCiCC1YBwAJ
182: [09:03:11] * kinglozzer has joined #silverstripe
183: [09:04:20] * janneklouman-- has joined #silverstripe
184: [09:10:22] * Shrike_Finland has joined #silverstripe
185: [09:15:59] <ss-helper> AW: [silverstripe-dev] Re: Giving a greater Role to Silverstripe Sake - https://groups.google.com/d/msg/silverstripe-dev/p312W8Qh2fM/BVyNWM1YBwAJ
186: [09:17:46] * Azure|dc has joined #silverstripe
187: [09:17:57] * Azure quit (Ping timeout: 248 seconds)
188: [09:20:54] <Firesphere> For anyone in NZ/Wellington, TEDxWellington 2017 has been announced https://web.facebook.com/events/239041869848526/#
189: [09:31:01] <ss-helper> Re: [silverstripe-dev] Re: Giving a greater Role to Silverstripe Sake - https://groups.google.com/d/msg/silverstripe-dev/p312W8Qh2fM/kKYelulZBwAJ
190: [09:55:59] * agent44 has joined #silverstripe
191: [09:56:36] * agent44 quit (Client Quit)
192: [10:04:45] * agent44 has joined #silverstripe
193: [10:05:10] * darjusit has joined #silverstripe
194: [10:16:04] <ss-helper> Re: Giving a greater Role to Silverstripe Sake - https://groups.google.com/d/msg/silverstripe-dev/p312W8Qh2fM/iK46hopcBwAJ
195: [10:19:23] * cloph_away is now known as cloph
196: [10:27:47] * marvanni has joined #silverstripe
197: [10:28:05] * Kapdap quit (Quit: Lost terminal)
198: [10:31:01] * marvanni quit (Read error: Connection reset by peer)
199: [10:31:05] <ss-helper> Re: [silverstripe-dev] Re: Giving a greater Role to Silverstripe Sake - https://groups.google.com/d/msg/silverstripe-dev/p312W8Qh2fM/-Z-Cv7BcBwAJ
200: [10:31:14] * marvanni has joined #silverstripe
201: [10:37:30] * marvanni quit (Read error: Connection reset by peer)
202: [10:40:07] * Kapdap has joined #silverstripe
203: [10:41:35] * marvanni has joined #silverstripe
204: [10:52:22] * marvanni quit (Read error: Connection reset by peer)
205: [10:59:11] * marvanni has joined #silverstripe
206: [11:06:29] * Shrike_Finland quit (Quit: Leaving.)
207: [11:12:24] * marvanni quit (Read error: Connection reset by peer)
208: [11:12:38] * marvanni has joined #silverstripe
209: [11:15:55] * marvanni quit (Read error: Connection reset by peer)
210: [11:45:25] * micmania1 has joined #silverstripe
211: [11:55:24] * micmania1 quit (Quit: micmania1)
212: [12:24:05] * Shrike_Finland has joined #silverstripe
213: [12:41:50] * NETim has joined #silverstripe
214: [12:42:20] <NETim> Morning, looking for a way to get an add new option for a has_one relation.
215: [12:47:26] * DanaeNZ has joined #silverstripe
216: [12:52:08] * DanaeNZ quit (Ping timeout: 260 seconds)
217: [13:01:59] * DanaeNZ has joined #silverstripe
218: [13:12:52] * darianno quit (Ping timeout: 250 seconds)
219: [13:23:01] * UndefinedOffset has joined #silverstripe
220: [13:29:30] * Shrike_Finland quit (Quit: Leaving.)
221: [13:57:14] * RedDevil has joined #silverstripe
222: [13:57:14] <ss-helper> RedDevil: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
223: [13:57:40] <RedDevil> Good day to all of you
224: [13:58:03] <RedDevil> I have a question regarding scope levels inside a <% loop %>
225: [13:58:46] <kinglozzer> RedDevil: Fire away
226: [13:59:01] <RedDevil> For some unknown reason I cant seem to access the current level of a scope. I have an argument of a shortcode $ClassGroup. I use the shortcode two times on the same page.
227: [13:59:13] <wmk> NETim, you have a has_one / has_many and want to add a new DO?
228: [13:59:25] <wmk> e.g. like Address 1:n Country and you want to add a new Country DO on the fly?
229: [13:59:34] <RedDevil> with $top.ClassGroup i get the top level. With $Up.ClassGroup I go a level up
230: [13:59:49] <RedDevil> what is the way to access current level as $ClassGroup alone doesnt seem to work
231: [14:00:31] <kinglozzer> RedDevil: You could try $Me.ClassGroup, but that should be the same as $ClassGroup
232: [14:00:42] <kinglozzer> That is the correct way to access it... can you paste your code?
233: [14:00:44] <kinglozzer> !paste RedDevil
234: [14:00:44] <ss-helper> RedDevil: Please paste your code using something like http://kopy.io/ or http://www.sspaste.com/ or https://gist.github.com/ and then paste the link here.
235: [14:01:19] <RedDevil> which code? the view code? or the shortcode extension code? or just both?
236: [14:01:26] <NETim> wmk, yep. That's it.
237: [14:01:47] <wmk> there's a addnew button for e.g. a dropdown field
238: [14:01:51] <RedDevil> Ye saw $Me but like u said. Worked like $ClassGroup
239: [14:02:29] <wmk> NETim, https://github.com/sheadawson/silverstripe-quickaddnew
240: [14:02:32] <kinglozzer> RedDevil: Both probably
241: [14:02:50] <NETim> I had seen that after asking. Is it any good?
242: [14:03:43] <RedDevil> https://gist.github.com/anonymous/f442787afc3b0514d8609e3a216efe1f
243: [14:04:06] <RedDevil> Is it because I return a controller, that i can normally access the subclass. Does it need to be a DataList or ArrayList
244: [14:04:10] <RedDevil> or something?
245: [14:05:49] <wmk> NETim, i used it some times, yes
246: [14:05:59] <wmk> for stuff where you don't need a modeladmin e.g.
247: [14:06:00] <NETim> cool. Thanks.
248: [14:06:03] <wmk> like Countries
249: [14:07:55] <kinglozzer> RedDevil: I'm very confused about how that works :P
250: [14:09:01] * agent44 has left #silverstripe
251: [14:09:54] <RedDevil> The shortcode is used to render a subset of items out of the database. They get a ClassGroup. when i use it like [Itemblocks, classgroupss="something", size="3"] it renders the items with classgroup something
252: [14:10:53] <kinglozzer> So your problem is that the $ClassGroup in <% if $Up.ClassGroupss = $ClassGroup %> is empty?
253: [14:11:07] <kinglozzer> Where should $ClassGroup come from?
254: [14:12:25] <RedDevil> Column from the database. Every ItemBlock has a classgroup upon creation
255: [14:12:42] <RedDevil> well. $Up works. but it goes a level up. And I dont want that
256: [14:12:53] * agent44 has joined #silverstripe
257: [14:12:57] <RedDevil> with $Up it works for first shortcode.
258: [14:13:04] <RedDevil> but with the second one it goes up to the first
259: [14:13:20] <RedDevil> so I am looking for a way to not use $Up, or $Top
260: [14:13:40] <RedDevil> But that it takes the current scope. $Me would be the way I guess but that return empty
261: [14:14:58] <RedDevil> could that be because I return a controller? and that it maybe needs to be an arraylist or datalist or something?
262: [14:15:08] <kinglozzer> RedDevil: Does your controller have a getItemBlocks() function or something?
263: [14:17:19] <kinglozzer> Also, your two shortcodes: one is "ClassGroupss" and one is "ClassGroups", but the shortcode handler doesn't use either of those...
264: [14:18:55] <RedDevil> sorry. typo. I use [ItemBlocks, classgroup=
265: [14:19:06] <RedDevil> that is the isset($arguments['classgroup']
266: [14:20:14] <RedDevil> And no. No getItemBlocks function. In the loop it gets all the itemblocks for that page. I want to skip the ones where the $ClassGroup != $ClassGroupss
267: [14:20:54] <kinglozzer> And $ClassGroup is the one that's empty? Not $ClassGroupss
268: [14:21:26] <RedDevil> Wait I am going to rename them for better communication. just a sec
269: [14:21:32] <kinglozzer> Good idea :D
270: [14:23:34] <RedDevil> https://gist.github.com/anonymous/9d1452418c63db8df1c8e111e31e4a57
271: [14:24:05] <RedDevil> think this is easier. the $Up.DatabaseClass is the one that is not empty. But access the wrong scope level
272: [14:24:16] <RedDevil> Because I cant find a way to access the current level
273: [14:24:52] <RedDevil> $DatabaseClass is never empty. That is for the current ItemBlock in the loop the Class that is given in the database
274: [14:26:08] <RedDevil> There are not many items so it loops two times through all the items. The first time I want the shortcode to only render the classgroup="something". Second time classgroup="other"
275: [14:26:44] <RedDevil> But with $Up Or $Top it is both times something because it goes to the top level or one level above
276: [14:27:14] <RedDevil> But i just dont understand why $Me or just $DatabaseClass doesnt work. For what I have read that would be the way to go right?
277: [14:28:11] <kinglozzer> Just $DatabaseClass should work
278: [14:28:19] <kinglozzer> But it only works the first time?
279: [14:30:32] <RedDevil> With just $DatabaseClass ? no that doesn't work at all. Thats what strange. with top and up its there. but otherwise it returns empty
280: [14:30:44] * r5v3rb has joined #silverstripe
281: [14:31:30] <kinglozzer> RedDevil: is $DatabaseClass set on the page, or in the individual item block?
282: [14:32:04] <r5v3rb> kinglozzer:
283: [14:32:11] <kinglozzer> r5v3rb:
284: [14:32:19] <kinglozzer> \o
285: [14:32:20] <kinglozzer> :P
286: [14:32:21] <r5v3rb> you not been blown away yet?
287: [14:32:36] <kinglozzer> Nah, it hasn't been too bad here really
288: [14:32:42] <kinglozzer> How's it down your way?
289: [14:33:16] <r5v3rb> very windy, loads of rain (torrential at times) but no real obvious signs of damage - so we got off lucky
290: [14:34:00] <RedDevil> I think on the page? the shortcode is set in the main-content field of the page. [ItemBlocks, classgroup="something"]
291: [14:34:31] <kinglozzer> Ah that's good, it was a bit windy this morning but definitely nowhere near as bad as the rest of the country r5v3rb
292: [14:34:54] <r5v3rb> hopefully the worst has passed
293: [14:35:25] <r5v3rb> jeez - just looked up bandwidth stats and one of my clients uses 395gb
294: [14:35:59] <kinglozzer> RedDevil: Can you paste the ItemBlock class?
295: [14:36:30] <RedDevil> https://gist.github.com/anonymous/4e4fae57a5e15274d5cec89260f52a71
296: [14:37:36] * DimiStripe has joined #silverstripe
297: [14:39:03] <kinglozzer> RedDevil: Try swapping $itemblock = Controller::curr(); for $itemblock = Controller::curr()->data();
298: [14:39:12] <kinglozzer> Probably won't make any difference, but worth a try
299: [14:39:43] <RedDevil> what would it do if it worked?
300: [14:40:16] <kinglozzer> RedDevil: Currently $itemblock is the controller, after that change $itemblock will be the current page
301: [14:41:14] <RedDevil> mm oke. but didnt work. $DatabaseClass is still empty then
302: [14:41:40] <RedDevil> where does $Top and $Up would get it from. Is there a way to print_r where that comes from or something?
303: [14:41:46] <RedDevil> still kinda new to this
304: [14:42:28] <kinglozzer> $Top and $Up would both get it from the Page I think. Can you paste the page class too?
305: [14:48:48] <RedDevil> https://gist.github.com/anonymous/fd09ade107038de9c6c030012622ad6f
306: [14:48:59] <RedDevil> bear with me. is a lot of rubbish didnt get to refactor yet
307: [14:56:00] <kinglozzer> RedDevil: So everything works when looping, except for $DatabaseClass? Or are all of the variables empty?
308: [14:58:40] <RedDevil> they are all apparently empty. But can access all of them with $Up or $Top, so they are somewhere right?
309: [14:59:32] <r5v3rb> ugh, do I use multi page PDF’s as the driving force for template layers or multiple individual PDF’s thats the question!
310: [14:59:32] <RedDevil> can i print out the entire page controller in a way? I tried ?debug and ?debug_request but that doesnt return the thing I need
311: [15:00:35] <kinglozzer> RedDevil: So $ItemImage doesn't work, but $Up.ItemImage does?
312: [15:02:49] <RedDevil> $ItemImage is different. Because that is coming from the current item in db. Is an imagefield where it gets it from
313: [15:02:51] * cupcake has joined #silverstripe
314: [15:03:13] <kinglozzer> RedDevil: Yes but does it work?
315: [15:03:39] * muskie9 has joined #silverstripe
316: [15:04:18] <RedDevil> yes that works. that is from the current item the loop is in
317: [15:04:51] <RedDevil> owww wait. does it think $DatabaseClass is from the current item in the loop?
318: [15:06:10] <kinglozzer> Yes
319: [15:06:31] <kinglozzer> Because $DatabaseClass is a field in ItemBlock
320: [15:06:39] <kinglozzer> (ClassGroup)
321: [15:07:12] <RedDevil> and there is no actual way to get around that? with Up and Top it accesses the shortcode arguments
322: [15:08:25] <RedDevil> I could do it an other way. For an other shortcode I've used Controller::curr()->get_by_id(). Is there a way
323: [15:08:38] <RedDevil> to instead of get_by_id, get_by_column or so?
324: [15:13:00] <kinglozzer> RedDevil: Well I'd suggest changing the naming of things - re-using the same variable names is confusing
325: [15:13:48] <kinglozzer> You could change it to only fetch the items with the "ClassGroup" you want, and loop those - rather than looping everything
326: [15:15:05] <RedDevil> so in the function ShortcodeItemBlocks, fetch there the specific items?
327: [15:15:09] <kinglozzer> yes
328: [15:17:06] <kinglozzer> RedDevil: You could try something like this: https://gist.github.com/kinglozzer/3f4861efd6b9f54401b6763fc9a9a0e8
329: [15:17:12] <RedDevil> oke. will do that than. I just find it strange there is now alternative next to Top and Up to get Current. Should be there in a way i guess
330: [15:26:37] * WilsonG has joined #silverstripe
331: [15:28:13] <WilsonG> Hi, if I have 2 forms on one page , 'SecurityID' input should have different ID's or same?
332: [15:32:40] * DanaeNZ quit (Ping timeout: 260 seconds)
333: [15:33:29] <kinglozzer> WilsonG: If it's the same form twice, it will likely have the same ID
334: [15:33:59] <WilsonG> Not the form is different
335: [15:34:23] <kinglozzer> As far as I know, the IDs are in the format of Form_FormName_SecurityID
336: [15:34:29] <kinglozzer> Unless you're using an old version of SilverStripe?
337: [15:34:34] <r5v3rb> kinglozzer: two questions - one entwine - wheer can I call a function - is it best in onmatch? second do you know much about sortable from jquery ui?
338: [15:34:44] <r5v3rb> where*
339: [15:35:22] <WilsonG> kinglozzer: 3.4 , ok thanks for info.
340: [15:35:44] <kinglozzer> r5v3rb: Depends on what the function is doing really. No, not really :/
341: [15:36:05] <kinglozzer> onmatch is usually fine if it's "setting up" or something
342: [15:36:37] <kinglozzer> WilsonG: The IDs of the inputs should be different, but the value should be the same I think
343: [15:37:04] <RedDevil> kinglozzer: I would do: <% loop data %>. How would I access the content then?
344: [15:37:17] <r5v3rb> hmm, okay the function is adding an item to a canvas that is already present, but I get an error… I’ll keep digging. The sortable is that if I drag an item out of the bounds for the list it gets removed when it should just pop back in weird!
345: [15:37:24] <kinglozzer> RedDevil: No, you'd do <% loop $ItemBlocks %>
346: [15:38:00] <kinglozzer> r5v3rb: Goodness knows. Our version of jQuery UI is ancient too, so it could just be a bug in jQuery UI that has been fixed upstream years ago
347: [15:38:22] <r5v3rb> kinglozzer: that is not what i want to hear
348: [15:38:22] <kinglozzer> r5v3rb: There's also 'onadd' you could try
349: [15:38:36] <WilsonG> kinglozzer: I was talking about SecurityID value , it should be the same?
350: [15:38:43] <kinglozzer> WilsonG: Yes, it should be
351: [15:38:48] <r5v3rb> surely its used in the sitetree drag/drop ordering? no?
352: [15:38:56] <WilsonG> kinglozzer: Thanks.
353: [15:39:23] <kinglozzer> r5v3rb: Actually I don't think it is
354: [15:39:31] <kinglozzer> That's "JSTree" I think
355: [15:39:40] <kinglozzer> Which is even more ancient :P
356: [15:39:44] <r5v3rb> omg!
357: [15:39:49] <r5v3rb> help!
358: [15:39:53] <r5v3rb> let me out of here
359: [15:39:58] <kinglozzer> I think we're using like 0.4-beta, and the current stable is like version 4... :'(
360: [15:42:05] <r5v3rb> sheesh!
361: [15:43:06] <kinglozzer> https://github.com/silverstripe/silverstripe-framework/blob/3.5/thirdparty/jstree/jquery.jstree.js#L2
362: [15:43:13] <kinglozzer> 1.0-rc3 D:
363: [15:43:47] <kinglozzer> r5v3rb: jQuery UI is on the list of things that should be updated for 4... not that that helps you much right now
364: [15:43:50] <r5v3rb> lmao, keeping up to date with those packages I see...
365: [15:43:58] <kinglozzer> That's what the ticket about dropping IE10 support is about I think
366: [15:45:11] <RedDevil> kinglozzer: I think the last question. the arraydata. How can i access the property size for example?
367: [15:45:38] <kinglozzer> RedDevil: $Size is available at the top-level. If you're inside the loop, you'll need to use $Up.Size
368: [15:45:53] <kinglozzer> That ArrayData is the "top-level" scope
369: [15:49:20] <RedDevil> Many many thanks!!. works like a charm :)
370: [15:51:12] <cupcake> is there a way when u have a shortcode to know the object holding that shortcode?
371: [15:51:53] * DimiStripe quit (Quit: DimiStripe)
372: [16:07:07] <wmk> cupcake, somehow, yes
373: [16:07:19] <cupcake> how wmk?
374: [16:07:38] <wmk> i once had a shortcode with shortcodable that should insert a gallery related to the current page
375: [16:07:52] <wmk> are you using shortcodable in htmleditor?
376: [16:08:42] <wmk> or what are you trying to do?
377: [16:09:13] <wmk> WHEN should it know it? on rendering? or when you add it?
378: [16:09:29] <wmk> is the page the page called in the URL or a page looped over?
379: [16:10:02] <cupcake> ShortcodeParser im using
380: [16:10:24] <cupcake> tags with format [ flag, country='us']
381: [16:10:26] <cupcake> example
382: [16:10:37] <wmk> and it should e.g. exclude the current page?
383: [16:10:46] <cupcake> when rendering it should know and the page is being looped over
384: [16:11:04] <cupcake> no not neccessarily
385: [16:11:24] <wmk> $currentPage = Director::get_current_page();
386: [16:11:47] <wmk> this is what i have to get the current page for exclusion
387: [16:11:51] <cupcake> basically the shortcode works fine when on the current page
388: [16:12:08] <cupcake> because the shortcode checks if the current page is instanceof this pagetype
389: [16:12:09] <cupcake> however
390: [16:12:15] <cupcake> when the content of that page
391: [16:12:23] <cupcake> is loaded somewhere else as a summary
392: [16:12:35] <cupcake> the current page is not instance of the previous pagetype
393: [16:12:39] <cupcake> so it doesnt work
394: [16:12:39] <wmk> have to run... cu
395: [16:12:50] <wmk> see that code example above... maybe it helps you
396: [16:13:28] <cupcake> i guess the only solution is to add parameters to the shortcode
397: [16:13:52] <wmk> possible
398: [16:13:53] <kinglozzer> cupcake: Yeah, you don't get any of that context inside a shortcode :/
399: [16:14:22] <wmk> i used in shortcodable something like this: public static function get_shortcodable_records() {
400: [16:14:22] <wmk> $currentPage = $_SESSION['CMSMain']['currentPage'];
401: [16:14:43] <wmk> so i could filter e.g. pics that are related to the current page
402: [16:14:51] * RedDevil quit (Ping timeout: 260 seconds)
403: [16:15:06] <wmk> https://github.com/sheadawson/silverstripe-shortcodable cupcake
404: [16:15:13] * wmk quit (Quit: Leaving)
405: [16:15:49] <cupcake> thanks kinglozzer
406: [16:16:54] <kinglozzer> cupcake: I can't think of any way you can get it either...
407: [16:17:42] <kinglozzer> I think your idea of adding extra arguments is probably the best solution, perhaps you could do it onBeforeWrite() if the user forgets to do it
408: [16:20:41] * cupcake quit (Ping timeout: 260 seconds)
409: [16:26:03] * DimiStripe has joined #silverstripe
410: [16:38:46] <r5v3rb> ugh, why does this page not always load via xhr - sometimes it loads the dataobject first time others just nothing
411: [16:50:25] <ss-helper> Re: [silverstripe-dev] Re: Giving a greater Role to Silverstripe Sake - https://groups.google.com/d/msg/silverstripe-dev/p312W8Qh2fM/CPriV20OBwAJ
412: [16:50:25] <ss-helper> Re: Giving a greater Role to Silverstripe Sake - https://groups.google.com/d/msg/silverstripe-dev/p312W8Qh2fM/vHveO2kOBwAJ
413: [16:50:25] <ss-helper> Re: Giving a greater Role to Silverstripe Sake - https://groups.google.com/d/msg/silverstripe-dev/p312W8Qh2fM/gIxtt_oNBwAJ
414: [16:50:25] <ss-helper> Giving a greater Role to Silverstripe Sake - https://groups.google.com/d/msg/silverstripe-dev/p312W8Qh2fM/y7aMw2cNBwAJ
415: [16:50:25] <ss-helper> Re: [silverstripe-dev] Member Profile extendable area - https://groups.google.com/d/msg/silverstripe-dev/mD1GzF5aZH0/C_YRCdVGBgAJ
416: [16:50:26] <ss-helper> Re: [silverstripe-dev] Member Profile extendable area - https://groups.google.com/d/msg/silverstripe-dev/mD1GzF5aZH0/HdBINSNCBgAJ
417: [16:50:26] <ss-helper> Re: [silverstripe-dev] Re: Browser support for SilverStripe 4.x - https://groups.google.com/d/msg/silverstripe-dev/ApaaWnlaHpM/qcakdTEEBgAJ
418: [16:50:26] <ss-helper> Re: [silverstripe-dev] Re: Replace SilverStripe Config - https://groups.google.com/d/msg/silverstripe-dev/q5khashNiuY/TEAzl9J5BQAJ
419: [16:50:27] <ss-helper> Re: [silverstripe-dev] Re: Replace SilverStripe Config - https://groups.google.com/d/msg/silverstripe-dev/q5khashNiuY/Bgc1wGR5BQAJ
420: [17:01:18] * agent44 quit (Quit: zzz)
421: [17:01:31] * agent44 has joined #silverstripe
422: [17:01:32] * agent44 quit (Client Quit)
423: [17:06:05] * r5v3rb wonders how badly I’ll break the CMS by using a newer jquery-ui
424: [17:06:41] <r5v3rb> no errors, but list isn’t sortable if canvas loads correctly. if canvas bails sortable list works!
425: [17:07:28] <r5v3rb> also getting a few of these: Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user’s experience.
426: [17:28:54] * kinglozzer quit ()
427: [17:30:44] * DanaeNZ has joined #silverstripe
428: [17:31:55] * helenclarko has joined #silverstripe
429: [17:32:09] <helenclarko> hey all
430: [17:35:04] * DanaeNZ quit (Ping timeout: 256 seconds)
431: [17:38:45] * NETim quit (Ping timeout: 248 seconds)
432: [17:53:54] * Admonish has joined #silverstripe
433: [18:05:27] <ss-helper> AW: [silverstripe-dev] Re: Giving a greater Role to Silverstripe Sake - https://groups.google.com/d/msg/silverstripe-dev/p312W8Qh2fM/BVyNWM1YBwAJ
434: [18:22:47] * janneklouman-- quit (Ping timeout: 256 seconds)
435: [18:32:09] * r5v3rb quit (Quit: r5v3rb)
436: [18:38:54] * Admonish quit (Ping timeout: 250 seconds)
437: [18:48:52] * Stomach has joined #silverstripe
438: [19:00:50] * Admonish has joined #silverstripe
439: [19:02:30] * gelignite has joined #silverstripe
440: [19:04:21] * UncleCheese has joined #silverstripe
441: [19:08:51] * Admonish quit (Ping timeout: 268 seconds)
442: [19:15:15] * Admonish has joined #silverstripe
443: [19:22:06] * janneklouman-- has joined #silverstripe
444: [19:30:26] * janneklouman-- quit (Ping timeout: 268 seconds)
445: [19:34:27] * Nightjar has joined #silverstripe
446: [19:34:43] <Nightjar> darjusit, was it you looking for help on routing a few days ago?
447: [19:36:21] <Nightjar> If so, did you manage to get the problem solved? When using framework only, you must set up all routes manually - https://docs.silverstripe.org/en/3.4/developer_guides/controllers/routing/
448: [19:36:39] * janneklouman-- has joined #silverstripe
449: [19:41:17] <darjusit> yes I sorted out :)
450: [19:41:31] <Nightjar> mm, yeh. https://silverstripe.logged.nz/index.php?date=2016-11-13#log_1909631 - seems like the docs site was having issues then. Hope you have it all working nicely now!
451: [19:41:48] <Nightjar> Nice work Firesphere :)
452: [19:42:05] <Nightjar> darjusit, good to hear :)
453: [19:43:19] <darjusit> yes main problem is that if you have for example 'lt': 'LanguagesController' must be last
454: [19:43:28] <darjusit> one thing I am lacking in SS
455: [19:43:52] <darjusit> is to direct url to controller -> action like in other framework
456: [19:44:11] <Nightjar> darjusit, ah... I think there was a patch for that.
457: [19:44:26] <darjusit> maybe but no docs for that
458: [19:44:31] <Nightjar> True.
459: [19:44:39] <Nightjar> Code is docs! xD
460: [19:47:13] * Admonish quit (Ping timeout: 256 seconds)
461: [19:47:25] <Nightjar> darjusit, I think the closest thing that has always been possible is to set url directives on the controller
462: [19:48:11] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
463: [19:48:31] <darjusit> sometimes its infuriating, I love SS framework, and have some specific project and some things I cannot do it seems at first, I am in middle of project and I suddenly by mistake find out I can make it but it not well or even totaly not documenented and dude it sucks, because only because TAL i prefer SS other other :/
464: [19:50:00] <Nightjar> darjusit, config option for url_handlers has always been a thing on controllers
465: [19:50:01] <darjusit> Nightjar: yes but it sucks I made DB driven languages with framework and it would be more pretty if I could dirrect from config.php link to controller action not only controller :)
466: [19:51:10] * Stomach quit (Ping timeout: 252 seconds)
467: [19:51:28] <Nightjar> so it is still always handleRequest that is the entry point for a Controller (via request) https://github.com/silverstripe/silverstripe-framework/blob/3.4/control/Director.php#L385
468: [19:51:59] <Nightjar> but handleRequest will read and obey any url_handlers set in it's configuration (including of course private static $url_handlers = [...])
469: [19:52:15] <Nightjar> which is where you flick a particular URL directly into an action
470: [19:52:18] * DanaeNZ has joined #silverstripe
471: [19:52:54] <darjusit> yes but I dont want to mess in config ant then mess in url handlers if I could do all in config :)
472: [19:53:30] <darjusit> but whatever :)
473: [19:53:32] <Nightjar> https://docs.silverstripe.org/en/3.4/developer_guides/controllers/routing/#url-handlers
474: [19:53:46] <Nightjar> darjusit, url_handlers is in config ;)
475: [19:53:48] <darjusit> maybe in 4v routes will be upgraded :)
476: [19:54:04] <Nightjar> It's fair it's not the _same_ config option, but it is there.
477: [19:54:12] <darjusit> I mean _config.php
478: [19:54:16] * Stomach has joined #silverstripe
479: [19:54:30] <Nightjar> oh, you're not using _config yaml?
480: [19:54:35] <darjusit> nop
481: [19:54:51] <darjusit> in php I can make DB driven languages
482: [19:55:05] <Nightjar> I see, you're loading routes from the database?
483: [19:56:17] <Nightjar> If so, although not ideal, you could plug a little logic around the route and extend the definition to include an action (via eg a . character)
484: [19:56:43] <Nightjar> /my/route/$thing: ThatController.ActionMethod
485: [19:57:33] <darjusit> yes and then on dev build it automaticlly adding new language fields in all project, because I needed to make cms from scratch SS cms not liked by client, I made own cms with boostrap 3 and reactjs bought template
486: [19:57:35] <Nightjar> so then you could split on . and create the first part as the route, and second part in Config::inst()->update
487: [19:57:50] <Nightjar> cool
488: [19:58:05] <Nightjar> Have you seen the preview for SS4? It uses bootstrap and react
489: [19:59:28] <darjusit> I saw and I sadly disappointed it still relays heavily js :/
490: [20:00:24] <ss-helper> Silverstripe Translatable can not create translation - http://stackoverflow.com/questions/40750460/silverstripe-translatable-can-not-create-translation
491: [20:00:37] <darjusit> but it still not stable so I am waiting on release :)
492: [20:01:35] <darjusit> campains it need for tracking history of versions in pages? :)
493: [20:02:01] <darjusit> bit dont get it purpose
494: [20:05:30] <ss-helper> Re: [silverstripe-dev] Re: Giving a greater Role to Silverstripe Sake - https://groups.google.com/d/msg/silverstripe-dev/p312W8Qh2fM/g0dzEK9PBwAJ
495: [20:15:04] * frustrated has joined #silverstripe
496: [20:15:37] <frustrated> Has anyone experienced a missing File Upload Field option on Userforms?
497: [20:16:38] <muskie9> frustrated I think you need to have secure assets installed and/or enable the field via the config iirc
498: [20:16:58] <muskie9> what version of userforms are you using
499: [20:17:23] <frustrated> I just did a fresh install of the latest version
500: [20:17:44] <muskie9> so 4.2.0?
501: [20:18:50] <frustrated> yeah
502: [20:19:59] <muskie9> check this: https://github.com/silverstripe/silverstripe-userforms/blob/4.2.0/docs/en/installation.md#file-uploads-and-security
503: [20:20:15] <muskie9> there are a few settings for the file field in userforms to take into account
504: [20:20:30] <ss-helper> Re: [silverstripe-dev] Re: Giving a greater Role to Silverstripe Sake - https://groups.google.com/d/msg/silverstripe-dev/p312W8Qh2fM/szCiCC1YBwAJ
505: [20:20:32] <frustrated> I am a buffoon. This is what I get for not reading.
506: [20:20:41] <frustrated> Thank you Muskie
507: [20:20:56] <muskie9> no problem, I only know about it cause I did the same thing a while back lol
508: [20:21:18] <frustrated> ha, then I came to the right place
509: [20:31:19] * micmania1 has joined #silverstripe
510: [20:53:19] * zippy has joined #silverstripe
511: [20:53:24] <zippy> Morning
512: [20:54:29] <helenclarko> Hey all.
513: [20:54:49] <helenclarko> Has anyone played set up cloud assets?
514: [20:55:19] <muskie9> helenclarko https://github.com/markguinn/silverstripe-cloudassets ?
515: [20:55:48] <muskie9> we have one site running https://github.com/markguinn/silverstripe-cloudassets-rackspace on production, nothing since that one project though
516: [20:57:59] <helenclarko> Yeah, I have the S3 one setup
517: [20:58:08] <helenclarko> I dont think its working though.
518: [20:58:33] <helenclarko> It requires a local copy, which defeats the purpose kinds... right?
519: [20:58:34] <muskie9> I feel like our other dev tried the S3 but it was buggy... that was longer ago though
520: [20:58:45] <muskie9> ya, that sounds right...
521: [20:59:18] <muskie9> not sure why it requires that
522: [21:00:23] <helenclarko> I know a business I previously worked for had a solution that would check and pull new files from our server and then we just used CDNrewrite to rewrite all links.
523: [21:00:46] <helenclarko> It worked, but I cant remember how it was set up.
524: [21:00:52] <muskie9> interesting
525: [21:01:16] <helenclarko> It wasnt the cleanest solution, but it worked
526: [21:03:09] <helenclarko> Just need to find what was used to upload the files to S3.
527: [21:03:37] * agent44 has joined #silverstripe
528: [21:03:59] <helenclarko> I think whenever a request was made, it would check S3 first and then fall back on the local copy. Then the S3 would download the file for later.
529: [21:04:17] <helenclarko> But I Cant remember how that was all setup.
530: [21:09:06] * helenclarko quit (Ping timeout: 268 seconds)
531: [21:16:42] <frustrated> Hey Muskie, real quick, why would the file upload field declare a jpg an invalid file?
532: [21:16:59] <frustrated> I added allowed_extensions in my yml
533: [21:19:12] <muskie9> it should allow for jpg without setting anything as it gets the allowed list from the File class's config: https://github.com/silverstripe/silverstripe-userforms/blob/4.2.0/code/model/editableformfields/EditableFileField.php#L90
534: [21:20:49] <frustrated> hmm
535: [21:20:58] <frustrated> I'll keep messing with it I guess
536: [21:29:51] * micmania1 quit (Quit: micmania1)
537: [21:31:01] * micmania1 has joined #silverstripe
538: [21:33:15] * travis-ci has joined #silverstripe
539: [21:33:16] <travis-ci> open-sausages/silverstripe-framework#983 (pulls/4.0/use-validationexceptions-in-forms - c1f8e72 : Damian Mooyman): The build has errored.
540: [21:33:16] <travis-ci> Change view : https://github.com/open-sausages/silverstripe-framework/commit/c1f8e722958a
541: [21:33:16] <travis-ci> Build details : https://travis-ci.org/open-sausages/silverstripe-framework/builds/178111028
542: [21:33:16] * travis-ci has left #silverstripe
543: [21:46:24] <DanaeNZ> does $email->setCc even work??
544: [21:50:01] * Navid has joined #silverstripe
545: [21:50:01] <ss-helper> Navid: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
546: [21:50:08] <Navid> Hi All Experts! I am stuck at creating a model form that sends ajax request to the controller/action and then displays the success/error message on the form without refreshing the page. I have created the form and it's action but when I press the submit button then it will refresh the page...
547: [21:54:48] <zippy> Navid: are you hooking the form submit event, stopping it, and then processing it with ajax?
548: [21:55:20] * spronk has joined #silverstripe
549: [21:56:35] * muskie9 quit (Ping timeout: 265 seconds)
550: [21:57:42] <Navid> zippy: Thanks for your reply.... I am creating the form in Silverstripe way i.e. registerForm(){created the form here...} and sendRegisterForm(){this is the action attached to the register button and where I am handling all the form data.}. I am unable to understand that how to call the sendRegisterFormFunction() using ajax to process the form data and send the success result back to user in silverstripe and the page will not be
551: [22:01:30] <spronk> bleh
552: [22:01:31] <spronk> learning swift..
553: [22:05:03] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
554: [22:05:32] <ss-helper> Re: [silverstripe-dev] Re: Giving a greater Role to Silverstripe Sake - https://groups.google.com/d/msg/silverstripe-dev/p312W8Qh2fM/Dz4VVax7BwAJ
555: [22:05:33] <ss-helper> Re: [silverstripe-dev] Re: Giving a greater Role to Silverstripe Sake - https://groups.google.com/d/msg/silverstripe-dev/p312W8Qh2fM/feIo3VB7BwAJ
556: [22:05:33] <ss-helper> Re: [silverstripe-dev] Re: Giving a greater Role to Silverstripe Sake - https://groups.google.com/d/msg/silverstripe-dev/p312W8Qh2fM/-Z-Cv7BcBwAJ
557: [22:05:33] <ss-helper> Re: Giving a greater Role to Silverstripe Sake - https://groups.google.com/d/msg/silverstripe-dev/p312W8Qh2fM/iK46hopcBwAJ
558: [22:05:33] <ss-helper> Re: [silverstripe-dev] Re: Giving a greater Role to Silverstripe Sake - https://groups.google.com/d/msg/silverstripe-dev/p312W8Qh2fM/kKYelulZBwAJ
559: [22:05:33] <ss-helper> Re: [silverstripe-dev] Re: Giving a greater Role to Silverstripe Sake - https://groups.google.com/d/msg/silverstripe-dev/p312W8Qh2fM/JrOdM9RJBwAJ
560: [22:05:33] <ss-helper> Re: [silverstripe-dev] Re: Giving a greater Role to Silverstripe Sake - https://groups.google.com/d/msg/silverstripe-dev/p312W8Qh2fM/M32SN1dHBwAJ
561: [22:06:22] * UndefinedOffset quit (Quit: Leaving.)
562: [22:10:19] * Admonish has joined #silverstripe
563: [22:14:10] <zippy> calm down ss-helper
564: [22:14:34] <Nightjar> ikr
565: [22:14:50] <Nightjar> fak. Busy thread is ... full of urgh.
566: [22:15:29] <Nightjar> Navid, you don't call anything out of the ordinary with ajax, you post the data to the form action, just as the form would normally.
567: [22:17:02] <zippy> ss-helper: at 12 please take a quick nap and sort yourself out, ok
568: [22:17:59] <Navid> Nightjar: Thanks but in my case. I have a register button on homepage and when I click it a jquery model window pop-up. When I fill the information on the form and click on the REGISTER button then the page refreshed and focus is on the homepage... I don't want to refresh the page on Register button press and just want to display the success/error message on the popup
569: [22:19:05] <Nightjar> Navid, this is a front end question. You need to catch the form submit action.
570: [22:19:18] <Nightjar> http://api.jquery.com/submit/
571: [22:20:36] <Navid> Nightjar: I know that I can do it by using Jquery/Ajax method but I am just confused which url path I will provide to the jQuery ajax config parameter
572: [22:21:45] <Nightjar> The form action. You're sumitting a form.
573: [22:37:06] <spronk> waaaht
574: [22:47:15] <zippy> Navid: grab the form action from the form in your javascript
575: [22:51:29] * UncleCheese has joined #silverstripe
576: [22:52:27] <Navid> zippy: I did it and is doing now.... will tell you the output success/failure in a moment
577: [22:53:36] * UncleCheese quit (Client Quit)
578: [22:58:46] * Stomach quit (Quit: zzz)
579: [22:59:48] * Stomach has joined #silverstripe
580: [23:00:01] * ss-helper quit (Remote host closed the connection)
581: [23:00:17] * ss-helper has joined #silverstripe
582: [23:05:09] <zippy> ss-helper: feel better?
583: [23:11:42] * Admonish quit (Ping timeout: 258 seconds)
584: [23:12:58] * micmania1 quit (Quit: micmania1)
585: [23:20:31] * UncleCheese has joined #silverstripe
586: [23:20:37] * janneklouman-- quit (Ping timeout: 244 seconds)
587: [23:45:03] <Navid> I have successfully created the model form and it was working fine when rendering with default form's FieldHolder template but when I am using the customized form template then is getting "Bad Request" error response against the ajax request. I checked and I am sending the form's SecurityIDs token in the ajax request as well...
588: [23:45:13] <Navid> Anyone can tell where I am doing it wrong....
589: [23:46:54] * Admonish has joined #silverstripe
590: [23:51:28] <Navid> I am getting this response "There seems to have been a technical problem. Please click the back button, refresh your browser, and try again." I know it is related with the SecurityID but don't know why it is giving as I am sending security ID in the request.
591: [23:53:05] * janneklouman-- has joined #silverstripe
592: [23:55:02] * micmania1 has joined #silverstripe
593: [23:57:33] * janneklouman-- quit (Ping timeout: 245 seconds)

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