#silverstripe IRC Log

IRC log for 13 November 2013

All timestamps are in UTC.

1: [00:03:40] <ss23> simon_w: lunch today?
2: [00:04:28] * Stomach has joined #silverstripe
3: [00:04:51] <simon_w> had it!
4: [00:06:26] <ss23> :(
5: [00:07:18] <Stomach> augmentAllChildrenIncludingDeleted why you no longer work :(
6: [00:07:31] <ss23> lol
7: [00:07:36] <ss23> Those method names....
8: [00:07:47] <simon_w> Was delicious and free
9: [00:08:00] <ss23> Kind of like your mom
10: [00:08:02] <ss23> :D
11: [00:08:17] <simon_w> mom? What's a mom?
12: [00:08:48] <Stomach> yeah the method names are grand, but it no longer sorts the site tree in admin like it did in 2.4
13: [00:08:50] <Stomach> sadface as
14: [00:08:59] <Stomach> i just wanna order you by date stupid pages
15: [00:09:11] <ss23> simon_w: Check your color, bra.
16: [00:09:12] <EasyCo> If you call a method within a template loop, does the method have access to the loops context and itteration?
17: [00:09:14] <ss23> brah
18: [00:10:06] * UncleCheese quit (Quit: UncleCheese)
19: [00:10:43] * Zauberfisch_ has joined #silverstripe
20: [00:13:43] * Zauberfisch__ quit (Ping timeout: 252 seconds)
21: [00:14:43] <EasyCo> Yah nm, that won't work.
22: [00:16:55] <irogue23> halp, i'm being spammed with errors@silverstripe emails :P
23: [00:17:27] <irogue23> someone busy trying to do wordpress hax on my silverstripe, throwing all the exceptions
24: [00:23:29] <Stomach> better delete the site before they get your credit card details!!!!!!
25: [00:35:38] * wilr_ has joined #silverstripe
26: [00:39:43] * zfmf has left #silverstripe
27: [00:41:07] <Azure> Pyromanik: Let's see if I have this right. I name my extension class PhotoGalleryPageController_Extension, and the file appropriately named PhotoGalleryPageController_Extension.php.
28: [00:41:08] <Azure> I place my requirements (Requirements::Javascript('/whatever/script.js');) within a method named "init()" in the class.
29: [00:41:08] <Azure> In config.yml, I add the extension PhotoGalleryPageController_Extension onto the clas PhotoGalleryPage_Controller.
30: [00:41:14] <Azure> class*
31: [00:41:32] <Azure> I then run /dev/build?flush=all and then reload the page that uses the page type.
32: [00:42:15] * nh_ quit (Ping timeout: 250 seconds)
33: [00:50:08] * liam_ has joined #silverstripe
34: [00:50:32] * liam_ is now known as Guest32434
35: [00:55:30] <Nimle> In a many-to-many or has-many relationship, I have a newsletter has many news. It shows news tab in newsletter. So it is fine but when I click news tab, it wants me to create a new news for this newsletter. But I want to pick from existing news items.
36: [00:56:24] * wilr_ quit (Quit: wilr_)
37: [00:56:50] <Nimle> does anyone know how to deal with it?
38: [00:57:21] <Colin[pi]> WTF: https://github.com/search?q=exec+sudo+$_GET&type=Code
39: [01:01:24] <Nimle> I mean showing a grid view of existing newss items instead of showing link exisiting
40: [01:02:55] * UncleCheese has joined #silverstripe
41: [01:03:11] <Pyromanik> Azure: sounds pretty good to me.
42: [01:03:38] <Azure> The only problem: It didn't work.
43: [01:03:40] <Azure> :p
44: [01:03:49] <Pyromanik> 13:08 <@simon_w> mom? What's a mom?
45: [01:03:55] <Pyromanik> boom!
46: [01:04:01] <Pyromanik> aww snap ss23, you can't recover from that!
47: [01:04:10] <Azure> There has to be something else that I need to do to make the requirements work.
48: [01:04:29] <ss23> 13:16:56 < irogue23> halp, i'm being spammed with errors@silverstripe emails :P
49: [01:04:33] <ss23> 13:17:27 < irogue23> someone busy trying to do wordpress hax on my silverstripe, throwing all the exceptions
50: [01:04:38] <simon_w> Azure, extensions don't have init methods
51: [01:04:39] <Pyromanik> Azure: hmm
52: [01:04:39] <ss23> would be good to make it so that users can't trigger exceptions
53: [01:04:45] <Pyromanik> what simon_w said.
54: [01:04:47] <ss23> the whole "LETS DO FLOW CONTROL WITH EXCEPTIONS" seems a bit strange to me
55: [01:04:50] <Pyromanik> you need to check for a hook.
56: [01:04:54] <Pyromanik> otherwise nothing will work
57: [01:06:00] <simon_w> Use onAfterInit() instead
58: [01:06:23] <Pyromanik> or that what looks like a terrible hack: http://api.silverstripe.org/3.1/source-class-ContentController.html#99
59: [01:06:56] * Ryan-Toast has joined #silverstripe
60: [01:07:23] * wilr_ has joined #silverstripe
61: [01:07:24] * wilr_ quit (Client Quit)
62: [01:08:21] <Pyromanik> Azure: http://api.silverstripe.org/3.1/source-class-Controller.html#145
63: [01:08:31] <Pyromanik> etc.
64: [01:08:35] <Pyromanik> that's what a hook looks like.
65: [01:08:42] <Azure> Alright
66: [01:09:38] <Pyromanik> it means that it'll call whatever the first param is on all the extensions applied to it (ie 'onAfterInit' on all extensions that have an onAfterInit() defined on them)
67: [01:10:56] <Azure> Would I have to add the hook in myself to the module (and probably create a pull request for the module so then others can make use of it)?
68: [01:12:41] <Pyromanik> Azure: what module is this?
69: [01:12:44] <Pyromanik> all controllers call init.
70: [01:12:55] <Pyromanik> well, should at least.
71: [01:13:15] <Azure> purplespider/basic-galleries
72: [01:13:22] <Pyromanik> oh you're making a gallery?
73: [01:13:26] <Pyromanik> just
74: [01:13:27] <Pyromanik> :<
75: [01:13:35] <Pyromanik> so so so many gallery modules floating around
76: [01:13:55] <Pyromanik> Azure: what's youre end goal with this extension?
77: [01:14:53] <Azure> To require additional javascript files in the module's templates which I've already overridden in my theme.
78: [01:15:11] <Pyromanik> Azure: the onAfterInit hook will be in there, this is just a normal ContentController. If it's not working... well it should be. Put a die('hahaha'); into your extension's onAfterInit function.
79: [01:15:30] <Pyromanik> Azure: umm, just <% require javascript(webroot/path/to/jsfile.js) %> ?
80: [01:16:05] <Pyromanik> probably about infinitly easier.
81: [01:16:12] <Pyromanik> infinitely
82: [01:16:47] <Pyromanik> sounds like a classic case of the X => Y issue!
83: [01:16:52] <Azure> mm.
84: [01:17:45] <Azure> Pretty much I'm trying to keep all of my required scripts that need to be loaded first in <head> while requiring scripts that need to be loaded after the rest of the page at the bottom of <body>.
85: [01:18:09] <Pyromanik> Azure: but no script should ever be required to go in the head
86: [01:18:18] <Pyromanik> unless it's some kind of shim.
87: [01:18:48] <Pyromanik> taht pertains to dom compatibility.
88: [01:18:55] <Azure> mm
89: [01:19:37] <irogue23> ss23: http://pastie.org/private/hujs8yt7hqgsuhem7mme6g
90: [01:20:09] <irogue23> (in case you're curious)
91: [01:22:12] * SightUnseen has joined #silverstripe
92: [01:22:52] * SightUnseen has left #silverstripe
93: [01:25:38] <Azure> Interesting. Should <% require javascript("...") %> not work in /layout templates?
94: [01:26:08] <Azure> Because well, they're not.
95: [01:28:24] * nickmolhoek quit (Quit: nickmolhoek)
96: [01:28:43] * Nimle quit (Quit: Page closed)
97: [01:30:23] <Azure> (Now, that's only with requirements.)
98: [01:30:58] <Colin[pi]> I bought a new coffee machine and now all I want to do is make coffee
99: [01:31:06] <Colin[pi]> I'll be dead from a heartattack before 5
100: [01:34:15] <zippy__> caffine shakes means your now "in the zone" for development
101: [01:34:30] <Colin[pi]> yep! itttdssddss workrrrkkrkgfigignng
102: [01:34:36] <Pyromanik> zippy__: sif
103: [01:34:44] <Pyromanik> concentration 0%
104: [01:39:08] <Avro> quick ss question - on the silverstripe cms backend, in the Files section, how can I enable a specific (or any) file extension upload?
105: [01:40:39] <Pyromanik> umm
106: [01:40:43] * Pyromanik shrugs
107: [01:40:51] <Pyromanik> I don't think you do.
108: [01:41:05] <Pyromanik> well, you don't through the CMS anyway.
109: [01:41:16] <Pyromanik> but I'm not sure you can set a site wide setting through config.
110: [01:41:19] <Pyromanik> but you might be able to
111: [01:41:24] <Pyromanik> check Upload
112: [01:41:28] <Pyromanik> (.php)
113: [01:41:31] <Avro> http://www.silverstripe.org/general-questions/show/16454#post317155
114: [01:41:40] <Avro> ^ -- might do that
115: [01:42:02] <Zauberfisch23> Avro: the default of what files are allowed and which not are in class File
116: [01:42:06] <Zauberfisch23> static array
117: [01:42:28] <ss23> irogue23: timthumb old :O
118: [01:42:32] <ss23> surprised people are still playing with it
119: [01:42:56] <Zauberfisch23> so that's cached in ss3 and you can extend it with the config system
120: [01:44:45] <ss23> irogue23: tiny shell though!
121: [01:44:50] <Zauberfisch23> you should be able to access it with File: allowed_extensions
122: [01:45:03] <Zauberfisch23> so in your yml config file:
123: [01:45:05] <Zauberfisch23> File:
124: [01:45:10] <Zauberfisch23> allowed_extensions:
125: [01:45:19] <Azure> I guess plain old <script> tags are fine too.
126: [01:45:19] <Zauberfisch23> - '.foo'
127: [01:45:28] <Zauberfisch23> - '.bar'
128: [01:45:38] <Zauberfisch23> would add .foo and .bar to allowed file types
129: [01:45:56] <Zauberfisch23> actually, no, its just 'foo' and 'bar', no dot
130: [01:46:50] <Zauberfisch23> Azure: I wouldn't know, I only use php side requirements
131: [01:47:01] <Zauberfisch23> I strongly dislike doing that in template
132: [01:47:25] <Zauberfisch23> especially because there is no combined files in template
133: [01:47:39] <Zauberfisch23> Avro: let me know if it worked
134: [01:48:45] <Azure> the only thing is that I'm working with overridden module templates, and I've already been trying extensions to get the per-page javascript tags that I wanted in through the requirements system.
135: [01:51:01] <Zauberfisch23> I usually also don't have per page javascript
136: [01:51:17] <Zauberfisch23> as I use combined files, I combine all files for the whole website into 1 file
137: [01:52:13] <Zauberfisch23> of course makes inital load a bit slower, but then again, JS file size doesn't really matter if you look at all those fancy high res images websites have these days
138: [01:52:18] <Avro> Zauberfisch23: thanks mate
139: [01:52:26] <Azure> yup
140: [01:52:46] <Zauberfisch23> but after that all JS is cached and follow up pages don't need to load any js files
141: [01:53:37] <Zauberfisch23> (maybe it makes sense for big, js heavy webapps, but I haven't really done one where I would think splitting up js is the way to go
142: [01:53:43] <Avro> Zauberfisch23: worked a treat, tyvm!
143: [01:53:54] <Zauberfisch23> welcome
144: [01:54:30] <Azure> At the least now I can start tackling custom page header backgrounds.
145: [01:56:10] <ss23> irogue23: On the plus side - https://www.google.co.nz/#q=intitle%3A%22Valdez+-+Simple+Shell%22 - he hasn't actually managed to hack anyone!
146: [01:56:13] <ss23> :D
147: [01:56:16] <ss23> http://pastie.org/8476291#35
148: [01:56:17] <ss23> :P
149: [02:00:53] <Zauberfisch23> haha, poor script kiddy
150: [02:00:55] <Zauberfisch23> http://i.huffpost.com/gen/1071628/thumbs/o-LITTLE-GIRL-BLOCKS-TOY-facebook.jpg
151: [02:01:45] <ss23> uh
152: [02:01:48] <ss23> what, Zauberfisch23?
153: [02:01:51] <zippy__> O.o
154: [02:01:56] <ss23> @ image
155: [02:01:57] <Zauberfisch23> :O
156: [02:01:58] <Zauberfisch23> ?
157: [02:02:06] <ss23> I don't understand the image
158: [02:02:10] <ss23> a kid?
159: [02:02:25] <Zauberfisch23> script kiddy trying to hack ss sites with a wordpress exploit
160: [02:02:37] <ss23> oic
161: [02:02:43] <Zauberfisch23> thats like trying to fit the qube into the circle opening
162: [02:02:51] <ss23> yeah, makes sense now
163: [02:02:56] <ss23> thought it was standalone joke, was confused
164: [02:02:56] <ss23> :P
165: [02:03:08] <Zauberfisch23> *cube
166: [02:03:54] <Avro> ss23: who's trying to do that?
167: [02:04:18] <ss23> Avro: Just a skid
168: [02:05:56] <Avro> cute - on the main site?
169: [02:06:05] <ss23> Oh, uh, one of irogue23's sites?
170: [02:06:23] <Avro> oh right - missed that bit
171: [02:08:24] <Avro> that's quite cute
172: [02:23:46] <Pyromanik> qube! great game.
173: [02:29:45] * Shrike_Finland has joined #silverstripe
174: [02:44:34] <ss23> what the shit
175: [02:44:40] <ss23> return SS_HTTPRequest::send_file(file_get_contents(Director::absoluteBaseURL() . $file->Filename), $file->Name);
176: [02:44:47] <ss23> who the fuck does a file_get_contents to get to a file on the local file system?
177: [02:44:50] <ss23> blargh
178: [02:45:06] * peter_w has joined #silverstripe
179: [02:45:26] <peter_w> Hey everyone
180: [02:45:41] <ss23> Hi
181: [02:46:26] <peter_w> Hoping someone can help me......Is there anyway to get the id of the parent object when I am adding a new item from a Gridfield on a page
182: [02:47:51] <peter_w> I have gallery items that are added to a gallery album....but i want the gallery item added to the gallery album folder....for that I need to get the album
183: [02:47:54] <ss23> ohh, I see the misunderstanding, the didn't realise that it would go over HTTP! (@ previous comments)
184: [02:51:34] <Zauberfisch23> peter_w: hmmm, I don't think so, not relyable anyway.
185: [02:51:58] <Zauberfisch23> I guess what you can do is write the album ID in getCMSFields of the album into session
186: [02:52:05] <Zauberfisch23> and then grab it from session
187: [02:52:34] <Zauberfisch23> I think the gridfield doesn't actually set the ID but rather injects a HiddenField with the ID to the form
188: [02:52:48] <Zauberfisch23> but I could be wrong
189: [02:53:42] <UncleCheese> ss23: That still doesn't make any sense
190: [02:53:49] <UncleCheese> why would you use HTTP to read a file that's on the file system?
191: [02:54:36] <ss23> Yeah, well, I think they might've wanted to do file_get_contents('/real/path/yo');
192: [02:54:40] <ss23> but failed.
193: [03:02:11] <Pyromanik> ss23: about everyone.
194: [03:02:21] <Pyromanik> 15:44 <+ss23> who the fuck does a file_get_contents to get to a file on the local file system?
195: [03:02:39] <ss23> yeah
196: [03:02:41] <ss23> I...
197: [03:02:45] <ss23> I fucked that up
198: [03:02:46] <ss23> :P
199: [03:02:49] <Pyromanik> you did.
200: [03:04:06] <Colin[pi]> file_get_contents(/yo/momma)
201: [03:04:17] <Pyromanik> yo/fase
202: [03:06:27] <peter_w> Zauberfisch23: that isnt really ideal....do you know how the breadcrumbs work...they are correct show essentially show the information i need
203: [03:06:58] <peter_w> Zauberfisch23: actually the url contains the parent id...so i could just pass the url i guess?
204: [03:11:47] <Zauberfisch23> in fact, looking at GridFieldDetailForm it doesn't seem to be a HiddenField, but rather in doSave() it just writes the object and then adds it to the list
205: [03:14:38] * UncleCheese quit (Quit: UncleCheese)
206: [03:14:55] <Zauberfisch23> peter_w: you could try it with the breadcrumbs I guess
207: [03:15:19] <Zauberfisch23> if (Controller::curr()->hasMethod('Breadcrumbs')) {
208: [03:15:43] <Zauberfisch23> $crumbs = Controller::curr()->Breadcrumbs();
209: [03:15:51] <Zauberfisch23> but not sure if that even works
210: [03:16:12] <Zauberfisch23> also not sure if ::curr() actually returns the current controller in the CMS, or if that is front end only
211: [03:16:23] <Colin[pi]> thunderbird search so shit
212: [03:16:49] <irogue23> thunderbird so shit
213: [03:16:56] <Zauberfisch23> meh, its not that bad
214: [03:17:04] <Zauberfisch23> but could be better
215: [03:17:08] <Zauberfisch23> irogue23: what do you use?
216: [03:17:14] <Colin[pi]> I like it mostly, but I'm like searching and searching... I know there's a match for it, found it manually -_-
217: [03:19:16] <irogue23> Zauberfisch23: am actually using fastmail's web interface at the moment
218: [03:19:30] <Zauberfisch23> meh, need a client
219: [03:19:44] <Zauberfisch23> to many mailboxes
220: [03:19:47] <irogue23> i tried, but all the clients for windows are shit
221: [03:20:00] <guzzlefry> THUNDER THUNDER THUNDERBIRD
222: [03:20:05] <Zauberfisch23> I use apple mail on mac and thunderbird on windows
223: [03:20:07] <irogue23> everyone's given up since the masses have switched to webmail services
224: [03:21:56] <Zauberfisch23> irogue23: well, not only do I need a client because I have multiple mailboxes, but also for pgp
225: [03:23:02] <peter_w> Zauberfisch23: that bit of code did indeed get the Breadcrumb...however the direct parent is missing in the return $crumbs
226: [03:23:27] <irogue23> Zauberfisch23: ah yep
227: [03:24:19] <irogue23> i really don't get why webmail services all have such good search, yet desktop clients are so useless at it
228: [03:25:25] <Colin[pi]> desktop search so shit
229: [03:25:31] <Colin[pi]> look at windows search, it's a joke
230: [03:25:50] <irogue23> spotlight's good. but noone else has managed to pull it off
231: [03:27:05] <Zauberfisch23> well, win8 search isn't that bad I think
232: [03:27:18] <Zauberfisch23> haven't used it enough to really judge it, but looks ok at first glance
233: [03:27:39] <Colin[pi]> it's shit
234: [03:27:46] <Colin[pi]> well
235: [03:27:47] <Colin[pi]> it has it's moments
236: [03:27:58] <Colin[pi]> but for the most part, it just doesn't find stuff
237: [03:28:13] <Colin[pi]> I'll be telling it "search for this text in these files"
238: [03:28:26] <Colin[pi]> and it'll be all "NOPE NOPE NOPE NOT THERE"
239: [03:28:29] <Colin[pi]> yet I can use another prog, and it will find tons of matches
240: [03:28:32] <Colin[pi]> idgi
241: [03:29:04] <Zauberfisch23> hmmm, ok, I have to admit, for in file search I use grep in cygwin
242: [03:29:21] <Zauberfisch23> so I only use win search for file name searches
243: [03:29:33] <Colin[pi]> file names it usually finds :)
244: [03:29:44] <Colin[pi]> though it doesn't follow junctions which is total weaksauce
245: [03:34:34] * ajshort has joined #silverstripe
246: [03:36:59] <peter_w> hey ajshort .....do you know how I can get the parent object id when adding a new gridfield item...the url for example is /admin/pages/edit/EditForm/field/Albums/item/6/ItemEditForm/field/GalleryItems/item/new
247: [03:38:35] <peter_w> I could pass the URL and get the ID "6" but I am hoping there is a better way to do this
248: [03:39:20] <ajshort> on the gridfielddetailform component, you can set a callback to be run to modify the form
249: [03:39:37] <ajshort> the second parameter of the callback is the component itself
250: [03:40:12] <ajshort> and you can get the original list from the grid field property
251: [03:40:28] <peter_w> setItemEditFormCallback() awesome
252: [03:46:18] * Guest32434 quit (Quit: Guest32434)
253: [03:52:55] * wracu quit (Ping timeout: 250 seconds)
254: [03:56:27] * vonker has joined #silverstripe
255: [03:57:19] <peter_w> Thanks alot ajshort. I think I have it almost working...how can I get the original list from the grid field property
256: [03:57:29] <vonker> hi everyone
257: [03:57:46] <vonker> i'm trying to add some fields to searchable_fields on an extended Page
258: [03:57:58] <vonker> (ie an object that extends Page (and thus SiteTree))
259: [03:58:25] <vonker> however when i add the field names to the array, searches for words that are saved in that field doesnt appear
260: [03:58:34] * SightUnseen has joined #silverstripe
261: [03:58:36] * SightUnseen has left #silverstripe
262: [03:58:48] <vonker> ive tried /dev/build?flush=1 to see if the database needed to be updated or anything (ie new indexes etc)
263: [03:58:57] <vonker> but it doesnt show that it changes anything when it runs
264: [03:59:01] <vonker> am i missing something?
265: [03:59:17] <Pyromanik> lol one of NZ's major hosts has their entire email cluster bite the dust.
266: [03:59:28] <vonker> ouch, which one? :(
267: [03:59:45] <Pyromanik> They get a second one up and going, migrate emails over. But between migration and going live - all emails are lost.
268: [03:59:50] <Pyromanik> vonker: webdrive.
269: [04:00:46] <Pyromanik> all new incoming emails between the migration to the backup and the backup becoming the primary - gone.
270: [04:00:54] <Pyromanik> clients get so fucking mad.
271: [04:00:57] <Pyromanik> dicks.
272: [04:01:02] <Pyromanik> DEAL WITH IT, gawd.
273: [04:01:25] <Pyromanik> hey bro, did your telephone shit out too?
274: [04:01:27] <Pyromanik> etc.
275: [04:02:03] <Zauberfisch23> Pyromanik: how long did that migration take?
276: [04:02:09] <Pyromanik> Zauberfisch23: hours.
277: [04:02:21] <Zauberfisch23> well, ok, then I see that some clients might be unhappy
278: [04:02:22] * DigNZ quit (Quit: DigNZ)
279: [04:02:26] <Pyromanik> yeh
280: [04:03:12] <Pyromanik> I just find people get so stressed out like their clients hate them, etc. But when it comes down to it if you explain you had a technical outage then most people are pretty understanding.
281: [04:03:14] * UncleCheese has joined #silverstripe
282: [04:03:33] <Pyromanik> unless you're the guy they percieve as the person who should have been fixing the outage :<
283: [04:03:36] <Pyromanik> even though I'm not.
284: [04:04:02] <Pyromanik> vonker: you need to flush after adding config things now (private static $blah)
285: [04:04:21] <vonker> Pyromaniak: yep, i did /dev/build?flush=1
286: [04:04:24] <Pyromanik> and your searchy things need to be actual DB fields, not intermediary stuff.
287: [04:04:34] <Pyromanik> eg function getBlah()
288: [04:04:36] <vonker> as in, private static $db = array(
289: [04:04:37] <vonker> 'TeaserText' => 'HTMLText',
290: [04:04:37] <Pyromanik> can't search that.
291: [04:04:51] <vonker> yeah, nah i get that :))
292: [04:04:53] <Pyromanik> try using a full search specification
293: [04:05:03] <vonker> hm, what's that sorry?
294: [04:05:13] <vonker> oh to config
295: [04:05:14] <vonker> FulltextSearchable::enable();
296: [04:05:16] <vonker> yep done that too
297: [04:05:40] <Pyromanik> 'FieldName' => array ( 'Title' => 'Search my blah', 'Filter' => 'SomeSearchFilter', etc. )
298: [04:05:47] <Pyromanik> read docs :D
299: [04:05:51] <Pyromanik> for proper spec
300: [04:06:19] <vonker> waiiiiit a sec
301: [04:06:20] <vonker> "that can be used to further customize your generated admin system"
302: [04:06:30] <vonker> im not trying to change admin search,
303: [04:06:36] <vonker> i want to change frontend search
304: [04:06:40] <Pyromanik> -.-
305: [04:06:41] <vonker> lol
306: [04:06:47] <Pyromanik> you can't.
307: [04:07:02] <Pyromanik> you only get to choose to search pages, or files, or both.
308: [04:07:07] <Zauberfisch23> yeah, best thing to do with frontend search is not have it at all
309: [04:07:19] <Pyromanik> and it leverages FulltextSearch
310: [04:07:31] <Pyromanik> which in MySQL, is COMPLETELY shit.
311: [04:07:53] <Pyromanik> you're better off making your own search.
312: [04:08:02] <vonker> :(
313: [04:08:05] * howardgrigg has joined #silverstripe
314: [04:08:13] <Pyromanik> rather than using the built in searchform (FulltextSearchable::enable())
315: [04:08:14] <vonker> ok
316: [04:08:23] <Zauberfisch23> if you want an actually useful search, you have to go with solr or similar
317: [04:08:27] <vonker> ya
318: [04:08:42] <vonker> bleh, i just want to add a few fields to a basic site search
319: [04:08:44] <Zauberfisch23> so I don't have search at all on most sites
320: [04:08:45] <vonker> arr, anyway, thanks
321: [04:08:54] <vonker> well clients tend to like it, thats all
322: [04:08:54] <Zauberfisch23> I mean clients don't really need it anyway
323: [04:09:01] <vonker> serious?
324: [04:09:09] <vonker> we must have very different clients
325: [04:09:10] <Zauberfisch23> well, we tell them that they don't need it
326: [04:09:17] <Zauberfisch23> we say:
327: [04:09:27] <Pyromanik> vonker: yeh, no go.
328: [04:09:32] * howardgrigg quit (Remote host closed the connection)
329: [04:09:41] * howardgrigg has joined #silverstripe
330: [04:09:49] <Pyromanik> besides, it searches all the _common_ things, ie, Title, Content, fields all things have.
331: [04:10:13] <Pyromanik> take a look at fulltextsearchable::enable
332: [04:10:17] <Pyromanik> in the api
333: [04:10:27] <Pyromanik> and then read through the extensions it applies to Page and File.
334: [04:10:33] <Pyromanik> you'll see what you can and can't change.
335: [04:10:37] <Pyromanik> but iirc it's not much.
336: [04:10:41] <vonker> ok, will do. thanks
337: [04:10:51] <Zauberfisch23> users are used to a search experience like google, of course we can integrate you a site search, but it won't be the same as the one from google, and that will make more frustrated than happy. and if someone searches something, and website visitors usually know that website searches suck, so they use google anyway
338: [04:11:01] <vonker> i've modified silverstripe's search before by extending search classes
339: [04:11:22] <Zauberfisch23> so save yourself that, and focus on getting a navigation and content structure so that your visitor doesn't even need search
340: [04:11:23] <vonker> but thought that i was doing it wrong
341: [04:11:39] * Ryan-Toast quit (Quit: Ryan-Toast)
342: [04:11:56] <Zauberfisch23> and if you want sitesearch that is good and useful, we can do that to, we'd be happy to charge you extra for that
343: [04:12:12] <vonker> well, client has 200 events that they just want people to be able to punch a word in and have it show a few results, doesnt need to be super duper boolean etc
344: [04:12:28] <Zauberfisch23> and after that, clients usually see the point and are fine with no search
345: [04:13:42] <Pyromanik> vonker: well, if it's a specific class you could use a searchcontext.
346: [04:13:46] <Pyromanik> that will search only events
347: [04:13:55] <Pyromanik> and will give a more fine-grained approach
348: [04:14:07] <Pyromanik> by being able to search specific fields individually
349: [04:14:12] <Pyromanik> could be worth looking into!
350: [04:14:18] <Pyromanik> I'm giong home.
351: [04:14:25] * Pyromanik quit (Quit: leaving)
352: [04:17:50] <spronk> is rimu down?
353: [04:20:29] <peter_w> ajshort: Thanks sooooooo much...finally got it working.
354: [04:23:05] * UncleCheese quit (Quit: UncleCheese)
355: [04:23:32] <Zauberfisch23> peter_w: whats the solution you came up with?
356: [04:23:40] <Zauberfisch23> can't hurt to know
357: [04:25:22] <peter_w> yeah of course.....one sec i'll pastie it
358: [04:28:41] <peter_w> Zauberfisch23: http://www.sspaste.com/paste/show/5282fde369a58
359: [04:29:24] <peter_w> the main bit is I get the parent ID from the relationship i pass into the gridfield $albumID = (int) $component->gridField->getList()->getForeignID();
360: [04:30:00] <Zauberfisch23> yep, got it
361: [04:33:05] <Zauberfisch23> thanks
362: [04:34:21] * UncleCheese has joined #silverstripe
363: [04:34:35] <peter_w> no worries...i just hope it is what he meant....but it works
364: [04:41:49] * cloph has joined #silverstripe
365: [04:42:19] * cloph_away quit (Ping timeout: 260 seconds)
366: [04:45:50] * UncleCheese quit (Quit: UncleCheese)
367: [04:58:00] * peter_w quit (Quit: Page closed)
368: [05:03:26] * Ryan-Toast has joined #silverstripe
369: [05:09:56] * Shrike_Finland quit (Quit: Leaving.)
370: [05:16:24] * Ryan-Toast quit (Quit: Ryan-Toast)
371: [05:38:57] * travis-ci has joined #silverstripe
372: [05:38:57] <travis-ci> [travis-ci] ajshort/sapphire#45 (has-many-prepopulate - fc773c5 : Andrew Short): The build passed.
373: [05:38:57] <travis-ci> [travis-ci] Change view : https://github.com/ajshort/sapphire/commit/fc773c5c2229
374: [05:38:57] <travis-ci> [travis-ci] Build details : http://travis-ci.org/ajshort/sapphire/builds/13898098
375: [05:38:57] * travis-ci has left #silverstripe
376: [05:42:22] * Colin[pi] quit (Ping timeout: 240 seconds)
377: [06:13:07] * zippy__ quit (Quit: zippy__)
378: [06:15:22] * EasyCo quit (Quit: We can't stop here, this is bat country)
379: [06:44:00] * vonker quit (Quit: Leaving)
380: [07:01:28] <ss23> Where is willr when you need him! :(
381: [07:12:19] <guzzlefry> hiding
382: [07:29:34] * zfmf has joined #silverstripe
383: [07:38:38] * ajshort_ has joined #silverstripe
384: [07:39:41] * ajshort quit (Ping timeout: 272 seconds)
385: [07:39:48] * ajshort_ is now known as ajshort
386: [07:40:17] * ajshort is now known as Guest84015
387: [07:44:40] * Nimle has joined #silverstripe
388: [07:47:06] <Nimle> Hi guys, what is the best way to get back to the main scope inside Top scope? For example, I have a scope and <% loop displayNewsleter %> $blabla <loop Top.showUnrelated %> $unrelated here I need the ID of displayNewsletter scope, which is not top now. <%end_loop%> <%end_loop%>
389: [07:47:39] <ss23> Don't loop top.showUnrelated
390: [07:47:41] <ss23> I would guess
391: [07:48:07] <Nimle> I tried Top.ID, Up>ID but they dont get it
392: [07:48:22] <Nimle> because this scope is top now
393: [07:48:49] <Nimle> I ned something like MainScope.ID
394: [07:51:58] <Nimle> Hmm
395: [07:53:18] * violetina has joined #silverstripe
396: [07:54:34] * EasyCo has joined #silverstripe
397: [07:55:01] <EasyCo> Is there a quick way to loop over files listed in asset admin in a particular folder?
398: [07:55:34] * Shrike_Finland has joined #silverstripe
399: [08:00:32] * EasyCo_ has joined #silverstripe
400: [08:00:47] * Nimle quit (Ping timeout: 250 seconds)
401: [08:01:35] * EasyCo quit (Ping timeout: 252 seconds)
402: [08:01:36] * EasyCo_ is now known as EasyCo
403: [08:02:11] * hubertusanton has joined #silverstripe
404: [08:05:11] <ss23> https://twitter.com/NSWRFS/status/400502962247970816
405: [08:05:12] <ss23> so so so so so tempted to reply "4:20 blaze it faggot"
406: [08:18:26] * EasyCo_ has joined #silverstripe
407: [08:20:33] * EasyCo quit (Ping timeout: 245 seconds)
408: [08:20:34] * EasyCo_ is now known as EasyCo
409: [08:26:44] * zippy__ has joined #silverstripe
410: [08:33:45] <spronk2> hmm
411: [08:35:33] <ss23> wonder how mad coworkers will be if I leave a "TODO: If you ever have performance problems, this is the reason for it. Fix here"
412: [08:42:32] <irogue23> sounds like most of SS, amirite?
413: [08:47:47] <spronk2> :D
414: [08:47:48] <spronk2> HIFAIVE
415: [08:48:12] <ss23> aw SNAP
416: [08:48:21] <ss23> Naw, I'll just do a bunch of filtering and stuff in the templates instead
417: [08:48:21] <ss23> ^.^
418: [08:48:28] <ss23> Will ruin all accuracy, but it'll be faster ^.^
419: [08:53:47] <spronk2> what?
420: [08:54:25] <ss23> is like search listings
421: [08:54:26] <ss23> so like
422: [08:54:31] <ss23> filter all results with canView in backend....
423: [08:54:35] <ss23> or filter with canView in front end!
424: [08:54:36] <ss23> :D
425: [08:54:40] <ss23> I filter front end
426: [08:54:41] <ss23> ^.^
427: [08:54:42] * EasyCo quit (Ping timeout: 246 seconds)
428: [08:55:00] * kinglozzer has joined #silverstripe
429: [08:55:03] <ss23> Works well!
430: [08:55:08] <ss23> Apart from ruining accuracy, as we said :(
431: [09:05:55] * SightUnseen has joined #silverstripe
432: [09:06:05] * SightUnseen has left #silverstripe
433: [09:12:30] * chillu has joined #silverstripe
434: [09:20:17] * lerni has joined #silverstripe
435: [09:21:53] * howardgr_ has joined #silverstripe
436: [09:21:59] * howardgrigg quit (Read error: Connection reset by peer)
437: [09:24:46] * jon-shape quit (Ping timeout: 245 seconds)
438: [09:26:40] * jon-shape has joined #silverstripe
439: [09:30:55] * jon-shape quit (Ping timeout: 244 seconds)
440: [09:33:38] * jon-shape has joined #silverstripe
441: [09:40:27] * howardgr_ quit (Remote host closed the connection)
442: [09:40:54] * howardgrigg has joined #silverstripe
443: [09:41:08] * Nmle has joined #silverstripe
444: [09:42:04] <Nmle> Hmm, it appears there is no way to get out of the Top scope in Template.
445: [09:44:28] * howardgrigg quit (Read error: Connection reset by peer)
446: [09:45:45] * howardgrigg has joined #silverstripe
447: [09:50:23] * mento has joined #silverstripe
448: [09:52:45] * micmania1 has joined #silverstripe
449: [09:53:48] * ajshort has joined #silverstripe
450: [09:54:54] * jon-shape quit (Ping timeout: 246 seconds)
451: [09:57:10] * jon-shape has joined #silverstripe
452: [10:01:23] * jon-shape quit (Ping timeout: 245 seconds)
453: [10:06:41] <andylockran> hey guys; I'm playing with partial caching
454: [10:06:58] <ss23> fun, andylockran!
455: [10:07:21] <andylockran> in my ProductCategory template , I have <% loop $Products %>
456: [10:07:31] <andylockran> where Products are the children of the category
457: [10:08:16] <andylockran> on each ProductCategory page, the same list of products is showing - because it's not reading a unique key for each product cateogy
458: [10:08:59] <andylockran> I can't see from the documentation how I'd fix this
459: [10:09:27] <andylockran> <% cached 'ProductList', SiteTree.ID %> is what I'd tried
460: [10:09:29] * howardgr_ has joined #silverstripe
461: [10:09:39] <andylockran> ss23: any recommendations / ideas?
462: [10:09:52] <ss23> Add a key for the category
463: [10:09:53] <ss23> Like...
464: [10:10:01] <ss23> ProductList.CategoryID or something
465: [10:10:17] * mrzero quit (Ping timeout: 252 seconds)
466: [10:10:41] * jon-shape has joined #silverstripe
467: [10:11:52] * mrzero has joined #silverstripe
468: [10:11:52] * mrzero quit (Changing host)
469: [10:11:52] * mrzero has joined #silverstripe
470: [10:11:52] <andylockran> how would that look in a cached tag? lile <% cached 'ProductList.CategoryID', SiteTree.ID %> ?
471: [10:12:05] <ss23> Just like SiteTree.ID, right?
472: [10:12:12] <ss23> Like... you need to add a key that has avalue of the category
473: [10:12:18] <ss23> I don't know how you wrote your code, but... like... you know what I mean
474: [10:12:23] <andylockran> yeah, I get you
475: [10:12:33] <ss23> sweet :D
476: [10:12:34] <andylockran> but each category page is a unique page in the SiteTree
477: [10:12:38] * howardgrigg quit (Ping timeout: 246 seconds)
478: [10:12:40] <ss23> hmm
479: [10:12:41] <andylockran> therefore SiteTree.ID should be unique for each category
480: [10:12:49] <ss23> Yeah... hmm
481: [10:12:52] <andylockran> ^ or at least that was my thinking ?
482: [10:13:03] <ss23> oh uh
483: [10:13:24] <ss23> andylockran: Just use "ID"
484: [10:13:35] <ss23> SiteTree.ID is probably not working, becausae you want the ID of the current page, so just ID will get that
485: [10:14:51] * jon-shape quit (Ping timeout: 246 seconds)
486: [10:16:03] <andylockran> thanks
487: [10:16:22] <andylockran> will that generate unique caches for each cateogry
488: [10:16:37] * howardgr_ quit (Remote host closed the connection)
489: [10:16:42] <andylockran> or will that basically only make the cache useful if the users always hit the same page?
490: [10:17:04] * howardgrigg has joined #silverstripe
491: [10:26:30] * howardgrigg quit (Read error: Connection reset by peer)
492: [10:27:12] * howardgrigg has joined #silverstripe
493: [10:28:17] * Colin[pi] has joined #silverstripe
494: [10:34:52] * SightUnseen has joined #silverstripe
495: [10:40:17] * howardgr_ has joined #silverstripe
496: [10:41:07] * howardgrigg quit (Read error: Connection reset by peer)
497: [10:41:12] * SightUnseen quit (Ping timeout: 272 seconds)
498: [10:46:24] <mento> Guys i've been troubling with this for quite some time. I set my locale to dutch (in my config i18n::set_locale('nl_NL'); it loads the nl_NL.js file for form validation in the frontend - but it still shows the english message such as "Please fill in field X it is required"
499: [10:47:21] <mento> When i look into the source of the page, i see both language files are loaded in this order: <script type="text/javascript" src="sapphire/javascript/lang/en_US.js"></script><script type="text/javascript" src="/sapphire/javascript/lang/nl_NL.js"></script>
500: [10:47:45] <mento> I guess it should overwrite the en_US.js file, but it doesn't
501: [11:00:45] * howardgr_ quit (Remote host closed the connection)
502: [11:01:17] * howardgrigg has joined #silverstripe
503: [11:04:12] * SightUnseen has joined #silverstripe
504: [11:08:21] * SightUnseen quit (Ping timeout: 248 seconds)
505: [11:14:59] <kinglozzer> mento: Try Requirements::block(FRAMEWORK_DIR . '/javascript/lang/en_US.js'); and see if it is that
506: [11:24:31] * howardgr_ has joined #silverstripe
507: [11:26:36] * howardgrigg quit (Ping timeout: 246 seconds)
508: [11:26:47] <micmania1> kinglozzer, do you have any personal projects on the go?
509: [11:27:31] <kinglozzer> micmania1: Nah not really at the moment
510: [11:27:38] <micmania1> fancy one?
511: [11:27:50] <micmania1> I've started work on an ss module but its canny big
512: [11:28:07] <mento> kinglozzer: doesn't seem to fix the problem
513: [11:28:18] <kinglozzer> What is it? :P
514: [11:28:27] <kinglozzer> mento: Did it block the en_US.js from loading?
515: [11:30:16] * Colin[pi] quit (Ping timeout: 244 seconds)
516: [11:30:53] <micmania1> kinglozzer: Its an ecommerce module. I've got a screenshot which is a week or so old: https://twitter.com/micmania1/status/398154906122481664/photo/1
517: [11:31:57] <micmania1> I might separate the graph stuff out into its own module tho
518: [11:35:38] <kinglozzer> micmania1: Graph looks nice, I might be able to do a little work on it occasionally :)
519: [11:37:02] <micmania1> I'm pretty busy atm like but there's no hurry. if you're interested i'll give you access to my bitbucket repo at some point if you can send details over. It'll go on github when its done.
520: [11:38:00] <kinglozzer> Yeah sure, username is kinglozzer on Bitbucket
521: [11:39:17] <micmania1> cool, i'll set everything up tonight so you can pull from it
522: [11:42:11] <kinglozzer> Sweet
523: [11:48:38] * howardgrigg has joined #silverstripe
524: [11:48:39] * howardgr_ quit (Read error: Connection reset by peer)
525: [11:49:32] <mento> kinglozzer: no it didn't. Seems i had to set <meta http-equiv="content-language" content="$ContentLocale"> in my Page.ss
526: [11:49:53] <mento> But that's not allowed in HTML5 - it makes the validation work though
527: [11:54:10] <kinglozzer> mento: https://github.com/silverstripe/silverstripe-framework/blob/2.4/javascript/i18n.js#L165-L195 that's to blame
528: [11:54:23] <kinglozzer> 2.4 was pre-HTML5
529: [11:55:21] <mento> yes, thats what made me look into the http-equiv
530: [11:55:44] <kinglozzer> Ah, okay
531: [11:57:06] * chillu quit (Quit: chillu)
532: [12:01:56] <mento> Well, finally found out what was causing this "mysterious" thing. Thanks though!
533: [12:04:12] * SightUnseen has joined #silverstripe
534: [12:07:47] * Nmle quit (Ping timeout: 250 seconds)
535: [12:08:43] * SightUnseen quit (Ping timeout: 252 seconds)
536: [12:13:38] * chillu has joined #silverstripe
537: [12:27:19] * Alexwijn has joined #silverstripe
538: [12:30:14] * guci0 has joined #silverstripe
539: [12:40:31] <guci0> Hello Moto!
540: [13:00:04] <Alexwijn> Does anyone use this: https://github.com/components/jquery?
541: [13:04:11] * SightUnseen has joined #silverstripe
542: [13:05:15] * howardgrigg quit (Remote host closed the connection)
543: [13:05:55] * howardgrigg has joined #silverstripe
544: [13:05:55] * SightUnseen quit (Read error: Connection reset by peer)
545: [13:05:59] * SightUnseen1 has joined #silverstripe
546: [13:09:59] * howardgrigg quit (Ping timeout: 244 seconds)
547: [13:10:25] * SightUnseen1 quit (Ping timeout: 245 seconds)
548: [13:11:39] <Alexwijn> Who else got problems with including javascript files
549: [13:11:43] <Alexwijn> as requirement?
550: [13:12:10] * UndefinedOffset has joined #silverstripe
551: [13:26:12] * spronk2 quit (Quit: spronk2)
552: [13:31:40] * zippy__ quit (Quit: zippy__)
553: [13:32:35] * simon_w quit (Ping timeout: 240 seconds)
554: [13:41:21] * simon_w has joined #silverstripe
555: [13:44:58] * Zauberfisch__ has joined #silverstripe
556: [13:48:20] * Zauberfisch_ quit (Ping timeout: 245 seconds)
557: [14:04:10] * SightUnseen has joined #silverstripe
558: [14:06:29] * howardgrigg has joined #silverstripe
559: [14:08:37] * SightUnseen quit (Ping timeout: 252 seconds)
560: [14:10:45] * howardgrigg quit (Ping timeout: 248 seconds)
561: [14:15:28] * Shrike_Finland quit (Quit: Leaving.)
562: [14:16:37] * howardgrigg has joined #silverstripe
563: [14:17:21] <Alexwijn> I used Requirements::javascript('components/require.js');
564: [14:17:28] <Alexwijn> But the javascript is not getting included
565: [14:17:33] <Alexwijn> And I'm sure it exist
566: [14:17:45] <Alexwijn> It is loaded at the Page_Controllre
567: [14:17:46] <Alexwijn> Init
568: [14:20:54] * howardgrigg quit (Ping timeout: 246 seconds)
569: [14:23:58] * travis-ci has joined #silverstripe
570: [14:23:58] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1546 (master - 802b64d : Ingo Schommer): The build passed.
571: [14:23:58] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/bedf2926124b...802b64db207e
572: [14:23:58] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/13914164
573: [14:23:58] * travis-ci has left #silverstripe
574: [14:24:28] * Stomach quit (Ping timeout: 264 seconds)
575: [14:26:34] * chillu quit (Quit: chillu)
576: [14:30:40] * chillu has joined #silverstripe
577: [14:50:27] * chillu quit (Quit: chillu)
578: [14:57:15] <willmorgan> Alexwijn: you need to make sure those paths are relative to the site root
579: [14:57:41] <Alexwijn> Yeah, I fixed it...it seems to have included randomly in some divs
580: [14:57:42] <willmorgan> also, I suspect that you are using require.js. if that's the case, then I would not recommend including it with SS requirements due to how it's supposed to be used with a data-main attribute
581: [14:59:26] * curtosis has joined #silverstripe
582: [15:01:17] <Alexwijn> I'm kinda new to requir
583: [15:01:18] <Alexwijn> e
584: [15:01:43] <Alexwijn> I received when installing "components/jquery"
585: [15:01:46] <Alexwijn> So I wanted to try it
586: [15:01:57] <Alexwijn> So far no luck
587: [15:02:17] <Alexwijn> What is the best way to include jquery?
588: [15:02:30] <Alexwijn> using require
589: [15:04:11] * SightUnseen has joined #silverstripe
590: [15:04:41] <kinglozzer> Alexwijn: If you're just loading jQuery, don't bother with require.js
591: [15:04:50] <kinglozzer> Just use Requirements::javascript('//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js');
592: [15:05:15] <kinglozzer> I've not actually used require.js with SilverStripe yet
593: [15:06:00] <Alexwijn> I guess that should work
594: [15:06:33] <kinglozzer> If you want an asynchronous javascript loader, I built a module for using Yepnope: https://github.com/kinglozzer/YepnopeSilverStripe
595: [15:08:20] * SightUnseen quit (Ping timeout: 245 seconds)
596: [15:16:08] <Alexwijn> so the best option is not to use the javascript requirements if order matters?
597: [15:17:05] <kinglozzer> SilverStripe's built-in requirements won't handle the order of loading. We use Yepnope, and then with a callback init(), which sets everything up - init() is called after all files have loaded
598: [15:18:28] <Alexwijn> And inside a template?
599: [15:18:37] <Alexwijn> Because I only see PHP at the link you send
600: [15:18:56] <Alexwijn> oh wait
601: [15:18:58] <Alexwijn> found it
602: [15:18:59] <Alexwijn> I think
603: [15:20:28] <Alexwijn> What if for example have two modules, those two modules have added the jquery files to Yepnope
604: [15:20:39] <Alexwijn> How to prevent it and should I work with it?
605: [15:23:47] <Alexwijn> because jquery-1.10.2.js for example is different than jquery-1.9.1.js
606: [15:25:49] <Alexwijn> hm
607: [15:25:57] <Alexwijn> I guess //ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js and //ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
608: [15:26:03] <Alexwijn> always result in jquery.min.js
609: [15:26:27] <Alexwijn> So only one for those files will be included
610: [15:56:23] * marvanni has joined #silverstripe
611: [15:56:34] <Alexwijn> Hi marvanni
612: [15:58:14] <marvanni> yo
613: [15:58:45] * catcher has joined #silverstripe
614: [16:00:10] * Colin[pi] has joined #silverstripe
615: [16:01:55] * hubertusanton quit (Ping timeout: 252 seconds)
616: [16:02:41] <marvanni> I have a composer/git question. We have our own (non github) git repo for a project. locally i use composer to install silverstripe which installs also .git folders. We are used to just push the complete codebase including cms and framework.
617: [16:03:03] <marvanni> would this result in .git conflicts or is there a best practice for this?
618: [16:03:23] <marvanni> the live server were we auto deploy to won't have composer or git installed
619: [16:04:11] * SightUnseen has joined #silverstripe
620: [16:04:57] * howardgrigg has joined #silverstripe
621: [16:04:58] <Alexwijn> No conflicts as far as I know
622: [16:05:29] <marvanni> have you did it as well?
623: [16:05:38] * oskarholo has joined #silverstripe
624: [16:05:49] <Alexwijn> Just include the ss folder in .gitignore
625: [16:06:01] <Alexwijn> Or you can push it all
626: [16:06:15] <Alexwijn> But I think git will think that is a sub-module
627: [16:06:46] <Alexwijn> Why not use composer on the server too
628: [16:08:35] * SightUnseen quit (Ping timeout: 246 seconds)
629: [16:09:15] * howardgrigg quit (Ping timeout: 252 seconds)
630: [16:10:13] * lerni quit (Ping timeout: 248 seconds)
631: [16:10:16] <marvanni> beacause not all my projects are hosted on a server where I have full control.
632: [16:15:22] <Alexwijn> You do not need a lot of control to install composer
633: [16:15:27] <Alexwijn> all you need is the .phar file
634: [16:16:36] <marvanni> i'll just give it a try and see how it works out
635: [16:16:58] <Alexwijn> ok
636: [16:17:30] <marvanni> thanks
637: [16:18:27] <Alexwijn> sure np
638: [16:18:33] <Alexwijn> How to check if a field still is visible
639: [16:18:39] <marvanni> ah your in the neighborhood :)
640: [16:18:53] <marvanni> with jQuery?
641: [16:18:54] <Alexwijn> Because I want to add something after a field, but that field should exists
642: [16:19:00] <Alexwijn> no in SS panel
643: [16:19:13] <marvanni> example?
644: [16:19:20] <Alexwijn> I add some description about shortcodes after the Content field
645: [16:19:29] <Alexwijn> But if the content field does not exist then it looks weird
646: [16:19:42] <Alexwijn> For example at the redirector pages
647: [16:19:56] <marvanni> if($fields->dataFieldByName('Content')) {} ?
648: [16:20:09] <Alexwijn> ok I try that
649: [16:21:09] <Alexwijn> They are still there
650: [16:22:03] <marvanni> you have a sspaster code?
651: [16:22:28] <Alexwijn> Like this? http://www.sspaste.com/paste/show/5283a53f821c0
652: [16:23:41] <marvanni> hm insertAfter() should not insert anything if the content field is not there
653: [16:23:57] <Alexwijn> its hidden I think
654: [16:24:04] <marvanni> that might be
655: [16:24:05] <Alexwijn> Maybe the field is removed after it
656: [16:25:35] <marvanni> then you can try if (is_a($contentField, 'HTMLEditorField') {}
657: [16:27:10] <marvanni> nand if your in a tabbed field set try $fields->addFieldToTab('Root.Main', $field, 'Content');
658: [16:29:19] <Alexwijn> What you mean
659: [16:29:25] <Alexwijn> The field works just fine
660: [16:29:41] <Alexwijn> It's just on some page it should not be there, like the redirector page type
661: [16:30:52] <marvanni> where do you add the field?
662: [16:31:01] <marvanni> Page or a DataExtension?
663: [16:31:13] <Alexwijn> Page
664: [16:34:07] <Alexwijn> brb
665: [16:34:10] <Alexwijn> eating dinner
666: [16:34:13] <Alexwijn> be back in a hour or so
667: [16:34:15] <marvanni> hm yes... the field is removed after page cmsfields are renderd
668: [16:34:27] <marvanni> you migh check for a ClassName
669: [16:39:12] * chillu has joined #silverstripe
670: [16:41:45] * chillu quit (Read error: Connection reset by peer)
671: [16:42:41] * chillu has joined #silverstripe
672: [16:53:56] * mento quit (Quit: Page closed)
673: [16:58:33] * guci0 quit (Ping timeout: 250 seconds)
674: [17:04:11] * SightUnseen has joined #silverstripe
675: [17:06:10] * howardgrigg has joined #silverstripe
676: [17:06:58] * sekjal has joined #silverstripe
677: [17:08:20] * SightUnseen quit (Ping timeout: 245 seconds)
678: [17:08:50] * kinglozzer quit ()
679: [17:08:51] * SightUnseen has joined #silverstripe
680: [17:09:00] <sekjal> can anyone help me figure out why my cache isn't clearing out with ?flush=1
681: [17:09:01] <sekjal> ?
682: [17:09:18] <sekjal> I'm in DEV mode, and I'm logged in with an administrator account (SS 3.1.1)
683: [17:10:14] * howardgrigg quit (Ping timeout: 240 seconds)
684: [17:14:37] * SightUnseen quit (Quit: Leaving.)
685: [17:15:38] <marvanni> which cache?
686: [17:20:43] <sekjal> I was using partial caching, then removed it, but content that has been removed from the templates is still showing up on the page
687: [17:22:49] <marvanni> have you tried dev/build?flush=all
688: [17:26:42] <sekjal> yes
689: [17:27:34] <sekjal> I can't find what file the system is reading the outdated content from. it's not the template itself, and I have tried deleting the cache directory so many times
690: [17:27:49] <sekjal> somehow, it remembers, and rebuilds the cache using outdated info
691: [17:28:40] <marvanni> you might try this one
692: [17:28:41] <marvanni> http://www.silverstripe.org/general-questions/show/19895
693: [17:29:38] <marvanni> note that i had issues in the past when i had 2 themes called theme2011 and theme2012 and the system somehow keeped using theme2011 from the manifestcache..
694: [17:30:14] <marvanni> i solved it by renaming theme2011, due to deadlines, but i should have invested more time to find the real bug..
695: [17:30:15] * Colin[pi] quit (Ping timeout: 246 seconds)
696: [17:33:33] <sekjal> marvanni: thanks. the hints listed in the forum didn't pan out (I was universally setting SS_Cache's lifetime to -1)
697: [17:33:42] <sekjal> I don't think it's a naming issue... though perhaps
698: [17:34:34] <sekjal> I've tried moving my theme content to a new directory and picking that theme, but somehow the problem follows me
699: [17:35:47] <micmania1> sekjal, the cache is stored in the temp folder (set by php.ini)
700: [17:36:21] <micmania1> usually this will be /tmp on linux
701: [17:36:52] <micmania1> I g2g now. Hopefully clearing that works for you.
702: [17:39:36] <sekjal> thanks, micmania1. I've deleted that folder several times, to no avail
703: [17:51:57] <Alexwijn> Then it should work
704: [17:52:04] <sekjal> yes, it should
705: [17:52:19] <sekjal> and it doesn't. which leads to madness
706: [17:52:40] <Alexwijn> Because how can SS creates something that doesn't exist since you deleted the entire cached folder right
707: [17:52:50] <sekjal> exactly
708: [17:52:56] <sekjal> so the content must exist somewhere else
709: [17:52:59] <sekjal> somewhere secret
710: [17:53:14] <sekjal> I'm grepping my filesystem now in an attempt to uncover it
711: [17:53:32] <sekjal> once that completes, I'll try a reboot in case it's hiding in RAM
712: [17:53:47] <Alexwijn> Very unlikely
713: [17:54:45] <sekjal> all of this is very unlikely
714: [17:55:48] * SightUnseen has joined #silverstripe
715: [17:56:36] <sekjal> brb
716: [17:57:04] * SightUnseen has left #silverstripe
717: [18:07:56] * lerni has joined #silverstripe
718: [18:12:53] <Alexwijn> Great!
719: [18:12:55] <Alexwijn> "Maximum function nesting level of '200' reached, aborting!"
720: [18:13:00] <Alexwijn> Config.php on line 573
721: [18:23:08] * gelignite has joined #silverstripe
722: [18:25:33] * willmorgan quit (Ping timeout: 245 seconds)
723: [18:27:50] * Marvanni_ has joined #silverstripe
724: [18:29:05] <Marvanni_> I thought that i saw somewhere an example with separate config. for dev/test/live servers. Does that sounds familiar?
725: [18:32:26] <Alexwijn> You mean _ss_environment.php?
726: [18:33:37] <Marvanni_> yeah, but with yml files… might be that I saw it with a node.js project though
727: [18:35:43] <Alexwijn> Did not discover that one yet
728: [18:36:03] <Alexwijn> Do you know why my if statement in my loop always return true
729: [18:36:12] <Alexwijn> <% if First %> first<% end_if %>
730: [18:36:21] <Alexwijn> The first is always there
731: [18:38:38] <Alexwijn> hm
732: [18:43:17] * lerni quit (Ping timeout: 248 seconds)
733: [18:43:36] <Marvanni_> code?
734: [18:44:46] * lerni has joined #silverstripe
735: [18:46:28] <Alexwijn> Just a regulary loop
736: [18:46:38] <Alexwijn> <% loop WidgetControllers %>
737: [18:46:39] <Alexwijn> $WidgetHolder
738: [18:46:39] <Alexwijn> <% end_loop %>
739: [18:46:54] <Alexwijn> Inside the widgetholder there is the if statement
740: [18:48:47] * Shrike_Finland has joined #silverstripe
741: [18:49:10] * sekjal quit (Quit: Leaving)
742: [18:53:45] <Marvanni_> hm yes that 'should' work
743: [18:53:57] <Marvanni_> bu if you just need first last classes you can try FirstLast
744: [18:57:06] <Alexwijn> Yeah I fixed using an other solution
745: [18:57:23] <Alexwijn> Do you know how to make a extension for widgets?
746: [18:57:38] <Alexwijn> So all widgets have a boolean field
747: [18:58:57] <Marvanni_> a DataExtension should work
748: [18:59:38] <Marvanni_> do you use _ss_environment_files for dev/live settings?
749: [19:00:03] <Alexwijn> Something like that
750: [19:00:12] <Alexwijn> I just don't push that file to git
751: [19:00:53] * lerni quit (Ping timeout: 248 seconds)
752: [19:02:45] <Marvanni_> i know… I'm looking for a clear way to have various settings for several environments. there can be multiple devs with the same director env type dev but with different db settings
753: [19:03:06] <Marvanni_> and the code code need to be in git though...
754: [19:03:37] <Alexwijn> If you set the live db config in config.php
755: [19:03:44] <Alexwijn> then it will be overriden by _ss...file
756: [19:04:38] * UndefinedOffset quit (Quit: Leaving.)
757: [19:04:44] <Marvanni_> diner!
758: [19:05:15] <Alexwijn> Enjoy!
759: [19:05:27] <Alexwijn> How to add a field on top of all the other fields?
760: [19:05:30] <Alexwijn> So not on the bottom
761: [19:05:42] <Alexwijn> Without know the first field
762: [19:05:46] <Alexwijn> knowing*
763: [19:06:42] * lerni has joined #silverstripe
764: [19:10:40] * UndefinedOffset has joined #silverstripe
765: [19:11:02] <Alexwijn> I added the WidgetExtension
766: [19:11:13] <Alexwijn> But only widgets that are not from the same module are affected
767: [19:14:15] * Marvanni_ quit (Quit: Marvanni_)
768: [19:15:44] <ec8or_> $allowed_children and $default_child doesn't seem to have any effect for me, any tips?
769: [19:15:56] <Alexwijn> What do you want to do?
770: [19:16:16] <ec8or_> ah hold on
771: [19:16:28] <ec8or_> might have put them in the wrong place, thought it should go on the controller
772: [19:17:08] <ec8or_> duh, that's better
773: [19:31:09] <Alexwijn> For some reason I'm unable to change a layout of a custom page type
774: [19:31:18] <Alexwijn> I gave it the same name as the page type with the extension .ss
775: [19:31:26] <Alexwijn> And put in th Layout folder in my theme
776: [19:31:32] <ec8or_> did you flush?
777: [19:31:33] <Alexwijn> Inside the folder templates
778: [19:31:34] <Alexwijn> yes
779: [19:31:51] <Alexwijn> It uses the default one
780: [19:34:35] <Alexwijn> Is there anything I can do to debug this?
781: [19:35:38] * Ryan-Toast has joined #silverstripe
782: [19:35:48] * Stomach has joined #silverstripe
783: [19:38:35] <Alexwijn> This is very anoying
784: [19:39:27] <catcher> Alexwijn, have you overridden the index action (or whichever action you're using)?
785: [19:39:51] <Alexwijn> Nope
786: [19:39:59] <Alexwijn> I just created a new class that extends from Page
787: [19:40:04] <Alexwijn> I did not create any new Controller yet
788: [19:40:07] <Alexwijn> Or is that the problem?
789: [19:40:23] <Alexwijn> Ah got it
790: [19:40:25] <catcher> Yep, it needs a controller, it's falling back to Page'
791: [19:40:29] <Alexwijn> It was missing the controller
792: [19:40:59] <Alexwijn> Thanks
793: [19:41:25] * lerni quit (Ping timeout: 248 seconds)
794: [19:44:48] * Marvanni_ has joined #silverstripe
795: [19:45:11] * nickmolhoek has joined #silverstripe
796: [19:46:48] * lerni has joined #silverstripe
797: [19:47:05] * lerni quit (Client Quit)
798: [19:47:27] * C10ne has joined #silverstripe
799: [19:50:24] * zippy__ has joined #silverstripe
800: [19:53:54] <Azure> More extension woes. I'm trying to remove a field from a module's page type via a data extension that I've added from my own base Page page type.
801: [19:53:56] <Azure> http://pastie.org/8478337
802: [19:54:35] * willmorgan has joined #silverstripe
803: [19:56:44] <Marvanni_> if its a has_one HeaderImage you should use HeaderImageID i think
804: [19:56:45] <C10ne> Hi all, just a quick question... When I'm installing SS 3.0, and choose default language other than English, the initial pages (in requireDefaultRecords) are still created with en_US locale. Anyone knows how this can be changed?
805: [19:57:19] <Marvanni_> it shouldn't
806: [19:58:31] <Marvanni_> What do you guys think of this way of organizing several environment configs?:
807: [19:58:32] <Marvanni_> http://www.sspaste.com/paste/show/5283d740e320a
808: [19:59:50] <Marvanni_> I could use _ss_environment_.php but all configs need to be in our repo and several developers can be working in dev mode as well, so 1 dev env file is not enough
809: [20:00:25] <zippy__> Morning
810: [20:01:14] <zippy__> marvanni: Do ALL the configs need to be in repo, or just the production one?
811: [20:01:16] <Ryan-Toast> Morning
812: [20:02:19] <Ryan-Toast> If I was changing the value of a db row on save, would I do that in the onAfterWrite?
813: [20:02:38] <zippy__> marvanni: the developers likely don't need theres in repo. So just have a If(file_exists(local file)) then include that, otherwise include production;
814: [20:02:58] <Marvanni_> all
815: [20:03:10] <zippy__> why?
816: [20:03:41] <Marvanni_> we might work with some remote web services which use different api keys
817: [20:04:46] <zippy__> you could have a local.sample.php file, which a new developer would copy to setup there local.php - and if they use a new service then add it into the local.sample.php for the other guys to see perhaps?
818: [20:04:49] <Marvanni_> we also sync data between 2 databases which are also different for each developer
819: [20:05:16] <zippy__> right, so developers need a different config each right?
820: [20:05:36] <zippy__> but why do the configs need to be in svn for the developers?
821: [20:05:36] <Marvanni_> yes, at least for now
822: [20:05:44] <zippy__> why would I need to see Johns config?
823: [20:06:03] <Marvanni_> well its more that i like to have my own config in version control as well
824: [20:06:42] <Marvanni_> you probably don't …
825: [20:07:05] * UncleCheese has joined #silverstripe
826: [20:07:15] <zippy__> genreally, no
827: [20:09:07] <Marvanni_> i guess I just try this way. no I can prepare the files for dev/test/live an other dev's can use my file as an example for their local settings
828: [20:09:59] * antmas has joined #silverstripe
829: [20:10:41] <antmas> mornin all
830: [20:21:10] <Ryan-Toast> How do I get those little black popup errors to stick around so I can actually read them?
831: [20:21:35] <catcher> Ryan-Toast, just refresh the CMS after the error, or use a debug console
832: [20:21:59] <Ryan-Toast> Ah, they're written to the console. Cheers :)
833: [20:22:13] <catcher> well, a debug tool to view the network response of the bad request, more accurately
834: [20:22:48] <antmas> hate those validation errors
835: [20:23:28] <antmas> speaking of errors, has anyone experienced blank dialoge messages in 3.0?
836: [20:23:58] * wilr_ has joined #silverstripe
837: [20:24:15] * wilr_ quit (Client Quit)
838: [20:25:10] * willr has joined #silverstripe
839: [20:26:01] <Ryan-Toast> antmas: I did in 3.0, but not since I upgraded to 3.1.1
840: [20:27:08] <antmas> Ryan-Toast: hmmm, no upgrading for me unfortunatley - I wonder what it was :/
841: [20:27:33] <Ryan-Toast> antmas: No idea, sorry. Too bad about no upgrade :P
842: [20:28:23] <antmas> Ryan-Toast: yeah, I'm sure it will soon, but it's a big site with loads of integration.
843: [20:28:46] <Ryan-Toast> antmas: well at least it's 3.0, and not 2.4 :)
844: [20:29:20] <antmas> Ryan-Toast: yeah, 3.1 came out during out upgrade from 2.4 to 3.0 :P
845: [20:29:26] <antmas> our*
846: [20:29:44] <Ryan-Toast> antmas: It's always the case.
847: [20:30:12] <Ryan-Toast> antmas: Wordderp is the worst for it.
848: [20:30:25] <antmas> Ryan-Toast: no doubt
849: [20:30:51] <Ryan-Toast> antmas: "Oh, you wanted us to keep using the same naming conventions as the last versions? Well fuck you"
850: [20:30:55] <antmas> my worst upgrade however, was taking a wicked-old jword site to a 2.4 SS site o.O
851: [20:31:54] <Ryan-Toast> antmas: I upgraded a site from 2.4 abut 70% of the way, but I got mad and just remade it in 3.1.1. The old dev had hacked the core and thrown in every add-on he/she could find.
852: [20:32:33] <antmas> such is the way
853: [20:33:02] <Ryan-Toast> antmas: I suppose being shit at something is the first step at being kind of good at something.
854: [20:33:18] * Shrike_Finland quit (Quit: Leaving.)
855: [20:34:22] * Alexwijn quit ()
856: [20:34:34] <Ryan-Toast> antmas: - Jake the dog
857: [20:37:02] * antmas quit (Quit: Page closed)
858: [20:37:32] <unsignedint> hey does anyone know how, in GridField, to turn off the "edit" button for certain rows? does GridField provide the facility to register a function that can be executed per row to do things like this?
859: [20:38:08] <Marvanni_> canEdit() on DO's?
860: [20:38:10] <zippy__> also, with the GridField how can you add a button in the row :)
861: [20:38:31] <Marvanni_> dunno of that work on a record basis.. the old CTF didn't
862: [20:38:33] <unsignedint> Marvanni_: but I still want them to be editable elsewhere. Unless CanEdit() knows if its being called from a GridField ro not?
863: [20:38:38] <unsignedint> or*
864: [20:39:38] <Marvanni_> i think your better of then with a GridField Component which implements GridField_DataManipulator
865: [20:40:18] <Marvanni_> then you can loop over the list
866: [20:40:57] <catcher> Just remove the EditButton component from the GF.
867: [20:41:10] <unsignedint> catcher: but wont that remove it for *all* rows?
868: [20:41:37] <catcher> unsignedint, indeed, I missed the "for certain rows" part
869: [20:42:03] <unsignedint> Marvanni_: so are you saying I loop over the list, set a flag, and check for this flag in CanEdit and return false?
870: [20:42:37] * Pyromanik has joined #silverstripe
871: [20:43:33] <Marvanni_> hm
872: [20:43:54] <Marvanni_> check GridFieldDeleteAction.php public function getColumnContent
873: [20:44:29] <Marvanni_> there it check for $record->canEdit(); and $record->canDelete();
874: [20:44:45] <Marvanni_> you can create your own EditButton and check for the record as well
875: [20:44:46] * Liquide has joined #silverstripe
876: [20:45:18] <unsignedint> ok thanks, will give it a crack
877: [20:45:45] <Marvanni_> or extend GridFieldditButton and overload getColumnContent()
878: [20:46:20] <Marvanni_> and replace the original edit button with your own
879: [20:47:25] <zippy__> Thanks marvanni
880: [20:47:32] <unsignedint> looks like I will have to customise GridFIeldEditButton, returning false from canEdit() removes the row from the list completely
881: [20:47:48] <zippy__> lol my domain registrar….. must of queued the domain renewal notice because I renewed it a few hours ago, and just got this...
882: [20:47:50] <zippy__> Expiry Date: 18 Nov 2014
883: [20:47:51] <zippy__> Days Left: 5
884: [20:48:33] <Marvanni_> no you could display a non clickable greyed out button, looks much nicer...
885: [20:48:50] <Marvanni_> but yes, removing records from the list might also work, depends what you need/want
886: [20:54:01] <unsignedint> my custom EditButton worked perfectly, thanks!
887: [20:54:38] <unsignedint> now im trying to figure out what the Link/Unlink relation button is called so I can insert the edit button before it instead of after
888: [20:55:47] <Marvanni_> GridFieldDeleteAction
889: [20:56:33] <Marvanni_> if you look in GridFieldConfig. on the bottom of the file are default grid field configs
890: [20:56:57] <Marvanni_> GridFieldConfig_RelationEditor, GridFieldConfig_RecordEditor, GridFieldConfig_RecordViewer etc
891: [20:59:34] * howardgrigg has joined #silverstripe
892: [21:04:17] * zfmf has left #silverstripe
893: [21:06:28] <Azure> [Nov13/13 03:56:53PM] Marvanni_: if its a has_one HeaderImage you should use HeaderImageID i think
894: [21:06:32] <Azure> Yup, it's just a has_one.
895: [21:06:47] <Marvanni_> and does it work?
896: [21:09:58] <Azure> so in removeFieldFromTab(..., 'HeaderImage'), I replace HeaderImage with HeaderImageID?
897: [21:10:36] <Marvanni_> just a guess...
898: [21:10:43] <Azure> If so, it didn't. I ran /dev/build?flush=all as well as ?flush=all on admin as well, didn't work.
899: [21:10:59] <Ryan-Toast> I'm trying to add a class to extend Image, but when I add the Object::add_extension('Image', 'WaterMark'); I get "Extension "WaterMark" is not a subclass of Extension" anyone know what I'm doing wrong?
900: [21:12:47] <Azure> 1. you need to extend your class with Extension
901: [21:13:13] <Azure> 2. At the least you should be using Image::add_extension('WaterMark') rather than Object.
902: [21:15:29] <catcher> Is there a single SS session cookie for AWS sticky sessions?
903: [21:16:27] <Ryan-Toast> Azure: Ah, cheers. So I just extend DataExtension with my class, then use the config to specify the extension to Image?
904: [21:16:41] <Azure> yes
905: [21:17:01] <Ryan-Toast> Azure: The learning, I am doing it. Thanks again :)
906: [21:17:08] <Azure> np
907: [21:20:37] * landscribe has joined #silverstripe
908: [21:22:40] * UndefinedOffset quit (Quit: Leaving.)
909: [21:44:47] <Pyromanik> Ryan-Toast: use the config rather than add_extension() though
910: [21:45:16] <Ryan-Toast> Pyromanik: I did, thanks :) dat yml
911: [21:45:20] <Pyromanik> mm
912: [21:45:31] <Pyromanik> beware taht setting the backend doesnt' work though.
913: [21:45:39] <Pyromanik> (via yml)
914: [21:45:49] <Pyromanik> you still need to call Image::set_backend()
915: [21:46:45] <Ryan-Toast> what do you mean by setting the backend doesn't work?
916: [21:54:41] <Pyromanik> I mean setting the backend via yml doesn't work.
917: [21:54:56] <Pyromanik> Image is a dataobject to represent an image
918: [21:55:12] <Pyromanik> when you make a manipulation to it, it uses an interface to a manipulation backend.
919: [21:55:34] <Pyromanik> choices at current are GD library (default) and Imagick (supposedly way better).
920: [21:56:29] <Pyromanik> to change, you can't use yml because although it's private static $backend just as it should be, when it uses injector to instantiate a backend object it fucking just calls self::$backend - bypassing the entire config system.
921: [21:56:38] <Pyromanik> is bug, needs fix.
922: [21:56:42] * DigNZ has joined #silverstripe
923: [21:59:14] <Ryan-Toast> Pyromanik: http://i.imgur.com/3M9vP.gif
924: [21:59:35] <Ryan-Toast> Pyromanik: I'll just do as you say anyhow :P
925: [22:01:56] <Marvanni_> yup .. $backend = Injector::inst()->createWithArgs(self::$backend need to be self::get_backend() ...
926: [22:14:16] * chillu quit (Quit: chillu)
927: [22:19:13] * landscribe quit (Ping timeout: 250 seconds)
928: [22:21:37] <Pyromanik> Marvanni_: no, should be $this->config()->backend
929: [22:22:26] <Marvanni_> yes
930: [22:24:17] * Colin[pi] has joined #silverstripe
931: [22:24:48] <Colin[pi]> good moin
932: [22:26:18] <simon_w> 5-1 :(
933: [22:29:58] <ss23> moin Colin[pi]
934: [22:36:18] <Colin[pi]> hey you
935: [22:36:54] * gelignite quit (Quit: http://bit.ly/nkczDT)
936: [22:37:08] <simon_w> THIS IS CRAZY
937: [22:37:08] <simon_w> BUT HERE'S MY NUMBER
938: [22:37:39] <simon_w> Oh no, you two both have my number
939: [22:37:49] <Colin[pi]> MU HU HU HA HA HA
940: [22:39:06] * EasyCo has joined #silverstripe
941: [22:39:10] * DigNZ1 has joined #silverstripe
942: [22:39:19] <guzzlefry> 0.o
943: [22:40:23] <simon_w> Eh, I'll just change my number at some point in the next year or so
944: [22:40:27] <simon_w> Then what will you do?
945: [22:43:24] <ss23> simon_w: Get your new one!
946: [22:43:25] <ss23> :D
947: [22:47:29] <Colin[pi]> why are so many people buying COD: Ghosts? why?
948: [22:47:33] <Colin[pi]> someone explain to me
949: [22:47:36] <Colin[pi]> idgi
950: [22:47:42] <ss23> Colin[pi]: Popular game?
951: [22:47:46] <Colin[pi]> but...
952: [22:47:50] <Colin[pi]> COD is shit :(
953: [22:48:00] <ss23> Obviously a lot of other people either disagree or don't care
954: [22:48:08] * Colin[pi] shrugs
955: [22:48:16] <ss23> Colin[pi]: If you could quantify what makes a game sell a lot, everyone would do it, so I doubt anyone can give a good explanation of why it sells lots :P
956: [22:48:33] <Colin[pi]> heh ya
957: [22:48:34] * spronk2 has joined #silverstripe
958: [22:50:07] <ss23> Call to a member function setStatusCode() on a non-object in /sites/test/www/privacy/framework/dev/Debug.php on line 342
959: [22:50:10] <ss23> weird error
960: [22:50:17] * SightUnseen has joined #silverstripe
961: [22:50:21] * SightUnseen has left #silverstripe
962: [22:53:08] <Azure> hm...
963: [22:53:43] <Marvanni_> if do just new TextField('Phone') without name
964: [22:54:03] <Marvanni_> should the scaffolder not pick up the fieldLabels() name?
965: [22:54:29] <Marvanni_> i mean without title….
966: [22:54:57] <Azure> I've noticed that if I have ?flush=all tacked onto the end of an admin URL while browsing my site tree, if I try to click on a subpage (at least PhotoGalleryPage, will need to check with plain pages) the URL changes to reflect the page change, but the content itself doesn't change.
967: [22:55:59] * zippy__ quit (Ping timeout: 246 seconds)
968: [22:56:41] * catcher quit (Quit: Leaving)
969: [22:56:51] <Pyromanik> Colin[pi]: cod not shit.
970: [22:57:00] * DigNZ1 quit (Quit: DigNZ1)
971: [22:57:01] <Pyromanik> the fact that it's teh same game for another $120 is shit.
972: [22:57:06] <Pyromanik> but y'know.
973: [22:57:11] <Colin[pi]> haha yeah
974: [22:57:13] <Pyromanik> same reason birds buy clothes.
975: [22:57:24] <Colin[pi]> I refuse to buy them at 'straya tax prices
976: [22:57:36] <Pyromanik> fuck'n abbott stood down!
977: [22:57:37] <Pyromanik> brilliant
978: [22:57:45] <Colin[pi]> wha?
979: [22:58:02] <Azure> In fact, I added a plain page under another plain page, and now I can't switch (while ?flush=all is on)
980: [22:58:03] <Pyromanik> You're prime minister-less
981: [22:58:06] <Pyromanik> and still better off!
982: [22:58:10] <Colin[pi]> um no?
983: [22:58:13] <Pyromanik> what?
984: [22:58:18] <Pyromanik> our news is spinning shit?
985: [22:58:29] <Pyromanik> they had a sound byte of a speach and everything
986: [22:58:30] <Colin[pi]> rudd quit
987: [22:58:33] <Pyromanik> oh
988: [22:58:35] <Colin[pi]> not abbout
989: [22:58:36] <Pyromanik> guts4u
990: [22:58:36] <Colin[pi]> LOL
991: [22:58:42] <Colin[pi]> fuck you for getting me excited
992: [22:58:44] <Azure> ... okay... what the heck did I do.
993: [22:58:45] <Pyromanik> ikr
994: [22:58:51] <Pyromanik> I was all "BRILLIANT!"
995: [22:58:57] <Colin[pi]> was like WHAT ABBOTT QUIT??? OMGGGG
996: [22:59:00] <Colin[pi]> but no :P
997: [22:59:06] <Azure> Now I can't even switch pages even with ?flush=all off
998: [22:59:19] <Pyromanik> Azure: mmm, nfi.
999: [22:59:33] <Pyromanik> but rudd was good.
1000: [22:59:39] <Pyromanik> apart from that whole gillard thing
1001: [22:59:42] <Azure> And now I can after a full refresh. Weird as fuck.
1002: [22:59:56] <Colin[pi]> rudd was a hard worker, but he was an egomaniac
1003: [23:00:02] <Pyromanik> oh fully.
1004: [23:00:05] <Pyromanik> but he did good things.
1005: [23:00:08] <Colin[pi]> and destabilising force in the party
1006: [23:00:11] <Azure> No idea if it's because I use Chrome Dev.
1007: [23:00:19] <Pyromanik> lol chrome
1008: [23:01:21] <Pyromanik> Colin[pi]: oh fuck no wait, I'm thinking of howard.
1009: [23:01:46] <Pyromanik> http://profile.ultimate-guitar.com/profile_mojo_data/3/8/4/8/384854/pics/_c791202_image_0.jpg
1010: [23:02:30] <Colin[pi]> howard was an ok PM, but he was so far up bush's a-hole you could see his furry eyebrows instead of tonsils
1011: [23:06:26] * DigNZ1 has joined #silverstripe
1012: [23:09:08] * howardgrigg quit (Remote host closed the connection)
1013: [23:09:20] <EasyCo> It would of been a great day if Abbott resigned.
1014: [23:09:29] <EasyCo> I want to punch him in the face.
1015: [23:09:43] <EasyCo> Repeatedly
1016: [23:12:03] * andylockran quit (Ping timeout: 272 seconds)
1017: [23:13:10] <Colin[pi]> How did he get elected EasyCo?
1018: [23:13:14] <Colin[pi]> Just.. how?
1019: [23:13:34] <Colin[pi]> A lot of stupid people + Murdoch media?
1020: [23:13:42] <EasyCo> For one, yes.
1021: [23:13:51] <EasyCo> The other is failr 2 party system.
1022: [23:13:55] <EasyCo> *failed
1023: [23:14:21] <EasyCo> A 2 party system is not true democracy.
1024: [23:14:49] <EasyCo> I was disheartening to see how many people voted for that twat.
1025: [23:15:20] <EasyCo> It
1026: [23:16:48] * C10ne quit (Quit: Page closed)
1027: [23:17:27] * Colin[pi]_2 has joined #silverstripe
1028: [23:17:31] <Colin[pi]_2> ffs irc
1029: [23:17:40] <EasyCo> Canada has a horrible leader too. Stephen Harper.
1030: [23:17:48] * Colin[pi] quit (Ping timeout: 246 seconds)
1031: [23:17:56] * Colin[pi]_2 is now known as Colin[pi]
1032: [23:17:56] <EasyCo> So the two countries I hold citizenships in are ran by dick heads.
1033: [23:18:04] <Colin[pi]> they pretty much all have horrible leaders
1034: [23:18:30] <Colin[pi]> because these leaders are not there for the citizens, they are there for big business and the elite
1035: [23:22:06] * UncleCheese quit (Quit: UncleCheese)
1036: [23:26:51] * UncleCheese has joined #silverstripe
1037: [23:32:19] <Pyromanik> oh foundation, how u werk in da ie8s?
1038: [23:32:45] <Pyromanik> EasyCo: fantastic troll.
1039: [23:32:46] <EasyCo> Poorly
1040: [23:32:57] <Pyromanik> are ran. Trolling is a art brah.
1041: [23:33:08] <EasyCo> bruz
1042: [23:40:01] * nh_ has joined #silverstripe
1043: [23:43:59] <nh_> is there a way to force the set function for cookies to be true? I know you can pass it as an option when calling the function, but I'm looking to set it for all cookies created.
1044: [23:45:32] <simon_w> What do you mean?
1045: [23:47:39] <nh_> really looking for public static function set($name, $value, $expiry = 90, $path = null, $domain = null, $secure = false... to be $secure = true. I don't see the ability to have true as the default, but just wanted to double check
1046: [23:47:52] * UncleCheese quit (Quit: UncleCheese)
1047: [23:48:49] <ss23> simon_w: watcha doin for lunch today?
1048: [23:49:47] <simon_w> nh_, that's right, you can't set it as a default
1049: [23:49:51] <simon_w> ss23, don't know yet
1050: [23:49:55] <ss23> mmk
1051: [23:50:06] <EasyCo> To be clear, you can bypass casting if in your $summary_fields you're you're casting there? Like array( 'Name' => 'Varchar')?
1052: [23:50:24] <EasyCo> Then public function getName()...
1053: [23:50:29] <simon_w> EasyCo, that's not setting a cast, that's setting a title
1054: [23:51:15] <EasyCo> That's what I thought but I've been that elsewhere…
1055: [23:51:27] <EasyCo> Can you just define your custom getter like that though?
1056: [23:51:39] <EasyCo> *seen
1057: [23:52:11] <simon_w> yes
1058: [23:54:51] <EasyCo> Ok thanks.

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