#silverstripe IRC Log

IRC log for 19 August 2013

All timestamps are in UTC.

1: [00:01:45] <guzzlefry> It looks like it's set to the width of the original image.
2: [00:02:28] <guzzlefry> well, maybe not. It's about 10 pixels off.
3: [00:16:43] * violetina quit (Remote host closed the connection)
4: [00:27:02] * LoveDuckie quit (Ping timeout: 240 seconds)
5: [00:34:00] * UncleCheese has joined #silverstripe
6: [00:41:06] * DesignCity has joined #silverstripe
7: [00:52:23] * joelpittet has joined #silverstripe
8: [00:58:51] * zenmonkey has joined #silverstripe
9: [01:04:40] <zenmonkey> Quick question. How do you call the black CMS notice from PHP?
10: [01:11:36] * atmos quit (Quit: Page closed)
11: [01:19:28] * zenmonkey quit (Quit: Leaving)
12: [01:22:08] * atmos has joined #silverstripe
13: [01:23:05] <atmos> http://www.sspaste.com/paste/show/52117268c5a73 Can anyone tell me how to view (debug) what the actual values of [18] and [14] are?
14: [01:23:24] <ss23> When in doubt, var_dump it out!
15: [01:24:02] <ss23> atmos: var_dump($items); on line ~15 will give you all the possible info, and you can probably look at it there (though it likely won't be very easy to read)
16: [01:24:19] * Stomach quit (Quit: Leaving.)
17: [01:25:07] <atmos> ss23: thanks - I'm a bit skeptical about how this SilentOne stuff is using ordinal positions
18: [01:25:32] <ss23> But SilentOne is corporate, man! :D
19: [01:25:33] <atmos> ss23: where will it dump to?
20: [01:25:49] <ss23> atmos: Uh, standard out. If you're running in dev, like... make the erquest and it'll show up in the HTML
21: [01:25:54] <ss23> (So don't do it on live :P)
22: [01:26:05] <atmos> ss23: ah - got it ;)
23: [01:28:26] * DesignCity quit (Quit: DesignCity)
24: [01:28:58] * priithansen quit (Quit: priithansen)
25: [01:32:31] <atmos> ss23: hah - $items surely has a bunch of documents, although it's still choosing to display none :(
26: [01:32:52] <ss23> Glad I'm not doing the silentone stuff anymore :D
27: [01:35:00] <atmos> ss23: ;) what would then be done with $items? how would the template read the results of that as null?
28: [01:36:04] * Stomach has joined #silverstripe
29: [02:05:16] * Stomach quit (Quit: Leaving.)
30: [02:13:08] * Stomach has joined #silverstripe
31: [02:15:26] <ss23> I love encoding issues!
32: [02:32:27] <spronk> what like
33: [02:32:29] <spronk> utf?
34: [02:32:35] <ss23> like "help this doens't work"
35: [02:33:22] * frontage has joined #silverstripe
36: [02:33:52] <spronk> man
37: [02:33:54] <spronk> android 4
38: [02:33:55] <frontage> hey guys, has anyone had any issues with entwine refusing to be included when loading the admin section?
39: [02:34:05] <spronk> it's no better than android 2
40: [02:34:20] <ss23> frontage: Nope, what console say?
41: [02:35:03] <frontage> im just stuck on the loading screen with 22 console errors from different js libraries complaining about a lack of entwine
42: [02:35:42] <frontage> i.e. LeftAndMain.Content.js has no method 'entwine'
43: [02:35:59] <frontage> checking the source and it seems the library actually hasnt been included
44: [02:36:05] <atmos> ss23: rtrpp - I got it - was trying add 'abstract' and 'weight' and those ordinal positions were wrong - so my fix was to REMOVE ALL THE THINGS!
45: [02:36:19] <atmos> rttpp*
46: [02:38:10] <frontage> its not happening locally either, only on aws opsworks php server
47: [02:38:14] <ss23> :D
48: [02:38:18] <ss23> Yay for fixed issues
49: [02:45:54] <frontage> seems unlikely, but does entwine have any specific env requirements?
50: [03:03:09] * unsignedint quit (Ping timeout: 264 seconds)
51: [03:04:39] * maakla quit (Ping timeout: 250 seconds)
52: [03:09:27] * mdowton has joined #silverstripe
53: [03:13:00] <mdowton> Hi I have a paginated dataobject which then gets filtered by an ajax request it all works fine until I click the page link then it returns back the original paginated list how do I keep the filter set in in current view?
54: [03:14:13] * marcel_ has joined #silverstripe
55: [03:15:38] <Mayzie> ss23: It's a public channel.
56: [03:25:07] <atmos> ss23: I know you hate Silentone :P but would this be right syntax for specifying extra columns? http://www.sspaste.com/paste/show/52118eb2d4ca5 'auto-summary' and 'score' being the columns?
57: [03:25:53] <ss23> atmos: Not sure sorry. That's like, related to SilentOne itself, and I didn't read that part of the docs/play around with it to find out, sorry
58: [03:25:56] * mdowton quit ()
59: [03:26:04] <atmos> ss23: np
60: [03:27:13] <ss23> Anyone dealt with unicode characters in URLs before?
61: [03:27:33] <ss23> The gridfield stuff does a search/?search=%uXXXXX etc
62: [03:27:37] <ss23> To represent a unicode character
63: [03:27:42] <ss23> but it's never decoded on the other end
64: [03:27:49] <ss23> Just wondering what the Silverstripe haps was on that end of things
65: [03:27:53] <spronk> ss23: specifically in ss?
66: [03:28:29] <ss23> Well guess it's PHP related too
67: [03:29:47] <ss23> In essence this means that like... utf8 support in SS is near non-existent
68: [03:29:48] <ss23> Well
69: [03:29:50] <ss23> It's crap anyway
70: [03:32:01] * cloph has joined #silverstripe
71: [03:32:34] * cloph_away quit (Ping timeout: 256 seconds)
72: [03:52:19] <spronk> yeah
73: [03:52:19] <spronk> :P
74: [03:52:35] <spronk> i have major troubvle with utf8 and php
75: [04:05:32] * zippy__ quit (Ping timeout: 256 seconds)
76: [04:10:58] <atmos> ss23: felt a bit hacky - but sorted it in the end
77: [04:12:23] <ss23> Yay :D
78: [04:21:21] * frontage quit (Ping timeout: 250 seconds)
79: [04:48:39] * atmos quit (Quit: Page closed)
80: [04:57:48] * UncleCheese quit (Quit: UncleCheese)
81: [05:03:00] * UncleCheese has joined #silverstripe
82: [05:03:19] * DigNZ quit (Quit: DigNZ)
83: [05:04:40] * nickmolhoek quit (Quit: nickmolhoek)
84: [05:22:02] * joelpitt_ has joined #silverstripe
85: [05:23:27] * joelpitt_ quit (Remote host closed the connection)
86: [05:24:53] * joelpittet quit (Ping timeout: 248 seconds)
87: [05:29:38] * Jayden90 has joined #silverstripe
88: [05:31:08] * Stomach quit (Quit: Leaving.)
89: [05:48:13] * Shrike_Finland quit (Quit: Leaving.)
90: [05:48:39] * UncleCheese quit (Quit: UncleCheese)
91: [05:51:44] <wmk> g'morning
92: [05:52:58] <ss23> moin
93: [06:31:39] * Marvanni has joined #silverstripe
94: [07:04:00] * zfmf1 has joined #silverstripe
95: [07:11:40] * LoveDuckie has joined #silverstripe
96: [07:21:44] * Jayden90 quit (Quit: Jayden90)
97: [07:29:43] * priithansen has joined #silverstripe
98: [07:30:46] * ARNHOE has joined #silverstripe
99: [07:37:51] * chillu has joined #silverstripe
100: [07:47:09] * SightUnseen has joined #silverstripe
101: [07:47:10] * SightUnseen has left #silverstripe
102: [07:55:28] * NobrainerWeb has joined #silverstripe
103: [08:04:17] * kinglozzer has joined #silverstripe
104: [08:13:20] * bennettpr has joined #silverstripe
105: [08:16:47] * DigNZ has joined #silverstripe
106: [08:17:20] * DigNZ quit (Client Quit)
107: [08:17:35] * tasteslikechicke has joined #silverstripe
108: [08:18:17] * bennettpr quit (Ping timeout: 256 seconds)
109: [08:19:19] * tasteslikechicke quit (Client Quit)
110: [08:33:10] * lobarvaz has joined #silverstripe
111: [08:40:08] * Marvanni_ has joined #silverstripe
112: [08:41:58] * Marvanni quit (Ping timeout: 256 seconds)
113: [08:52:21] * jon-shape quit (Ping timeout: 264 seconds)
114: [08:53:59] * jon-shape has joined #silverstripe
115: [09:16:19] * micmania1 has joined #silverstripe
116: [09:25:19] * jen has joined #silverstripe
117: [09:25:38] <jen> hi need a help in Modleadmi nsearch implementaion
118: [09:25:43] * jen is now known as Guest52430
119: [09:25:52] <Guest52430> in admin side of silverstripe
120: [09:28:53] <Guest52430> kindly help
121: [09:29:07] <Guest52430> in Modeladmin search implementation
122: [09:35:53] * guci0 has joined #silverstripe
123: [09:35:58] <guci0> Hello World!
124: [09:38:04] * PigeonFriend has joined #silverstripe
125: [09:44:48] * zfmf1 has left #silverstripe
126: [09:55:25] <wmk> Guest52430, what kind of help?
127: [09:56:56] <micmania1> Guest52430, did you try $searchable_fields and the docs provided last week?
128: [09:59:05] * kinglozzer hates XML
129: [10:00:32] <Guest52430> actually i need a custom search
130: [10:00:40] <Guest52430> in admin side
131: [10:01:19] <Guest52430> like a keyword search which searches employee name , emplyee country , employee surname
132: [10:05:16] <kinglozzer> Yes, you can do that with $searchable_fields
133: [10:07:36] <Guest52430> how is that possible
134: [10:08:36] <Guest52430> i need a textbox named keyword and i need to type 'franco' which may be a n employer name and i have to get a list of all employes with surname 'franco'
135: [10:09:05] <Guest52430> same like i search 'australia' i need to lsit employees with country australia
136: [10:16:25] <Marvanni_> If you mean 1 field that searches multiple columns… In SS3 you might create a Component for GridField that adds a SearchField and adds the method getManipulatedData that filters on the keyword on the chosen columns...
137: [10:17:53] <Marvanni_> This is a nice collection with examples on how to create several components :
138: [10:17:54] <Marvanni_> https://github.com/ajshort/silverstripe-gridfieldextensions
139: [10:17:58] * kerosene has joined #silverstripe
140: [10:20:45] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
141: [10:21:25] * Bollig|DesignCty has joined #silverstripe
142: [10:22:18] <Guest52430> @Marvanni is ther a implemntaion example
143: [10:35:56] * openbees has joined #silverstripe
144: [10:38:25] * aragonne has joined #silverstripe
145: [10:41:36] <Marvanni_> https://github.com/ajshort/silverstripe-gridfieldextensions/blob/master/docs/en/index.md
146: [10:42:39] * jcwacky quit (Quit: jcwacky)
147: [10:52:25] * pippy_ has joined #silverstripe
148: [10:53:23] * aragonne quit (Quit: aragonne)
149: [10:53:24] <Guest52430> we have to use gridfield extesnions for this
150: [10:53:57] * pippy quit (Ping timeout: 248 seconds)
151: [10:57:06] * NobrainerWeb quit (Quit: NobrainerWeb)
152: [10:59:07] * zfmf1 has joined #silverstripe
153: [11:06:43] * NobrainerWeb has joined #silverstripe
154: [11:08:42] <ec8or> last chance to get our bundle at http://vodo.net/hplbundle
155: [11:08:51] <ec8or> check it out if you're even remotely into lovecraft :)
156: [11:11:44] * kerosene quit (Quit: if you love llamas, set them free)
157: [11:12:20] <Guest52430> please use this place for silverstripe not spam
158: [11:12:31] <Guest52430> @ec8or
159: [11:12:48] <Guest52430> kindly block these type of users if any moderator is there
160: [11:13:39] <ec8or> come on man
161: [11:14:00] <ec8or> who are you? :)
162: [11:15:51] <Guest52430> http://vodo.net/hplbundle this is no relation to silverstripe
163: [11:15:59] <Guest52430> this place is for silverstripe
164: [11:16:47] <ec8or> well it does happen that people just chat in here as well, and my silverstripe to self-promotion ratio is probably about 99 to 1 so i reckon it is not that big of a deal
165: [11:17:05] <ec8or> just saying, i've been here for a few years and i can't even see your nickname
166: [11:17:47] * guci0 quit (Ping timeout: 250 seconds)
167: [11:18:16] <Guest52430> its not a good mannere even if u r here for a long year or wat ever it amy be , to do self promotion in silverstripe forum , as many have come here for silverstripe doubts and integartion qureies
168: [11:18:22] <Guest52430> anyway leave it
169: [11:18:39] <Guest52430> lets get back to silverstripe
170: [11:19:20] <ec8or> yes let's, and while we're on it proper grammar would also be helpful :P
171: [11:20:03] <Guest52430> okay i will learn grammar , u learn manners :-P
172: [11:21:48] <Guest52430> http://www.silverstripe.org/customising-the-cms/show/23335 for cutomizing CMS in silverstripe
173: [11:31:13] * zippy__ has joined #silverstripe
174: [11:34:25] * mdowton has joined #silverstripe
175: [11:37:20] <mdowton> Anyone know the correct way to filter a dataset with PaginatedList in 3.0 ?
176: [11:39:32] * chillu quit (Quit: chillu)
177: [11:40:32] <mdowton> Ive tried this tutorial http://www.silverstripe.org/general-questions/show/16998 and I can get the correct num of pages showing but clicking the next link or page numbers returns me the original dataset no the filtered set?
178: [11:44:28] <openbees> mdowton : did u try this http://doc.silverstripe.org/framework/en/howto/pagination ?
179: [11:44:39] <kinglozzer> mdowton: What I do is filter the dataset, then pass it into an ArrayList and paginate that
180: [11:45:07] * jrthomer quit (Remote host closed the connection)
181: [11:45:54] * jrthomer has joined #silverstripe
182: [11:46:03] <Guest52430> $ins_query = "select * from employee"; $result = DB::query($ query); $returnedRecords = new ArrayList(); foreach($result as $row) { $returnedRecords->push(new ArrayData($row)); } $listing = PaginatedList::create($returnedRecords, $this->request); $listing->setPageLength(30); return $listing;
183: [11:46:43] <Guest52430> @ mdowton
184: [11:47:13] * zippy__ quit (Quit: zippy__)
185: [11:47:43] <Guest52430> $query = "select * from employee"; $result = DB::query($query); $returnedRecords = new ArrayList(); foreach($result as $row) { $returnedRecords->push(new ArrayData($row)); } $listing = PaginatedList::create($returnedRecords, $this->request); $listing->setPageLength(30); return $listing;
186: [11:48:03] <mdowton> Cheers Guest524 Ill try this out
187: [11:48:51] <Guest52430> kindly help in modeladmin search
188: [11:48:55] <Guest52430> implementation
189: [11:49:42] <Guest52430> actually i need a custom search in admin side like a keyword search which searches employee name , emplyee country , employee surname i need a textbox named keyword and i need to type 'franco' which may be a n employer name and i have to get a list of all employes with surname 'franco 'same like i search 'australia' i need to lsit employees with country australia
190: [11:49:46] * mdowton quit ()
191: [11:50:11] * mdowton has joined #silverstripe
192: [11:50:30] <Marvanni_> ss3?
193: [11:51:59] <Guest52430> yes i nSS3
194: [11:53:42] <Marvanni_> ok, then like I said, see grid field extensions on how to add custom html and how to manipulate data on a grid field thru components. as far as i know thats the way to go
195: [11:58:23] <Guest52430> ok
196: [12:02:41] <micmania1> Guest52430, check GridFieldDataManipulator.
197: [12:02:46] * micmania1 quit (Quit: Leaving)
198: [12:05:56] <ec8or> has anyone had any success running SilverStripe on the small AWS boxes?
199: [12:06:00] <ec8or> t1.micro
200: [12:06:52] <ec8or> i get some pretty awful results, reckon it should be fine with nginx at least but maybe not
201: [12:23:15] * DesignCity has joined #silverstripe
202: [12:32:37] * cloph quit (Ping timeout: 248 seconds)
203: [12:38:02] * openbees quit (Quit: Leaving)
204: [12:40:20] * chillu has joined #silverstripe
205: [12:53:48] <kinglozzer> Straw poll: if you have login credentials for a third party API, where do you store them? In _config.yml, directly in the class PHP file, or store them in the database?
206: [13:03:34] <kinglozzer> Credentials that won't change, obviously otherwise they'd be in the database
207: [13:09:32] * Guest52430 quit (Quit: Page closed)
208: [13:23:42] * Guits has joined #silverstripe
209: [13:24:19] * MrGuits quit (Read error: Connection reset by peer)
210: [13:25:28] * Xierra has joined #silverstripe
211: [13:26:03] <Xierra> Hello
212: [13:28:15] * travis-ci has joined #silverstripe
213: [13:28:15] <travis-ci> [travis-ci] chillu/silverstripe-framework#60 (pulls/group-parentid-security - abee3f2 : Ingo Schommer): The build passed.
214: [13:28:15] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-framework/compare/d69520bd7074^...abee3f258b49
215: [13:28:15] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-framework/builds/10363368
216: [13:28:15] * travis-ci has left #silverstripe
217: [13:32:07] * gelignite has joined #silverstripe
218: [13:34:05] * Xierra quit (Ping timeout: 244 seconds)
219: [13:38:48] * NobrainerWeb quit (Quit: NobrainerWeb)
220: [13:42:43] * osterlaus has joined #silverstripe
221: [13:54:42] * swordsmanz quit (Quit: swordsmanz)
222: [13:58:45] * osterlaus quit (Quit: Leaving.)
223: [13:59:49] * travis-ci has joined #silverstripe
224: [13:59:49] <travis-ci> [travis-ci] chillu/silverstripe-framework#61 (pulls/group-parentid-security - c2812f5 : Ingo Schommer): The build passed.
225: [13:59:49] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-framework/compare/abee3f258b49...c2812f53ec74
226: [13:59:49] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-framework/builds/10364199
227: [13:59:49] * travis-ci has left #silverstripe
228: [14:12:14] * NitinShah has joined #silverstripe
229: [14:13:18] <NitinShah> I am using ss3.1 and have added a function to enable rss on my website
230: [14:14:27] <NitinShah> The problem is that the sitelink short code is not getting converted to the appropriate link
231: [14:15:25] <NitinShah> Any suggestions as to how relevant links can be displayed in rss
232: [14:22:43] * toddv has joined #silverstripe
233: [14:29:19] * toddv quit (Ping timeout: 250 seconds)
234: [14:30:06] <NitinShah> Hi anyone here?
235: [14:30:26] <NitinShah> have a question about rss and sitelink shortcode
236: [14:41:08] <Marvanni_> nasty one...
237: [14:47:20] <Marvanni_> I think you have to extends RssFeed and make sure the content parsers are parsed before displaying the Content
238: [14:48:51] <NitinShah> any suggestions on how to do so
239: [14:51:05] <Marvanni_> class myRssFeed extends RssFeed {}
240: [15:08:21] <wmk> Marvanni_, from what i see in the code the rss entry description should be parsed...
241: [15:08:58] <Marvanni_> nah it doesn't
242: [15:13:03] <wmk> do you have any code you can paste on sspaste.com ?
243: [15:13:26] <Marvanni_> im puzzling...
244: [15:22:29] * ARNHOE quit (Remote host closed the connection)
245: [15:22:40] <wmk> Marvanni_, you're right
246: [15:28:48] * violetina has joined #silverstripe
247: [15:34:00] * lobarvaz_ has joined #silverstripe
248: [15:34:01] * lobarvaz_ quit (Remote host closed the connection)
249: [15:34:01] * lobarvaz quit (Read error: Operation timed out)
250: [15:36:07] * lobarvaz has joined #silverstripe
251: [15:38:21] * catcher has joined #silverstripe
252: [15:46:12] * AlphaCactus quit (Remote host closed the connection)
253: [15:46:27] * Nivery has joined #silverstripe
254: [15:46:33] <wmk> Marvanni_, in 3.1 changelog there is something about Shortcodes. You'll have to parse your $Page->Content manually before passing to RSSFeed.
255: [15:46:43] <wmk> though i think it's a bug
256: [15:49:20] <wmk> see issue 1910
257: [15:59:33] * kinglozzer quit ()
258: [16:09:24] * NitinShah quit (Read error: Connection reset by peer)
259: [16:10:29] * AlphaCactus has joined #silverstripe
260: [16:30:56] * joelpittet has joined #silverstripe
261: [16:34:27] * joelpittet is now known as joelpittet|work
262: [16:37:25] * Marvanni has joined #silverstripe
263: [16:38:32] * Marvanni_ quit (Ping timeout: 256 seconds)
264: [16:41:56] * aragonne has joined #silverstripe
265: [16:57:47] * lobarvaz quit (Remote host closed the connection)
266: [17:04:51] * Nivery quit (Quit: Nivery)
267: [17:13:30] * aragonne quit (Quit: aragonne)
268: [17:15:20] * Marvanni quit (Quit: Marvanni)
269: [17:17:16] * Marvanni has joined #silverstripe
270: [17:18:29] * priithansen quit (Quit: priithansen)
271: [17:24:11] * PigeonFriend quit ()
272: [17:34:10] * Nivery has joined #silverstripe
273: [17:46:25] <guzzlefry> Is it a bad idea to do form validation in the action's method?
274: [17:49:50] <catcher> guzzlefry, it's better off as a form validator, but I have done some in the action in the past with no problems.
275: [17:54:01] <guzzlefry> ah okay, something to learn then.
276: [17:57:40] <catcher> guzzlefry, documentation for it isn't the greatest, but it's slick once you've got it down.
277: [17:58:09] <guzzlefry> Ah yeah, I just read the code comments for most Silverstripe things. :P
278: [18:04:11] * ARNHOE has joined #silverstripe
279: [18:09:21] * zfmf1 has left #silverstripe
280: [18:10:16] <guzzlefry> Does SilverStripe offer any type of captcha functionality?
281: [18:18:42] <AlphaCactus> yes
282: [18:19:10] <AlphaCactus> spamprotection and captcha modules. have to have 3.1 for the 3.x modules tho I think.
283: [18:19:49] <guzzlefry> oh, well that works. I'm on 3.1
284: [18:20:18] * toddv has joined #silverstripe
285: [18:21:02] <guzzlefry> hrm, EmailField::create("Email")->setTitle("Email address")->setAttribute('type', 'email') <--- Why the setAttribute?
286: [18:21:23] <guzzlefry> Also, is the field's validate() method called automatically?
287: [18:24:37] * toddv quit (Ping timeout: 250 seconds)
288: [18:31:43] * toddv has joined #silverstripe
289: [18:33:44] <toddv> Can anyone point me to some help on passing a custom validation message to UploadField? I'm extending Upload_Validator and getting my validation error returned as JSON. I just can't figure how to get the error message to display in UploadField editor. UPloadfield just displays a generic 'Forbidden' error.
290: [18:46:38] * abitran quit (Ping timeout: 246 seconds)
291: [18:48:53] * toddv quit (Ping timeout: 250 seconds)
292: [19:10:37] * SightUnseen has joined #silverstripe
293: [19:10:39] * SightUnseen has left #silverstripe
294: [19:21:37] * ARNHOE quit (Ping timeout: 246 seconds)
295: [19:27:29] * ARNHOE has joined #silverstripe
296: [19:27:43] * ARNHOE quit (Remote host closed the connection)
297: [19:58:05] * abitran has joined #silverstripe
298: [20:02:36] * DesignCity quit (Quit: DesignCity)
299: [20:05:04] * DesignCity has joined #silverstripe
300: [20:08:47] * aragonne has joined #silverstripe
301: [20:13:07] * priithansen has joined #silverstripe
302: [20:15:39] * DesignCity quit (Quit: DesignCity)
303: [20:15:49] * DigNZ has joined #silverstripe
304: [20:15:51] * DigNZ quit (Remote host closed the connection)
305: [20:16:04] * DigNZ has joined #silverstripe
306: [20:18:22] * priithansen quit (Quit: priithansen)
307: [20:29:44] * nickmolhoek has joined #silverstripe
308: [20:29:45] * nickmolhoek quit (Remote host closed the connection)
309: [20:29:59] * nickmolhoek has joined #silverstripe
310: [20:30:03] * Marvanni quit (Quit: Marvanni)
311: [20:43:04] * zippy__ has joined #silverstripe
312: [20:43:13] <zippy__> Morning
313: [20:43:59] * Nivery quit (Quit: Nivery)
314: [20:44:56] * zfmf1 has joined #silverstripe
315: [20:45:35] * Stomach has joined #silverstripe
316: [20:47:32] * Pyromanik has joined #silverstripe
317: [20:47:43] <Pyromanik> Remembering my ICQ number like a boss
318: [20:49:12] <guzzlefry> Are those servers still up? :P
319: [20:49:53] * abitran quit (Ping timeout: 268 seconds)
320: [20:57:26] <zippy__> mmm I used to have a low number
321: [20:58:10] <zippy__> yeap irc is still up!
322: [20:58:15] <zippy__> icq rather
323: [21:00:38] <Stomach> haha i had a low number, then changed it because 12 year old me added way too many weirdos
324: [21:00:46] <Stomach> :D
325: [21:01:24] <zippy__> still looks like a dozen or so people on my list use it!
326: [21:02:01] * atmos has joined #silverstripe
327: [21:02:34] <atmos> anyone know if it's possible to have group submissions (like a family submission) for userforms?
328: [21:06:23] <zippy__> how do you mean sorry?
329: [21:08:32] <atmos> zippy__: I'm thinking of the exported csv - I want to be able to have a 'family' register using the form, and each of their 'children' are granted a new line on the spreadsheet - rather than a newline for EVERY record
330: [21:09:45] <Stomach> you could set up a bunch of children fields, and set the rules that the next one displays if the previous one is filled in - it'll have to be tied to a certain number of children maximum though
331: [21:10:13] <Stomach> but thats not really solvable with userforms if you don't want extra columns
332: [21:10:25] <atmos> Stomach: that's what I was thinking
333: [21:13:21] <atmos> so basically, the .csv would have up to 5 rows (5 children) for 1 submission, rather than 1 row for 1 submission but with 5 extra columns
334: [21:14:04] * zfmf1 has left #silverstripe
335: [21:15:01] <Pyromanik> what makes 2.4 not find /home ?
336: [21:15:13] <Pyromanik> well, it finds it, redirects to /, gives 404 on /
337: [21:15:57] <Pyromanik> atmos: nope.
338: [21:16:39] <Pyromanik> Stomach: halp halp
339: [21:17:02] <Pyromanik> I have a dev site in 2.4, just copied the folder to live, now the homepage won't work.
340: [21:17:20] <atmos> Pyromanik: damn
341: [21:17:22] <Stomach> does it have more than one /home ?
342: [21:17:23] <Pyromanik> what would 24. be doing?
343: [21:17:26] <Pyromanik> Stomach: nope
344: [21:17:36] <Pyromanik> and the homepage's urlsegment is actually /home
345: [21:17:44] <Stomach> hmm
346: [21:17:46] <Pyromanik> if you visit /home it redirects to /
347: [21:17:48] <Pyromanik> as it should
348: [21:17:51] <Stomach> are the db details correct
349: [21:17:53] <Pyromanik> but then gives SS's 404 page
350: [21:17:56] * abitran has joined #silverstripe
351: [21:18:00] <Pyromanik> yep, all other pages work.
352: [21:18:08] <Stomach> wtf
353: [21:18:09] * toddv has joined #silverstripe
354: [21:18:10] <Stomach> :D
355: [21:18:11] <Pyromanik> ikr
356: [21:18:23] <Stomach> do you get any useful errors being logged?
357: [21:18:33] <Stomach> and does / work if you go there directyl?
358: [21:18:38] <Stomach> directly*
359: [21:18:42] <atmos> Pyromanik: permission? .htaccess?
360: [21:19:29] <guzzlefry> oh, I had some questions...
361: [21:19:33] <Pyromanik> atmos: direct copy from the dev.
362: [21:19:38] <guzzlefry> EmailField::create("Email")->setTitle("Email address")->setAttribute('type', 'email') <--- Why the setAttribute?
363: [21:19:40] <Stomach> the only time ive ever seen that happen was when someone set up (somehow) duplicate /home records
364: [21:19:43] <guzzlefry> Also, is the field's validate() method called automatically?
365: [21:20:04] <Pyromanik> Stomach: yeah, 2.4 would populate default records if there was no page with the url segment /home
366: [21:20:25] <atmos> Pyromanik: it can still be permissions - I had this on a upgrade recently
367: [21:20:29] <Pyromanik> eg, when someone renames (the Title) "Home" to "Welcome to BLAHSHITPRODUCTS"
368: [21:20:43] <Stomach> yeah, but we've had two '/home' urlsegments somehow
369: [21:20:44] <Pyromanik> atmos: this is a fair point, I shall check harder.
370: [21:20:52] <Pyromanik> Stomach: oh, rofl lol
371: [21:21:46] <toddv> I am trying to figure out how to pass a custom error message to the Uploadfield js upon custom validation failure? Anybody know how that is accomplished?
372: [21:23:47] <Stomach> any further information Pyromanik?
373: [21:24:01] * UncleCheese has joined #silverstripe
374: [21:24:50] * gelignite quit (Quit: http://bit.ly/nkczDT)
375: [21:25:36] <toddv> I have created a validator that extends Upload_Validator and checks the image upload's dimensions. If the image doesn't meet the dimension requirements, how can I pass the error to the uploadfield template js? The server is returning the correct error. Just need to know how to get that value displayed in ss-uploadfield-item-status.
376: [21:29:11] <toddv> Anybody? Zauberfisch? Bueller? Bueller?
377: [21:34:20] <guzzlefry> hrm, $Fields.dataFieldByName(Phone) That outputs "FieldGroup" 0.o
378: [21:34:50] <guzzlefry> It's a PhoneNumberField
379: [21:36:11] <guzzlefry> Guess I'll use a textfield instead. :P
380: [21:41:13] <Pyromanik> toddv: $form->setMessage() iirc
381: [21:41:19] <Pyromanik> err
382: [21:41:22] <Pyromanik> nowait, field
383: [21:42:01] <Pyromanik> ah, it's a session thing.
384: [21:42:04] <Pyromanik> iirc
385: [21:42:24] <Pyromanik> look through how form displays and sets things, you'll find it
386: [21:42:38] <toddv> Pyromanik: $field->setMessage()? this is still the case even though it is an uploadfield in the cms?
387: [21:42:53] <Pyromanik> toddv: good point.
388: [21:42:59] <Pyromanik> probably not
389: [21:43:30] <Pyromanik> toddv: I think you may need to make allowances for your returned message in the javascript too
390: [21:43:34] <Pyromanik> not sure
391: [21:43:35] <guzzlefry> hm
392: [21:43:56] <guzzlefry> How do I get a SelectionGroup into a form template?
393: [21:45:00] <toddv> That's what I am thinking, too. Time to learn entwine maybe?
394: [21:46:17] <guzzlefry> $Fields.dataFieldByName(Contacts) <-- this just explodes with a stack trace. :/
395: [21:48:01] <Pyromanik> toddv: perhaps. Look at how uploadfield manages things like "bad request" etc.
396: [21:48:17] <Pyromanik> guzzlefry: because not a string?
397: [21:48:26] <Pyromanik> templates?
398: [21:48:39] * pippy_ quit (Ping timeout: 246 seconds)
399: [21:49:07] <guzzlefry> Pyromanik: http://docs.silverstripe.org/framework/en/topics/forms#custom-form-templates
400: [21:50:42] * pippy has joined #silverstripe
401: [21:54:05] <guzzlefry> It looks like I'm creating the field incorrectly.
402: [21:58:25] <guzzlefry> Does anyone have an example of SelectionGroup usage?
403: [22:02:15] <AlphaCactus> like what sort of example. conceptual or code
404: [22:02:44] <guzzlefry> code
405: [22:03:04] <Pyromanik> Stomach: I found the issue... but I have no idea how to fix it :<
406: [22:03:12] <Stomach> whats happening?
407: [22:03:44] <Pyromanik> Dev site is deciding that the homepage is /home (as is normal). Live site (same code base, same DB info) is deciding that the homepage is /offers/utilities
408: [22:03:58] <Pyromanik> which is unpublished.
409: [22:04:00] <Stomach> haha
410: [22:04:08] <Stomach> awesome
411: [22:04:14] <Pyromanik> not really :<
412: [22:04:17] <Stomach> :P
413: [22:04:23] <AlphaCactus> guzzlefry: whats the difficulty exactly?" I've used it, but the code is way too complicated to just copy/paste as an example
414: [22:04:37] <Pyromanik> ss23: halp!
415: [22:04:38] <Stomach> change that page URL segment, publish it, unpublish it
416: [22:04:39] <Stomach> publish home page
417: [22:04:39] <Stomach> win?
418: [22:04:57] <Pyromanik> Stomach: tried several times. Even tried renaming homepage so it had an actual change.
419: [22:05:06] <Stomach> thats way odd
420: [22:05:36] <guzzlefry> AlphaCactus: I can't for the life of me get it to display in my form template.
421: [22:05:37] <Pyromanik> very.
422: [22:05:39] <Pyromanik> infuriating.
423: [22:05:42] <Stomach> and very hard to debug :D
424: [22:05:44] <guzzlefry> And well, the default template either. :P
425: [22:06:01] <ss23> Pyromanik: HALP
426: [22:06:16] <Stomach> is there some mismatch in the recordID vs ID matching from SiteTree -> SiteTree_Live ?
427: [22:07:20] <guzzlefry> AlphaCactus: http://bpaste.net/show/ByH6yQNaStnoUoLXySZG/ Is that at least correct?
428: [22:07:53] * mdowton quit (Quit: The computer fell asleep)
429: [22:26:25] * toddv quit (Ping timeout: 250 seconds)
430: [22:27:56] * joelpittet|work quit (Remote host closed the connection)
431: [22:28:04] <AlphaCactus> guzzlefry: if you just want to have a list of items to choose from, then use DropdownField
432: [22:29:16] <AlphaCactus> SelectionGroup allows you to have sets of fields to choose between, so its a more complicated scenario and you should pass in an array of fields.
433: [22:31:00] <guzzlefry> hrm
434: [22:31:14] <guzzlefry> Pretty sure I have to have a list of radio buttons. :/
435: [22:31:50] <ss23> Pyromanik: Do you get a redirect from /home to /offers/utilities?
436: [22:32:01] <ss23> Pyromanik: In the cases I've seen like that, it's normally to do with the dammed old page redirector messing crap up
437: [22:32:41] <AlphaCactus> guzzlefry: no problem, use OptionsetField
438: [22:33:54] <guzzlefry> oh thanks
439: [22:34:02] <guzzlefry> I feel dumb now for missing that. :P
440: [22:38:57] <Pyromanik> ss23: sounds probably
441: [22:39:00] <Pyromanik> probable*
442: [22:39:33] <ss23> I feel like this release is going to break things
443: [22:39:33] <Pyromanik> http://www.dovekeepsakes.com/solar-lighting
444: [22:39:44] <Pyromanik> how often does someone go creeping through a graveyard at night?
445: [22:39:44] <ss23> I JUST GOT THE BAD FEELINGS, THIS RELEASE GIVES ME THE HEBEDABAJEBES
446: [22:39:57] <ss23> rm: cannot remove ``...
447: [22:40:00] <ss23> SURPRISE MOTHER FUCKER
448: [22:40:04] <Pyromanik> "Oh shit, I wish I could see what keepsakes someone has put in that box..."
449: [22:41:07] <Pyromanik> ss23: I feel like it's probably something to do wiht homepage for domain
450: [22:41:17] <Pyromanik> oh shit, I'll just set the homepage for the domain!
451: [22:41:19] <Pyromanik> w00t
452: [22:41:37] <Pyromanik> FFFFFFFFFFFFFFFFFF IT IS ALREADY SET
453: [22:41:40] <ss23> lol
454: [22:41:54] <Pyromanik> FFFFF IT WAS SET ON BOTH PAGES
455: [22:42:23] <Pyromanik> FFFF MORANS using "Duplicate page" then altering the copy instead of adding a new page
456: [22:42:32] <ss23> :D
457: [22:42:35] <ss23> nice
458: [22:42:43] <spronk> lulz
459: [22:42:43] <spronk> moran
460: [22:42:59] <Pyromanik> morans go homje
461: [22:44:15] * mobiusnz has joined #silverstripe
462: [22:44:24] <Pyromanik> http://3.bp.blogspot.com/-H8PgVUIzlQw/UOhBGE4dITI/AAAAAAAAAG8/FveR5rRT5kU/s1600/morans.jpeg
463: [22:44:31] <mobiusnz> yo, is UploadField suitable for attaching files to emails and then discarding the file?
464: [22:44:38] <Pyromanik> yep
465: [22:44:47] <Pyromanik> gotta get it on the server somehow
466: [22:44:55] <mobiusnz> yeah, just not sure where it goes to
467: [22:45:08] <Pyromanik> whatever the folder is set to
468: [22:45:10] <spronk> mm
469: [22:45:13] <Pyromanik> assets/blah
470: [22:45:16] <spronk> presumably somewhere in assets
471: [22:45:17] <spronk> mm
472: [22:47:01] <mobiusnz> but how do I find out what file it was?
473: [22:47:14] <mobiusnz> when the form is submitted the file is already uploaded and forgotten about it seems
474: [22:47:18] <mobiusnz> • Attachment =
475: [22:47:18] <mobiusnz> ◦ name =
476: [22:47:18] <mobiusnz> ◦ type =
477: [22:47:18] <mobiusnz> ◦ tmp_name =
478: [22:47:18] <mobiusnz> ◦ error =4
479: [22:47:18] <mobiusnz> ◦ size =0
480: [22:48:38] <mobiusnz> the file is in assets, I can see it there
481: [22:49:07] <Stomach> so its been processed already
482: [22:49:13] <mobiusnz> wait
483: [22:49:15] <mobiusnz> I take that back
484: [22:49:18] <mobiusnz> it's not there
485: [22:49:25] <mobiusnz> that was a different file
486: [22:49:40] <mobiusnz> but anyway, when I process the form and send the email, I need to get a reference to it somehow
487: [22:49:49] <mobiusnz> and neither $form or $data seem to hold it
488: [22:49:59] <mobiusnz> I see this: http://archive.ssbits.com/add-attachments-to-silverstripe-form-submissions/
489: [22:50:12] <mobiusnz> but that is for FileField, not UploadField
490: [22:50:33] <mobiusnz> UploadField does ajaxy stuff which is nice
491: [22:50:35] <spronk> it's the same
492: [22:50:37] <spronk> iirc
493: [22:50:53] <mobiusnz> the $_FILES array is empty
494: [22:51:15] <mobiusnz> I presume because the file was uploaded via an ajax request, before the rest of the form
495: [22:51:49] <spronk> save it to a DO
496: [22:51:57] <spronk> use the DO to get fiel
497: [22:51:57] <mobiusnz> I don't want to
498: [22:52:07] <spronk> easier than figuring this out :P
499: [22:52:20] <mobiusnz> the submissions aren't supposed to be recorded
500: [22:52:26] <spronk> hmm
501: [22:52:29] <spronk> delete immediately afteR?
502: [22:52:46] <spronk> i mean, you're recording it anyway let's be honest
503: [22:52:49] <mobiusnz> yeah
504: [22:53:20] <Pyromanik> Stomach: I found the issue.
505: [22:53:26] <mobiusnz> govt have strange ideas when it comes to what constitutes storage
506: [22:53:31] <spronk> ohi
507: [22:53:34] <Stomach> what was it?
508: [22:53:34] <spronk> this is a govt site?
509: [22:53:35] <spronk> fuck that shit
510: [22:53:44] <mobiusnz> nah, but it's paid by the govt for stuff
511: [22:53:49] <spronk> hmm
512: [22:53:57] <spronk> it's all designed to work in with DOs i think
513: [22:53:59] <spronk> from looking at it
514: [22:54:28] <mobiusnz> wonder if it will work without saving the DO?
515: [22:54:48] <Pyromanik> Stomach: someone duplicated the homepage instead of creating a new "Page". So there were 2 HomePage, and because the original copy was copied (then altered), they both had "Homepage for domain" set (to the same thing).
516: [22:55:03] <guzzlefry> So for form fields like EmailField, do I have to manually call validate() or is it automatic?
517: [22:55:06] <Stomach> oh, that old chestnut
518: [22:55:14] <Stomach> (I've never seen anyone do that before)
519: [22:55:22] <Stomach> (people are retarded)
520: [22:55:27] <spronk> tbh pyro
521: [22:55:29] <spronk> that's a bug
522: [22:55:37] <spronk> dupe shouldn't be duplicating the hp for domain setting
523: [22:55:39] <Pyromanik> Stomach: unfortuantely it's how the bossman used to coach clients to make new pages (because apparently the create button is too fucking complex).
524: [22:55:42] <Stomach> yeah it totally is, you shouldnt be able to set two
525: [22:56:01] <Stomach> spronk - it should be duplicating it, but then disallowing the save and throwing an error
526: [22:56:13] <spronk> yeah
527: [22:56:14] <spronk> well
528: [22:56:15] <spronk> no
529: [22:56:21] <spronk> duplicating, then false-ing
530: [22:56:24] * DigNZ quit (Quit: DigNZ)
531: [22:56:31] <spronk> i don't like the way silverstripe handles homepages
532: [22:56:42] <Stomach> which would result in not allowing duplication with my way, which is ideal
533: [22:56:43] <spronk> mobiusnz: have a look at framework/forms/UploadField
534: [22:56:48] <Pyromanik> but it also has the side effect of shit SEO, because you end up with ALL the staff having the same name (even though the client changes the title making the page display correct info, metadata and url segment show original page's data).
535: [22:56:53] <spronk> it's got RequestHandler subclass for the upload ajax call
536: [22:56:57] <Stomach> because if you can't duplicate it exactly for some reason, then you should be able to
537: [22:57:03] <Pyromanik> so clients end up with staff/joe-bloggs2, staff/joe-bloggs3, etc.
538: [22:57:18] <spronk> mobiusnz: it only works with File objects
539: [22:57:19] <Pyromanik> it makes me mad, and I'm happy that functionality is gone from 3.0
540: [22:57:21] <Stomach> like if you do a "canCreate() {return get("thisclass")->count > 0}
541: [22:57:39] <Stomach> shouldnt be able to
542: [22:57:44] <Stomach> o_O
543: [22:57:52] <Pyromanik> spronk: no one likes the way SS handles homepages
544: [22:58:05] <Pyromanik> it's a fuck'n nightmare for folks not using English.
545: [22:58:43] <spronk> if it were me
546: [22:58:46] <spronk> i'd make it part of siteconfig
547: [22:58:50] <spronk> have a map
548: [22:59:05] <spronk> subsites can set own homepage because each have their own siteconfig
549: [22:59:09] <spronk> translated can use a map
550: [22:59:11] <spronk> etc
551: [22:59:53] <Stomach> and rename it to SitesConfig ? :D
552: [23:00:25] <zippy__> damn 128gb is just to small for a hdd!
553: [23:01:06] <spronk> i agree
554: [23:01:15] <spronk> ssd on a mba, perhaps? :P
555: [23:02:03] <zippy__> possibly
556: [23:02:09] <zippy__> 256 next time
557: [23:02:14] <zippy__> sick of fighting it
558: [23:02:52] <spronk> mm
559: [23:02:56] <spronk> wish they used standardised connectors
560: [23:02:59] * spronk le sighs
561: [23:03:08] <zippy__> you can buy upgrades for them still
562: [23:05:01] <zippy__> but it's a hassle
563: [23:11:52] <AlphaCactus> is it possible to pass parameters into a <% with
564: [23:12:15] <mobiusnz> should be
565: [23:16:05] <mobiusnz> spronk: that settles it, FileField it is
566: [23:17:28] * BPower has joined #silverstripe
567: [23:20:03] <BPower> When building a GridField, is there a way to change the "Add Page" to "Create Page"?
568: [23:20:23] <ss23> If I say "probably" is that answer suffiecent, BPower?
569: [23:20:23] <ss23> :D
570: [23:20:38] <BPower> chillu: How's your slice of Germany right now?
571: [23:20:58] <BPower> ss23: nice.
572: [23:20:58] * BPower wonders how.
573: [23:21:06] <ss23> Me too, BPower, me too...
574: [23:21:07] <chillu> BPower: Dark!
575: [23:21:33] <BPower> hah
576: [23:21:43] <BPower> kind of like my brain right now.
577: [23:21:56] <BPower> It may as well be 4am for me.
578: [23:22:06] <chillu> You're PST, right?
579: [23:22:09] <BPower> yep
580: [23:22:18] <BPower> technically I think it's PDT right now
581: [23:22:23] <chillu> Still got a bit to go then :)
582: [23:22:30] <BPower> half way there
583: [23:23:00] <BPower> chillu: do you know the answer?
584: [23:23:18] <chillu> You can create your own mysite/lang/en.yml
585: [23:23:58] <chillu> For one GF specifically, not really - other than overwriting the button getter
586: [23:24:33] <BPower> does the yml have to have a complete list, or will it work to just include the ones I want to override/
587: [23:24:35] <BPower> ?*
588: [23:25:15] <BPower> "Add" is a little confusing because some people think they're able to add an existing page to the list, when in fact, it creates a new one.
589: [23:25:40] <ss23> BPower: ++
590: [23:25:43] <ss23> I agree, it's confusing
591: [23:25:48] <ss23> In fact, I think it would be a good change for core
592: [23:26:10] <BPower> agreed
593: [23:26:32] * DigNZ has joined #silverstripe
594: [23:26:33] * DigNZ quit (Read error: Connection reset by peer)
595: [23:26:47] * DigNZ has joined #silverstripe
596: [23:26:49] <BPower> All not in favor, say "I changed my mind and I'm in favor"
597: [23:26:59] <BPower> :-P
598: [23:27:57] <marcel_> hey guys, has anyone tried installing willr's userforms ?
599: [23:29:07] * catcher quit (Quit: Leaving)
600: [23:29:35] <BPower> chillu: for now, do you know how to just turn off the button?
601: [23:31:15] * LoveDuckie quit (Ping timeout: 245 seconds)
602: [23:31:15] <chillu> Creating pages through GridField isn't a good idea anyway - you can't publish from in there, and stuff like URLSegment generation might be wonky
603: [23:31:43] <chillu> GridFieldConfig->removeComponentByType
604: [23:32:29] <chillu> And I agree that "create X" is a clearer wording for core
605: [23:33:01] <BPower> chillu: removeComponentByType('what here?'); :)
606: [23:33:53] <chillu> class name
607: [23:34:01] <chillu> GridFieldAddNewButton
608: [23:34:15] <chillu> Alright, bed time for me - good luck!
609: [23:34:20] <BPower> thanks, chillu!
610: [23:39:17] <BPower> chillu: btw, it's Components not Component for this one :)
611: [23:39:34] * aragonne has left #silverstripe
612: [23:39:41] <chillu> :) *wave
613: [23:39:44] * chillu quit (Quit: chillu)
614: [23:47:26] * zippy__ quit (Ping timeout: 240 seconds)

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