#silverstripe IRC Log

IRC log for 14 June 2013

Logging sponsored by you? Get in touch!

All timestamps are in UTC.

1: [00:00:10] <folibis> i am so confused with custom reports or rather with documentation )
2: [00:00:41] <Pyromanik> folibis: understandable
3: [00:00:50] <Pyromanik> it's change a little bit since docs were written
4: [00:01:34] <folibis> http://doc.silverstripe.org/framework/en/reference/site-reports - Your CustomSideReport_ReportName must extend SideReport!
5: [00: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
6: [00:02:25] <folibis> so what have i use - SideReport, ReportAdmin or SS_Report?
7: [00:04:30] <Pyromanik> folibis: sidereport is obsolete, possibly even removed
8: [00:04:36] <Pyromanik> it's SS 2.4 specific
9: [00:04:56] <Pyromanik> ReportAdmin is the admin interface for displaying reports (extends LeftAndMain)
10: [00:05:03] <Pyromanik> SS_Report is what you should extend.
11: [00:05:23] <Pyromanik> dev/build and it should magically show up in your report admin
12: [00:05:48] <priithansen> cms/code/reports/ for inspiration
13: [00:06:03] <folibis> ah, understood. SS_ preffix is specific for 3.x as i see
14: [00:06:07] <coldblooded01> got it to dev/build successfully without fatal error
15: [00:06:20] <coldblooded01> but, when i try to add page with page type UDF:
16: [00:06:21] <coldblooded01> Notice at line 930 of /home/www/paccpams13.net/framework/view/SSViewer.php
17: [00:06:30] <coldblooded01> got that error
18: [00:08:06] * Colin[pi] has joined #silverstripe
19: [00:08:26] <zippy__> need more of the error message
20: [00:08:37] <zippy__> Colin[pi]: afternoon
21: [00:09:39] <zippy__> I can't for the life of me figure out how to populate a SS_DateTime field in a model
22: [00:09:51] <zippy__> doMagic() function not found!
23: [00:10:25] * folibis quit (Quit: Page closed)
24: [00:11:05] <spronk> ugh
25: [00:11:06] <spronk> fuck you ss3.1
26: [00:11:13] <spronk> deprecating empty string as a constructor argument for DropdownField
27: [00:11:30] <spronk> then, fucking up jquery chosen selection when you subclass it :@
28: [00:12:06] <zippy__> The love, I can feel it
29: [00:12:28] <spronk> to be brutally honest, i want an empty string far more often than not
30: [00:13:03] * pex quit (Ping timeout: 246 seconds)
31: [00:13:34] * nickmolhoek has joined #silverstripe
32: [00:13:35] * nickmolhoek quit (Remote host closed the connection)
33: [00:14:30] * Jedateach has joined #silverstripe
34: [00:15:00] <Pyromanik> coldblooded01: that doesn't tell us anything
35: [00:15:14] <Pyromanik> just that there was a notice on line blah of some class that doesn't matter
36: [00:16:19] <coldblooded01> i did ?debug_request
37: [00:16:20] <coldblooded01> and got this
38: [00:16:21] <coldblooded01> [User Warning] None of these templates can be found in theme 'simple': SiteTree_Information.ss
39: [00:16:33] <Pyromanik> spronk: hmm, interesting, I agree. new DropdownField('Name', 'Title', $list->Map(), '', null, '(none)') is all very very common for me.
40: [00:16:42] <Pyromanik> coldblooded01: so basically you forgot to ?flush
41: [00:17:07] <Pyromanik> ?flush=all
42: [00:17:18] <coldblooded01> pyro, i dont know what id do without you today
43: [00:17:22] * Jedateach has left #silverstripe
44: [00:17:26] <coldblooded01> thanks man :)
45: [00:17:36] <Pyromanik> it's the most common ssviewer error other than "You fucked up your template tags"
46: [00:18:01] <Pyromanik> you're welcome
47: [00:19:10] <coldblooded01> :)
48: [00:20:08] <zippy__> Pyromanik: Guru :) You know much with the SS_DateTime - or any date field?
49: [00:20:27] <zippy__> I might just go to a VarChar and add the date manually
50: [00: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'); } }
51: [00:22:02] <Pyromanik> zippy__: what is your issue?
52: [00:22:14] <Pyromanik> there is Date, SS_Datetime
53: [00:22:23] <zippy__> right, I want Time as well, so using SS_DateTime
54: [00:22:25] <Pyromanik> maybe a Time, but I don't remember specifically
55: [00:22:34] <zippy__> but I can't figure out how to set the value on the object
56: [00:22:46] <zippy__> in my object I have - 'DateDone' => 'SS_DateTime'
57: [00:22:49] <Pyromanik> spronk: choice bro
58: [00:22:55] <zippy__> in the $db array, and that is OK
59: [00:23:07] <zippy__> but how can I populate that field in the controller?
60: [00:23:17] <zippy__> $this->DateDone = .
61: [00:23:19] <Pyromanik> zippy__: just give it a date('correctformat')
62: [00:23:39] <Pyromanik> iirc
63: [00:24:09] <zippy__> I tried using $this->DateDone = SS_DateTime::Now() which should make a nice date, but doesn't seem to populate it
64: [00:24:14] <zippy__> though that seems to return an object
65: [00:25:24] <Pyromanik> yeh
66: [00:25:25] <coldblooded01> more issue with UDF: Under the Form tab, I select an option from the drop down and click "Add" button
67: [00:25:28] <coldblooded01> nothing happens
68: [00:25:53] <Pyromanik> zippy__: you want to set it to the string "Y M d H:m:s" iirc
69: [00: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.
70: [00:26:09] <Pyromanik> coldblooded01: check your console
71: [00:26:18] <coldblooded01> ok
72: [00:26:45] <Pyromanik> zippy__: Y-m-d H:m:s perhaps
73: [00:28:59] <zippy__> Pyromanik: mmm it's just not populating the database on write… it's weird
74: [00:29:07] <coldblooded01> hmm, nothing in console but just GET http://XX/admin/pages/treeview 200 OK 1.44s
75: [00:31:05] * trent001 quit (Remote host closed the connection)
76: [00:31:08] <Pyromanik> zippy__: I remember having issues with them before
77: [00:31:19] <Pyromanik> zippy__: look at how siteTree stores 'Created'
78: [00:31:21] <spronk> hrm
79: [00:31:21] <Pyromanik> i'm out to lunch
80: [00:31:28] <zippy__> Pyromanik: good idea
81: [00:31:33] <spronk> why does paddedimage in 3.1 give black backgroundinstead of white
82: [00:33:33] <spronk> because... docs say its padded white.
83: [00:46:03] * Bollig|DesignCty has joined #silverstripe
84: [00:46:11] <Peavers> If I put a function on a class that extends a dataobject, when is that function called?
85: [00:47:56] <Peavers> spronk also noticed that - and no idea ;)
86: [00:50:36] * trent001 has joined #silverstripe
87: [01:01:19] * priithansen quit (Quit: priithansen)
88: [01:02:45] * nickmolhoek has joined #silverstripe
89: [01:02:45] * nickmolhoek quit (Remote host closed the connection)
90: [01:03:00] * nickmolhoek has joined #silverstripe
91: [01:10:15] * coldblooded01 quit (Quit: Page closed)
92: [01:13:30] * helenclarko has joined #silverstripe
93: [01: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?
94: [01:20:07] <helenclarko> I am using SS 2.4.5
95: [01:22:02] * Hippieee quit (Quit: Leaving)
96: [01:27:20] * Hippieee has joined #silverstripe
97: [01:28:15] <Colin[pi]> good morning
98: [01:29:33] <willr_> Colin[pi] is obviously in < GMT+11
99: [01:29:53] <willr_> thank god it's afternoon here. Long week!
100: [01:30:54] <Colin[pi]> yeah almost noon here
101: [01:31:01] <Colin[pi]> rough week willr?
102: [01:32:14] <willr_> Oh boy yeah.
103: [01:32:39] <willr_> one of those weeks that just nothing goes right.
104: [01:33:18] <Colin[pi]> arg
105: [01:33:19] <Colin[pi]> :(
106: [01: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?
107: [01:35:57] <willr_> sadly haven't even done any SS Work bah.
108: [01:36:04] <Colin[pi]> the usual things, but no customisation of items
109: [01:37:23] <willr_> I've only used shopify for my commerce stuff, none of the SS ones
110: [01: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
111: [01:38:14] <helenclarko> I wonder if I should be using something other thatn the SS modules for ecommerce.
112: [01:38:21] <Colin[pi]> well yet to determine if I'd use off the shelf or roll my own
113: [01:38:36] <Colin[pi]> I have about 60% of it already done for a separate project in SS
114: [01:38:44] <Colin[pi]> (no gateway, but everything else)
115: [01:38:49] <willr_> Please don't roll your own, already like 4 commerce modules, would kill for 1 decent one
116: [01:39:48] <Colin[pi]> hmm
117: [01:39:55] <Colin[pi]> what's shopify like, any good?
118: [01:40:56] <helenclarko> can you theme shopify to fit in with your SS site?
119: [01:41:29] <willr_> helenclarko sure.
120: [01:42:06] <Colin[pi]> I was thinking about $8K to cover a basic ecomm site, too little, too much, spot on?
121: [01:42:12] <willr_> shopify admin is beautiful. Product is great. I wouldn't bother with anything else these days
122: [01:42:13] <helenclarko> Im looking at the examples.
123: [01:43:06] <Pyromanik> spronk: because it was a transparent background on a PNG
124: [01:43:29] <Pyromanik> ie rgba(0,0,0,0.0)
125: [01:43:31] <tankr> SwipeStripe might work for your needs helenclarko - it is currently on a licence model though
126: [01:43:50] <Pyromanik> tankr: yeah, but so is shopify
127: [01:43:53] <Colin[pi]> that was going to be one of my options I'd look at too :)
128: [01:44:23] <Pyromanik> tankr: in fact, shopify is a subscription model, not licence.
129: [01: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"
130: [01:45:58] <tankr> helenclarko: ok fair enough, will keep you posted if that changes! or maybe subscribe to the swipestripe newsletter or something
131: [01:46:02] <Colin[pi]> I cringe when I hear of the "on-the-cheap" requests because imho you get what you pay for :\
132: [01:47:24] <helenclarko> Exactly. I hate hearing that as a request from clients. I feel like saying, "so you dont want a website then?"
133: [01:47:29] <Pyromanik> helenclarko: depending on the setup, you might get away with wiring straight to payment module
134: [01:47:44] <Colin[pi]> my experience proves that the ones that want to pay the least will take most of your time
135: [01:47:52] <Pyromanik> Colin[pi]: always true
136: [01:47:58] <Pyromanik> they're the WORST at scope creep
137: [01:48:07] <tankr> Colin[pi]: lol, so true
138: [01:48:10] <Colin[pi]> I have one like that, drives me nuts
139: [01:48:19] <helenclarko> Pyromanik: sounds interesting.
140: [01:48:34] <Pyromanik> helenclarko: fits well with 'deal of the day' type sites
141: [01:49:29] <helenclarko> Ill have to look into that. It gives me a few ideas actually.
142: [01:50:00] <helenclarko> Thanks
143: [01: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.
144: [01:50:18] <Pyromanik> because they'll haev a whinge when it comes time to the invoice too.
145: [01:50:21] <Pyromanik> and take forever to pay it
146: [01:50:26] <Pyromanik> slash do a runner
147: [01:52:48] <helenclarko> if thats the case, Ive already wasted time on the general setup and template creation.
148: [01:53:20] <spronk> Pyromanik: but 3.0 is white, 3.1 is black
149: [01:53:30] <spronk> and docs say any padding is white
150: [01:54:20] <Colin[pi]> be careful helenclarko, I've been burned before by clients like that
151: [01: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.
152: [02:11:34] * DesignerX has joined #silverstripe
153: [02:13:07] * DesignerX quit (Client Quit)
154: [02:13:25] * DesignerX has joined #silverstripe
155: [02:14:18] * metanat1 quit (Quit: Leaving.)
156: [02:15:07] * unsignedint quit (Remote host closed the connection)
157: [02:17:34] <Pyromanik> spronk: oh, 3.1 has a new backend
158: [02:18:05] <spronk> hrm
159: [02:18:08] <Pyromanik> GD and Image have been decoupled into Image, Image_Backend and GD.
160: [02:18:17] <Pyromanik> or ImageMagick
161: [02:19:01] <spronk> le sigh
162: [02:19:03] <Pyromanik> helenclarko: no idea. What does the error say?
163: [02:28:25] <zippy__> :)
164: [02:28:44] <Pyromanik> http://devopsreactions.tumblr.com/post/52368854242/writing-unit-tests
165: [02:30:30] * mobiusnz has joined #silverstripe
166: [02:39:44] * unsignedint has joined #silverstripe
167: [02:48:06] * nickmolhoek quit (Quit: nickmolhoek)
168: [02:50:35] * unsignedint quit (Remote host closed the connection)
169: [02:58:19] * metanat has joined #silverstripe
170: [03:05:04] * cloph_away has joined #silverstripe
171: [03:05:14] * cloph quit (Ping timeout: 245 seconds)
172: [03:06:02] <helenclarko> pyromanik: Sorry for not replying... I decided to go with the third party opencard.
173: [03: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.
174: [03:10:00] <helenclarko> *NOT WORTH the time*
175: [03:10:48] * metanat quit (Quit: Leaving.)
176: [03:11:07] * helenclarko quit (Quit: Page closed)
177: [03:31:02] * zippy__ quit (Quit: zippy__)
178: [03:55:40] * elgrodo running into an annoying issue with partial caching
179: [03:55:48] <elgrodo> trying to call a controller method but it's not being called
180: [03:55:52] <Bollig|DesignCty> mate, if I had a dollar....
181: [03:56:46] * folibis has joined #silverstripe
182: [03:57:11] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
183: [03: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,
184: [03: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
185: [03:58:49] <elgrodo> and then does a Count in the template...
186: [03:58:50] <elgrodo> #facepalm
187: [03:59:54] <elgrodo> oh non caching changes not being picked up
188: [04:01:30] * Bollig|DesignCty has joined #silverstripe
189: [04:03:06] * cloph has joined #silverstripe
190: [04:03:16] * folibis quit (Quit: Page closed)
191: [04:03:25] * cloph_away quit (Ping timeout: 240 seconds)
192: [04:05:38] <Pyromanik> fix'n dat widgets
193: [04: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!
194: [04:12:46] <elgrodo> ah, cannot cache in if blocks
195: [04:12:52] <elgrodo> a Post can be of 4 different types
196: [04:13:07] <elgrodo> <% if Type == Image %>render image<% end_if %>
197: [04:13:10] <elgrodo> Video etc
198: [04:13:14] <elgrodo> grrrrrrrrrrrrrrrr
199: [04:13:47] <elgrodo> instead of erroring through SS just blanks out
200: [04: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.
201: [04:17:58] <elgrodo> I used to work with a guy who did XSLT in notepad
202: [04:18:04] <elgrodo> once you know a system any text editor is fine
203: [04:20:06] <elgrodo> and this barfs the parser: <% include $SubTemplateToUse %>
204: [04:20:23] <elgrodo> I cant use an if to choose a different template because then caching does not work
205: [04:28:06] <trent001> cheers elgrodo
206: [04: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
207: [04:30:52] <elgrodo> I use ST2 also
208: [04:32:52] <elgrodo> caching called here inside an if http://sspaste.com/paste/show/51ba9cb1637c9
209: [04:32:52] * WilsonS has joined #silverstripe
210: [04: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!
211: [04:34:51] <Pyromanik> OH MY GOD FRUNT END PPLZ IZ SO LIEK RETARD
212: [04:34:55] <Pyromanik> http://coding.smashingmagazine.com/2012/10/09/designing-javascript-apis-usability/
213: [04:35:02] <Pyromanik> "Commands and Queries"
214: [04:35:13] * MrJeremy has left #silverstripe
215: [04:35:38] <Pyromanik> zomg wtf
216: [04:35:52] <Pyromanik> why is this a fucking revolution? Why did you have to go and name it something new?
217: [04:36:05] <Pyromanik> object orientation has been around for DECADES
218: [04:36:23] <Pyromanik> why not just say "Getters and Setters" and call it encapsulation like everyone else.
219: [04: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
220: [04:37:19] <Pyromanik> **Blogs for coders
221: [04:37:35] <Pyromanik> your target audience should know this
222: [04:37:50] <Pyromanik> WHY ARE YOU WASTING MY TIME AND MAKING ME SO GODDAMN ANGRY AT THE SAME TIME
223: [04:38:30] * Shrike_Finland has joined #silverstripe
224: [04:38:54] <Pyromanik> and they always seem to revolve around f'n wordpress
225: [04:39:01] <Pyromanik> which is a shit system that shouldn't be used.
226: [04:39:45] <Pyromanik> eg. smashing mag has "Design Patterns" listed under mobile.
227: [04:40:17] <Pyromanik> It's like design patterns don't exist for all other facets covered on their website.
228: [04:41:14] <Pyromanik> WilsonS: $('link selector').fancybox({type:'iframe'});
229: [04:41:45] <Pyromanik> ContactPage extends UserDefinedForm {}
230: [04:42:01] <Pyromanik> ContactPage_Controller extends UserDefinedForm_Controller {
231: [04:42:52] <Pyromanik> public function isAjax() { return Director::is_ajax(); }
232: [04:42:55] <Pyromanik> }
233: [04:43:05] <Pyromanik> then you can <% if isAjax %> in your template
234: [04:44:21] <Pyromanik> public function index() { return $this->isAjax() ? $this->renderWith('LayoutTemplateHere') : $this; }
235: [04:44:36] <willr_> Pyromanik it's a pretty comprehensive JS guide though
236: [04:44:47] <Pyromanik> willr_: ?
237: [04:44:54] <Pyromanik> oh right
238: [04:44:56] <elgrodo> ok, now I have a cache method being called inside an if inside a loop inside another if
239: [04:44:57] <Pyromanik> yeah the article is good
240: [04:44:58] <Pyromanik> just
241: [04:44:59] <Pyromanik> mad
242: [04:45:02] <Pyromanik> coz mad.
243: [04:45:11] <WilsonS> Ah, thanks Pyromanik. I tried that extending the class originally but extension wasn't recognized. Will use your advice. Thanks.
244: [04: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.
245: [04:47:20] <Pyromanik> that any one who wants to call themselves a developer should know.
246: [04:47:36] <Pyromanik> and they plonk new buzzwords and all kinds of flashy BS over the top
247: [04:48:11] * Shrike_Finland quit (Quit: Leaving.)
248: [04:48:19] <trent001> Some of the front end stuff happening now with node etc is quite impressive :)
249: [04: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.
250: [04:48:56] <trent001> TBH I looked at the article but couldn't be bother reading it lol
251: [04:49:07] <Pyromanik> which basically amounts to "Encapsulate, make each object responsible for one thing only, make crap modular so you can reuse it"
252: [04:49:09] <trent001> Well I guess node covers back end as well
253: [04: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
254: [04:49:52] <willr_> perhaps that's just friday
255: [04:50:07] <trent001> yeah it's almost beer o'clock :)
256: [04: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.
257: [04:51:40] <trent001> No from what I skim read I fully agree with you
258: [04:52:14] <Pyromanik> basically: take a solid principle and wrap it up like it's some kind of hack.
259: [04:52:37] <trent001> I think there are more interesting "NEW" things going on in javascript atm that they could cover than that :)
260: [04:52:55] <Pyromanik> web: make it look like we're reinventing everything so we do and end up where we were 30 years ago.
261: [04:53:07] <Pyromanik> yeah
262: [04: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.
263: [04:53:49] * tankr quit (Quit: Leaving.)
264: [04:53:51] <Pyromanik> and a lot of 'coding' sites are like that
265: [04:53:52] <trent001> Have you heard of this new html 7 element it's called a <table> ???
266: [04:53:59] <Pyromanik> yeah right
267: [04:54:08] <Pyromanik> I finally looked at grid systems the other day
268: [04:54:09] <trent001> :)
269: [04:54:16] <Pyromanik> I was all "Oh, tables without <table>
270: [04:54:17] <trent001> which one
271: [04:54:18] <Pyromanik> "
272: [04:54:21] <Pyromanik> all of them
273: [04:54:21] <trent001> ??
274: [04:54:22] <Pyromanik> useless
275: [04:54:30] <Pyromanik> HEY BRO, 12 SLOTS, ENJOY
276: [04:54:39] <trent001> lol
277: [04:54:42] <Pyromanik> but... I have 9 items evenly spaced...
278: [04:54:56] <Pyromanik> NOW WHAT GRID KID?
279: [04:54:57] <trent001> I think for the right site they can be a time saver
280: [04:55:13] <Pyromanik> I think if you're designing IN a grid, you'll do well.
281: [04:55:17] <Pyromanik> but you're limited.
282: [04: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. '
283: [04:55:24] <Pyromanik> and everything ends up looking like another twitter.
284: [04:55:24] <elgrodo> NO IT DOES NOT!
285: [04:55:28] <Pyromanik> (gg bootstrap)
286: [04:55:40] <trent001> yeah lol
287: [04:55:42] <Pyromanik> elgrodo: haha, sounds like 2.4 docs.
288: [04:55:56] <elgrodo> I now have partials being created
289: [04:56:03] <Pyromanik> trent001: like this BEM thing that smashing mag featured a while ago
290: [04:56:12] <elgrodo> but my cache key is hardwired so all images should be the same
291: [04:56:16] <elgrodo> they are not...
292: [04: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.
293: [04:56:34] <Pyromanik> basically how an interface element on a website should be self contained, and presentation should be separate from back end code...
294: [04:56:40] <Pyromanik> and I was all "wow, really?"
295: [04:57:01] <Pyromanik> I think like that already. If anyone reading this doesn't, no wonder the web has so many issues.
296: [04:57:22] <trent001> Lol
297: [04:57:28] <Pyromanik> trent001: the issue with many grid systems is that they rely on border-box
298: [04:57:42] <WilsonS> Ajax solution worked great Pyromanik. Thanks
299: [04:57:56] <Pyromanik> you're welcome WilsonS :)
300: [04:58:10] <elgrodo> ah nope I've been dumb
301: [04:58:17] <WilsonS> Much appreciated, have a good one
302: [04:58:19] <elgrodo> it's called the cache key method on the Post itself within the loop
303: [04:58:25] <elgrodo> value set to rand() :)
304: [04:58:43] * WilsonS quit (Quit: Page closed)
305: [04:59:16] <elgrodo> hooray, finally getting expected behaviour #mission
306: [04: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.
307: [05:00:46] <Pyromanik> yeah, the other day they published a guide on how to convert an html site into wordpress
308: [05:00:49] <Pyromanik> and I got full mad
309: [05:00:58] <Pyromanik> anyway, beer time, have a good weekend!
310: [05:01:06] * Pyromanik quit (Quit: leaving)
311: [05:01:58] <trent001> See ya pyro
312: [05:26:05] * Shrike_Finland has joined #silverstripe
313: [05:28:52] * guzzlefry has joined #silverstripe
314: [05:29:24] <FrozenFire> Damn right.
315: [05:30:46] <guzzlefry> :P
316: [05:30:48] * trent001 quit (Remote host closed the connection)
317: [05:31:33] * willr_ quit (Quit: willr_)
318: [05:33:03] * DigNZ quit (Quit: DigNZ)
319: [05:47:15] * guzzlefry quit (Quit: Leaving.)
320: [06:03:54] * willr_ has joined #silverstripe
321: [06:03:54] * willr_ quit (Changing host)
322: [06:03:54] * willr_ has joined #silverstripe
323: [06:06:06] * hubertusanton has joined #silverstripe
324: [06:15:47] * priithansen has joined #silverstripe
325: [06:19:22] * mobiusnz quit (Quit: Leaving.)
326: [06:27:02] * MrJeremy has joined #silverstripe
327: [06:34:20] * willr_ quit (Quit: willr_)
328: [06:41:24] * guci0 has joined #silverstripe
329: [06:41:36] <guci0> Hello All!
330: [06:42:04] <DesignerX> guci0: hi, Welcome, are you new here :D
331: [06:52:47] * willmorgan has joined #silverstripe
332: [06:59:34] * willr_ has joined #silverstripe
333: [07:07:48] * osterlaus has joined #silverstripe
334: [07:08:57] * travis-ci has joined #silverstripe
335: [07:08:58] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#296 (3.1 - acf42e8 : Will Rossiter): The build passed.
336: [07:08:58] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/5ff69b98ab62...acf42e87c24a
337: [07:08:58] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/8077900
338: [07:08:58] * travis-ci has left #silverstripe
339: [07:12:25] <ss23> Leaving in less than 12 hours, HAVEN'T STARTED PACKING
340: [07:16:44] <spronk> lol?
341: [07:23:33] * willr_ quit (Quit: willr_)
342: [07:31:17] <spronk> ugh
343: [07:31:20] <spronk> what the fuck does isEmpty actually do
344: [07:34:43] * MrJeremy quit (Quit: MrJeremy)
345: [07:37:16] <guci0> DesignerX: Now I'm back from Vacation – and I don't know what next :)
346: [07:40:04] * chillu has joined #silverstripe
347: [07:53:02] * svandragt has joined #silverstripe
348: [07:59:22] * Peavers quit (Ping timeout: 252 seconds)
349: [07:59:31] * Peavers has joined #silverstripe
350: [08:00:20] * kinglozzer has joined #silverstripe
351: [08:02:07] * travis-ci has joined #silverstripe
352: [08:02:07] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#297 (3.1 - 975e096 : Ingo Schommer): The build passed.
353: [08:02:07] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/acf42e87c24a...975e09643f4f
354: [08:02:07] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/8078843
355: [08:02:07] * travis-ci has left #silverstripe
356: [08:04:24] * zippy__ has joined #silverstripe
357: [08:09:41] <elgrodo> ss23: Where are youo going?
358: [08:14:00] <ss23> elgrodo: Wellington, land of Silverstripe!
359: [08:14:03] <ss23> Starting working there on Monday
360: [08:14:47] <elgrodo> where are you based now?
361: [08:16:11] <ss23> Hamilton
362: [08:16:45] * zfmf1 has joined #silverstripe
363: [08:17:04] <elgrodo> hardly ever been there when I was living in Wellywood
364: [08:17:18] <elgrodo> hardly ever *went*, brain fried from deretarding this codebase
365: [08:18:11] * lobarvaz has joined #silverstripe
366: [08:19:10] <elgrodo> managed to get the photos cached in the page and fix retard counting of comments and likes
367: [08:19:24] <elgrodo> then noticed that a method to get the number of notifications was taking 2 seconds
368: [08:19:44] <elgrodo> turns out it is executing N+1 queries where N is the number of comments you have made
369: [08:21:45] <ss23> lol
370: [08:21:51] <ss23> That sounds expensive...
371: [08:28:26] * ivoba has joined #silverstripe
372: [08:30:04] * Kolin quit (Read error: Operation timed out)
373: [08:30:11] * Kolin has joined #silverstripe
374: [08:30:34] * nikrolls has joined #silverstripe
375: [08:31:06] * elgrodo quit (Ping timeout: 244 seconds)
376: [08:33:21] * gordon has joined #silverstripe
377: [08:33:45] * gordon is now known as Guest37019
378: [08:44:59] * mobiusnz has joined #silverstripe
379: [08:45:32] * mobiusnz quit (Client Quit)
380: [09:06:28] <guci0> spronk: Good question, return false? After String?
381: [09:13:16] * zippy__ quit (Quit: zippy__)
382: [09:19:23] * Peavers quit (Ping timeout: 276 seconds)
383: [09:20:08] * Peavers has joined #silverstripe
384: [09:48:11] <guci0> test
385: [09:50:43] <Guest37019> icles
386: [09:51:01] <kinglozzer> Heh
387: [09:51:07] * Guest37019 is now known as elgrodo
388: [09: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..
389: [09:55:38] <Kolin> kinglozzer: https://drupal.org/project/commerce_kickstart
390: [09:56:31] <Kolin> It's a highly customised google comemerce install
391: [09:56:54] * sam____ has joined #silverstripe
392: [09:57:40] <kinglozzer> Thanks I'll add it to the list of stuff to check out
393: [09:57:49] <Kolin> http://www.drupalcommerce.org/product/commerce-kickstart thats probably a better place to get started :)
394: [09:58:38] <sam____> Hi all need some help
395: [09:58:46] <sam____> on dataobject manager
396: [09:59:02] <sam____> the uploading image comes to 100 % and vanishes of
397: [09:59:12] <sam____> Please help
398: [09:59:19] <sam____> it does not attache the image
399: [09:59:28] <sam____> but image getting uploaded
400: [10:01:33] * travis-ci has joined #silverstripe
401: [10:01:33] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#298 (3.1 - a9bf7df : Ingo Schommer): The build passed.
402: [10:01:33] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/975e09643f4f...a9bf7dfccea3
403: [10:01:33] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/8081453
404: [10:01:33] * travis-ci has left #silverstripe
405: [10:23:14] * Colin[pi] quit ()
406: [10:25:54] * sam____ quit (Quit: Page closed)
407: [10:26:00] * gumble has joined #silverstripe
408: [10: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?
409: [10:43:09] * gordon__ has joined #silverstripe
410: [10:44:10] * zippy__ has joined #silverstripe
411: [10:45:01] * elgrodo quit (Ping timeout: 264 seconds)
412: [10:49:10] * zippy__ quit (Quit: zippy__)
413: [10:50:45] * kinglozzer quit (Remote host closed the connection)
414: [10:53:09] * kinglozzer has joined #silverstripe
415: [10:55:03] * Peavers quit (Ping timeout: 264 seconds)
416: [10:55:20] * Peavers has joined #silverstripe
417: [11: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?
418: [11: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)
419: [11:12:17] * zippy__ has joined #silverstripe
420: [11: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?
421: [11:15:04] <hubertusanton> i18n::set_locale(Translatable::get_current_locale());
422: [11:15:13] <hubertusanton> in init() of Page class
423: [11:15:35] <hubertusanton> or is there a better way?
424: [11:26:37] * zippy__ quit (Quit: zippy__)
425: [11:30:40] * Marvanni has joined #silverstripe
426: [11:31:36] <Marvanni> when I set a Field as Required, it still validates on a single space.
427: [11:31:47] <Marvanni> Is that intended behaviour?
428: [11:41:41] <kinglozzer> Probably, yes
429: [11:47:15] * mrzero quit (Remote host closed the connection)
430: [12:06:26] * ivoba quit (Ping timeout: 276 seconds)
431: [12:07:35] * UndefinedOffset has joined #silverstripe
432: [12:16:18] * RojoD has joined #silverstripe
433: [12:16:18] * RojoD quit (Changing host)
434: [12:16:18] * RojoD has joined #silverstripe
435: [12:19:25] * Peavers quit (Ping timeout: 245 seconds)
436: [12:20:05] * Peavers has joined #silverstripe
437: [12:24:25] * Peavers quit (Ping timeout: 245 seconds)
438: [12:24:55] * Peavers has joined #silverstripe
439: [12:38:51] <toebu> performance question ... we have a site with rather a lot of pages (~5000) and we find that navigating the sitetree in the admin interface can be quite trying at times, as the /admin/getsubtree?ajax=1&ID=X can take up to two minutes to complete
440: [12:39:46] <toebu> any one dealt with this problem before ?
441: [12:43:15] * kinglozzer quit (Remote host closed the connection)
442: [12:45:41] * mrzero has joined #silverstripe
443: [12:45:41] * mrzero quit (Changing host)
444: [12:45:41] * mrzero has joined #silverstripe
445: [12:46:35] * kinglozzer has joined #silverstripe
446: [12:47:38] * Zauberfisch^idle quit (Read error: Connection reset by peer)
447: [12:48:50] <Marvanni> try to serve DataObjects as Pages instead where possible
448: [12:49:28] <Marvanni> I use DataObjects voor Articles, Listings, Products etc instead of PageTypes
449: [12:55:29] * hubertusanton quit (Remote host closed the connection)
450: [13:03:13] * guci0 quit (Ping timeout: 250 seconds)
451: [13:06:23] * C10ne has joined #silverstripe
452: [13:08:42] * mario_ has joined #silverstripe
453: [13:08:42] * mario_ quit (Client Quit)
454: [13:09:07] * __mario has joined #silverstripe
455: [13:10:21] <C10ne> Anybody noticed an issue with css being loaded late (mainly after complete html is served), or maybe it's about my server?
456: [13:10:58] <__mario> when using the uploadfield, can I get it to show thumbnail images, when I clicking the "from files" button?
457: [13:11:44] * ivoba has joined #silverstripe
458: [13:12:28] <__mario> I've got another issue with the uploadfield, filter does not work.... anyone have a quick fix?
459: [13:20:07] <__mario> any idea?
460: [13:28:47] * __mario quit (Ping timeout: 250 seconds)
461: [13:31:00] * ecadre has joined #silverstripe
462: [13:57:01] * guci0 has joined #silverstripe
463: [14:04:53] * ivoba quit (Read error: Connection reset by peer)
464: [14:14:17] * guci0 quit (Ping timeout: 250 seconds)
465: [14:15:36] * zfmf1 quit (Remote host closed the connection)
466: [14:22:23] * Error404NotFound has joined #silverstripe
467: [14:26:09] * zfmf1 has joined #silverstripe
468: [14:29:25] * Zauberfisch^idle has joined #silverstripe
469: [14:29:46] <toebu> got a problem with /admin/getsubtree?ID=1&ajax=1 I get a list of pages as expected, BUT the connection does NOT terminate, instead the browser spinns happily, waiting for the end of the transmission ... after two minutes it stopps ...
470: [14:30:00] * Shrike_Finland quit (Quit: Leaving.)
471: [14:30:08] <toebu> if I call /admin/getsubtree?ID=1 (without the ajax) all is well
472: [14:30:31] <toebu> the problem only happens with ID=1 for other IDs the output works the same ...
473: [14:30:53] <toebu> the effect of this is that opening node 1 in the admin interface takes ages ..
474: [14:31:16] <toebu> I am a bit stomped as to where I should look for the cause of this
475: [14:41:00] * Nivery has joined #silverstripe
476: [14:43:04] * toebu quit (Remote host closed the connection)
477: [15:10:26] * osterlaus quit (Quit: Leaving.)
478: [15:19:44] * todd_v has joined #silverstripe
479: [15:32:32] * priithansen quit (Quit: priithansen)
480: [15:41:28] * ecadre has left #silverstripe
481: [15:53:27] * [lewellyn] has joined #silverstripe
482: [15:54:14] * lewellyn quit (Write error: Connection reset by peer)
483: [15:54:49] * [lewellyn] is now known as lewellyn
484: [15:57:40] * nepgear quit (Remote host closed the connection)
485: [15:58:28] * priithansen has joined #silverstripe
486: [15:59:45] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
487: [15:59:54] * nepgear has joined #silverstripe
488: [16:03:18] <RojoD> when I add a redirect-page, can I also set if it opens in a new window?
489: [16:09:16] * joelpittet quit (Remote host closed the connection)
490: [16:17:20] <C10ne> Anybody noticed an issue with css being loaded late (mainly after complete html is served), or maybe it's about my server?
491: [16:19:36] <FrozenFire> FOUC?
492: [16:19:54] * Shrike_Finland has joined #silverstripe
493: [16:20:03] <FrozenFire> Could be happening if you're putting your Javascript links before your CSS
494: [16:20:31] <FrozenFire> Since Javascript is blocking
495: [16:20:46] * nikrolls quit (Read error: Connection reset by peer)
496: [16:20:47] <C10ne> I moved it after the css requirements, still didnćt help.
497: [16:21:01] <FrozenFire> Well, make sure it's at the end of the body.
498: [16:21:11] <FrozenFire> If you use Requirements::javascript, that should do that for you.
499: [16:21:17] <FrozenFire> E.g. <% require javascript(...) %>
500: [16:21:59] <C10ne> Well, there's an issue that sometimes js from the includes is included before jquery, so i put only jquery in the head
501: [16:22:21] <FrozenFire> Nah, that's solved by doing all of the includes that a template *needs*, instead of trying to do them as inheritance.
502: [16:22:37] <FrozenFire> If another script you're specifying in a template needs jQuery, then specify both jQuery and the script.
503: [16:22:40] <FrozenFire> In each template.
504: [16:22:55] <C10ne> Well, I keep jquery in main Page.ss
505: [16:23:01] <FrozenFire> That's bad practise.
506: [16:24:22] <C10ne> Ok, will try various options, i try to keep template files self-contained, but as everything requires jquery I figured I'll always load it
507: [16:24:49] <FrozenFire> Not everything requires jQuery
508: [16:25:24] <FrozenFire> Just the things that require it
509: [16:25:38] <C10ne> Every script I write for the front end does, that's what I meant ;)
510: [16:25:38] <FrozenFire> When I do SS dev, I have a snippet in my editor for including jQuery
511: [16:25:51] <FrozenFire> <% require javascript(framework/thirdparty/jquery/jquery.js) %>
512: [16:29:44] * popeshoe quit (Quit: Leaving)
513: [16:30:34] <C10ne> OK, thanks, I'll move it to every ss file that requires it and test. It only happens in firefox, if you wait some time before reload (browsers standard caching, or something)
514: [16:50:02] * Shrike_Finland quit (Quit: Leaving.)
515: [16:52:16] * RojoD quit (Read error: Connection reset by peer)
516: [17:01:47] * lobarvaz quit (Remote host closed the connection)
517: [17:10:16] * Error404NotFound has joined #silverstripe
518: [17:22:36] * gelignite has joined #silverstripe
519: [17:36:41] * Nivery quit (Quit: Nivery)
520: [17:44:59] * priithansen quit (Quit: priithansen)
521: [17:48:39] * zippy__ has joined #silverstripe
522: [18:09:22] * Nivery has joined #silverstripe
523: [18:16:18] <ss23> TO WELLINGTON
524: [18:16:20] * ss23 flies away
525: [18:47:17] * C10ne quit (Ping timeout: 250 seconds)
526: [18:48:17] * zippy__ quit (Quit: zippy__)
527: [18:51:11] * travis-ci has joined #silverstripe
528: [18:51:11] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#300 (3.1 - 40eed9e : Ingo Schommer): The build passed.
529: [18:51:11] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/a9bf7dfccea3...40eed9e902e0
530: [18:51:11] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/8095937
531: [18:51:11] * travis-ci has left #silverstripe
532: [18:55:19] * Guits has joined #silverstripe
533: [18:59:24] * Error404NotFound quit (Ping timeout: 260 seconds)
534: [19:11:24] * Error404NotFound has joined #silverstripe
535: [19:16:21] <Nivery> has anyone else had a problem with flltering (magnifying glass icon) not working on a grid field? not getting an error message, but no actual filtering is occurring for a record editor or a relation editor
536: [19:20:13] * todd_v quit (Ping timeout: 250 seconds)
537: [19:28:05] * Guits quit (Ping timeout: 248 seconds)
538: [19:31:50] * Justin____ has joined #silverstripe
539: [19:51:59] * zippy__ has joined #silverstripe
540: [19:53:35] * Justin____ quit (Ping timeout: 250 seconds)
541: [20:01:16] * dospuntocero has joined #silverstripe
542: [20:02:43] * zippy__ quit (Quit: zippy__)
543: [20:02:49] * Nivery quit (Quit: Nivery)
544: [20:09:05] * guci0 has joined #silverstripe
545: [20:09:08] * mobiusnz has joined #silverstripe
546: [20:15:09] * micmania1 has joined #silverstripe
547: [20:24:13] <micmania1> Anybody has trouble using ?showtemplate=1 in 3.1?
548: [20:24:19] <micmania1> had*
549: [20:25:39] * Error404NotFound quit (Ping timeout: 276 seconds)
550: [20:30:23] * UndefinedOffset quit (Quit: Leaving.)
551: [20:38:18] * Error404NotFound has joined #silverstripe
552: [20:43:21] <FrozenFire> Anyone have a sensible SS3 nginx configuration example?
553: [20:43:49] <FrozenFire> And no, the one in the documentation is not sensible
554: [20:49:11] * zippy__ has joined #silverstripe
555: [20:50:40] * zfmf1 has left #silverstripe
556: [20:58:35] * dospunto_ has joined #silverstripe
557: [21:00:39] * dospuntocero quit (Ping timeout: 252 seconds)
558: [21:36:36] * willmorgan quit (Read error: Connection reset by peer)
559: [21:36:51] * willmorgan has joined #silverstripe
560: [21:45:54] * mobiusnz quit (Quit: Leaving.)
561: [21:47:34] * priithansen has joined #silverstripe
562: [21:48:22] * priithansen quit (Client Quit)
563: [21:48:37] * willr_ has joined #silverstripe
564: [21:48:37] * willr_ quit (Changing host)
565: [21:48:37] * willr_ has joined #silverstripe
566: [21:49:42] * gelignite quit (Quit: http://bit.ly/nkczDT)
567: [21:50:11] * mobiusnz has joined #silverstripe
568: [21:50:11] * mobiusnz quit (Client Quit)
569: [21:53:50] <micmania1> Just curious, why is there deprecation notices for 4.0 in the framework? Is it is development?
570: [21:54:32] <micmania1> in*
571: [21:55:32] <micmania1> Does Silverstripe have a roadmap?
572: [21:56:22] * dospunto_ quit (Remote host closed the connection)
573: [21:57:27] * dospuntocero has joined #silverstripe
574: [22:01:03] * travis-ci has joined #silverstripe
575: [22:01:04] <travis-ci> [travis-ci] chillu/silverstripe-framework#9 (pulls/insert-media-tweaks - cdbea97 : Ingo Schommer): The build passed.
576: [22:01:04] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-framework/compare/6ce2a90f19c3^...cdbea971b084
577: [22:01:04] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-framework/builds/8101502
578: [22:01:04] * travis-ci has left #silverstripe
579: [22:04:23] * priithansen has joined #silverstripe
580: [22:07:04] <willr_> micmania1 because 4.0 will be the next 'major' release. In theory deprecated methods target major versions
581: [22:07:35] <willr_> Before 4.0, there will probably be a 3.2 and 3.1 to get out
582: [22:08:47] * micmania1 quit (Ping timeout: 250 seconds)
583: [22:09:20] * priithansen quit (Quit: priithansen)
584: [22:13:36] * micmania1 has joined #silverstripe
585: [22:17:17] * priithansen has joined #silverstripe
586: [22:22:06] * chillu quit (Quit: chillu)
587: [22:26:11] * priithansen quit (Quit: priithansen)
588: [23:02:57] * Error404NotFound quit (Ping timeout: 268 seconds)
589: [23:15:03] * dospuntocero quit (Remote host closed the connection)
590: [23:16:02] * Error404NotFound has joined #silverstripe
591: [23:17:02] * dospuntocero has joined #silverstripe
592: [23:38:42] * mobiusnz has joined #silverstripe

Logging sponsored by you? Get in touch!

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