#silverstripe IRC Log

IRC log for 22 March 2015

All timestamps are in UTC.

1: [00:00:14] <UncleCheese> ok
2: [00:00:31] <Hailwood> Now if I go to page, click on category, click on document, then I get my category gridfield again, which makes sense- but if I click the category I get a triple nested url
3: [00:00:39] <Hailwood> which simply doesn't work. Ideas around this?
4: [00:00:51] <Hailwood> I can make a small recording if you need.
5: [00:03:32] * Azure quit (Ping timeout: 265 seconds)
6: [00:03:37] <UncleCheese> triple nested?
7: [00:07:27] <Hailwood> UncleCheese, http://webmup.com/LyjBE/vid.webm
8: [00:07:40] <SphereSilver> Is there a way to have rsync follow .gitignore ignores? So I don't have to backup framework, cms, etc.
9: [00:07:42] <SphereSilver> ?
10: [00:08:11] <Hailwood> Basically the url ends up as /admin/pages/edit/EditForm/field/DocumentCategories/item/19/ItemEditForm/field/Documents/item/20/ItemEditForm/field/Categories/item/19/edit
11: [00:08:49] <Hailwood> So its Page => Category => Document => Category
12: [00:09:17] <Hailwood> SphereSilver, Here's that reference code you were after https://gist.github.com/hailwood/519e639038387d73da0d
13: [00:09:37] <SphereSilver> Ah, nice :)
14: [00:09:50] <UncleCheese> SphereSilver use Beam!
15: [00:09:56] <SphereSilver> Starred for future references :)
16: [00:10:01] <SphereSilver> UncleCheese: Ehhh, wut?
17: [00:10:11] <UncleCheese> http://github.com/heyday/beam
18: [00:10:12] * benjhocking has joined #silverstripe
19: [00:10:16] <UncleCheese> best deployment ever
20: [00:10:40] <SphereSilver> UncleCheese: I'm talking about running backups, not deployments....
21: [00:10:57] <SphereSilver> I just use git autodeploy for deployments
22: [00:11:02] <SphereSilver> but the backup.... ;)
23: [00:11:03] * BPower has joined #silverstripe
24: [00:11:27] <UncleCheese> you could use it for backups.. it's basically just a declarative wrapper for rsync
25: [00:11:29] <UncleCheese> i love it
26: [00:12:17] <SphereSilver> It looks promising :) I'll have a look at it tomorrow :)
27: [00:12:54] <UncleCheese> beam up live
28: [00:12:55] <UncleCheese> beam down staging
29: [00:13:11] <UncleCheese> etc ..
30: [00:13:17] <SphereSilver> Yeah, but it doesn't backup my databases, or /etc configs ;)
31: [00:14:03] <SphereSilver> It's looking promising and useful, but not as complete as my current rsync script ;)
32: [00:14:10] <UncleCheese> i built this for migrating/backing up databases
33: [00:14:12] <UncleCheese> https://github.com/heyday/heystall
34: [00:14:31] <SphereSilver> Not found
35: [00:14:32] <UncleCheese> heystall db-migrate live local
36: [00:14:47] <UncleCheese> are you kidding? did they mark it private?
37: [00:15:02] <UncleCheese> ah, here we go.. have a fork https://github.com/unclecheese/heystall
38: [00:15:06] <SphereSilver> I guess, it's not reachable for me
39: [00:15:23] <SphereSilver> Errr, that says 404 too ;)
40: [00:15:25] <Hailwood> UncleCheese, I think the easiest fix would be if I could remove the link from the gridfield for the item? any ideas if that's possible?>
41: [00:15:54] <UncleCheese> damn
42: [00:16:17] <SphereSilver> I can easily fix that UncleCheese
43: [00:16:21] <UncleCheese> Hailwood can you send some code?
44: [00:16:50] <SphereSilver> Just say the magic words "You wanna work here?"
45: [00:20:22] <Hailwood> UncleCheese, http://www.filedropper.com/silverstripe-page-documentstar - that's the module I'm working on so it has all relevant code.
46: [00:21:34] <Hailwood> (config.yml, two DO's and an Extension) - If you want to work with it the extension will need to be applied to Page though.
47: [00:21:54] * muskie9 is now known as muskie9_afk
48: [00:22:47] <UncleCheese> Hailwood this is a bit suspect : public function DocumentCategories() {
49: [00:22:53] <UncleCheese> overloading the has_many getter?
50: [00:23:38] * muskie9_afk is now known as muskie9
51: [00:23:41] <BPower> Heyo -- this is probably something ridiculously simple, but my searches have come up with nothing. I'm simply trying to apply an onAfterPublish/onBeforeUnpublish via an extension, but executing a "Publish" appears to do nothing.
52: [00:23:50] <BPower> Here's the code: https://gist.github.com/nathanbrauer/0ade281c5edfc757a134
53: [00:23:50] <Hailwood> UncleCheese, I could probably revert that now, originally it was a ManyMany between page and DocumentCategories which is why I was manually applying the sort.
54: [00:24:02] <UncleCheese> Hailwood your has_one should be back to SiteTree, not Page
55: [00:26:04] <UncleCheese> yeah, you're getting the categories from the belongs_many_many at the document level
56: [00:26:18] <UncleCheese> so you've created a loop there
57: [00:28:16] <Hailwood> UncleCheese, Yep, but I want to be able to list all categories the document is actually in. So I kind of need to be able to do it that way. from a logical point of view there's no sane "standard" edit link. so is there a way to just remove the onclick handler on The categories gridfield on the document?
58: [00:28:38] <UncleCheese> you can list the categories, but you can't give them edit links
59: [00:28:50] <UncleCheese> not without getting clever
60: [00:29:14] <UncleCheese> and if it's just about assignment, use checkboxsetfield, or listboxfield
61: [00:29:47] <Hailwood> UncleCheese, It's more for reference sake on the Document. realistically on the Document the categories shouldn't be editable at all.
62: [00:30:09] <Hailwood> if they want to edit the categories they should go to the particular page the category is on and edit it from there.
63: [00:30:58] <UncleCheese> so your page edit link is the one that's messed up?
64: [00:32:11] <Hailwood> UncleCheese, I am so confused. Somehow it's doing what I want it to now.. but all I changed was removing the overload of DocumentCategories and changing the has_one to Page..
65: [00:34:17] <UncleCheese> chances are you don't have a Page table
66: [00:34:24] <UncleCheese> most people don't unless you have customised Page
67: [00:34:36] <UncleCheese> and a $has_many won't give it a table
68: [00:34:44] <UncleCheese> so SiteTreeID is what you want there
69: [00:35:21] <Hailwood> Oh, I thought a Page extends SiteTree was part of the default SS install - we use a yeoman generator to scaffold our sites so the inital dev must have put that in there.
70: [00:35:49] <UncleCheese> it is, but Page has no fields by default
71: [00:35:53] <UncleCheese> so there's no table
72: [00:36:14] <UncleCheese> well hang on
73: [00:36:36] <UncleCheese> never mind, i don't think that's a problem
74: [00:37:29] <UncleCheese> SiteTree is still a better option, though, because it ships with a standalone installation of the framework
75: [00:39:15] * Azure has joined #silverstripe
76: [00:41:01] * muskie9 is now known as muskie9_afk
77: [00:46:51] * muskie9_afk quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
78: [00:51:49] <zauberfisch> UncleCheese: yay
79: [00:51:52] <zauberfisch> you are hear
80: [00:51:55] <zauberfisch> *here
81: [00:52:00] <zauberfisch> exactly when I need you to be :D
82: [00:52:27] <zauberfisch> so, what's the current status of display_logic? are CompositeFields currently supported?
83: [00:55:09] * muskie9 has joined #silverstripe
84: [01:00:00] * bemusedrat has joined #silverstripe
85: [01:03:46] <Hailwood> Can you use GridFieldBulkUpload if the DO you're listing is an extension of File itself rather than having a has_one to File?
86: [01:05:33] * muskie9 is now known as muskie9_afk
87: [01:11:32] * muskie9_afk quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
88: [01:18:32] <zauberfisch> ah
89: [01:18:32] <zauberfisch> DisplayLogicWrapper
90: [01:18:33] <zauberfisch> !
91: [01:18:35] <zauberfisch> there we go
92: [01:18:41] <zauberfisch> nvm UncleCheese
93: [01:22:17] <UncleCheese> glad you got it sorted, zauberfisch
94: [01:30:39] <zauberfisch> UncleCheese: got another one:
95: [01:31:02] <UncleCheese> i can't help you with Typo3
96: [01:31:22] <zauberfisch> UncleCheese: if I am not mistaken, display_logic breaks if a form fields name contains a []
97: [01:31:44] <zauberfisch> because $('Foo[1]') returns an empty set
98: [01:31:46] <UncleCheese> not surprising
99: [01:31:50] <UncleCheese> yeah
100: [01:34:45] <zauberfisch> UncleCheese: it works with document.getElementById though
101: [01:34:50] <zauberfisch> perhaps just switch to that?
102: [01:34:56] <UncleCheese> oh nice!
103: [01:35:11] <UncleCheese> yeah, i have no objection to that if it's by id
104: [01:35:26] <UncleCheese> maybe querySelector just for consistency
105: [01:37:59] <zauberfisch> well, its actually always an ID
106: [01:38:09] <zauberfisch> though it only searches in context of the form
107: [01:38:33] <zauberfisch> so currently your code works if you have duplicate IDs in different forms
108: [01:38:39] <zauberfisch> (invalid html, but it would work)
109: [01:38:53] <zauberfisch> if we use getElementByID it will break
110: [01:38:59] <zauberfisch> but it will fix []
111: [01:39:26] <zauberfisch> or we just excape []
112: [01:39:59] * Azure quit (Ping timeout: 252 seconds)
113: [01:40:44] <Hailwood> Any idea how to make a TextField that alters a has_one relation property? I tried new TextField('File.Title', 'Title', $this->File()->Title) but that didn't work
114: [01:40:46] * Azure has joined #silverstripe
115: [01:58:30] <UncleCheese> Hailwood TextField doesn't work that way
116: [01:58:37] <UncleCheese> there are numeros has_one editor modules out there
117: [01:58:45] <UncleCheese> assuming your has_one has only one field, that is
118: [02:01:57] * superspring quit (Ping timeout: 265 seconds)
119: [02:05:01] <zauberfisch> UncleCheese: ok, I have a working version now that escapes []
120: [02:05:06] <zauberfisch> want me to pull request?
121: [02:05:46] <UncleCheese> please
122: [02:06:40] * superspring has joined #silverstripe
123: [02:09:43] * r_hector has joined #silverstripe
124: [02:16:23] <Hailwood> Hmm, $file = File::get_by_id($x); $file->Filename = '123.txt'; $file->write(); is that going to cause any issues?
125: [02:16:41] <Hailwood> I note that on the setFilename function there is the mention of "Caution: this does not change the location of the file on the filesystem." so do I need to physically move the file as well/
126: [02:18:35] <simon_w> Hailwood, use one of the methods that does actually rename the file on the filesystem too
127: [02:21:39] <Hailwood> simon_w, What method would that be? since I note that the File class calls updateFilesystem() in it's onAfterWrite() which seems to do it? so I figure I shouldn't have to call anything else..
128: [02:22:51] <zauberfisch> UncleCheese: done
129: [02:23:30] <UncleCheese> Hailwood check the File.php API.. there's a method that dispatches changes to the filesystem
130: [02:24:35] <UncleCheese> setName() is probbaly what you want
131: [02:24:59] <Hailwood> UncleCheese, Yeah, that would be ->updateFilesystem()... which is automatically called in onAfterWrite().. setName is called automatically when you call setFilename()
132: [02:26:12] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
133: [02:26:13] <Hailwood> Wait.. actually i'm confused now. since setName calls setField('Filename'...) but setFilename calls setField('Name', ...)
134: [02:27:48] <zauberfisch> noooo
135: [02:27:57] <zauberfisch> did he just really leave before merging my PR
136: [02:28:03] <zauberfisch> >:(
137: [02:28:48] <zauberfisch> Hailwood: setField('Name') does NOT call setName
138: [02:29:09] <zauberfisch> setField() is used to set the name without using setName
139: [02:29:19] <Hailwood> zauberfisch, I see. so does ->Name = ... call setName()? or should I be using ->setName(...)
140: [02:29:27] <zauberfisch> so it bypasses the setter and writes to the array that will be written to database
141: [02:29:52] <zauberfisch> yes. $obj->Name = 'foo'; is the same as $obj->setName('foo') in this case I believe
142: [02:32:31] <zauberfisch> UncleCheese is a mean person D:
143: [02:36:43] <zauberfisch> if I put a form action inside a composite field, what problems do I have to expect?
144: [02:37:11] <zauberfisch> or is there a form action alternative to be used in the fields?
145: [02:42:10] <zauberfisch> actually, nvm that, I will use an <a> tag
146: [02:42:20] <zauberfisch> oh, wait
147: [02:42:21] <zauberfisch> hmm
148: [02:42:43] <zauberfisch> no, I can't, I will loose all form data
149: [02:44:06] <Hailwood> Hmm, anyone know a simple way to add a LiteralField and still have a left title?
150: [02:49:12] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
151: [02:49:29] <zauberfisch> Hailwood: if its just a simple value, ReadonlyField might be a better choice
152: [02:49:35] <zauberfisch> it has a left title and a value
153: [02:50:00] <Hailwood> zauberfisch, It's a link
154: [02:50:11] <zauberfisch> simon_w: do you happen to know how FormActions inside fields are handled?
155: [02:50:26] <zauberfisch> like how do I route the action to a method on a FormField?
156: [02:50:46] <zauberfisch> Hailwood: hmmm. how about just replicate the html markup of a normal field?
157: [02:52:04] <zauberfisch> Hailwood: new LiteralField('Foo', sprintf('<div class="field"><label class="left">%s</label><div class="middleColumn">%s</div></div>', $label, $content));
158: [02:52:22] <Hailwood> zauberfisch, Yeah, that's what I've done but I just don't like having that much HTML in my getCMSFields. Was hoping I could do something like LiteralField::create(...)->setLeftTitle()
159: [02:52:43] <zauberfisch> nope. not that I am aware of
160: [02:53:13] <zauberfisch> you maybe can do: new ReadonlyField('Foo', $label, DBField::create_field('HTMLText', $content)); but not sure if that works
161: [02:55:57] <Hailwood> What's the difference between DBField::create_field('HTMLText',... and HTMLText::create(... ?
162: [02:56:46] <zauberfisch> Hailwood: HTMLText::create() is similar to new HTMLText(). and HTMLText takes a name as argument. not a value
163: [02:57:12] <zauberfisch> so if you want a HTMLText with a value, you have to do $htmltext = new HTMLText(); $htmltext->setValue($value)
164: [02:57:20] <zauberfisch> DBField::create_field() is a shortcut for that
165: [03:03:51] <zauberfisch> simon_w: ahhh. I think I found it. $form->checkFieldsForAction() looks a lot like what I am searching for
166: [03:05:49] <Hailwood> Cheers zauberfisch Another question - if in onBeforeWrite(){...} I am updating a value on a has_one (ala $this->File()->Name = ...); then in getCMSFields I use $this->File()->Name as a value - how can I make sure I have the updated value from the onBeforeWrite when the page reloads?
167: [03:06:07] * benjhocking quit (Quit: Leaving.)
168: [03:13:08] <zauberfisch> Hailwood: so readonlyfield worked?
169: [03:13:46] <Hailwood> zauberfisch, Nope, didn't work :( I thought it would
170: [03:16:08] <zauberfisch> regarding your other question
171: [03:16:16] <zauberfisch> what do you mean ensure its updated?
172: [03:16:21] <zauberfisch> how could it not be updated?
173: [03:16:41] <zauberfisch> or is there a case where you would see the old value?
174: [03:25:23] <Hailwood> zauberfisch, Yeah seeing the old value
175: [03:25:29] <Hailwood> Well not even that.
176: [03:26:39] <Hailwood> Basically I'm calling File->Name = 'Not Right.txt'; and when the save is complete the field is populated with 'Not Right.txt' but the File class has in it's onBeforeWrite that the name gets updated to 'Not-Right.txt'; which is the value I actually want to populate the field with.
177: [03:27:24] <Hailwood> If I refresh the page after that then the correct value is shown
178: [03:28:15] <zauberfisch> are you sure you are writing the file?
179: [03:28:41] <zauberfisch> also check database to see if it has been saved or not
180: [03:30:00] <Hailwood> zauberfisch, I'm also getting a strange issue where I have to click save twice.. have a look http://webmup.com/1OTAp/vid.webm
181: [03:31:46] <Hailwood> zauberfisch, here's my onBeforeWrite if you want a look https://gist.github.com/hailwood/39c5dff8da55f90249fa
182: [03:41:14] * benjhocking has joined #silverstripe
183: [03:43:23] <Hailwood> zauberfisch, it looks like getCMSFields() gets called before onBeforeWrite() for some reason..
184: [04:18:39] <Hailwood> Can you pass variables to templates? e.g. <% include Template $SomeVar='123' %>
185: [04:45:52] * superspring quit (Ping timeout: 255 seconds)
186: [04:49:35] * superspring has joined #silverstripe
187: [04:52:23] <Hailwood> Apart from manually writing the inner join does ss have any magic for filtering only objects that have a specific relation? e.g. I want all DocumentCategories that have at least one Document. so I am using ->innerJoin('DocumentCategory_Documents', 'DocumentCategory_Documents.DocumentCategoryID = DocumentCategory.ID')
188: [04:52:44] <Hailwood> Is there something I can do like ->filter('Documents') and it would work out the rest for me?
189: [05:00:16] * BPower quit (Remote host closed the connection)
190: [05:07:29] <zauberfisch> Hailwood: yes, you can pass variables to templates
191: [05:07:33] <zauberfisch> you almost did it right
192: [05:07:56] <zauberfisch> <% include Foo Somevar='123' SomeotherVar='321' %>
193: [05:08:29] <zauberfisch> Hailwood: yes. there is the relation() method
194: [05:11:18] <zauberfisch> Hailwood: what is it specifically you want to filter?
195: [05:12:08] <zauberfisch> in case of a has_one => has_many relation it's pretty easy, because you can just do Foo::get()->filter('BarID', [1, 42, 1337])
196: [05:13:44] <zauberfisch> in a many_many relation ship, you can probably use the relation() method. so lets say for example you want all Documents that are in category 1, 42 or 1337 and Documents has a many_many relation to Category. then you can do DocumentCategory::get()->byID([1, 42, 133]
197: [05:14:19] <zauberfisch> ... then you can do DocumentCategory::get()->byID([1, 42, 1337])->relation('Documents');
198: [05:14:40] <zauberfisch> 'Documents' being the name of the many_many relation
199: [05:14:54] * bemusedrat quit (Quit: Leaving)
200: [05:15:04] <zauberfisch> this should return a list containing all Documents that have either 1, 42 or 1337 as category
201: [05:16:47] <zauberfisch> and if you want only documents that are in all 3 categories, the only way I can think of to do it the ORM way is to do 3 queries and them copare the 3 lists and only use those Documents that are in all 3 lists
202: [05:17:09] <zauberfisch> anyway. I am tired. going to bed. good night
203: [05:29:00] <Hailwood> Night zauberfisch
204: [05:46:42] * Stomach quit (Ping timeout: 265 seconds)
205: [05:59:15] <Hailwood> Do DOs not automatically maintain a datecreated/datemodified timestamp?
206: [05:59:40] <Hailwood> Oh never mind, it's on the parent class table
207: [06:11:48] * Stomach has joined #silverstripe
208: [06:39:02] * Stomach quit (Quit: zzz)
209: [07:00:04] <Hailwood> Oh, Interesting question time. I have an array of values (all unique) that come from config.yml. Now for each of these values On every page I need to show a HTML editor to edit a message for each of these. But if the config array changes the fields should also change. Any ideas on the best way to implement this?
210: [07:14:13] * Stomach has joined #silverstripe
211: [07:36:25] * superspring quit (Ping timeout: 255 seconds)
212: [07:39:45] * superspring has joined #silverstripe
213: [07:48:17] <Hailwood> What's the difference between $this->owner->ClassName and $this->ownerBaseClass
214: [07:48:19] <Hailwood> on an extension
215: [07:58:49] * Azure quit (Read error: Connection reset by peer)
216: [07:59:23] * nontgor quit (Read error: Connection reset by peer)
217: [07:59:45] * Azure has joined #silverstripe
218: [08:02:10] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
219: [08:40:07] * Error404NotFound has joined #silverstripe
220: [08:40:22] * nupnups has joined #silverstripe
221: [08:41:30] <nupnups> how do i return two data lists as a single data list?
222: [08:51:11] * UncleCheese has joined #silverstripe
223: [09:10:09] * wmk has joined #silverstripe
224: [09:26:11] * simon_w quit (Remote host closed the connection)
225: [09:29:34] * Liquide quit ()
226: [09:30:01] * r_hector quit (Quit: Leaving.)
227: [09:33:46] * bemusedrat has joined #silverstripe
228: [09:35:16] * Stomach quit (Quit: zzz)
229: [10:16:01] <ss-helper> Converting .htaccess syntax to nginx config - http://stackoverflow.com/questions/29193106/converting-htaccess-syntax-to-nginx-config
230: [10:20:26] * superspring quit (Ping timeout: 256 seconds)
231: [10:22:16] * superspring has joined #silverstripe
232: [10:22:42] * Hailwood quit (Remote host closed the connection)
233: [11:01:43] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
234: [11:24:33] * wmk quit (Read error: Connection reset by peer)
235: [11:24:35] * Werner_2_ has joined #silverstripe
236: [12:28:10] * veb quit (Quit: veb-irc: quit)
237: [12:34:46] * Werner_2_ quit (Ping timeout: 255 seconds)
238: [12:44:36] * eagles0513875_ quit (Quit: eagleeye)
239: [12:45:27] * eagles0513875_ has joined #silverstripe
240: [12:50:13] * eagles0513875_ quit (Client Quit)
241: [12:52:40] * eagles0513875_ has joined #silverstripe
242: [13:09:18] * superspring quit (Ping timeout: 256 seconds)
243: [13:14:30] * superspring has joined #silverstripe
244: [13:28:09] * gelignite has joined #silverstripe
245: [13:34:49] * R\w\C has joined #silverstripe
246: [13:34:57] * R\w\C quit (Changing host)
247: [13:34:58] * R\w\C has joined #silverstripe
248: [13:37:43] * bemusedrat quit (Quit: Leaving)
249: [14:10:25] * R\w\C quit (Quit: My Mac has gone to sleep. ZZZzzz…)
250: [14:13:39] * R\w\C has joined #silverstripe
251: [15:06:39] * R\w\C quit (Read error: No route to host)
252: [16:04:24] * superspring quit (Ping timeout: 265 seconds)
253: [16:08:51] * superspring has joined #silverstripe
254: [16:39:51] * Guits quit (Read error: Connection reset by peer)
255: [16:47:57] <ss-helper> Set a default date on page load - http://www.silverstripe.org/community/forums/general-questions/show/101394
256: [17:20:29] * Error404NotFound quit (Ping timeout: 252 seconds)
257: [17:53:16] * Shrike_Finland has joined #silverstripe
258: [18:08:17] * Stomach has joined #silverstripe
259: [18:12:29] * Stomach quit (Client Quit)
260: [18:40:45] * DimiStripe quit (Quit: DimiStripe)
261: [18:55:17] * superspring quit (Ping timeout: 252 seconds)
262: [18:57:00] * superspring has joined #silverstripe
263: [19:08:22] <ss-helper> Re: [silverstripe-dev] Re: Block editing modules - https://groups.google.com/d/msg/silverstripe-dev/3kC1-iG1nYw/vmM0QDl0P1cJ
264: [19:30:31] * mobiusnz has joined #silverstripe
265: [19:31:21] * mobiusnz1 has joined #silverstripe
266: [19:31:22] * mobiusnz quit (Read error: Connection reset by peer)
267: [19:38:09] * mobiusnz1 quit (Quit: Leaving.)
268: [19:42:27] * mobiusnz has joined #silverstripe
269: [19:43:33] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
270: [19:47:55] * Ryan-Toast has joined #silverstripe
271: [19:56:46] * veb has joined #silverstripe
272: [19:57:12] * jedateach has joined #silverstripe
273: [20:04:45] * simon_w has joined #silverstripe
274: [20:10:52] <nupnups> hey guys, with the GridFieldAddExistingSearchHandler can i pre-filter the set of items it can choose from?
275: [20:16:14] * Hailwood has joined #silverstripe
276: [20:16:44] <nupnups> ahh setSearchList
277: [20:19:16] * Shrike_Finland quit (Quit: Leaving.)
278: [20:27:28] * Ryan-Toast quit (Quit: Ryan-Toast)
279: [20:27:56] * UncleCheese has joined #silverstripe
280: [20:28:57] * Stomach has joined #silverstripe
281: [20:31:14] * Ryan-Toast has joined #silverstripe
282: [20:33:35] <ss-helper> Re: Update filter in extension - http://www.silverstripe.org/community/forums/data-model-questions/show/101393#post400835
283: [20:43:19] * Olliepop quit (Ping timeout: 246 seconds)
284: [20:51:27] * Colin[pi] has joined #silverstripe
285: [20:53:05] * antmas has joined #silverstripe
286: [20:54:02] <Colin[pi]> hai antmas o/
287: [20:54:59] <antmas> Colin[pi]: \o
288: [20:55:11] <Ryan-Toast> Hai
289: [20:55:20] <antmas> HaiHaiHai
290: [20:55:29] <antmas> I love mondays
291: [20:55:39] <antmas> "Drives are running out of free space"
292: [20:55:42] <Ryan-Toast> Anyone know of a way that you could set the $icon in a PageType using the project() method?
293: [20:55:55] <antmas> "Database has large amounts of unused space"
294: [20:55:58] <antmas> :|
295: [20:55:59] <Colin[pi]> antmas: sounds fun
296: [20:56:01] <antmas> gg sharepoint
297: [20:59:58] * novaweb has joined #silverstripe
298: [21:01:42] * micmania1 quit (Quit: micmania1)
299: [21:02:27] <antmas> novaweb: o/
300: [21:02:33] * Cheddam quit (Quit: Textual IRC Client: www.textualapp.com)
301: [21:03:22] <novaweb> o/
302: [21:04:27] * Cheddam has joined #silverstripe
303: [21:05:17] <MichalKleiner> o/
304: [21:05:43] <antmas> MichalKleiner: o/
305: [21:06:20] <MichalKleiner> hai antmas
306: [21:07:42] <antmas> whoever said o/ looks like a nazi salute has ruined it for me now :P
307: [21:07:43] <Ryan-Toast> Anyone know of a way that you could set the $icon in a PageType using the project() method?
308: [21:08:48] <adrexia> what is the project method?
309: [21:09:41] <adrexia> as far as I know there are two ways you can set the page type - in the class or in the config.yml files
310: [21:10:04] <adrexia> page type icon
311: [21:10:38] <adrexia> you can also edit the files visually by changing/adding css classes
312: [21:11:45] <MichalKleiner> antmas: that was the first thought I had when I saw it for the first time.. but then I thought.. it's not clear whether it's right or left hand (seeing face or back) so it's ok :-D
313: [21:12:03] <antmas> :P
314: [21:12:04] <adrexia> but that might only apply to the sitetree rendering of those
315: [21:13:10] * micmania1 has joined #silverstripe
316: [21:18:33] <Ryan-Toast> adrexia: project() returns the project dir
317: [21:19:02] <adrexia> oh I see. You want to use a function to return a static
318: [21:19:21] <Ryan-Toast> also, can youmake classes that have a canCreate set to false hide from the “Add Page” list|?
319: [21:19:33] <Ryan-Toast> adrexia: yeah, pretty much.
320: [21:19:51] <Ryan-Toast> which I know goes against the whole “static” thing :P
321: [21:20:11] <Ryan-Toast> It doesn’t have to be static does it?
322: [21:20:14] <Colin[pi]> ... why the heck would you want project() to set an icon? maybe I missed something :P
323: [21:21:16] <adrexia> that's a good point, why would you want that?
324: [21:21:55] <Ryan-Toast> Colin[pi]: because I change my project directory for websites, and I don’t want to have to go into my classes and change the path every time.
325: [21:22:10] <nupnups> how do i deal with GridFieldOrderableRows when i have a many_many situation
326: [21:22:21] <Colin[pi]> Ryan-Toast: sounds like a config thing
327: [21:22:23] <adrexia> and yeah, I think it beign a static prohibs you from setting it throug ha function
328: [21:22:24] <nupnups> since different objects will want the sort to be arranged differently
329: [21:22:43] <adrexia> Ryan - make a module - always reference the modukle directory instead>?
330: [21:22:50] <Ryan-Toast> Colin[pi]: hmm, yeah I giuess.
331: [21:23:09] <Ryan-Toast> adrexia: lol :P
332: [21:23:12] <Colin[pi]> adrexia: I think Ryan-Toast keeps all his stuff in one big folder :D
333: [21:23:25] <Ryan-Toast> Colin[pi]: Not anymore, been splitting stuff out :D
334: [21:23:29] <adrexia> haha
335: [21:23:31] <Colin[pi]> oic
336: [21:23:41] <Ryan-Toast> Slowely.
337: [21:23:44] <Ryan-Toast> Slowly
338: [21:23:47] <Ryan-Toast> too busy :(
339: [21:23:56] <Ryan-Toast> HGave to steal time to do all this biz.
340: [21:24:00] <adrexia> well, if you seperate out the images so tehy are always in the same place, you can change the project folder to your hearts content ;)
341: [21:24:07] <Colin[pi]> ^
342: [21:24:21] <Ryan-Toast> adrexia: yeah, I just don’t like magic strings is all.
343: [21:24:35] <Ryan-Toast> dynamic all the things!
344: [21:25:11] <Ryan-Toast> Okay, how do I hide shit from the “Add Page” Menu, canCreate just disables it.
345: [21:25:13] <adrexia> hahah. I used to feel that same
346: [21:25:30] <Colin[pi]> Ryan-Toast: css
347: [21:25:32] <adrexia> but holy crap do thigns become diffiocult to understand when everything is a variable ;)
348: [21:25:39] <Ryan-Toast> Colin[pi]: really? :(
349: [21:25:47] <Colin[pi]> yeah there is a class for the disabled ones
350: [21:25:48] <Ryan-Toast> adrexia: name your variables :P
351: [21:25:51] <Colin[pi]> just hidden them
352: [21:25:58] <Ryan-Toast> Colin[pi]: das dumb.
353: [21:26:02] <Colin[pi]> or display none I should say
354: [21:26:18] <adrexia> Ryan-Toast, do the problem is that too many things being variable means more strings to hold in your head at once
355: [21:26:31] <Ryan-Toast> adrexia: Depends on what you’re doing.
356: [21:26:37] <adrexia> which is fine when you wrote something, but difficult in other peoiple's code ;)
357: [21:26:43] <adrexia> true
358: [21:26:52] <Ryan-Toast> I just comment a lot.
359: [21:26:58] <adrexia> there is just such a thing as too far
360: [21:27:06] <adrexia> for insatnce, I think ariable methods is too far
361: [21:27:09] <Ryan-Toast> NO, ONLY OVERKILL :D
362: [21:27:12] <adrexia> *variablke
363: [21:27:22] <adrexia> wow. typos all over
364: [21:27:30] <antmas> variabike!
365: [21:27:35] <adrexia> hehe
366: [21:27:35] <Colin[pi]> lol
367: [21:27:44] <adrexia> I think methods shoulod be explicitly called
368: [21:27:53] <antmas> =1
369: [21:27:54] <adrexia> not some variable that calls it
370: [21:27:56] <antmas> +1*
371: [21:27:59] <adrexia> :D
372: [21:30:56] * antmas quit (Quit: Page closed)
373: [21:32:32] * Cheddam quit (Quit: Textual IRC Client: www.textualapp.com)
374: [21:40:02] * mahfuz has joined #silverstripe
375: [22:01:56] * zippy has joined #silverstripe
376: [22:02:07] <zippy> hi
377: [22:03:14] <Colin[pi]> heya zippy o/
378: [22:03:32] * zippy quit (Client Quit)
379: [22:03:43] <Colin[pi]> :C
380: [22:03:52] <SphereSilver> \o and o/
381: [22:03:59] <SphereSilver> Time for bed :)
382: [22:04:04] <Colin[pi]> hi and bye SphereSilver
383: [22:08:34] * zippy__ has joined #silverstripe
384: [22:08:40] <Ryan-Toast> does return parent::canCreate($member); not do anything?
385: [22:08:42] * zippy__ is now known as zippy
386: [22:09:13] * antmas has joined #silverstripe
387: [22:09:54] <Colin[pi]> Ryan-Toast: from SiteTree ?
388: [22:10:06] <Ryan-Toast> Colin[pi]: Page extension
389: [22:10:24] <Ryan-Toast> just seems to return true regardless of circumstance
390: [22:10:32] <zippy> anyone use an app for keeping track of notes and things? Often I open an text document to just copy and paste stuff into hold, and sometimes I write notes but don't save them... but I think it might be useful to save this stuff auto....
391: [22:10:45] <Ryan-Toast> zippy: google keep
392: [22:10:54] <Colin[pi]> Ryan-Toast: prolly up to the extension class to determine the permissions
393: [22:11:21] <zippy> Intersting.....
394: [22:11:28] <zippy> Ryan-Toast: you use it?
395: [22:11:35] <Ryan-Toast> zippy: yeah
396: [22:12:10] <Ryan-Toast> Colin[pi]: If I copy the whole method it works.
397: [22:12:15] <Colin[pi]> zippy: I've started using evernote
398: [22:12:23] <Colin[pi]> Ryan-Toast: hmmm
399: [22:13:04] <Ryan-Toast> Colin[pi]: nvm, figured it out.
400: [22:14:17] <Ryan-Toast> Wait, no I havent ><
401: [22:14:21] <Ryan-Toast> RABBLE RABBLE
402: [22:14:41] <zippy> the trackpad on the new macbok pro is nice... you'll have to upgrade spronk2
403: [22:15:32] <zippy> spronk2: also, if you haven't already block (privacy settings) your website folder from spotlight to stop that indexing sites folde
404: [22:15:47] <zippy> anyone else use anything? Evernote, Google Keep? Just needs to be basic
405: [22:16:08] * dragonfly has joined #silverstripe
406: [22:16:41] <antmas> clientsfromhell is amazing
407: [22:18:50] <Ryan-Toast> So parent::canCreate() always returns true, but if I copy/paste the method into the Page’s canCreate method it work properly.
408: [22:19:02] <ss-helper> How do I configure the datagrid of a Dataobject? - http://www.silverstripe.org/community/forums/customising-the-cms/show/101395
409: [22:19:37] <Colin[pi]> antmas: I think we all have some stories to share on that site :)
410: [22:20:05] <ss-helper> Re: Update filter in extension - http://www.silverstripe.org/community/forums/data-model-questions/show/101393#post400837
411: [22:21:16] <antmas> Colin[pi]: mmm
412: [22:21:47] <dragonfly> Hello. A quick question if anyone ha time to help. Which field type is best for Decimal in CMS? I try NumericField but it changes 7.8 to 8 on save.
413: [22:32:16] * zippy quit (Quit: Textual IRC Client: www.textualapp.com)
414: [22:43:22] <micmania1> dragonfly: I’m not sure NumericField should do that. Can you check the database column to make sure its not an int?
415: [22:46:18] <antmas> so 2d and snap finally made it official?
416: [22:57:55] <dragonfly> micmania1 - Ah yeah, that's it, strange, I thought changing the type from Int to Decimal would change the column type, but hasn't, least not using postgres... adding new fields worked... thanks :)
417: [23:06:28] * dragonfly quit (Ping timeout: 246 seconds)
418: [23:06:50] <veb> hey guys. anyone want to order from my new startup?
419: [23:06:56] <veb> I would give you 10%
420: [23:07:02] <veb> 10% off, sorry
421: [23:07:08] <Stomach> what is it veb
422: [23:07:25] <veb> http://happymoose.nz :)
423: [23:11:40] <adrexia> veb - looks pretty cool!
424: [23:11:47] <veb> cheers!
425: [23:12:01] <adrexia> I'm niot the right target audience for that, but umm... I can think of a whole lot who are
426: [23:12:01] <veb> if you wanna try us out, I can give you 10% off coupon :)
427: [23:12:08] <adrexia> I'll facebook sahre it for you. ;)
428: [23:12:20] <veb> well... if you get someone to order from us, I will give you some credit.
429: [23:12:33] <veb> and thanks!!
430: [23:12:38] <veb> like our FB page?
431: [23:12:56] <veb> https://www.facebook.com/#/happymoosenz
432: [23:13:32] <adrexia> done
433: [23:14:01] <veb> :D
434: [23:14:02] <adrexia> It looks like a really useful thing to offer.
435: [23:14:08] <veb> yep. thanks.
436: [23:20:31] * UncleCheese quit (Ping timeout: 255 seconds)
437: [23:22:55] <antmas> veb android yet?
438: [23:22:56] <antmas> :D
439: [23:23:25] <MichalKleiner> anyone knows how to test this vulnerability on unpatched sites? http://www.silverstripe.org/software/download/security-releases/ss-2015-009-xss-in-rewritten-hash-links
440: [23:23:36] <MichalKleiner> can't find a way how to break the site :-D
441: [23:23:52] <spronk2> antmas apparently so
442: [23:25:05] <MichalKleiner> veb: will you create an option to order via a website too? the product is nice but kinda limited to phone users if you know what I mean
443: [23:26:07] <veb> yep there will be an option to order from website.
444: [23:26:15] <veb> antmas: android alpha is working
445: [23:26:23] <veb> won't be long :-)
446: [23:32:42] <novaweb> Who is at SS HQ in wellington right now?
447: [23:34:00] <adrexia> micmania1, I think
448: [23:34:31] <novaweb> adrexia are you in the office?
449: [23:34:41] <adrexia> I don't work there anymore ;)
450: [23:34:48] <adrexia> haven't since July
451: [23:34:59] <novaweb> oh phoeeey
452: [23:35:00] <novaweb> hahaha
453: [23:35:03] <novaweb> thanks
454: [23:35:07] <adrexia> oh and ss23 probably
455: [23:35:20] <adrexia> but who can tell if he's really online ;)
456: [23:35:25] <ss23> I am!
457: [23:35:32] <adrexia> there you go then!
458: [23:35:40] <ss23> wait
459: [23:35:44] <ss23> I'm online, but not in the office
460: [23:35:45] <ss23> I'm sick
461: [23:35:49] <adrexia> hahaha
462: [23:35:52] <adrexia> oh yeah
463: [23:35:53] <novaweb> sick of BS
464: [23:35:53] * ss23 sniffs and coughs and sneezes
465: [23:35:59] <ss23> lol
466: [23:36:01] <adrexia> seems to be going around at silverstripe rigth now
467: [23:36:08] <ss23> yeah, it is, so many people off
468: [23:36:09] <ss23> :(
469: [23:36:10] <novaweb> and where we are
470: [23:36:28] <novaweb> CHEMTRALEZ
471: [23:36:41] <adrexia> I... really can't afford to get sick right now
472: [23:36:46] <ss23> ANTIVIRUS CAUSES BUGS #antivax
473: [23:36:55] <ss23> adrexia: Yeah, cause that's how getting sick works
474: [23:37:06] <ss23> "Oh no Mr Virus! I can't afford to get sick!" "Okay, sorry, bye!"
475: [23:37:20] <adrexia> ss23, unless it's like rigthn npw and I'm fine by friday ;)
476: [23:37:39] <adrexia> though I suspect that won't work for my employer ;)
477: [23:38:15] <adrexia> but I have something on this weekend that I and others have been planning for way to long for that not to be a really big fail.
478: [23:38:21] <Colin[pi]> adrexia: my son has a cold and the first thing he did when I got back from a conference the other day was to put his sticky kid hands directly on my face
479: [23:38:25] <Colin[pi]> thanks kiddo :\
480: [23:39:00] <adrexia> ...and actually, I often find it does work taht way... busy busy busy... oh look we have a moment = sick
481: [23:39:24] <Colin[pi]> adrexia: almost every time I go on holiday, I get sick
482: [23:39:24] <adrexia> yeah, one of my workmates coughed bascially on my face 30 minutes ago
483: [23:39:32] <adrexia> if I get sick I'm goign to stranggle him :P
484: [23:58:51] * antmas quit (Quit: Page closed)

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