#silverstripe IRC Log

IRC log for 14 June 2013

All timestamps are in NZT (New Zealand Time).

1: [00:01:28] * popeshoe has joined #silverstripe
2: [00:02:19] * UndefinedOffset has joined #silverstripe
3: [00:03:06] * gumble quit (Ping timeout: 252 seconds)
4: [00:03:23] * gumble has joined #silverstripe
5: [00:03:35] * willmorgan has joined #silverstripe
6: [00:04:14] <willmorgan> anyone know of a table based field in 3.x that can be styled to look like this?: https://dl.dropboxusercontent.com/u/4215179/clips/2013-06-13_12-59-04.png
7: [00:06:13] * gumble quit (Read error: Operation timed out)
8: [00:20:07] * gumble has joined #silverstripe
9: [00:24:24] * gumble quit (Ping timeout: 240 seconds)
10: [00:24:41] * gumble has joined #silverstripe
11: [00:27:05] * zippy__ quit (Quit: zippy__)
12: [00:30:13] * gumble quit (Ping timeout: 252 seconds)
13: [00:35:12] * Zauberfisch|idle quit (Ping timeout: 240 seconds)
14: [00:41:10] * chillu has joined #silverstripe
15: [00:49:02] * Peavers quit (Ping timeout: 252 seconds)
16: [00:49:46] * Peavers has joined #silverstripe
17: [00:50:55] * gumble has joined #silverstripe
18: [00:59:25] * gumble quit (Ping timeout: 264 seconds)
19: [01:18:15] * Peavers quit (Ping timeout: 252 seconds)
20: [01:18:50] * Peavers has joined #silverstripe
21: [01:23:23] * Peavers quit (Ping timeout: 252 seconds)
22: [01:23:31] * shayne_ has joined #silverstripe
23: [01:23:38] * Peavers has joined #silverstripe
24: [01:24:11] * shayne_ quit (Client Quit)
25: [01:30:04] * Peavers quit (Ping timeout: 240 seconds)
26: [01:30:27] * Peavers has joined #silverstripe
27: [01:41:24] * travis-ci has joined #silverstripe
28: [01:41:24] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#290 (3.1 - 5ff69b9 : Ingo Schommer): The build passed.
29: [01:41:24] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/d42cbdd61392...5ff69b98ab62
30: [01:41:24] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/8050484
31: [01:41:24] * travis-ci has left #silverstripe
32: [01:41:26] * gumble has joined #silverstripe
33: [01:41:58] <gumble> hey, how do I post emails and phone numbers on my page without bots finding it?
34: [01:49:46] <willmorgan> don't post emails and phone numbers
35: [01:50:50] <willmorgan> you can try using JS to "complete" emails
36: [01:50:52] <willmorgan> or you could say:
37: [01:51:05] <willmorgan> Contact John Smith <firstname>@example.org
38: [01:54:24] * gumble quit (Ping timeout: 245 seconds)
39: [01:54:56] * gumble has joined #silverstripe
40: [01:58:03] * travis-ci has joined #silverstripe
41: [01:58:03] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#289 (3.1 - d42cbdd : Ingo Schommer): The build passed.
42: [01:58:03] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/9d4b8f61ca4a...d42cbdd61392
43: [01:58:03] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/8050157
44: [01:58:03] * travis-ci has left #silverstripe
45: [01:58:32] * ARNHOE has joined #silverstripe
46: [02:14:04] * Zauberfisch^idle has joined #silverstripe
47: [02:14:05] * ooboo has joined #silverstripe
48: [02:14:28] <ooboo> hello. is there any way to get rid of the HTML tags in a gridfield column for HTMLText value?
49: [02:14:48] * UncleCheese has joined #silverstripe
50: [02:16:10] <ooboo> i tried calling NoHTML on it in summary_fields but the tags still show up in the gridfield column
51: [02:31:20] <priithansen> ooboo function getMyPropObj() { return $this->obj('MyProp'); } and then add MyProp to summary fields
52: [02:31:49] <priithansen> MyPropObj to summary fields *
53: [02:33:29] * Colin[pi] quit ()
54: [02:36:06] <ooboo> priithansen: thanks!
55: [02:37:54] <priithansen> This way it will render the html, wont help if you want the html to be removed completly
56: [02:41:26] <ooboo> how would i change the title of the field so it doesn't say MyPropObj
57: [02:43:03] * samthejarvis has joined #silverstripe
58: [02:43:05] <priithansen> public static $field_labels = array('MyPropObj' => 'Title');
59: [02:44:00] <ooboo> thanks
60: [02:46:08] <samthejarvis> interesting SS2.4.7 bug here, can't find any info on it, <% include %>'s are forcing all my <% require javascript() %>'s to insert before the include template, example
61: [02:47:47] <samthejarvis> basically, the block of javascript requirements is being inserted before the content of an include as well, meaning the javascript appears in two places
62: [02:48:15] <samthejarvis> if i remove the <% include %>s from the template, all is well
63: [02:49:33] <samthejarvis> doesn't matter what the include template contains
64: [02:50:02] <samthejarvis> the template parser seems to think the start of an <% include %> signifies the end of the template and inserts the requirements, hrm
65: [02:50:42] * Shrike_Finland quit (Quit: Leaving.)
66: [02:52:51] * LoveDuckie has joined #silverstripe
67: [02:53:02] * DesignerX has joined #silverstripe
68: [02:53:10] <LoveDuckie> What would be the best way to upgrade a silverstripe installation?
69: [02:53:23] <samthejarvis> Requirements::set_write_js_to_body(false); solves this issue, but having JS at the top of the page isn't gonna cut it for this site, bugger
70: [02:53:37] * ooboo quit (Quit: Page closed)
71: [02:53:53] * hubertusanton quit (Ping timeout: 252 seconds)
72: [02:53:56] * jcwacky has joined #silverstripe
73: [02:54:02] <samthejarvis> LoveDuckie: from what version to what version? How complex is your current site?
74: [02:54:39] <LoveDuckie> not that complex. 3.0.2 to the latest stable.
75: [02:56:54] <samthejarvis> in my mind the best way would be to read the api changes from 3.0.2 to latest stable, download your installation, try replacing all files/folders except your own with the new
76: [02:57:30] <LoveDuckie> sounds arduous. OK
77: [02:57:43] <samthejarvis> if you come across any errors, perhaps with DataList, should be easy to rewrite some code
78: [02:58:18] <samthejarvis> or you can skip the whole change list reading and try it out
79: [02:58:46] <samthejarvis> it's quite likely your code is compatible with both 3.0.2 and latest
80: [02:59:00] * joelpittet has joined #silverstripe
81: [03:00:14] <samthejarvis> oh, latest stable is still 3.0.5? apologies, you should have no issues
82: [03:00:27] <DesignerX> Hi lobarvaz and samthejarvis ...if you use any 3rd patry modules, make sure they are upgraded to the latest SS release before you update your installation
83: [03:00:28] <samthejarvis> just take your own files across and dev/build?flush=all
84: [03:00:47] <samthejarvis> and what he says :D
85: [03:01:17] <DesignerX> :D .. othrwise you will end up with the latest SS but you dont have compatiable modules
86: [03:02:44] <DesignerX> also, there wont be any big changes from 3.0.2 to 3.0.5 .. unless you are after a specific fix in that update
87: [03:03:46] * tomspeak has joined #silverstripe
88: [03:05:00] * samthejarvis quit (Ping timeout: 250 seconds)
89: [03:05:46] <willmorgan> I created the table based option field in the end: https://gist.github.com/willmorgan/5774423
90: [03:06:20] * UncleCheese quit (Ping timeout: 268 seconds)
91: [03:06:31] <LoveDuckie> but would you say that it's better to download the framework package and unpack that onto the server?
92: [03:07:05] <DesignerX> LoveDuckie: I think framework & CMS ..
93: [03:08:25] <LoveDuckie> hm okay.
94: [03:10:03] <jcwacky> Is it possible to easily add the ability for User Defined Form submissions to be saved, so that users can log in and update their submission at any time?
95: [03:16:47] * Hippieee quit (Read error: Connection reset by peer)
96: [03:17:50] * Shrike_Finland has joined #silverstripe
97: [03:21:08] * ARNHOE quit (Remote host closed the connection)
98: [03:28:19] * Hippieee has joined #silverstripe
99: [03:33:45] * jcwacky quit (Quit: jcwacky)
100: [03:54:33] * tomspeak quit ()
101: [03:58:02] * shakesoda quit (Changing host)
102: [03:58:02] * shakesoda has joined #silverstripe
103: [03:58:09] * shakesoda is now known as nepgear
104: [03:59:03] * Shrike_Finland quit (Quit: Leaving.)
105: [04:00:19] * travis-ci has joined #silverstripe
106: [04:00:19] <travis-ci> [travis-ci] chillu/silverstripe-framework#6 (pulls/resize-infinite - 3b40711 : Ingo Schommer): The build passed.
107: [04:00:19] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-framework/compare/d3a4161a9458^...3b40711b9897
108: [04:00:19] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-framework/builds/8055299
109: [04:00:19] * travis-ci has left #silverstripe
110: [04:04:42] * gumble quit (Ping timeout: 260 seconds)
111: [04:08:08] * kinglozzer quit (Quit: Dying of man-flu)
112: [04:08:41] * joelpittet quit (Remote host closed the connection)
113: [04:09:21] * gumble has joined #silverstripe
114: [04:09:39] * joelpittet has joined #silverstripe
115: [04:12:34] * joelpittet quit (Remote host closed the connection)
116: [04:18:32] * sam___ has joined #silverstripe
117: [04:22:09] <sam___> hi all
118: [04:22:29] <sam___> I am facing trouble in dataobject_manager
119: [04:22:49] <sam___> in silverstripe 2.4
120: [04:31:32] * Motoservo quit (Ping timeout: 248 seconds)
121: [04:35:28] * Motoservo has joined #silverstripe
122: [04:46:43] * joelpittet has joined #silverstripe
123: [04:48:33] * gelignite has joined #silverstripe
124: [04:48:34] * lobarvaz quit (Read error: Connection reset by peer)
125: [04:49:06] <Zauberfisch^idle> sam___ you will not recieve a answer if you just say "i have a problem" its a unwritten rule in IRC channels to ask questions right away
126: [04:52:44] <willmorgan> In 3.1, is there a nice number formatting function in SS templating language?
127: [04:52:53] <willmorgan> If not I'm gonna have to use number_format :(
128: [04:53:20] * sam___ quit (Ping timeout: 250 seconds)
129: [05:00:29] * Peavers quit (Ping timeout: 276 seconds)
130: [05:05:51] * Peavers has joined #silverstripe
131: [05:06:10] * Shrike_Finland has joined #silverstripe
132: [05:12:32] * Peavers quit (Ping timeout: 252 seconds)
133: [05:13:27] * Peavers has joined #silverstripe
134: [05:14:00] * willmorgan quit (Ping timeout: 252 seconds)
135: [05:20:50] * Peavers quit (Ping timeout: 264 seconds)
136: [05:21:43] * Peavers has joined #silverstripe
137: [05:28:13] * Peavers quit (Ping timeout: 264 seconds)
138: [05:28:54] * Peavers has joined #silverstripe
139: [05:35:10] * nikrolls quit (Read error: Connection reset by peer)
140: [05:35:35] * Peavers quit (Ping timeout: 252 seconds)
141: [05:38:26] * Peavers has joined #silverstripe
142: [05:39:53] * Shrike_Finland quit (Quit: Leaving.)
143: [05:43:13] * Nivery has joined #silverstripe
144: [05:43:23] * Peavers quit (Ping timeout: 276 seconds)
145: [05:44:11] * Peavers has joined #silverstripe
146: [05:47:20] * DesignerX quit (Ping timeout: 246 seconds)
147: [05:48:27] * Peavers quit (Ping timeout: 252 seconds)
148: [05:51:24] * Peavers has joined #silverstripe
149: [05:51:35] * cloph_away is now known as cloh
150: [05:51:35] * cloh is now known as cloph
151: [06:23:41] * travis-ci has joined #silverstripe
152: [06:23:41] <travis-ci> [travis-ci] chillu/silverstripe-framework#8 (pulls/dialog-sizing - 9f600ad : Ingo Schommer): The build passed.
153: [06:23:41] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-framework/compare/39a8e13980cc...9f600ada2cbe
154: [06:23:41] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-framework/builds/8060093
155: [06:23:41] * travis-ci has left #silverstripe
156: [06:24:32] * willmorgan has joined #silverstripe
157: [06:24:51] * travis-ci has joined #silverstripe
158: [06:24:51] <travis-ci> [travis-ci] chillu/silverstripe-framework#7 (pulls/dialog-sizing - 39a8e13 : Ingo Schommer): The build passed.
159: [06:24:51] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-framework/commit/39a8e13980cc
160: [06:24:51] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-framework/builds/8059794
161: [06:24:51] * travis-ci has left #silverstripe
162: [06:26:04] * todd_ has joined #silverstripe
163: [06:28:22] * travis-ci has joined #silverstripe
164: [06:28:23] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#293 (master - bf788c4 : Ingo Schommer): The build passed.
165: [06:28:23] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/2814e435688b...bf788c4bab61
166: [06:28:23] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/8060593
167: [06:28:23] * travis-ci has left #silverstripe
168: [06:30:41] * azureKnight has joined #silverstripe
169: [06:31:09] * azureKnight_ has joined #silverstripe
170: [06:31:29] <azureKnight> Yo.
171: [06:31:58] <azureKnight> Anybody using an _ss_environment.php with their ss setup?
172: [06:34:29] <Zauberfisch^idle> yes, of course
173: [06:34:42] <azureKnight> Lol Zauberfisch^idle
174: [06:35:02] <Zauberfisch^idle> and with 3.1 you can now finally also configure the database name itself in the _ss_env
175: [06:35:10] <azureKnight> Quick question. I'm trying to use it again, just did a clean install and have everything setup on my local dev. Latest beta, but it can't seem to detect the ss_environment.php
176: [06:35:11] <Zauberfisch^idle> making it the perfect think
177: [06:35:32] <azureKnight> I noticed that ss updated to using yml files for routing, does it need to be included in there?
178: [06:35:36] * azureKnight_ quit (Ping timeout: 250 seconds)
179: [06:35:54] <Zauberfisch^idle> du you have a require_once ('conf/ConfigureFromEnv.php'); in your _config.php?
180: [06:36:11] <azureKnight> Yeah. And I put the _ss_environment.php two folders back.
181: [06:36:39] <Zauberfisch^idle> are you on a shared hosting where your webserver user might not have permission to go 2 folders back?
182: [06:36:53] <azureKnight> I'm actually on my local machine.
183: [06:37:40] <azureKnight> It was working dandy before my wipe and reinstall, but at present, it seems to not notice the file. I was wondering if that's due to the latest beta.
184: [06:39:40] <todd_> Hi all. Has anything changed recently that would affect partial caching? I updated today via composer to framework 3.1.x-dev and now I am not seeing my partial cache blocks in the silverstripe-cache/cache dir - i.e., zend_cache--cacheblockxxx
185: [06:46:38] <Zauberfisch^idle> azureKnight I just deployed one site today running laterst bleeding edge master
186: [06:46:51] <Zauberfisch^idle> so I doubt that there is a bug, worked fine for me
187: [06:46:55] <azureKnight> Ok.
188: [06:47:01] <azureKnight> I'll grab that copy and update my framework and cms
189: [06:47:30] <Zauberfisch^idle> azureKnight move the __ss_env into the root project folder and give it 777 just to be sure its not a permission or directory restriction
190: [06:47:37] <azureKnight> Will do.
191: [06:48:46] <azureKnight> Tried moving it into the project and no luck.
192: [06:48:54] <azureKnight> Probably some deprecated code on my core stuff.
193: [06:48:56] <azureKnight> I'll do a pull.
194: [06:49:28] <Zauberfisch^idle> if you need any reference, you can checkout my boilerplate
195: [06:49:30] <Zauberfisch^idle> https://github.com/Zauberfisch/silverstripe-boilerplate
196: [06:49:36] <azureKnight> Cheers.
197: [06:49:48] <Zauberfisch^idle> the readme has an example of _ss_env file
198: [06:50:11] <Zauberfisch^idle> and there is a mysite/config.php example that works for me in production
199: [06:55:04] <azureKnight> Is the framework and cms that you're using the latest git pull?
200: [06:55:11] <azureKnight> Or the one from the pre-release version of ss.org?
201: [06:55:24] <Zauberfisch^idle> azureKnight git
202: [06:55:34] <Zauberfisch^idle> 3.1 branch
203: [06:55:37] <azureKnight> K. Just took those. Maybe my smlinks are broken.
204: [06:55:39] <azureKnight> :/
205: [06:55:46] <azureKnight> One second.
206: [06:55:58] <Zauberfisch^idle> well, actually its not directly git, I use composer
207: [06:56:07] <Zauberfisch^idle> and composer checks packageist
208: [06:56:18] <Zauberfisch^idle> and takes the latest version from there, which is from git
209: [06:57:02] <azureKnight> Yeah, I need to get into using composer. Seems fun. :)
210: [07:01:18] * gumble_ has joined #silverstripe
211: [07:01:33] <Zauberfisch^idle> it certainly is
212: [07:01:40] <Zauberfisch^idle> makes live so much easyer
213: [07:02:04] * gumble_ quit (Client Quit)
214: [07:02:59] <gumble> what kind of field do I have to add to getcmsfields so that the user can add DataObjects belonging to the page in $has_many style?
215: [07:05:17] <azureKnight> I might have found a bigger issue. Doesn't seem like anything I'm doing is changing that.
216: [07:05:18] <azureKnight> Haha.
217: [07:05:40] <Zauberfisch^idle> gumble GridField
218: [07:09:38] <gumble> Zauberfisch^idle, thanks
219: [07:10:06] <gumble> and if I have a object extending DataObject in mysite/code, where can I create dataobject/editthem in the cms?
220: [07:11:38] <Zauberfisch^idle> gumble I am not able to follow
221: [07:13:33] <gumble> I have a Object which extends DataObject in my mysite/code, which should create a new DataObject kind somewhee? E.g. DataObject "Product", where do I now create/change "Products" in the cms?
222: [07:15:07] <azureKnight> Zauberfisch^idle statics still need to be private, right?
223: [07:15:36] <Zauberfisch^idle> still ... still is not the right word here
224: [07:16:02] <Zauberfisch^idle> it will be private for the rest of time I guess
225: [07:16:39] <azureKnight> Ah. Right. I meant in 3.1, I had read that, but then with the latest pull I have, it seems like it's telling me to change them back to public. It's confusing. Haha.
226: [07:17:15] <Zauberfisch^idle> azureKnight then you have pulled the wrong branch
227: [07:17:23] <Zauberfisch^idle> 3.1 and master should require private
228: [07:17:23] <azureKnight> No kidding!
229: [07:17:26] <Zauberfisch^idle> 3.0 is old
230: [07:19:19] <gumble> how do I add something for the user to edit dataobjects in the cms?
231: [07:22:45] <Zauberfisch^idle> gumble GridField
232: [07:22:56] <Zauberfisch^idle> its always GridField (:
233: [07:24:38] <Zauberfisch^idle> you can use GridField for both, DataObjecs related to Pages or other DataObjects
234: [07:24:48] <Zauberfisch^idle> but also DataObjects that are not related to anything
235: [07:25:12] <Zauberfisch^idle> if you want them to be related to a Page or a DataObject use a GridField in getCMSFields
236: [07:25:29] <Zauberfisch^idle> if you want unrelated data to be handled, use ModelAdmin
237: [07:26:12] <Zauberfisch^idle> there is a demo of model admin if you want to look at it
238: [07:26:16] <Zauberfisch^idle> http://ss3.demo.silverstripe.org/admin/test/
239: [07:26:16] <gumble> Zauberfisch^idle, ok, I think I'll quick implement GridField in a page and look if it is that
240: [07:26:18] <Zauberfisch^idle> user: admin
241: [07:26:23] <Zauberfisch^idle> pass: password
242: [07:27:13] <gumble> Zauberfisch^idle, is that a module?
243: [07:27:26] <gumble> but yes, that was about what I wanted, thanks again
244: [07:27:27] <Zauberfisch^idle> no, both GridField and ModelAdmin are core
245: [07:27:59] <Zauberfisch^idle> but I recoomend installing several modules to improve the user experience when using GridField
246: [07:28:06] <Zauberfisch^idle> https://github.com/unclecheese/silverstripe-gridfield-betterbuttons
247: [07:28:39] <Zauberfisch^idle> better buttons makes it easier to use for the admin
248: [07:29:12] <Zauberfisch^idle> https://github.com/ajshort/silverstripe-gridfieldextensions - this module gives you great extensions to gridfield such as drag&drop reordering
249: [07:30:40] <gumble> Zauberfisch^idle, thanks and the modeladmin is really exaclty what I searched, both very nice. I'll try the modules
250: [07:30:54] <gumble> oder danke tuts ja wahrscheinlich auch ;)
251: [07:31:57] * mobiusnz has joined #silverstripe
252: [07:33:28] <Zauberfisch^idle> (:
253: [07:33:49] <todd_> I am trying to send all requests for files in assets through an extension which extends Controller. What would the routes.yml rule be for that? I currently am using 'assets/$Action': 'SecureFileController' and I keep getting a response back that my assets sub-folders are actions that aren't found.
254: [07:34:48] * azureKnight quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
255: [07:41:41] * RojoD has joined #silverstripe
256: [07:41:41] * RojoD quit (Changing host)
257: [07:41:41] * RojoD has joined #silverstripe
258: [07:44:51] <todd_> Any help?
259: [07:49:41] <RojoD> for?
260: [07:53:20] * pex has joined #silverstripe
261: [08:01:08] <Zauberfisch^idle> todd_ so for example assets/foo.txt works but not assets/bar/foo.txt
262: [08:01:09] <Zauberfisch^idle> ?
263: [08:01:42] <todd_> Thanks RojoD. I am trying to send all requests for files in assets through an extension which extends Controller. What would the routes.yml rule be for that? I currently am using 'assets/$Action': 'SecureFileController' and I keep getting a response back that my assets sub-folders are actions that aren't found.
264: [08:02:05] <Zauberfisch^idle> todd_ i think first of all the route should be assets//$Action
265: [08:02:18] <Zauberfisch^idle> but I am not sure, I am not that into routes I have to admint
266: [08:04:25] <todd_> thanks for the help Zauberfisch, but it is still returning Action 'FolderName' isn't available on class SecureFileController.
267: [08:07:51] <todd_> In the original 2.4 module, the route was set as Director::add_rules(50, array(ASSETS_DIR . '/$Action' => 'SecureFileController'));
268: [08:12:09] * zfmf1 has joined #silverstripe
269: [08:13:51] * nepgear is now known as shakesoda
270: [08:14:26] * UndefinedOffset quit (Quit: Leaving.)
271: [08:18:41] * DigNZ has joined #silverstripe
272: [08:18:42] * DigNZ quit (Remote host closed the connection)
273: [08:18:56] * DigNZ has joined #silverstripe
274: [08:28:10] * nickmolhoek has joined #silverstripe
275: [08:28:10] * nickmolhoek quit (Remote host closed the connection)
276: [08:28:25] * nickmolhoek has joined #silverstripe
277: [08:32:55] * unsignedint quit (Remote host closed the connection)
278: [08:41:15] * tankr has joined #silverstripe
279: [08:47:07] <gumble> Hey, I found out how to addcomponents to edit, delete, view and everything the fields of my gridfield. The only thing missing is an "add" component which would make me able to add some DataObjects?
280: [08:47:39] <gumble> or do I have to do that on my own?
281: [08:50:25] <gumble> ah I'll try the modules :D
282: [08:55:28] * zippy__ has joined #silverstripe
283: [08:55:34] * todd_ quit (Ping timeout: 250 seconds)
284: [08:55:35] * gelignite quit (Quit: http://bit.ly/nkczDT)
285: [08:57:40] * Nivery quit (Quit: Nivery)
286: [09:01:53] * MrJeremy has joined #silverstripe
287: [09:02:07] <zippy__> Morning
288: [09:02:19] <MrJeremy> Morning
289: [09:04:23] * unsignedint has joined #silverstripe
290: [09:05:52] <gumble> after time of searching I found out that I can add a 'new GridFieldAddNewButton' component to the gridfield (this component isn't mentioned in the docs!), now I have a 'Add New' button on the gridfield, but clicking it gives me 500 Internal Server Error without any furthur explanation. What can I do?
291: [09:09:30] * willmorgan quit (Read error: Connection reset by peer)
292: [09:10:03] <zippy__> gumble: In dev mode? Check your error logs / ss debug emals
293: [09:17:54] * Jedateach has joined #silverstripe
294: [09:18:52] * Pyromanik has joined #silverstripe
295: [09:21:17] * metanat has joined #silverstripe
296: [09:24:02] * r3v3rb has joined #silverstripe
297: [09:25:01] <Peavers> Would someone be able to tell me why my code only counts times in pairs? it counts the difference between time 1 & 2, and then 3 & 4, then 5 & 6, but doesn't count between 2 & 3, 4 & 5, etc etc http://www.sspaste.com/paste/show/51ba383d92cae
298: [09:25:43] * atmos has joined #silverstripe
299: [09:25:44] <r3v3rb> anyone understand why a dropdown appears behind another element on iOS even though it's z-index is set higher?
300: [09:25:54] <atmos> is it possible to adjst the width of the sitetree pane in ss3?
301: [09:26:16] <r3v3rb> atmos: not that I've seen
302: [09:26:42] <atmos> damn
303: [09:26:43] <metanat> Peavers: What are you trying to achieve with your code?
304: [09:26:57] <Peavers> get the difference between a bunch of times
305: [09:27:34] <Pyromanik> r3v3rb: you don't understand how z-indexing works?
306: [09:27:53] <r3v3rb> Pyromanik: ofcourse i do
307: [09:27:55] <r3v3rb> :P
308: [09:28:08] <Pyromanik> larger numbers do not mean 'in front'
309: [09:28:32] <r3v3rb> :\
310: [09:31:28] * coldblooded01 has joined #silverstripe
311: [09:31:49] <coldblooded01> hi Willr_
312: [09:31:57] <willr_> howdey
313: [09:32:02] <coldblooded01> :)
314: [09:32:03] <r3v3rb> Pyromanik: i can go to sleep now - all fixed :D
315: [09:32:27] <coldblooded01> question, for your userform module. I'm just implemented it on one of my project
316: [09:32:31] <coldblooded01> dev/build errors with
317: [09:32:31] <coldblooded01> Fatal error: Access level to UserDefinedForm::$db must be public (as in class Page) in /home/www/paccpams13.net/userforms/code/model/UserDefinedForm.php on line 402
318: [09:32:52] <willr_> coldblooded01 got the wrong version
319: [09:32:56] <coldblooded01> ah
320: [09:32:59] <coldblooded01> thought so
321: [09:33:14] <zippy__> when did those $db things become private, is that 3.1?
322: [09:33:16] <coldblooded01> i've got the trunk framework version
323: [09:33:32] <coldblooded01> 3.2 I believe
324: [09:34:07] <atmos> anyone know why file upload might not be working? I can upload fine and it looks lik its placing it in the right folder, but the file 404s on viewing...
325: [09:34:12] * r3v3rb quit (Quit: r3v3rb)
326: [09:34:15] * zfmf1 has left #silverstripe
327: [09:34:32] <willr_> 3.1 yep zippy
328: [09:34:53] <willr_> Needed to be made private for the new config system improvements
329: [09:35:12] <coldblooded01> ah damn
330: [09:35:27] <coldblooded01> unwise to revert framework back to 3.0 :( any quick patch for this?
331: [09:35:39] * metanat1 has joined #silverstripe
332: [09:36:03] <willr_> I would recommend sitcking with 3.1. Lots of good work in there
333: [09:36:16] <coldblooded01> so this will work with 3.1?
334: [09:36:22] <coldblooded01> userforms
335: [09:36:29] <willr_> Yep, just grab latest master of UDF
336: [09:36:50] <coldblooded01> UDF?
337: [09:36:59] <willr_> userdefinedforms
338: [09:37:05] <willr_> or userforms, UF
339: [09:37:06] <coldblooded01> will it have fixed CMS imageupload? so i'm able to upload image before creating the record
340: [09:37:11] <coldblooded01> ah yes
341: [09:37:12] <willr_> yep :)
342: [09:37:13] <coldblooded01> ok
343: [09:37:32] <coldblooded01> sorry, not imageupload. What I meant is just upload
344: [09:37:39] * nickmolhoek quit (Ping timeout: 246 seconds)
345: [09:37:55] * metanat quit (Ping timeout: 268 seconds)
346: [09:39:14] <atmos> anyone for file upload?
347: [09:40:19] <Peavers> no ideas metanat1?
348: [09:41:49] <coldblooded01> SilverStripe 3.1.0-beta2 wise to use?
349: [09:41:52] <coldblooded01> http://www.silverstripe.org/silverstripe-3.1.0-beta2-is-available/
350: [09:42:35] * nickmolhoek has joined #silverstripe
351: [09:42:36] * nickmolhoek quit (Remote host closed the connection)
352: [09:42:59] * RojoD is now known as zz_Rojod
353: [09:43:03] * zz_Rojod is now known as zz_rojod
354: [09:52:20] * atmos quit (Ping timeout: 250 seconds)
355: [09:52:49] * nickmolhoek has joined #silverstripe
356: [09:52:50] * nickmolhoek quit (Remote host closed the connection)
357: [09:55:21] <coldblooded01> SS_DateTime field in SS 3.1 Beta 3 pre-release has a bug. Always changes the Time to AM
358: [09:55:29] <coldblooded01> even when PM is entered
359: [09:55:38] * shakesoda is now known as nepgear
360: [09:59:09] <irogue> coldblooded01: might pay to log it in Issues so someone fixes it :)
361: [09:59:19] <coldblooded01> indeed
362: [09:59:26] <coldblooded01> attempting to fix it now
363: [10:06:24] * zz_rojod quit (Ping timeout: 248 seconds)
364: [10:08:03] * Jedateach has left #silverstripe
365: [10:08:29] <zippy__> wonder when the first RC will come out
366: [10:09:06] <metanat1> Sorry Peavers was afk
367: [10:10:30] <Peavers> all good dude, think I've just about got it sorted
368: [10:10:41] * trent001 has joined #silverstripe
369: [10:11:25] * mobiusnz quit (Quit: Leaving.)
370: [10:11:29] <metanat1> Peavers: It is because you are going $lastTime = null
371: [10:11:34] <Peavers> yeah I know
372: [10:11:41] <metanat1> and because it is null it skips the next time round
373: [10:11:44] <metanat1> cool
374: [10:11:50] <Peavers> fixed that, but then it breaks my output lol
375: [10:11:56] <Peavers> returns 15 minute | 22852195 minute | 22852200 minute |
376: [10:12:05] <zippy__> zoo many minutes!
377: [10:12:09] <zippy__> *soo
378: [10:12:20] <Peavers> just a few aye ;)
379: [10:12:25] <trent001> Hi there. Has anyone here ever had any trouble implementing a HTMLEditorField into a GridField is this posible?
380: [10:12:59] <Peavers> because strtotime is being called twice,
381: [10:13:00] <metanat1> Peavers: The reason it is probably doing that is because they are objects and you are just creating a reference if you do $lastTime = $time
382: [10:13:03] * nickmolhoek has joined #silverstripe
383: [10:13:05] * nickmolhoek quit (Read error: Connection reset by peer)
384: [10:14:39] <Peavers> http://www.sspaste.com/paste/show/51ba4417a4680
385: [10:14:45] <Peavers> the correct way to do it, if anyone cares
386: [10:14:47] <Peavers> working correctly.
387: [10:14:48] <metanat1> It'e probably easier to go, foreach ($times->toArray() as $key => $time) { } and then access the time you want to compare to by either looking at the key behind or the key ahead. SS3 or SS2.4?
388: [10:15:13] <Peavers> using ss 3.1 but my above function works correctly now
389: [10:15:18] <metanat1> cool
390: [10:18:09] <Peavers> the question is how do I get those values back into the template... templates expect an ArrayList yeah?
391: [10:18:25] <Peavers> so I could load the results from that loop into an array, create a new arrayList of that array on the return?
392: [10:21:39] <trent001> I'm getting Error at line 302 of /Applications/MAMP/htdocs/silverstripe/framework/core/Object.php when I try and save anything from my grid field with a HTMLText option in it.
393: [10:21:44] <trent001> :S
394: [10:22:36] <trent001> Only on my 3rd day using SS here am find it real nice :)
395: [10:23:29] <Peavers> Defragger?
396: [10:24:14] <zippy__> In a template…. you can do <% if JobCompleted %> …..
397: [10:24:27] <zippy__> where JobCompleted is a instance variable
398: [10:24:33] <zippy__> what if I want to see if the job is NOT completed...
399: [10:24:41] <zippy__> <% if !$JobCompleted %> ?
400: [10:24:48] <zippy__> can you do a not in a template?
401: [10:25:33] <nepgear> try <% if JobCompleted != 1 %>
402: [10:25:44] <zippy__> JobCompleted is a date field
403: [10:25:54] * nepgear shrugs
404: [10:26:00] <zippy__> hm
405: [10:27:08] <Pyromanik> good to hear trent001
406: [10:27:32] <zippy__> Pyromanik: had crash?
407: [10:27:44] <Pyromanik> trent001: you dont' put anytihng into a gridfield in terms of form fields
408: [10:27:49] <Pyromanik> a gridfield just takes a list
409: [10:28:00] <Pyromanik> that object can have an HTMLEditorField
410: [10:28:06] <Pyromanik> and that'll work fine, eys.
411: [10:28:16] <Pyromanik> zippy__: nup, well, not that I'm aware of
412: [10:28:24] <zippy__> users will tell ya aye ;-)
413: [10:29:14] <Pyromanik> zippy__: nah, email about reset after crash.
414: [10:30:44] * Zauberfisch^idle quit (Read error: Connection reset by peer)
415: [10:31:32] * Zauberfisch^idle has joined #silverstripe
416: [10:35:06] <coldblooded01> Willr_ same error with 3.1 beta 3
417: [10:35:15] <coldblooded01> Fatal error: Access level to UserDefinedForm::$db must be public (as in class Page) in /home/www/XXX/silverstripe-userforms/code/model/UserDefinedForm.php on line 402
418: [10:37:02] * zippy__ quit (Read error: Connection reset by peer)
419: [10:42:17] <Pyromanik> coldblooded01: sounds like you have the wrong version of userforms
420: [10:42:39] <coldblooded01> its latest master from https://github.com/silverstripe/silverstripe-userforms
421: [10:43:04] <coldblooded01> on http://www.silverstripe.org/pre-releases/
422: [10:43:15] <Pyromanik> hasn't been updated to work with 3.1 then
423: [10:43:30] <Pyromanik> probably why it reports Build:Failing
424: [10:43:44] <trent001> Cheers pyro sorry I didn't explain myself well still getting my head around the lingo. I have assigned a HTMLText field to the Dataobject that will be used in my Gridfield.
425: [10:44:08] <coldblooded01> doesnt work with 3.05 either
426: [10:44:23] <Pyromanik> coldblooded01: because it's ....
427: [10:44:30] <Pyromanik> gawd.
428: [10:44:41] <Pyromanik> you've not got 3.1
429: [10:44:49] <Pyromanik> otherwise it wouldn't give you the error about being public
430: [10:44:50] <trent001> If I use standard Text instead of HTMLText all works fine however I want to use a WYSIWYG editor.
431: [10:44:57] <Pyromanik> or you don't have the most up to date 3.1 at least
432: [10:45:10] <Pyromanik> as static are now supposed to be private, which userforms' are.
433: [10:45:20] * zippy__ has joined #silverstripe
434: [10:45:26] <Pyromanik> and it'll give you the same error in 3.0.5 because it's the same error.
435: [10:45:39] <Pyromanik> trent001: so what's not working?
436: [10:45:40] <Pyromanik> error?
437: [10:45:49] <Pyromanik> textarea but no tinymce?
438: [10:46:11] <Pyromanik> remember to make your DB type HTMLText, not just Text
439: [10:47:34] <trent001> If I use the HTMLText option in my $db = array I get Error at line 302 of /Applications/MAMP/htdocs/silverstripe/framework/core/Object.php
440: [10:48:18] <trent001> yeah that's what I am doing db type is: 'Summary' => ' HTMLText(200)'
441: [10:48:32] <coldblooded01> Pyro, i've got http://www.silverstripe.org/pre-releases/
442: [10:48:35] <coldblooded01> that is 3.1
443: [10:48:43] <trent001> then using new HTMLEditorField('Summary', 'Brief Summary')
444: [10:48:52] <coldblooded01> with latest master of UserForms from https://github.com/silverstripe/silverstripe-userforms
445: [10:49:09] <trent001> Probably making some noob mistake here as I am still getting my head around the syntax
446: [10:49:35] <willr_> coldblooded01 try download 3.1 from github rather than beta
447: [10:49:48] <Pyromanik> trent001: no numbers.
448: [10:49:51] <willr_> I'm not sure if the private change made it into the beta
449: [10:49:52] <Pyromanik> that's just for Varchar
450: [10:50:30] <trent001> ok :) trying now.
451: [10:50:35] <Pyromanik> coldblooded01: no, tha'ts not 3.1, that's 3.1-from.the.last.time.someone.made.a.tar.gz
452: [10:51:02] <coldblooded01> lol
453: [10:51:22] <Pyromanik> getting outdated versions and trying to use bleeding edge modules is a bad idea in any system around ;)
454: [10:51:30] <trent001> the I get Uncaught ReflectionException: Class HTMLText does not exist
455: [10:51:33] <Pyromanik> github all the things
456: [10:51:42] <trent001> using 'Summary' => ' HTMLText'
457: [10:51:46] <Pyromanik> trent001: hmm
458: [10:51:50] <Pyromanik> that's odd
459: [10:52:01] <willr_> Composer all of the things!
460: [10:52:14] <Pyromanik> static $db = array('Summary'=>'HTMLText'); should work fine
461: [10:52:31] <trent001> yeah probably my bad like I said only on my 3rd day with SS here have just moved over from code ignighter and getting my head around the syntax
462: [10:52:50] <Pyromanik> trent001: sounds like you've maybe put your htmltext in as a has_one, not a $db field
463: [10:53:10] <Pyromanik> trent001: syntax is PHP! :D
464: [10:53:12] <trent001> public static $db = array(
465: [10:53:12] <trent001> 'Title' => 'Varchar(255)',
466: [10:53:12] <trent001> 'Summary' => ' HTMLText'
467: [10:53:13] <trent001> );
468: [10:53:20] <Pyromanik> you have a space
469: [10:53:24] <Pyromanik> no space
470: [10:53:39] <trent001> doh :)
471: [10:53:39] <coldblooded01> https://github.com/silverstripe/silverstripe-framework thats the 3.1 trunk at latest?
472: [10:53:41] <Pyromanik> :)
473: [10:53:45] <trent001> lol thanks soo much
474: [10:53:46] <coldblooded01> put UDF on there?
475: [10:53:53] <Pyromanik> coldblooded01: probably
476: [10:53:54] <Pyromanik> I lose track
477: [10:54:14] <Pyromanik> yes, 3.1
478: [10:54:14] <coldblooded01> thats what i had done initially
479: [10:54:19] <trent001> yeah your right syntax is php its just a couple of small things to get my head around :)
480: [10:54:21] <Pyromanik> try master then :P
481: [10:54:27] <Pyromanik> trent001: yeh
482: [10:54:35] <coldblooded01> sweet
483: [10:54:46] <Pyromanik> but that's system architecture, not syntax ":P
484: [10:56:01] <trent001> touche
485: [10:56:41] <trent001> Hey thanks for your help sorry about the noob question :)
486: [10:57:58] <coldblooded01> trying master for everythbing
487: [10:58:01] <coldblooded01> everything*
488: [10:58:12] <Pyromanik> trent001: everyone makes noob questions.
489: [10:58:29] <Pyromanik> coldblooded01: try composer for everythign
490: [10:59:16] <coldblooded01> Pyro, how do I do that?
491: [10:59:28] <coldblooded01> applying master framework and master UDF
492: [10:59:44] <coldblooded01> waiting on upload then shall dev/build with master codes, see how that goes first
493: [11:00:25] <Pyromanik> oh wait what upload oh god no
494: [11:00:45] <coldblooded01> uploading master upload and UDF
495: [11:00:48] <coldblooded01> to server
496: [11:01:07] <Pyromanik> 1) get a dev server
497: [11:01:07] <Pyromanik> 2) get shell access
498: [11:01:21] <coldblooded01> i know lol, need to but no time right now
499: [11:01:32] <nepgear> linode <3
500: [11:01:49] <zippy__> +1 for linode
501: [11:02:09] <Pyromanik> less time than f'n around with ftp
502: [11:02:32] <zippy__> who ftps's these days anyway
503: [11:02:44] <coldblooded01> ah damn
504: [11:02:48] <nepgear> git + rsync
505: [11:02:52] <coldblooded01> master framework for SS just gave lots of errors on dev/build
506: [11:02:53] <coldblooded01> [User Deprecated] Config static Notification::$db must be marked as private. Called from .
507: [11:02:54] <coldblooded01> etc
508: [11:03:00] <coldblooded01> no joy
509: [11:03:52] <coldblooded01> any suggestion?
510: [11:05:28] <coldblooded01> im going to 3.1 branch
511: [11:06:03] <Pyromanik> how about
512: [11:06:06] <Pyromanik> instead of using 3.1
513: [11:06:10] <Pyromanik> you use 3.0.5
514: [11:06:15] <Pyromanik> and you use userforms 1.0
515: [11:06:24] <Pyromanik> and then everything will work
516: [11:06:30] <willr_> coldblooded01 you'll need to update all your statics to private
517: [11:06:33] <Pyromanik> and you won't be so pressed for time
518: [11:06:35] <willr_> find / replace
519: [11:08:14] <irogue> <3 AWS Sydney
520: [11:09:01] <coldblooded01> whats the best way to replace static with private inside netbean project
521: [11:09:02] <coldblooded01> ??
522: [11:09:12] <coldblooded01> in all the files or just dataobject files?
523: [11:09:19] <zippy__> find and replace like will said, only takes a few minutes
524: [11:09:28] <zippy__> follow the error messages :)
525: [11:09:39] <coldblooded01> ok
526: [11:09:51] <willr_> public static with private static , not static with private btw
527: [11:10:07] <Pyromanik> was just about to say that
528: [11:11:37] <zippy__> hm, is there a way with the index method on the controller, to redirect if the index is in the url
529: [11:11:38] <zippy__> eg
530: [11:12:45] * jonshutt has joined #silverstripe
531: [11:12:56] <zippy__> x
532: [11:13:02] <zippy__> doing /foo is ok
533: [11:13:07] <zippy__> but doing /foo/index will 301 to /foo
534: [11:13:17] * nickmolhoek has joined #silverstripe
535: [11:13:19] * nickmolhoek quit (Remote host closed the connection)
536: [11:13:42] <jonshutt> Hi, wondering if anyone knows a way of using "extends DataExtension" to change a core dataobject Title from Varchar to Text?
537: [11:14:54] <gumble> how would I do a template for a controller action? If I want a list which is returned by getList() only to be displayed when getList is called
538: [11:15:03] <gumble> dunno if that is understanable
539: [11:15:32] <Pyromanik> zippy__: you'll have to parse the URL manually in the index function I expect.
540: [11:15:40] <Pyromanik> no wait
541: [11:15:43] <zippy__> Pyromanik: was hoping to avoid that
542: [11:15:51] <Pyromanik> $this->request->param('Action')
543: [11:15:55] <metanat1> gumble: Controller_action.ss
544: [11:15:56] <Pyromanik> == index ?
545: [11:16:15] <Pyromanik> you can't do $this->Action, as it's set manually to index in handleAction
546: [11:16:35] <Pyromanik> so test the URL directly manually (not parse it).
547: [11:16:40] <Pyromanik> is what I meant
548: [11:16:50] <Pyromanik> wrong words :<
549: [11:17:07] <gumble> metanat1, thanks
550: [11:17:57] <coldblooded01> Willr, im just going to use 3.1 from trunk
551: [11:18:08] <coldblooded01> which UDF will work with it without fatal erroring
552: [11:18:33] <coldblooded01> Fatal error: Access level to UserDefinedForm::$db must be public (as in class Page) in /home/www/XXX/silverstripe-userforms/code/model/UserDefinedForm.php on line 402
553: [11:18:38] <coldblooded01> thats the error
554: [11:18:48] * azureKnight has joined #silverstripe
555: [11:19:20] <azureKnight> Did anybody ever come up with another smaller htmleditorfield? Like Unclecheese's back for his dom?
556: [11:24:09] <azureKnight> I'm making a slideshow module, and prefer giving the user a not so… heavy field to give it captions.
557: [11:24:39] <gumble> if my page $has_many Categories, how do I access them in the controller?
558: [11:25:39] * chillu quit (Quit: chillu)
559: [11:25:44] <priithansen> Could possibly be used as stand alone https://github.com/unclecheese/silverstripe-bootstrap-forms/blob/master/code/SimpleHtmlEditorField.php
560: [11:29:54] <zippy__> gumble: Possibly, Categories()
561: [11:29:57] <metanat1> gumble: You should be able to go $this->Categories()
562: [11:30:34] <zippy__> gumble: foreach ($this->Categories() as $Category) { ..
563: [11:36:19] <zippy__> So, I have a SS_Datetime on my page ($db array ('DateDone' => 'SS_Datetime, which I am trying to populate in the controller. $this->DateDone = SS_DateTime::now() or $this->DateDone->setValue(SS_DateTime::now()); don't appear to work
564: [11:36:27] <zippy__> nothing in the docs to help
565: [11:37:51] * azureKnight quit (Ping timeout: 260 seconds)
566: [11:37:57] * spronk has left #silverstripe
567: [11:38:40] <zippy__> doing this won't throw an error, but also won't save the value... $this->DateDone = SS_Datetime::Now(); $this->write();
568: [11:38:49] * spronk has joined #silverstripe
569: [11:39:10] * gumble quit (Remote host closed the connection)
570: [11:41:58] * jonshutt quit (Ping timeout: 250 seconds)
571: [11:43:40] <Pyromanik> 11:18 < coldblooded01> Fatal error: Access level to UserDefinedForm::$db must be public (as in class Page) in /home/www/XXX/silverstripe-userforms/code/model/UserDefinedForm.php on line 402
572: [11:43:46] <Pyromanik> this error means that you are NOT using 3.1
573: [11:44:21] <spronk> YOU KNOW NOTHING JON SNOW!
574: [11:44:40] <Pyromanik> a few arrows will sort him out.
575: [11:44:47] * robert_ quit (Read error: Connection reset by peer)
576: [11:45:21] <Pyromanik> any tankr up in hizzle?
577: [11:45:27] <Pyromanik> zxomg, tankr !
578: [11:45:43] <Pyromanik> Getting free lunches I hear :D
579: [11:45:57] <Pyromanik> also
580: [11:46:07] <Pyromanik> 1 page checkout on swipestripe, ever done anything like it?
581: [11:46:20] <Pyromanik> I'd like to be able to edit cart contents from checkout page
582: [11:46:33] <Pyromanik> what do you suggest to be the best way to achieve this?
583: [11:47:22] * robert_ has joined #silverstripe
584: [11:47:22] * robert_ quit (Changing host)
585: [11:47:22] * robert_ has joined #silverstripe
586: [11:50:45] <coldblooded01> i am on 3.1
587: [11:50:51] <coldblooded01> and master for UDF
588: [11:50:59] <coldblooded01> _config.php says 3.1 too
589: [11:51:03] <coldblooded01> for framework
590: [11:51:37] <spronk> coldblooded01: oh
591: [11:51:40] <spronk> coldblooded01: you may be on 3.1
592: [11:51:45] <spronk> but you haven't updated your Page.php
593: [11:52:00] <spronk> update Page.php and swap the public static $db for private static $db
594: [11:52:25] <Pyromanik> you need to have EVERYTHING on 3.1
595: [11:52:34] <Pyromanik> ie, Framework, CMS, AND installer
596: [11:53:18] * Pyromanik suddenly remembers that Page.php isn't part of cms
597: [11:53:19] <spronk> fucking hell
598: [11:53:33] <coldblooded01> >.>
599: [11:53:35] <coldblooded01> got ya
600: [11:53:38] <spronk> SS seriously needs to display the actual message with errors in the CMS, instead ofj ust "notice on line blablabl"
601: [11:55:18] <Pyromanik> spronk: it does
602: [11:55:28] <spronk> where!?
603: [11:55:33] <Pyromanik> dragonfly
604: [11:55:38] <spronk> ohhh
605: [11:55:43] <spronk> forgot about that shit
606: [11:56:10] <Pyromanik> full error is dumped by GET request
607: [11:56:15] <spronk> wait
608: [11:56:20] <spronk> where find in dfly?
609: [11:56:23] <coldblooded01> Fatal error: Access level to ErrorPage::$db must be public (as in class Page) in /home/www/XXX/cms/code/model/ErrorPage.php on line 310
610: [11:56:26] <Pyromanik> just the little note in the CMS itself isn't full.
611: [11:56:35] <Pyromanik> coldblooded01: did you update page.php?
612: [11:56:44] <Pyromanik> spronk: either console or network.
613: [11:56:46] <spronk> coldblooded01: update your Page.php
614: [11:56:46] <spronk> hmm
615: [11:57:00] <Pyromanik> coldblooded01: the error message tells you EXACTLY what is wrong.
616: [11:57:34] <coldblooded01> sweet
617: [11:58:29] <Pyromanik> coldblooded01: look.
618: [11:58:31] <Pyromanik> https://github.com/silverstripe/silverstripe-installer/blob/3.1/mysite/code/Page.php
619: [11:58:35] <Pyromanik> it's very simple.
620: [11:58:54] * folibis has joined #silverstripe
621: [11:58:56] <Pyromanik> you are still not using 3.1 the full compliment.
622: [11:58:58] <folibis> hi all!
623: [11:59:06] <Pyromanik> privet folibis
624: [11:59:12] <folibis> )
625: [12:00:10] <folibis> i am so confused with custom reports or rather with documentation )
626: [12:00:41] <Pyromanik> folibis: understandable
627: [12:00:50] <Pyromanik> it's change a little bit since docs were written
628: [12:01:34] <folibis> http://doc.silverstripe.org/framework/en/reference/site-reports - Your CustomSideReport_ReportName must extend SideReport!
629: [12:01:50] <folibis> http://api.silverstripe.org/3.0/class-ReportAdmin.html - All reports that should show in the ReportAdmin section of the CMS need to subclass SS_Report
630: [12:02:25] <folibis> so what have i use - SideReport, ReportAdmin or SS_Report?
631: [12:04:30] <Pyromanik> folibis: sidereport is obsolete, possibly even removed
632: [12:04:36] <Pyromanik> it's SS 2.4 specific
633: [12:04:56] <Pyromanik> ReportAdmin is the admin interface for displaying reports (extends LeftAndMain)
634: [12:05:03] <Pyromanik> SS_Report is what you should extend.
635: [12:05:23] <Pyromanik> dev/build and it should magically show up in your report admin
636: [12:05:48] <priithansen> cms/code/reports/ for inspiration
637: [12:06:03] <folibis> ah, understood. SS_ preffix is specific for 3.x as i see
638: [12:06:07] <coldblooded01> got it to dev/build successfully without fatal error
639: [12:06:20] <coldblooded01> but, when i try to add page with page type UDF:
640: [12:06:21] <coldblooded01> Notice at line 930 of /home/www/paccpams13.net/framework/view/SSViewer.php
641: [12:06:30] <coldblooded01> got that error
642: [12:08:06] * Colin[pi] has joined #silverstripe
643: [12:08:26] <zippy__> need more of the error message
644: [12:08:37] <zippy__> Colin[pi]: afternoon
645: [12:09:39] <zippy__> I can't for the life of me figure out how to populate a SS_DateTime field in a model
646: [12:09:51] <zippy__> doMagic() function not found!
647: [12:10:25] * folibis quit (Quit: Page closed)
648: [12:11:05] <spronk> ugh
649: [12:11:06] <spronk> fuck you ss3.1
650: [12:11:13] <spronk> deprecating empty string as a constructor argument for DropdownField
651: [12:11:30] <spronk> then, fucking up jquery chosen selection when you subclass it :@
652: [12:12:06] <zippy__> The love, I can feel it
653: [12:12:28] <spronk> to be brutally honest, i want an empty string far more often than not
654: [12:13:03] * pex quit (Ping timeout: 246 seconds)
655: [12:13:34] * nickmolhoek has joined #silverstripe
656: [12:13:35] * nickmolhoek quit (Remote host closed the connection)
657: [12:14:30] * Jedateach has joined #silverstripe
658: [12:15:00] <Pyromanik> coldblooded01: that doesn't tell us anything
659: [12:15:14] <Pyromanik> just that there was a notice on line blah of some class that doesn't matter
660: [12:16:19] <coldblooded01> i did ?debug_request
661: [12:16:20] <coldblooded01> and got this
662: [12:16:21] <coldblooded01> [User Warning] None of these templates can be found in theme 'simple': SiteTree_Information.ss
663: [12:16:33] <Pyromanik> spronk: hmm, interesting, I agree. new DropdownField('Name', 'Title', $list->Map(), '', null, '(none)') is all very very common for me.
664: [12:16:42] <Pyromanik> coldblooded01: so basically you forgot to ?flush
665: [12:17:07] <Pyromanik> ?flush=all
666: [12:17:18] <coldblooded01> pyro, i dont know what id do without you today
667: [12:17:22] * Jedateach has left #silverstripe
668: [12:17:26] <coldblooded01> thanks man :)
669: [12:17:36] <Pyromanik> it's the most common ssviewer error other than "You fucked up your template tags"
670: [12:18:01] <Pyromanik> you're welcome
671: [12:19:10] <coldblooded01> :)
672: [12:20:08] <zippy__> Pyromanik: Guru :) You know much with the SS_DateTime - or any date field?
673: [12:20:27] <zippy__> I might just go to a VarChar and add the date manually
674: [12:20:34] <spronk> Pyromanik: if you ever need, class ESDropdownField extends DropdownField { public function __construct($name, $title = null, $source = array(), $value = null, $form = null, $emptyString = null) { parent::__construct($name, $title, $source, $value, $form); $this->setEmptyString($emptyString); $this->addExtraClass('dropdown'); } }
675: [12:22:02] <Pyromanik> zippy__: what is your issue?
676: [12:22:14] <Pyromanik> there is Date, SS_Datetime
677: [12:22:23] <zippy__> right, I want Time as well, so using SS_DateTime
678: [12:22:25] <Pyromanik> maybe a Time, but I don't remember specifically
679: [12:22:34] <zippy__> but I can't figure out how to set the value on the object
680: [12:22:46] <zippy__> in my object I have - 'DateDone' => 'SS_DateTime'
681: [12:22:49] <Pyromanik> spronk: choice bro
682: [12:22:55] <zippy__> in the $db array, and that is OK
683: [12:23:07] <zippy__> but how can I populate that field in the controller?
684: [12:23:17] <zippy__> $this->DateDone = .
685: [12:23:19] <Pyromanik> zippy__: just give it a date('correctformat')
686: [12:23:39] <Pyromanik> iirc
687: [12:24:09] <zippy__> I tried using $this->DateDone = SS_DateTime::Now() which should make a nice date, but doesn't seem to populate it
688: [12:24:14] <zippy__> though that seems to return an object
689: [12:25:24] <Pyromanik> yeh
690: [12:25:25] <coldblooded01> more issue with UDF: Under the Form tab, I select an option from the drop down and click "Add" button
691: [12:25:28] <coldblooded01> nothing happens
692: [12:25:53] <Pyromanik> zippy__: you want to set it to the string "Y M d H:m:s" iirc
693: [12:26:08] <coldblooded01> debug_request gives: Debug (line 157 of Controller.php): Request handler returned SS_HTTPResponse object to CMSPageEditController controller;returning it without modification.
694: [12:26:09] <Pyromanik> coldblooded01: check your console
695: [12:26:18] <coldblooded01> ok
696: [12:26:45] <Pyromanik> zippy__: Y-m-d H:m:s perhaps
697: [12:28:59] <zippy__> Pyromanik: mmm it's just not populating the database on write… it's weird
698: [12:29:07] <coldblooded01> hmm, nothing in console but just GET http://XX/admin/pages/treeview 200 OK 1.44s
699: [12:31:05] * trent001 quit (Remote host closed the connection)
700: [12:31:08] <Pyromanik> zippy__: I remember having issues with them before
701: [12:31:19] <Pyromanik> zippy__: look at how siteTree stores 'Created'
702: [12:31:21] <spronk> hrm
703: [12:31:21] <Pyromanik> i'm out to lunch
704: [12:31:28] <zippy__> Pyromanik: good idea
705: [12:31:33] <spronk> why does paddedimage in 3.1 give black backgroundinstead of white
706: [12:33:33] <spronk> because... docs say its padded white.
707: [12:46:03] * Bollig|DesignCty has joined #silverstripe
708: [12:46:11] <Peavers> If I put a function on a class that extends a dataobject, when is that function called?
709: [12:47:56] <Peavers> spronk also noticed that - and no idea ;)
710: [12:50:36] * trent001 has joined #silverstripe
711: [13:01:19] * priithansen quit (Quit: priithansen)
712: [13:02:45] * nickmolhoek has joined #silverstripe
713: [13:02:45] * nickmolhoek quit (Remote host closed the connection)
714: [13:03:00] * nickmolhoek has joined #silverstripe
715: [13:10:15] * coldblooded01 quit (Quit: Page closed)
716: [13:13:30] * helenclarko has joined #silverstripe
717: [13:19:50] <helenclarko> hey all, just after some help on the ecommerce module. I cant seem to add products to the cart. everytime I click "add to cart" on an existing product, it takes me to the /add page which doesnt exist. what am I doing wrong?
718: [13:20:07] <helenclarko> I am using SS 2.4.5
719: [13:22:02] * Hippieee quit (Quit: Leaving)
720: [13:27:20] * Hippieee has joined #silverstripe
721: [13:28:15] <Colin[pi]> good morning
722: [13:29:33] <willr_> Colin[pi] is obviously in < GMT+11
723: [13:29:53] <willr_> thank god it's afternoon here. Long week!
724: [13:30:54] <Colin[pi]> yeah almost noon here
725: [13:31:01] <Colin[pi]> rough week willr?
726: [13:32:14] <willr_> Oh boy yeah.
727: [13:32:39] <willr_> one of those weeks that just nothing goes right.
728: [13:33:18] <Colin[pi]> arg
729: [13:33:19] <Colin[pi]> :(
730: [13:35:49] <Colin[pi]> how much would you expect to pay for a fairly basic e-comm site with product db, checkout, cust. registration, freight calc, and gateway integration?
731: [13:35:57] <willr_> sadly haven't even done any SS Work bah.
732: [13:36:04] <Colin[pi]> the usual things, but no customisation of items
733: [13:37:23] <willr_> I've only used shopify for my commerce stuff, none of the SS ones
734: [13:37:55] <willr_> but all of those are out of the box in SS right? So time to configure and test plus any design / templates
735: [13:38:14] <helenclarko> I wonder if I should be using something other thatn the SS modules for ecommerce.
736: [13:38:21] <Colin[pi]> well yet to determine if I'd use off the shelf or roll my own
737: [13:38:36] <Colin[pi]> I have about 60% of it already done for a separate project in SS
738: [13:38:44] <Colin[pi]> (no gateway, but everything else)
739: [13:38:49] <willr_> Please don't roll your own, already like 4 commerce modules, would kill for 1 decent one
740: [13:39:48] <Colin[pi]> hmm
741: [13:39:55] <Colin[pi]> what's shopify like, any good?
742: [13:40:56] <helenclarko> can you theme shopify to fit in with your SS site?
743: [13:41:29] <willr_> helenclarko sure.
744: [13:42:06] <Colin[pi]> I was thinking about $8K to cover a basic ecomm site, too little, too much, spot on?
745: [13:42:12] <willr_> shopify admin is beautiful. Product is great. I wouldn't bother with anything else these days
746: [13:42:13] <helenclarko> Im looking at the examples.
747: [13:43:06] <Pyromanik> spronk: because it was a transparent background on a PNG
748: [13:43:29] <Pyromanik> ie rgba(0,0,0,0.0)
749: [13:43:31] <tankr> SwipeStripe might work for your needs helenclarko - it is currently on a licence model though
750: [13:43:50] <Pyromanik> tankr: yeah, but so is shopify
751: [13:43:53] <Colin[pi]> that was going to be one of my options I'd look at too :)
752: [13:44:23] <Pyromanik> tankr: in fact, shopify is a subscription model, not licence.
753: [13:45:19] <helenclarko> tankr: Yea I have used swipestripe previously... Its an easy setup. Im just after a free alternative, as the site I am creating is for someone who wants something put together "on-the-cheap"
754: [13:45:58] <tankr> helenclarko: ok fair enough, will keep you posted if that changes! or maybe subscribe to the swipestripe newsletter or something
755: [13:46:02] <Colin[pi]> I cringe when I hear of the "on-the-cheap" requests because imho you get what you pay for :\
756: [13:47:24] <helenclarko> Exactly. I hate hearing that as a request from clients. I feel like saying, "so you dont want a website then?"
757: [13:47:29] <Pyromanik> helenclarko: depending on the setup, you might get away with wiring straight to payment module
758: [13:47:44] <Colin[pi]> my experience proves that the ones that want to pay the least will take most of your time
759: [13:47:52] <Pyromanik> Colin[pi]: always true
760: [13:47:58] <Pyromanik> they're the WORST at scope creep
761: [13:48:07] <tankr> Colin[pi]: lol, so true
762: [13:48:10] <Colin[pi]> I have one like that, drives me nuts
763: [13:48:19] <helenclarko> Pyromanik: sounds interesting.
764: [13:48:34] <Pyromanik> helenclarko: fits well with 'deal of the day' type sites
765: [13:49:29] <helenclarko> Ill have to look into that. It gives me a few ideas actually.
766: [13:50:00] <helenclarko> Thanks
767: [13:50:09] <Pyromanik> helenclarko: if the client is too cheap to flick out a few hundy for a swipestripe licence, they're generally not worth your time.
768: [13:50:18] <Pyromanik> because they'll haev a whinge when it comes time to the invoice too.
769: [13:50:21] <Pyromanik> and take forever to pay it
770: [13:50:26] <Pyromanik> slash do a runner
771: [13:52:48] <helenclarko> if thats the case, Ive already wasted time on the general setup and template creation.
772: [13:53:20] <spronk> Pyromanik: but 3.0 is white, 3.1 is black
773: [13:53:30] <spronk> and docs say any padding is white
774: [13:54:20] <Colin[pi]> be careful helenclarko, I've been burned before by clients like that
775: [13:55:22] <helenclarko> any idea why I cant seem to add products to the cart? or should I just give up on trying to get the ecommerce module to work.
776: [14:11:34] * DesignerX has joined #silverstripe
777: [14:13:07] * DesignerX quit (Client Quit)
778: [14:13:25] * DesignerX has joined #silverstripe
779: [14:14:18] * metanat1 quit (Quit: Leaving.)
780: [14:15:07] * unsignedint quit (Remote host closed the connection)
781: [14:17:34] <Pyromanik> spronk: oh, 3.1 has a new backend
782: [14:18:05] <spronk> hrm
783: [14:18:08] <Pyromanik> GD and Image have been decoupled into Image, Image_Backend and GD.
784: [14:18:17] <Pyromanik> or ImageMagick
785: [14:19:01] <spronk> le sigh
786: [14:19:03] <Pyromanik> helenclarko: no idea. What does the error say?
787: [14:28:25] <zippy__> :)
788: [14:28:44] <Pyromanik> http://devopsreactions.tumblr.com/post/52368854242/writing-unit-tests
789: [14:30:30] * mobiusnz has joined #silverstripe
790: [14:39:44] * unsignedint has joined #silverstripe
791: [14:48:06] * nickmolhoek quit (Quit: nickmolhoek)
792: [14:50:35] * unsignedint quit (Remote host closed the connection)
793: [14:58:19] * metanat has joined #silverstripe
794: [15:05:04] * cloph_away has joined #silverstripe
795: [15:05:14] * cloph quit (Ping timeout: 245 seconds)
796: [15:06:02] <helenclarko> pyromanik: Sorry for not replying... I decided to go with the third party opencard.
797: [15:09:17] <helenclarko> I have used it before, but thought it would be nice to tie in the ecommerce module. After talking to all of you, I deciding it worth the time or effort trying to get the ecommerce module to work for a client that isnt prepared to pay for anything over and above the cost of the domain name and hosting.
798: [15:10:00] <helenclarko> *NOT WORTH the time*
799: [15:10:48] * metanat quit (Quit: Leaving.)
800: [15:11:07] * helenclarko quit (Quit: Page closed)
801: [15:31:02] * zippy__ quit (Quit: zippy__)
802: [15:55:40] * elgrodo running into an annoying issue with partial caching
803: [15:55:48] <elgrodo> trying to call a controller method but it's not being called
804: [15:55:52] <Bollig|DesignCty> mate, if I had a dollar....
805: [15:56:46] * folibis has joined #silverstripe
806: [15:57:11] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
807: [15:58:21] <elgrodo> and hows this for efficiency... idea is to show a list of posts (be they photos or videos etc). A cached counter is kept in datafields called Comments and Likes,
808: [15:58:40] <elgrodo> then there is a method called Comments() which instead of using the cached counter loads all of the comments for a post
809: [15:58:49] <elgrodo> and then does a Count in the template...
810: [15:58:50] <elgrodo> #facepalm
811: [15:59:54] <elgrodo> oh non caching changes not being picked up
812: [16:01:30] * Bollig|DesignCty has joined #silverstripe
813: [16:03:06] * cloph has joined #silverstripe
814: [16:03:16] * folibis quit (Quit: Page closed)
815: [16:03:25] * cloph_away quit (Ping timeout: 240 seconds)
816: [16:05:38] <Pyromanik> fix'n dat widgets
817: [16:06:58] <Pyromanik> if you don't use the default template permission checks don't get done and anyone can see your blog management widget!
818: [16:12:46] <elgrodo> ah, cannot cache in if blocks
819: [16:12:52] <elgrodo> a Post can be of 4 different types
820: [16:13:07] <elgrodo> <% if Type == Image %>render image<% end_if %>
821: [16:13:10] <elgrodo> Video etc
822: [16:13:14] <elgrodo> grrrrrrrrrrrrrrrr
823: [16:13:47] <elgrodo> instead of erroring through SS just blanks out
824: [16:14:27] <trent001> Hey a question for you guys? I am just starting out with SS. I use sublime text 2 for all my development. I do alot of frontend stuff as well. Do you think I should be a full IDE or do any of you guys just use ST2 as well.
825: [16:17:58] <elgrodo> I used to work with a guy who did XSLT in notepad
826: [16:18:04] <elgrodo> once you know a system any text editor is fine
827: [16:20:06] <elgrodo> and this barfs the parser: <% include $SubTemplateToUse %>
828: [16:20:23] <elgrodo> I cant use an if to choose a different template because then caching does not work
829: [16:28:06] <trent001> cheers elgrodo
830: [16:29:40] <trent001> Yeah I am a big fan of ST2 so I don't really want to change. But moving to a new system sometimes makes you feel like you could use something to keep track of everything a bit better when you are starting out
831: [16:30:52] <elgrodo> I use ST2 also
832: [16:32:52] <elgrodo> caching called here inside an if http://sspaste.com/paste/show/51ba9cb1637c9
833: [16:32:52] * WilsonS has joined #silverstripe
834: [16:34:08] <WilsonS> Hi everyone. I'm having the damndest time trying to get a UserDefinedForm page to render using a plain ajax template to I can put it in a modal dialog. Does anyone have a snippet? This is a 2.4.x project. Thanks!
835: [16:34:51] <Pyromanik> OH MY GOD FRUNT END PPLZ IZ SO LIEK RETARD
836: [16:34:55] <Pyromanik> http://coding.smashingmagazine.com/2012/10/09/designing-javascript-apis-usability/
837: [16:35:02] <Pyromanik> "Commands and Queries"
838: [16:35:13] * MrJeremy has left #silverstripe
839: [16:35:38] <Pyromanik> zomg wtf
840: [16:35:52] <Pyromanik> why is this a fucking revolution? Why did you have to go and name it something new?
841: [16:36:05] <Pyromanik> object orientation has been around for DECADES
842: [16:36:23] <Pyromanik> why not just say "Getters and Setters" and call it encapsulation like everyone else.
843: [16:37:08] <Pyromanik> why are blogs filled with the most mundane basic elements of coding, yet make it out to be some kind of revolution that they've just discovered
844: [16:37:19] <Pyromanik> **Blogs for coders
845: [16:37:35] <Pyromanik> your target audience should know this
846: [16:37:50] <Pyromanik> WHY ARE YOU WASTING MY TIME AND MAKING ME SO GODDAMN ANGRY AT THE SAME TIME
847: [16:38:30] * Shrike_Finland has joined #silverstripe
848: [16:38:54] <Pyromanik> and they always seem to revolve around f'n wordpress
849: [16:39:01] <Pyromanik> which is a shit system that shouldn't be used.
850: [16:39:45] <Pyromanik> eg. smashing mag has "Design Patterns" listed under mobile.
851: [16:40:17] <Pyromanik> It's like design patterns don't exist for all other facets covered on their website.
852: [16:41:14] <Pyromanik> WilsonS: $('link selector').fancybox({type:'iframe'});
853: [16:41:45] <Pyromanik> ContactPage extends UserDefinedForm {}
854: [16:42:01] <Pyromanik> ContactPage_Controller extends UserDefinedForm_Controller {
855: [16:42:52] <Pyromanik> public function isAjax() { return Director::is_ajax(); }
856: [16:42:55] <Pyromanik> }
857: [16:43:05] <Pyromanik> then you can <% if isAjax %> in your template
858: [16:44:21] <Pyromanik> public function index() { return $this->isAjax() ? $this->renderWith('LayoutTemplateHere') : $this; }
859: [16:44:36] <willr_> Pyromanik it's a pretty comprehensive JS guide though
860: [16:44:47] <Pyromanik> willr_: ?
861: [16:44:54] <Pyromanik> oh right
862: [16:44:56] <elgrodo> ok, now I have a cache method being called inside an if inside a loop inside another if
863: [16:44:57] <Pyromanik> yeah the article is good
864: [16:44:58] <Pyromanik> just
865: [16:44:59] <Pyromanik> mad
866: [16:45:02] <Pyromanik> coz mad.
867: [16:45:11] <WilsonS> Ah, thanks Pyromanik. I tried that extending the class originally but extension wasn't recognized. Will use your advice. Thanks.
868: [16:46:55] <Pyromanik> rage hard at front end retards 'inventing' 'new' best practices which are almost always software design patterns and best practices that have been around since the 1970s at least.
869: [16:47:20] <Pyromanik> that any one who wants to call themselves a developer should know.
870: [16:47:36] <Pyromanik> and they plonk new buzzwords and all kinds of flashy BS over the top
871: [16:48:11] * Shrike_Finland quit (Quit: Leaving.)
872: [16:48:19] <trent001> Some of the front end stuff happening now with node etc is quite impressive :)
873: [16:48:21] <Pyromanik> instead of writing an article on how to encapsulate, the priciples of DRY and the like, they make up new bullshit like "CQS" and harp on about that instead.
874: [16:48:56] <trent001> TBH I looked at the article but couldn't be bother reading it lol
875: [16:49:07] <Pyromanik> which basically amounts to "Encapsulate, make each object responsible for one thing only, make crap modular so you can reuse it"
876: [16:49:09] <trent001> Well I guess node covers back end as well
877: [16:49:44] <willr_> I'd rather shorter, concise articles detailing one thing at a time. Mind can't cope with ZOMG X, ZOOMGG Y. DO Z
878: [16:49:52] <willr_> perhaps that's just friday
879: [16:50:07] <trent001> yeah it's almost beer o'clock :)
880: [16:51:11] <Pyromanik> trent001: don't get me wrong, the article has good advice. I just rage that people make it out to be something it's not, and because it's presented as all 'new and shiny' it doesn't really seem like something basic that should already be happening.
881: [16:51:40] <trent001> No from what I skim read I fully agree with you
882: [16:52:14] <Pyromanik> basically: take a solid principle and wrap it up like it's some kind of hack.
883: [16:52:37] <trent001> I think there are more interesting "NEW" things going on in javascript atm that they could cover than that :)
884: [16:52:55] <Pyromanik> web: make it look like we're reinventing everything so we do and end up where we were 30 years ago.
885: [16:53:07] <Pyromanik> yeah
886: [16:53:36] <Pyromanik> smashing mag has the odd gem, but generally I find it is more about some site's latest API or really basic stuff.
887: [16:53:49] * tankr quit (Quit: Leaving.)
888: [16:53:51] <Pyromanik> and a lot of 'coding' sites are like that
889: [16:53:52] <trent001> Have you heard of this new html 7 element it's called a <table> ???
890: [16:53:59] <Pyromanik> yeah right
891: [16:54:08] <Pyromanik> I finally looked at grid systems the other day
892: [16:54:09] <trent001> :)
893: [16:54:16] <Pyromanik> I was all "Oh, tables without <table>
894: [16:54:17] <trent001> which one
895: [16:54:18] <Pyromanik> "
896: [16:54:21] <Pyromanik> all of them
897: [16:54:21] <trent001> ??
898: [16:54:22] <Pyromanik> useless
899: [16:54:30] <Pyromanik> HEY BRO, 12 SLOTS, ENJOY
900: [16:54:39] <trent001> lol
901: [16:54:42] <Pyromanik> but... I have 9 items evenly spaced...
902: [16:54:56] <Pyromanik> NOW WHAT GRID KID?
903: [16:54:57] <trent001> I think for the right site they can be a time saver
904: [16:55:13] <Pyromanik> I think if you're designing IN a grid, you'll do well.
905: [16:55:17] <Pyromanik> but you're limited.
906: [16:55:21] <elgrodo> 'Currently cached blocks can not be contained within if or loop blocks. The template engine will throw an error letting you know if you've done this. '
907: [16:55:24] <Pyromanik> and everything ends up looking like another twitter.
908: [16:55:24] <elgrodo> NO IT DOES NOT!
909: [16:55:28] <Pyromanik> (gg bootstrap)
910: [16:55:40] <trent001> yeah lol
911: [16:55:42] <Pyromanik> elgrodo: haha, sounds like 2.4 docs.
912: [16:55:56] <elgrodo> I now have partials being created
913: [16:56:03] <Pyromanik> trent001: like this BEM thing that smashing mag featured a while ago
914: [16:56:12] <elgrodo> but my cache key is hardwired so all images should be the same
915: [16:56:16] <elgrodo> they are not...
916: [16:56:20] <trent001> there is one called get skeleton which is just css no styles which can be ok for responsive stuff as a starting point.
917: [16:56:34] <Pyromanik> basically how an interface element on a website should be self contained, and presentation should be separate from back end code...
918: [16:56:40] <Pyromanik> and I was all "wow, really?"
919: [16:57:01] <Pyromanik> I think like that already. If anyone reading this doesn't, no wonder the web has so many issues.
920: [16:57:22] <trent001> Lol
921: [16:57:28] <Pyromanik> trent001: the issue with many grid systems is that they rely on border-box
922: [16:57:42] <WilsonS> Ajax solution worked great Pyromanik. Thanks
923: [16:57:56] <Pyromanik> you're welcome WilsonS :)
924: [16:58:10] <elgrodo> ah nope I've been dumb
925: [16:58:17] <WilsonS> Much appreciated, have a good one
926: [16:58:19] <elgrodo> it's called the cache key method on the Post itself within the loop
927: [16:58:25] <elgrodo> value set to rand() :)
928: [16:58:43] * WilsonS quit (Quit: Page closed)
929: [16:59:16] <elgrodo> hooray, finally getting expected behaviour #mission
930: [16:59:29] <trent001> yeah man I am fairly new to dev only been going for 3 years so sometimes I find the articles helpful but I think smashing are trying to hard for content sometimes and just publishing rubish.
931: [17:00:46] <Pyromanik> yeah, the other day they published a guide on how to convert an html site into wordpress
932: [17:00:49] <Pyromanik> and I got full mad
933: [17:00:58] <Pyromanik> anyway, beer time, have a good weekend!
934: [17:01:06] * Pyromanik quit (Quit: leaving)
935: [17:01:58] <trent001> See ya pyro
936: [17:26:05] * Shrike_Finland has joined #silverstripe
937: [17:28:52] * guzzlefry has joined #silverstripe
938: [17:29:24] <FrozenFire> Damn right.
939: [17:30:46] <guzzlefry> :P
940: [17:30:48] * trent001 quit (Remote host closed the connection)
941: [17:31:33] * willr_ quit (Quit: willr_)
942: [17:33:03] * DigNZ quit (Quit: DigNZ)
943: [17:47:15] * guzzlefry quit (Quit: Leaving.)
944: [18:03:54] * willr_ has joined #silverstripe
945: [18:03:54] * willr_ quit (Changing host)
946: [18:03:54] * willr_ has joined #silverstripe
947: [18:06:06] * hubertusanton has joined #silverstripe
948: [18:15:47] * priithansen has joined #silverstripe
949: [18:19:22] * mobiusnz quit (Quit: Leaving.)
950: [18:27:02] * MrJeremy has joined #silverstripe
951: [18:34:20] * willr_ quit (Quit: willr_)
952: [18:41:24] * guci0 has joined #silverstripe
953: [18:41:36] <guci0> Hello All!
954: [18:42:04] <DesignerX> guci0: hi, Welcome, are you new here :D
955: [18:52:47] * willmorgan has joined #silverstripe
956: [18:59:34] * willr_ has joined #silverstripe
957: [19:07:48] * osterlaus has joined #silverstripe
958: [19:08:57] * travis-ci has joined #silverstripe
959: [19:08:58] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#296 (3.1 - acf42e8 : Will Rossiter): The build passed.
960: [19:08:58] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/5ff69b98ab62...acf42e87c24a
961: [19:08:58] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/8077900
962: [19:08:58] * travis-ci has left #silverstripe
963: [19:12:25] <ss23> Leaving in less than 12 hours, HAVEN'T STARTED PACKING
964: [19:16:44] <spronk> lol?
965: [19:23:33] * willr_ quit (Quit: willr_)
966: [19:31:17] <spronk> ugh
967: [19:31:20] <spronk> what the fuck does isEmpty actually do
968: [19:34:43] * MrJeremy quit (Quit: MrJeremy)
969: [19:37:16] <guci0> DesignerX: Now I'm back from Vacation – and I don't know what next :)
970: [19:40:04] * chillu has joined #silverstripe
971: [19:53:02] * svandragt has joined #silverstripe
972: [19:59:22] * Peavers quit (Ping timeout: 252 seconds)
973: [19:59:31] * Peavers has joined #silverstripe
974: [20:00:20] * kinglozzer has joined #silverstripe
975: [20:02:07] * travis-ci has joined #silverstripe
976: [20:02:07] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#297 (3.1 - 975e096 : Ingo Schommer): The build passed.
977: [20:02:07] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/acf42e87c24a...975e09643f4f
978: [20:02:07] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/8078843
979: [20:02:07] * travis-ci has left #silverstripe
980: [20:04:24] * zippy__ has joined #silverstripe
981: [20:09:41] <elgrodo> ss23: Where are youo going?
982: [20:14:00] <ss23> elgrodo: Wellington, land of Silverstripe!
983: [20:14:03] <ss23> Starting working there on Monday
984: [20:14:47] <elgrodo> where are you based now?
985: [20:16:11] <ss23> Hamilton
986: [20:16:45] * zfmf1 has joined #silverstripe
987: [20:17:04] <elgrodo> hardly ever been there when I was living in Wellywood
988: [20:17:18] <elgrodo> hardly ever *went*, brain fried from deretarding this codebase
989: [20:18:11] * lobarvaz has joined #silverstripe
990: [20:19:10] <elgrodo> managed to get the photos cached in the page and fix retard counting of comments and likes
991: [20:19:24] <elgrodo> then noticed that a method to get the number of notifications was taking 2 seconds
992: [20:19:44] <elgrodo> turns out it is executing N+1 queries where N is the number of comments you have made
993: [20:21:45] <ss23> lol
994: [20:21:51] <ss23> That sounds expensive...
995: [20:28:26] * ivoba has joined #silverstripe
996: [20:30:04] * Kolin quit (Read error: Operation timed out)
997: [20:30:11] * Kolin has joined #silverstripe
998: [20:30:34] * nikrolls has joined #silverstripe
999: [20:31:06] * elgrodo quit (Ping timeout: 244 seconds)
1000: [20:33:21] * gordon has joined #silverstripe
1001: [20:33:45] * gordon is now known as Guest37019
1002: [20:44:59] * mobiusnz has joined #silverstripe
1003: [20:45:32] * mobiusnz quit (Client Quit)
1004: [21:06:28] <guci0> spronk: Good question, return false? After String?
1005: [21:13:16] * zippy__ quit (Quit: zippy__)
1006: [21:19:23] * Peavers quit (Ping timeout: 276 seconds)
1007: [21:20:08] * Peavers has joined #silverstripe
1008: [21:48:11] <guci0> test
1009: [21:50:43] <Guest37019> icles
1010: [21:51:01] <kinglozzer> Heh
1011: [21:51:07] * Guest37019 is now known as elgrodo
1012: [21:54:18] <kinglozzer> Can anyone recommend any PHP ecom platforms? We've been using Lemonstand but they've decided that they'd like to charge $1,500 annually instead of $500 one-off..
1013: [21:55:38] <Kolin> kinglozzer: https://drupal.org/project/commerce_kickstart
1014: [21:56:31] <Kolin> It's a highly customised google comemerce install
1015: [21:56:54] * sam____ has joined #silverstripe
1016: [21:57:40] <kinglozzer> Thanks I'll add it to the list of stuff to check out
1017: [21:57:49] <Kolin> http://www.drupalcommerce.org/product/commerce-kickstart thats probably a better place to get started :)
1018: [21:58:38] <sam____> Hi all need some help
1019: [21:58:46] <sam____> on dataobject manager
1020: [21:59:02] <sam____> the uploading image comes to 100 % and vanishes of
1021: [21:59:12] <sam____> Please help
1022: [21:59:19] <sam____> it does not attache the image
1023: [21:59:28] <sam____> but image getting uploaded
1024: [22:01:33] * travis-ci has joined #silverstripe
1025: [22:01:33] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#298 (3.1 - a9bf7df : Ingo Schommer): The build passed.
1026: [22:01:33] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/975e09643f4f...a9bf7dfccea3
1027: [22:01:33] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/8081453
1028: [22:01:33] * travis-ci has left #silverstripe
1029: [22:23:14] * Colin[pi] quit ()
1030: [22:25:54] * sam____ quit (Quit: Page closed)
1031: [22:26:00] * gumble has joined #silverstripe
1032: [22:30:05] <gumble> hey, I have a controller action getCategory. So /categories/getCategory/ should link to that actions or not? (it is on the categories-controller) Well it shows me a litte "not found" on white background, not even the real 404 Error Page. getCategory is in the allowed_actions array. Any guess what I could be missing?
1033: [22:43:09] * gordon__ has joined #silverstripe
1034: [22:44:10] * zippy__ has joined #silverstripe
1035: [22:45:01] * elgrodo quit (Ping timeout: 264 seconds)
1036: [22:49:10] * zippy__ quit (Quit: zippy__)
1037: [22:50:45] * kinglozzer quit (Remote host closed the connection)
1038: [22:53:09] * kinglozzer has joined #silverstripe
1039: [22:55:03] * Peavers quit (Ping timeout: 264 seconds)
1040: [22:55:20] * Peavers has joined #silverstripe
1041: [23:07:51] <gumble> now I am gettingen HTTP Error 500 with ?debug_request showing nothing and the error log being empty? where do I have to search?
1042: [23:09:13] <gumble> 127.0.0.1/admin also gives me internal server error. but not displayed by silverstripe but the default 500 page from chromium (....error 500, reload page)
1043: [23:12:17] * zippy__ has joined #silverstripe
1044: [23:15:03] <hubertusanton> im using translatable for a site, but i18n stays on en_us locale, is this the richt way to tell i18n to use translatable current locale?
1045: [23:15:04] <hubertusanton> i18n::set_locale(Translatable::get_current_locale());
1046: [23:15:13] <hubertusanton> in init() of Page class
1047: [23:15:35] <hubertusanton> or is there a better way?
1048: [23:26:37] * zippy__ quit (Quit: zippy__)
1049: [23:30:40] * Marvanni has joined #silverstripe
1050: [23:31:36] <Marvanni> when I set a Field as Required, it still validates on a single space.
1051: [23:31:47] <Marvanni> Is that intended behaviour?
1052: [23:41:41] <kinglozzer> Probably, yes
1053: [23:47:15] * mrzero quit (Remote host closed the connection)

These logs were automatically created by ss-log on irc.freenode.net. This site is powered by code available under a BSD license.