#silverstripe IRC Log

IRC log for 10 June 2013

All timestamps are in UTC.

1: [00:02:53] <ss23> ajmitch_: Script kiddie in a past life? :D
2: [00:03:40] <Pyromanik> ajmitch_: which one?
3: [00:03:44] <ajmitch_> no, was just reviewing the code of it awhile back
4: [00:04:02] <Pyromanik> the shit nz one that DID get hacked (but apparently didn't according to the owner), or the international one that looks presentable?
5: [00:04:33] <ajmitch_> looks presentable, but I'm talking about the zpanel product itself
6: [00:04:40] <Pyromanik> ajmitch_: yeah but which one
7: [00:04:45] <Pyromanik> are they even the same?
8: [00:04:54] <Pyromanik> zpanel.co.nz, zpanelcp.com ?
9: [00:05:05] <ajmitch_> from what I can see zpanel.co.nz just talks about zpanelcp.com?
10: [00:05:08] <mobiusnz> goddamnit. I swear I just spent half an hour trying to find the source layer for a subtle gradient in a design template, only to discover it was a smudge on my screen
11: [00:05:45] <Pyromanik> ajmitch_: didn't look that hard
12: [00:05:57] <Pyromanik> mobiusnz: hahaahha
13: [00:06:26] <Pyromanik> ajmitch_: go to zpanel.co.nz
14: [00:06:30] <Pyromanik> look for yourself :P
15: [00:07:13] <spronk> Uncaught ValidationException: Page type "Accessory Page" not allowed as child of this parent page
16: [00:07:17] * spronk tears his hair out
17: [00:07:30] <spronk> static $allowed_children = array('AccessoryCategory', 'AccessoryPage');
18: [00:07:59] <ajmitch_> Pyromanik: I did
19: [00:10:19] <Pyromanik> ajmitch_: but all it says is the one thing, the rest of the site is just nothing
20: [00:10:45] <Pyromanik> 404 all the site, that'll show off your product well!
21: [00:11:20] <spronk> i am about ready
22: [00:11:25] <spronk> to give up silverstripe development altogether
23: [00:11:26] <Pyromanik> ajmitch_: ah, the only piece of content is left by "ps2guy", who is listed as QA team on zpanelcp.com
24: [00:11:27] <spronk> :@
25: [00:11:34] <Pyromanik> so yeah
26: [00:11:37] <ajmitch_> Pyromanik: I know, I think the site is just a local fan's page which is supposed to be about the product :)
27: [00:11:38] <Pyromanik> none of the zpanels evers
28: [00:11:58] <ajmitch_> but I was referring to the wonderful code quality of things like zsudo which ss23 referred to :)
29: [00:12:13] <Pyromanik> https://www.facebook.com/pstwo.guy
30: [00:12:15] <Pyromanik> this champ
31: [00:13:04] <Pyromanik> ajmitch_: yeah, it says "was not actually hacked although was claimed to be" which is just outright false.
32: [00:13:24] * ajmitch_ shrugs
33: [00:13:33] <ajmitch_> don't really care about their site :)
34: [00:14:04] <Pyromanik> don't really care about their product, I just remembered to look up the uberfail ss23 told me about
35: [00:14:08] <Pyromanik> having lolz
36: [00:14:23] <ss23> Just like that Tenda one
37: [00:14:42] <ss23> http://www.geekzone.co.nz/forums.asp?forumid=49&topicid=119152 -- "Oh, that username and password didn't work! Did you mean *this* username and password?"
38: [00:14:45] <ss23> idek
39: [00:15:19] <ss23> Interestinly though, I could only find Tenda routers of that kind in Finland and New Zealand, and all the Finnish firmware doesn't have that issue, so I'm guessing that it's just the AU/NZ firmware with the issue/debug/whatever
40: [00:15:23] <ss23> ANYWAY, I'm going to bed!
41: [00:15:27] <ss23> midday is far too late for ss23 to be awake :D
42: [00:20:25] <Pyromanik> ss23: get used to it, job now.
43: [00:26:33] <spronk> hmm
44: [00:26:37] <spronk> dropdownfield>setEmptyString()
45: [00:27:11] <spronk> this stops the $value from selecting...
46: [00:33:54] <spronk> how to get a dropdownfield working nicely with a has_one??
47: [00:33:55] * zippy__ quit (Read error: Connection reset by peer)
48: [00:34:30] <spronk> o
49: [00:34:31] <spronk> ID
50: [00:34:33] <spronk> fuck
51: [00:37:33] * mattybalaam has joined #silverstripe
52: [00:43:27] <spronk> hmm
53: [00:43:38] <spronk> anyone know of a way to mark a page as non-createable?
54: [00:44:35] <spronk> i.e. i essentially want it as abstract class
55: [00:44:58] <nikrolls> You could hide it from its children
56: [00:45:15] <nikrolls> *from within its subclasses
57: [00:45:19] <spronk> hmm
58: [00:45:28] <nikrolls> The same trick actually lets you do it within the same class
59: [00:45:33] * mattybalaam quit (Quit: mattybalaam)
60: [00:46:25] <nikrolls> http://www.balbus.tk/hide-a-page-from-the-cms-pagetype-dropdown/
61: [00:46:30] <nikrolls> Some of that is still relevant
62: [00:46:48] <nikrolls> Try 7, though 5 may still work
63: [00:47:27] <nikrolls> Doesn't need HiddenClass, though it may be beneficial? If it still exists
64: [00:47:49] <spronk> mm
65: [00:48:07] <nikrolls> Actually, that's a bit specialised
66: [00:48:34] <nikrolls> But I would hide ancestor from the children, or see if HiddenClass will suit your purpose
67: [00:48:45] <nikrolls> * Anything that implements HiddenClass won't be shown in user-interface elements. For example,
68: [00:50:01] <spronk> hmm
69: [00:50:03] <spronk> hiddenclass won't work
70: [00:50:14] <spronk> because subclasses will also implement hiddenclass
71: [00:52:16] <nikrolls> Hmm
72: [00:52:19] <spronk> hide ancestor might..
73: [00:52:30] <spronk> yueessss
74: [00:52:31] <spronk> leet
75: [00:52:38] <nikrolls> I've noticed in SS that other implements aren't picked up on subclass
76: [00:52:47] <nikrolls> eg TemplateGlobalProvider
77: [00:53:02] <nikrolls> But that could be different as it's doing a search for classes that directly implement it
78: [00:53:03] <spronk> its very confusing
79: [00:53:07] <nikrolls> :)
80: [00:53:32] <nikrolls> But yeah, hide ancestor. Does that work to hide itself? I heard it ded
81: [00:53:34] <spronk> breaks the semantics of interfaces
82: [00:53:35] <nikrolls> *did
83: [00:53:42] <spronk> well i only need to hide the ancestor
84: [00:53:48] <nikrolls> Right
85: [00:53:50] <spronk> so i just stick hide_ancestor on all subclasses
86: [00:53:54] <spronk> a bit dirty, but it works
87: [00:54:15] <nikrolls> Yeah, my fear on doing that is maintainability. Would be good if there was a property on the class to make it hidden
88: [00:54:59] <spronk> mm
89: [00:59:00] <nikrolls> hide_parents is great when you want to override an existing page type. When you are specifically creating a page that should only be subclassed then it's a little non-semantic
90: [00:59:11] <nikrolls> But it's what's available :)
91: [01:28:29] * nikrolls is now known as nikrolls|afk
92: [01:35:53] * unsignedint quit (Read error: Connection reset by peer)
93: [01:36:15] * unsignedint has joined #silverstripe
94: [01:45:15] <Pyromanik> spronk: canCreate(){return false;}
95: [01:46:16] <Pyromanik> nikrolls|afk: it's because HiddenClass is an interface, all that inherit it are also HiddenClasses.
96: [01:46:28] <Pyromanik> hide ancestor is just a directive.
97: [01:48:05] <Pyromanik> spronk: to just hide an ancestor, function canCreate(){if($this->class == "AncestorClass") return false; else return parent::canCreate();}
98: [01:50:44] <spronk> hmm
99: [01:50:53] <spronk> that is probably simpler
100: [01:50:53] <spronk> :p
101: [01:52:29] * RojoD has joined #silverstripe
102: [01:52:30] * RojoD quit (Changing host)
103: [01:52:30] * RojoD has joined #silverstripe
104: [01:52:37] * DigNZ has joined #silverstripe
105: [01:52:38] * DigNZ quit (Remote host closed the connection)
106: [01:52:52] * DigNZ has joined #silverstripe
107: [01:56:53] * Hippiee has joined #silverstripe
108: [01:57:13] * RojoD quit (Ping timeout: 256 seconds)
109: [01:58:50] * zippy__ has joined #silverstripe
110: [01:59:15] <Pyromanik> spronk: more maintainable.
111: [02:14:31] <nikrolls|afk> Pyromanik: Nice tip!
112: [02:20:18] <spronk> mm
113: [02:20:23] <spronk> this shit needs to be in the docs
114: [02:24:24] <Pyromanik> read DataObject & SiteTree more often.
115: [02:25:26] <nikrolls|afk> Agree with that. I often find myself checking out the base classes to see what functionality is hidden there
116: [02:26:00] * robert_ quit (Ping timeout: 245 seconds)
117: [02:28:07] <spronk> blejh
118: [02:28:26] <spronk> reading?
119: [02:28:28] <spronk> since when could I do that!?
120: [02:41:49] <spronk> grrrrr
121: [02:41:52] * lewellyn quit (Ping timeout: 276 seconds)
122: [02:42:32] <spronk> $f->addFieldToTab('Root.Main', new TreeDropdownField('BannerLinkID', 'Destination Page', 'SiteTree'));
123: [02:42:34] <spronk> what's wrong with this?
124: [02:42:44] <spronk> more to the point: why doesn't it save the item i select
125: [02:54:33] <spronk> jesus christ debugging silverstripe is ridiculously slow on this vm
126: [02:58:55] * zippy__ quit (Read error: Connection reset by peer)
127: [03:15:55] * MrJeremy quit (Remote host closed the connection)
128: [03:19:42] * MrJeremy has joined #silverstripe
129: [03:30:21] * zippy__ has joined #silverstripe
130: [03:36:16] <zippy__> spronk: Sorted that save issue?
131: [03:40:26] <zippy__> I have a DataObject, with a has_one relationship to another DataObject. In the CMS this just shows as a drop list - but really it would be good if I had some Add / Edit / Remove buttons instead of a drop list, a bit like UploadImage field - is there a way to do that with DataObjet
132: [03:58:26] * nikrolls|afk is now known as nikrolls
133: [03:59:13] * cloph_away1 has joined #silverstripe
134: [03:59:47] * cloph_away quit (Ping timeout: 255 seconds)
135: [04:01:52] * zippy__ quit (Quit: zippy__)
136: [04:06:45] * ColdBlooded has joined #silverstripe
137: [04:07:01] <ColdBlooded> hey
138: [04:07:09] * ColdBlooded is now known as Guest45308
139: [04:07:17] * Guest45308 is now known as Kunal
140: [04:07:46] <Kunal> ..
141: [04:08:05] <Kunal> need some help with SilverStripe 3 way of doing controllers loading via ajax
142: [04:08:41] <Kunal> in my _config.php i have put
143: [04:08:45] <Kunal> Director::addRules(50, array( 'everything/$Action/$ID'=>'EverythingController' ));
144: [04:09:39] <Kunal> controller codes are all there, but when you go to the direct URL (http://paccpams13.net/everything/bio/3?flush=all)
145: [04:09:49] <Kunal> doesnt work
146: [04:13:50] * Kunal quit (Quit: Page closed)
147: [04:24:37] * metanat has left #silverstripe
148: [04:27:38] * robert_ has joined #silverstripe
149: [04:27:38] * robert_ quit (Changing host)
150: [04:27:38] * robert_ has joined #silverstripe
151: [04:43:33] <spronk> anyone know of any modules that enhance the Link Existing functionality of GridField_RelationEditor ?
152: [04:43:46] <spronk> i.e. give a popup or something with a browsable list, not just search
153: [04:52:20] * mobiusnz quit (Quit: Leaving.)
154: [04:59:42] * joelpittet has joined #silverstripe
155: [05:01:09] * robert__ has joined #silverstripe
156: [05:01:09] * robert__ quit (Changing host)
157: [05:01:09] * robert__ has joined #silverstripe
158: [05:02:21] * robert_ quit (Ping timeout: 240 seconds)
159: [05:03:11] * DigNZ quit (Quit: DigNZ)
160: [05:15:39] * joelpittet quit (Remote host closed the connection)
161: [05:15:55] * Hippiee quit (Ping timeout: 276 seconds)
162: [05:16:41] * Hippieee has joined #silverstripe
163: [05:17:30] * Hippieee quit (Client Quit)
164: [05:20:09] * lewellyn has joined #silverstripe
165: [05:26:12] * lewellyn has joined #silverstripe
166: [05:27:24] * robert_ has joined #silverstripe
167: [05:28:07] * lewellyn quit (Remote host closed the connection)
168: [05:29:05] * robert__ quit (Ping timeout: 246 seconds)
169: [05:36:57] * Liquide quit ()
170: [05:38:30] * lewellyn has joined #silverstripe
171: [05:44:57] * Jamine has joined #silverstripe
172: [05:45:11] <Jamine> HELP
173: [05:45:26] <spronk> yes?
174: [05:46:02] <Jamine> i have a class extending the UserDefinedForm and after submit I got this error "There seems to have been a technical problem. Please click the back button, refresh your browser, and try again."
175: [05:46:51] <Jamine> contact page has the same code but contact didnt encounter that error after submission
176: [05:47:09] <spronk> set up logging, and have a look through the log file to find the error
177: [05:47:19] <spronk> http://doc.silverstripe.org/framework/en/topics/error-handling
178: [05:47:25] <Jamine> I have contact page also that has the same code but contact page didnt encounter that error after submission
179: [05:48:35] <Jamine> we already check the log but we didnt recieve any error log
180: [05:48:41] <spronk> hmm
181: [05:48:42] <spronk> which error log?
182: [05:48:45] <spronk> PHP, or silverstripe?
183: [05:49:09] <spronk> you'll need to check both - as SS might be catching the error internally and in that case it won't log to php's error log, or vice versa
184: [05:49:43] <spronk> Additionally, make sure you've done a /dev/build, and refreshed browser :)
185: [05:49:54] * nickmolhoek quit (Quit: nickmolhoek)
186: [06:19:02] * priithansen has joined #silverstripe
187: [06:34:44] * zfmf1 has joined #silverstripe
188: [06:58:27] * mobiusnz has joined #silverstripe
189: [07:00:29] * mobiusnz quit (Client Quit)
190: [07:13:15] * Jamine quit (Quit: Page closed)
191: [07:14:38] * mento has joined #silverstripe
192: [07:26:35] * chillu has joined #silverstripe
193: [07:27:36] * g4b0_ has joined #silverstripe
194: [07:29:03] <g4b0_> hi all
195: [07:52:58] * Sjohn has joined #silverstripe
196: [08:05:16] * mobiusnz has joined #silverstripe
197: [08:05:47] * kinglozzer has joined #silverstripe
198: [08:12:51] * mobiusnz quit (Quit: Leaving.)
199: [08:25:44] * MrJeremy quit (Quit: MrJeremy)
200: [08:31:38] * popeshoe has joined #silverstripe
201: [08:40:09] * howardgrigg quit (Remote host closed the connection)
202: [08:43:41] * mattybalaam has joined #silverstripe
203: [08:44:25] * Guits has joined #silverstripe
204: [08:47:56] <mattybalaam> Hi, I have a question on the forum, I don’t know if anyone could help me with it? http://www.silverstripe.org/data-model-questions/show/23939
205: [08:50:24] <gumble> if I have to upload an icon for every page, do I have to click through every page to change all icons or is there any easier way?
206: [08:56:02] <mattybalaam> Ultimately what I would like to be able to do is count how many times one object is many-many joined to another object, but can’t get my head around how to do it.
207: [08:58:10] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
208: [09:00:56] * mobiusnz has joined #silverstripe
209: [09:07:36] * Peavers quit (Ping timeout: 255 seconds)
210: [09:07:53] * Peavers has joined #silverstripe
211: [09:09:39] * openbees has joined #silverstripe
212: [09:10:38] <openbees> any idea what happened here .. was working 10 minute ago :( http://userhelp.silverstripe.org/framework/en/
213: [09:10:41] * lx-berlin_ has joined #silverstripe
214: [09:12:17] * mobiusnz quit (Quit: Leaving.)
215: [09:13:20] <openbees> works now .. thanks chillu ;)
216: [09:16:43] <chillu> openbees: I'm just deploying to it
217: [09:17:40] * osterlaus has joined #silverstripe
218: [09:18:18] <lx-berlin_> chillu: any idea when ss3.1 will become final ? do you think it will be within the next 3 month?
219: [09:18:31] * Guits quit (Ping timeout: 245 seconds)
220: [09:22:45] <chillu> yes
221: [09:23:25] <lx-berlin_> ah, cool
222: [09:25:08] <lx-berlin_> but i just noticed that my most needed module (https://github.com/nyeholt/silverstripe-queuedjobs) is only 3.0.x ready. I guess that means it might have problems under 3.1
223: [09:31:19] * osterlaus quit (Quit: Leaving.)
224: [09:47:33] * r3v3rb has joined #silverstripe
225: [09:47:47] <r3v3rb> morning all
226: [09:49:22] <r3v3rb> I have a pagetype that I do a quick str_replace on for three variables which also contains some [sitelink] in it. now the variables get str_replaced by the page action but the [sitelink]'s are not being replaced? Any ideas - woulld you like to see the function?
227: [09:51:36] <r3v3rb> The holding container in the CMS is an HTMLEditorField which I get clients to add the [Town] shortcode to. This is then replaced based on the Town they have clicked in the preceeding page to create a huge amount of pages on the fly… So for some strange reason the function to parse my shortcodes is stopping the normal flow of the HTLEditorField… I think
228: [09:53:13] <r3v3rb> Is there a way to 'push' the content through the normal parser as well?
229: [09:56:24] <r3v3rb> ShortcodeParser::get_active()->parse($body) doesn't seem to do anything to the [sitetree_link id] in the html
230: [09:59:19] <r3v3rb> I think I need to find where 'link_shortcode_handler' is called on a normal page and hook into that
231: [10:07:46] * osterlaus has joined #silverstripe
232: [10:08:23] * gumble quit (Remote host closed the connection)
233: [10:11:21] * gordon has joined #silverstripe
234: [10:11:29] * gordon is now known as elgrodo
235: [10:12:01] * elgrodo just come across a weird bug, only o staging though, not locally
236: [10:12:20] <elgrodo> an extension class is not being found, even though it is quite clearly there in the codebase
237: [10:12:49] <elgrodo> this is when running /dev/build
238: [10:13:21] <openbees> elgrodo did you add Object::add_extension('','') in your _config .php ?
239: [10:13:56] <elgrodo> I am using extensions.yml , and removing that file (or renaming it) affects whether or not an attempt is made to add the extension
240: [10:14:12] <elgrodo> I am just trying to think of a checklist of what I can check
241: [10:14:49] <openbees> sometime a ?flush=all may help .
242: [10:14:52] <r3v3rb> fixed my little issue :D
243: [10:14:56] * r3v3rb = happy bunny
244: [10:16:38] <elgrodo> ?flush=all was what I was doing :(
245: [10:16:48] <elgrodo> it works on my dev box
246: [10:17:36] <elgrodo> config directory is there so it should pick up as a module
247: [10:17:37] <elgrodo> _config I mean
248: [10:20:17] <elgrodo> extension php file looks valid to me (and must be if working in dev)
249: [10:23:36] <openbees> elgrodo sorry man I am still in 3.0 era , never tried extension.yml.
250: [10:23:51] <elgrodo> no worries
251: [10:23:58] <elgrodo> I'm just looking for angles on how to attack and resolve this
252: [10:24:56] <elgrodo> wonder if it some weird kind of thing like naming and alphabetical order...
253: [10:25:33] <elgrodo> desperate enough to try...
254: [10:32:36] <elgrodo> trying a clean deployment as I did screw up some git submodule things
255: [10:33:08] <elgrodo> 'git add submodule' instead of 'git add submodule/' causes an empty directory
256: [10:34:53] <spronk> anyone know which subsites to use for 3.0.5?
257: [10:35:06] * lx-berlin_ has left #silverstripe
258: [10:39:54] * willmorgan has joined #silverstripe
259: [10:42:44] * travis-ci has joined #silverstripe
260: [10:42:44] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#260 (3.0 - 71a5615 : Ingo Schommer): The build passed.
261: [10:42:44] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/c45ae00d012d...71a5615213e3
262: [10:42:44] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/7945296
263: [10:42:44] * travis-ci has left #silverstripe
264: [11:16:48] * Biggie has joined #silverstripe
265: [11:17:11] * Biggie is now known as Guest59219
266: [11:18:10] <Guest59219> Hi, I am building the mobile web version and I have everything build except the blog. The blog is somehow not divided in different themes, but this is exactly what I will need to have. So I will need to load one theme and when accessing the web by mobile device it switches to another theme
267: [11:18:19] <Guest59219> any idea on how this could be build up?
268: [11:18:24] <Guest59219> in the blog module?
269: [11:20:12] * mattybalaam quit (Quit: mattybalaam)
270: [11:24:34] <Guest59219> no one has an answer :-(
271: [11:37:17] * r3v3rb quit (Quit: r3v3rb)
272: [11:50:17] <nikrolls> Hi Guest59219, there is a module for SS that will switch the theme when you're on a mobile device
273: [11:50:28] <ec8or_> Guest59219: you would have to check for the user-agent or HTTP headers in your init function
274: [11:50:36] <ec8or_> ah, there you go :)
275: [11:50:44] <nikrolls> Ideally responsive templating is the way to go, but I fully understand that it doesn't suit all situations
276: [11:52:08] <nikrolls> https://github.com/silverstripe/silverstripe-mobile
277: [11:52:22] <nikrolls> Though I note that it hasn't been updated in a few months
278: [11:52:27] <nikrolls> Doesn't mean it shouldn't work though
279: [11:53:19] <nikrolls> I would also suggest serving a Varies: User-Agent header with this (if the module doesn't do it already)
280: [11:53:40] <nikrolls> So that search engines know there is slightly different content for different user agents
281: [11:54:19] <nikrolls> That can help avoid a negative ranking and also encourages them to crawl as a mobile browser
282: [11:54:33] <nikrolls> (from my understanding)
283: [11:58:20] <ec8or_> yeah, go responsive is probably much less hassle :)
284: [12:06:20] * elgrodo quit (Ping timeout: 248 seconds)
285: [12:06:52] * elgrodo has joined #silverstripe
286: [12:08:32] * micmania1 has joined #silverstripe
287: [12:10:13] <micmania1> Anybody know how to use $many_many_extraFields in Gridfield in 3.1?
288: [12:10:35] * supernovah has joined #silverstripe
289: [12:10:40] <supernovah> hi all
290: [12:10:55] * Hippieee has joined #silverstripe
291: [12:11:47] <supernovah> Hey I am after some help, I'm looking at extending a clubs website who's first admin decided to use this CMS. I have a lot of questions to ask about it...
292: [12:12:29] <supernovah> And as encouragement for someone to help, I have extensive knowledge in php, js and all related markup languages
293: [12:12:50] <supernovah> Oh and sql, htaccess etc etc
294: [12:16:39] <ec8or_> supernovah: what do you need to know?
295: [12:18:48] <supernovah> Ok first up, the mysite directory in this site contains a few folders, DataObject, .. .. and PAges - PAges is actally mispelled like that yet it still works - case insensitive I'm guessing from the framework - but is that standard? The tutorials had dataobjects/pages/page_controller files in ../mysite/ only
296: [12:19:42] <supernovah> Or if it's not, where would I find that behaviour (to look for pages/page_controllers) described in?
297: [12:21:42] <supernovah> Sorry it's ../mysite/code and ../mysite/code/PAges etc
298: [12:22:15] <nikrolls> SS recursively scans all folders in the siteroot that have either a _config folder or _config.php in them
299: [12:22:37] <ec8or_> supernovah: normally everything just gets put in the code folder
300: [12:22:40] <nikrolls> So in short the folder names don't matter, though there are conventions, especially for when building modules
301: [12:22:53] <ec8or_> but i prefer to organise it a bit better, with model and pages folders etc.
302: [12:23:08] <supernovah> Oh I see, hence why the capitalisation is not of concern
303: [12:23:17] <ec8or_> just make sure you re-build do a ?flush=all after you move everything so the class manifest gets rebuilt
304: [12:23:21] <nikrolls> Yeah, code folder is common -- though you're welcome to organise within that. This is usually for modules which also come with tests, templates, etc
305: [12:24:35] <nikrolls> Sorry ec8or_, I was waiting for a particularly slow SS build :)
306: [12:24:53] <supernovah> Okay secondly, what exactly is ../mysite/_config.php > `//Director::set_environment_type("dev");` going to do? When I last enabled it I had to delete the entire site and reset my database to a known working copy. It began telling me there were missing baseClasses in SSView.php among other files
307: [12:24:54] <nikrolls> Just jumped in
308: [12:25:36] <supernovah> And the /dev/build stopped working, as did viewing any code in the code viewer section
309: [12:25:52] * travis-ci has joined #silverstripe
310: [12:25:52] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#261 (3.1 - 1c150ac : Ingo Schommer): The build passed.
311: [12:25:52] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/dbc2b62c6945...1c150ac3a023
312: [12:25:52] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/7947488
313: [12:25:52] * travis-ci has left #silverstripe
314: [12:25:53] <nikrolls> That line definitely won't do what you described. Though it may have shown you errors that you didn't see before. Non-major errors are hidden from the user unless the site is in dev mode
315: [12:26:21] * openbees quit (Quit: Leaving)
316: [12:26:24] <nikrolls> Or rather, all errors are hidden in 'test' and 'live' mode, but the major ones redirect to an error 500 page
317: [12:26:35] * Hubertusanton has joined #silverstripe
318: [12:27:24] <nikrolls> You'd want 'dev' enabled whenever developing. Though I'd recommend setting it for your environment rather than in mysite/_config.php, in case it gets deployed to your main site
319: [12:27:24] <nikrolls> http://doc.silverstripe.org/framework/en/topics/environment-management
320: [12:27:36] <supernovah> Well I could describe more clearly, when I uncommented it, the site went to build the DB again, had a hiccup throwing a plethora of SQL errors in table creation, selection etc, the most common thing I saw was a missing base class and badRecordClassName, I found out that meant the className in the file table may have been missing - it wasn't the case though
321: [12:28:00] <Hubertusanton> is there a bug in 3.1 to remove a field which is generated by a has_one SiteTree?
322: [12:28:01] <supernovah> It's worth also mentioning I think this is 2.4 I'm running
323: [12:29:02] <nikrolls> Hmm, I'm not familiar with 2.4 but as far as I know 'dev' should only A) show you errors, and B) allow you to build/flush/run tests without logging in as an admin
324: [12:29:20] <supernovah> Oh right
325: [12:29:21] <Hubertusanton> It's a dropdownfield which i cannot remove with removeByName('InternalLink')
326: [12:30:01] <nikrolls> Hubertusanton: how about InternalLinkID?
327: [12:30:06] <Hubertusanton> anyone had the same problem? It's in a DataObject
328: [12:30:20] <nikrolls> *may* be it if it's a has_one, guessing
329: [12:31:27] <Hubertusanton> thanks god thats it! have been staring at it for 1 hour now :-)
330: [12:31:59] <Hubertusanton> what sleep deprivation (caused by a kid) can do with you :)
331: [12:32:04] <Hubertusanton> thanks!
332: [12:32:57] <nikrolls> No worries :)
333: [12:33:19] <supernovah> So when I uncomment that line just now on the site I get (when I access the CMS part) > [Notice] Array to string conversion, GET /admin/, Line 162 in C:\xampp\htdocs\sapphire\core\SSViewer.php
334: [12:34:07] <nikrolls> Nice
335: [12:34:32] <nikrolls> Do you know if the previous devs modified the core at all?
336: [12:34:43] <supernovah> I don't think they'd have had the knowledge to
337: [12:34:59] <Hubertusanton> This could be handy to some of you maybe?
338: [12:35:00] <Hubertusanton> http://sspaste.com/paste/show/51b5c7a6d0585
339: [12:35:03] <nikrolls> Sometimes external changes throw errors in internal files, but at that URL it shouldn't be loading your code
340: [12:35:06] <supernovah> But that file "silverstrip-version" has no content
341: [12:35:33] <supernovah> So I can't find an original framework to replace it
342: [12:36:01] * UndefinedOffset has joined #silverstripe
343: [12:36:01] <nikrolls> Hmm, I'm pretty sure that had content until v3.1 -- though again I can't be sure before v3
344: [12:36:32] <nikrolls> It may even have content in 3.1, possibly it's meant to be empty in pre-releases
345: [12:36:46] <supernovah> I checked screenshots of the cms of 3.1 and it's not that
346: [12:36:51] * elgrodo quit (Ping timeout: 245 seconds)
347: [12:36:53] <supernovah> What were the major version? 2.4, 3.0 and 3.1?
348: [12:37:07] <nikrolls> 2.4 and 3.0 so far
349: [12:37:12] <ec8or_> 3.1 is in beta
350: [12:37:21] <nikrolls> They are the current versions
351: [12:37:37] <supernovah> Ya it's definitely not 3.0
352: [12:37:39] <nikrolls> Does this look familiar? http://b.vimeocdn.com/ts/662/947/66294755_640.jpg
353: [12:37:39] <supernovah> Earlier
354: [12:38:02] <supernovah> Yes except the right hand side I haven't seen before
355: [12:38:28] <supernovah> Oh it's just an editor for the link
356: [12:39:01] * Sjohn quit (Ping timeout: 250 seconds)
357: [12:39:16] <nikrolls> I'd say you could drop in v2.4 fairly safely
358: [12:39:21] <ec8or_> supernovah: i'd just take a backup and then update to the lastest 2.4 version
359: [12:39:28] <nikrolls> Agreed
360: [12:39:45] <ec8or_> sounds like someone has been meddling with the core files, so you might lose some custom functionality but in either case whoever did it also broke things ;)
361: [12:39:48] <supernovah> I'd like to update but this guys also using modules I'm not sure are compatable
362: [12:40:06] <ec8or_> supernovah: they should be as long as you stick to 2.4
363: [12:40:14] <supernovah> orderable, dataobject manager, member profiles and uploadify
364: [12:40:19] <ec8or_> yeah
365: [12:40:22] <ec8or_> all good
366: [12:40:45] <supernovah> So upgrading means switching out the sapphire and cms folders only?
367: [12:40:47] <ec8or_> supernovah: http://www.silverstripe.org/security-releases/
368: [12:40:50] <ec8or_> 2.4.10
369: [12:41:00] <nikrolls> You may want some of the root folder files too
370: [12:42:17] <nikrolls> Probably everything but mysite
371: [12:42:18] <supernovah> I've got loads of backups btw lol, actually have a batch file now which resets it all and the database to square 1 (as the site was handed over)
372: [12:42:34] <supernovah> There's files in assets and a theme though
373: [12:42:53] <nikrolls> Hmm, probably leave out themes too
374: [12:42:55] * micmania1 quit (Ping timeout: 250 seconds)
375: [12:43:02] <nikrolls> In case they overwrote the shipped one :D
376: [12:43:07] <supernovah> What's this vendors folder
377: [12:43:15] <nikrolls> assets shouldn't come with 2.4
378: [12:43:28] <nikrolls> Hmm, vendors usually indicates composer package management
379: [12:43:59] <nikrolls> Is there a composer.json file?
380: [12:44:11] <supernovah> yea
381: [12:44:25] <nikrolls> You could possibly use composer to recover the framework
382: [12:44:57] <nikrolls> http://getcomposer.org/
383: [12:45:27] <nikrolls> You'd need to install it if you don't already have it, then run 'composer update' (or 'composer install' if that doesn't help) in the siteroot folder
384: [12:45:40] <nikrolls> If you're on Windows then it's good to do it within Git Bash
385: [12:46:51] <supernovah> I have these softwares but haven't really used them much
386: [12:47:13] <nikrolls> I suggest that because once you have composer running it's a really nice way to manage modules and updates
387: [12:47:26] <nikrolls> Much nicer than downloading zip files or even managing submodules
388: [12:47:42] <nikrolls> *git submodules
389: [12:48:03] <supernovah> Ok it's installed and I've refreshed the environment
390: [12:48:14] <supernovah> This composer one
391: [12:48:21] <supernovah> But you said use git-bash?
392: [12:48:26] <nikrolls> Windows/Mac/Linux?
393: [12:48:30] <supernovah> win
394: [12:48:52] <nikrolls> Do you have Git (msysgit) installed)
395: [12:48:53] <nikrolls> ?
396: [12:49:16] <supernovah> Yeahp
397: [12:49:38] <nikrolls> Cool, then yep I usually run it from Git Bash. It will work outside if you have your git paths set up correctly though
398: [12:49:52] <nikrolls> I just find git bash less finnicky
399: [12:51:37] <supernovah> The project I was given doesn't have a composer.json tough
400: [12:53:03] <nikrolls> Hmm -- composer.lock?
401: [12:53:15] <supernovah> It apparently did not utilised composer at all
402: [12:53:54] <nikrolls> Ok, sorry, I thought you said there was a composer.json there :)
403: [12:55:21] <nikrolls> Then you could use a download if you want to get up and running without worrying about composer yet
404: [12:56:17] <supernovah> I thought you meant 2.4.10
405: [12:56:37] <nikrolls> Heh
406: [12:56:43] <nikrolls> Sorry
407: [12:57:05] <supernovah> Oh it seemed to work anyway
408: [12:57:11] <supernovah> Just doing cms and sapphire
409: [12:57:26] <supernovah> I checked all the index/_config and htaccess files and they were mostly consistent besides obvious differences
410: [12:57:40] <supernovah> And now it actually tells me the version number HAH
411: [12:57:45] <nikrolls> :)
412: [12:58:17] <supernovah> Okay all is good
413: [12:58:34] <supernovah> Thus far, I'll come back in an hour after I try again at putting my new dataobject in
414: [12:58:51] <nikrolls> Good luck :)
415: [12:59:03] <supernovah> Do I run the risk of corrupting anything with a basic dataObject extended class and page the like as long as their syntax is good?
416: [12:59:23] <g4b0_> How can I have partial caching working with pagination on SS 3.1-beta3?
417: [12:59:34] <supernovah> Not to bother, tyvm thus far
418: [13:00:13] <nikrolls> supernovah: You should be ok, SS is very non-destructive with its DB
419: [13:00:22] * travis-ci has joined #silverstripe
420: [13:00:22] <travis-ci> [travis-ci] chillu/silverstripe-framework#1 (pulls/cmsform - f1bb647 : Ingo Schommer): The build failed.
421: [13:00:22] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-framework/compare/363025c1a344...f1bb647b5627
422: [13:00:22] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-framework/builds/7948772
423: [13:00:22] * travis-ci has left #silverstripe
424: [13:01:36] * Sjohn has joined #silverstripe
425: [13:02:40] * travis-ci has joined #silverstripe
426: [13:02:40] <travis-ci> [travis-ci] chillu/silverstripe-cms#39 (pulls/cmsform - faaaf94 : Ingo Schommer): The build has errored.
427: [13:02:40] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-cms/compare/189d272fd35a...faaaf94a03bc
428: [13:02:40] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-cms/builds/7948781
429: [13:02:40] * travis-ci has left #silverstripe
430: [13:02:40] * Sjohn quit (Client Quit)
431: [13:02:49] <nikrolls> g4bo_: I suspect you would need to use the requested page (or perhaps 'start' and 'length') in the key for the cache
432: [13:02:55] <nikrolls> So it can cache per page
433: [13:06:45] <g4b0_> yep nikrolls
434: [13:08:29] <g4b0_> I'm using start and lenght in the key
435: [13:08:48] <g4b0_> and I'm also checking if DO are altered since last caching
436: [13:09:34] * Hippieee quit (Quit: Leaving)
437: [13:11:23] * osterlaus quit (Quit: Leaving.)
438: [13:29:52] * travis-ci has joined #silverstripe
439: [13:29:52] <travis-ci> [travis-ci] chillu/silverstripe-framework#2 (pulls/cmsform - 159e5cd : Ingo Schommer): The build is still failing.
440: [13:29:52] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-framework/compare/f1bb647b5627...159e5cd3972d
441: [13:29:52] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-framework/builds/7949494
442: [13:29:52] * travis-ci has left #silverstripe
443: [13:30:53] * travis-ci has joined #silverstripe
444: [13:30:54] <travis-ci> [travis-ci] chillu/silverstripe-cms#40 (pulls/cmsform - ed1b950 : Ingo Schommer): The build failed.
445: [13:30:54] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-cms/compare/faaaf94a03bc...ed1b9505bf74
446: [13:30:54] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-cms/builds/7949488
447: [13:30:54] * travis-ci has left #silverstripe
448: [13:34:18] * elgrodo has joined #silverstripe
449: [13:41:21] * UncleCheese has joined #silverstripe
450: [13:42:05] <UncleCheese> chillu: I just read the sad news about the 63 letter word being eliminated from the German language. How will you get on?
451: [13:44:33] <chillu> We've still got Holunderblütendoldenpfannkuchen, so I'm happy
452: [13:44:47] * Hippieee has joined #silverstripe
453: [13:45:04] <chillu> They're yum BTW ;) https://www.google.de/search?q=Holunderbl%C3%BCtendolden+Pfannkuchen&source=lnms&tbm=isch&sa=X&ei=K9i1UbuALI7jkgW4rIGADA&ved=0CAoQ_AUoAQ&biw=1680&bih=929
454: [13:46:02] <nikrolls> Is their taste directly proportionate to the difficulty to pronounce their name?
455: [13:46:09] <nikrolls> If so they must be amazing
456: [13:46:30] <chillu> Positive correlation, yes
457: [13:47:07] <nikrolls> I shall have to remember to try them.
458: [13:48:20] <chillu> don't wait too long (in the norther hemisphere), they're just blooming for the next couple of days/weeks
459: [13:52:54] <supernovah> If I've prepared my page, page_controller and dataobject classes, I run dev/build?flush=all?
460: [13:54:08] <supernovah> don't need a template to create the page in the cms after?
461: [13:56:12] <supernovah> Ugh, same thing except now it's telling me core/model/Database.php is performing an Array to string conversion
462: [14:06:08] <supernovah> Are there like, reserved fields I can't use in my dataObject
463: [14:06:49] <g4b0_> with <% cached regulations-all, List(DoRegulation).max(LastEdited) %> I can invalidate the partial cache if a DoRegulation is added/modified
464: [14:07:12] <g4b0_> how can I invalidate it in the case of detele/unlink?
465: [14:07:33] <g4b0_> mmm maybe delete works
466: [14:09:20] <g4b0_> I need something like onAfterUnlink
467: [14:09:43] <g4b0_> or maybe LastEdited changed after unlinking...
468: [14:10:24] <nikrolls> Should an aggregate of LastEdited change if there are fewer or lesser items in the list?
469: [14:14:08] <g4b0_> something like <% cached regulations-all, List(DoRegulation).max(LastEdited), $List(DoRegulation).count(LastEdited) %> ?
470: [14:14:38] * toebu has joined #silverstripe
471: [14:15:30] <g4b0_> it works on delete
472: [14:15:38] <nikrolls> Should work
473: [14:15:46] <g4b0_> but it don't work on unlink
474: [14:15:50] <g4b0_> since unlink
475: [14:16:11] <g4b0_> doesn't alterate DoRegulation table
476: [14:16:35] <nikrolls> Hmm, can you use a relationship in the key rather than pulling a list from the table?
477: [14:18:35] <g4b0_> how can I do it?
478: [14:31:36] <g4b0_> there's no way to trigger the GridField unlink action?
479: [14:39:55] <supernovah> Anyone able to identify what in my two files here would prevent a build specifically around > ../sapphire/core/Database.php > Line 396 > $this->alterationMessage("Index $table.$index: created as $spec","created"); | [Notice] Array to string conversion
480: [14:40:04] <supernovah> http://sspaste.com/paste/show/51b5df4d79d64 contains my two files, second one is actually named Credit.php
481: [14:40:43] <supernovah> Oh they are very simple bits of code too btw, and no previous versions of them existed in the DB
482: [14:40:57] <AlphaCactus> do you have stack dump from that error
483: [14:41:06] <AlphaCactus> or is it not useful
484: [14:43:37] * UncleCheese quit (Quit: UncleCheese)
485: [14:43:43] <supernovah> Yeah but it avoids any of my code
486: [14:44:43] <AlphaCactus> can you comment sections of it and get the error to go away?
487: [14:45:03] <supernovah> If I remove the $db yes
488: [14:45:12] <supernovah> But then my page has no data attached to it
489: [14:45:28] <supernovah> thats on controls
490: [14:46:55] <AlphaCactus> just remoing the $db on CreditControls makes the error go away?
491: [14:47:20] <supernovah> yeah
492: [14:47:29] <supernovah> Well the array instatiation yes
493: [14:47:34] <supernovah> instantiation*
494: [14:47:49] * micmania1 has joined #silverstripe
495: [14:49:11] <supernovah> Also when I go to the /dev/viewcode section, every file just gives me an error
496: [14:49:22] * Nivery has joined #silverstripe
497: [14:49:25] <AlphaCactus> have you tried increasing the php mem limit or possibly upgrading PHP?
498: [14:49:52] <supernovah> I've got 5.4
499: [14:50:23] <supernovah> Pretty sure my memory is at like 256 or 512 or higher
500: [14:50:52] <AlphaCactus> what version of ss? 2.4.? or before?
501: [14:50:58] <supernovah> 2.4.10
502: [14:51:57] <supernovah> from the security builds section
503: [14:52:03] * micmania1 quit (Ping timeout: 250 seconds)
504: [14:52:22] <AlphaCactus> Does this have any relevance: http://www.silverstripe.org/installing-silverstripe/show/22795
505: [14:52:25] <supernovah> Actually I just noticed on line 146 of ../sapphire/dev/CodeViewer.php it says "$ths->classComment = null;", should that be a $this
506: [14:52:39] * priithansen quit (Quit: priithansen)
507: [14:53:31] <supernovah> saw that one AllphaCactus
508: [14:54:26] <AlphaCactus> well, guess I"m not going to be much help then
509: [14:54:53] <supernovah> Haha
510: [14:55:04] <supernovah> Well I changed that typo in the framework itself and the codeviewer works
511: [14:55:15] <supernovah> How does a security build have such an obvious typo lol
512: [14:58:05] <AlphaCactus> lol
513: [14:58:15] <supernovah> Not the build, just the codeviewer
514: [14:58:26] <AlphaCactus> I see types all over the place in the comments, bound to happen in code too
515: [15:01:00] <supernovah> It turns out the comment says $spec can be an array or string, and the code seems to try to print it regardless...
516: [15:02:11] <supernovah> This is specifically on line 396 of Database.php
517: [15:02:39] <supernovah> So I tell it not to output build messages on that line if its an array and build completes...
518: [15:02:49] <supernovah> /facepalm
519: [15:04:14] <supernovah> I'm going to hang around in here regardless lol
520: [15:04:22] <supernovah> Is SS open source
521: [15:04:27] <supernovah> Maybe I can helpp lol
522: [15:04:51] <supernovah> ----------------^ not with those typos
523: [15:05:13] <AlphaCactus> it is open source afaik
524: [15:05:25] <AlphaCactus> you can post pull requests to github
525: [15:12:07] * priithansen has joined #silverstripe
526: [15:27:52] <supernovah> How people who make this can trace the data type through though is quite astounding
527: [15:28:02] <supernovah> took me about 6 minutes to find out why it can sometimes be an array
528: [15:28:39] * priithansen quit (Quit: priithansen)
529: [15:31:33] * mento quit (Quit: Page closed)
530: [15:31:54] * nikrolls quit (Ping timeout: 255 seconds)
531: [15:41:09] * r3v3rb has joined #silverstripe
532: [15:42:01] <r3v3rb> hi in 2.4.10 is it possible to set the position of the formfield in getCMSFields like in 3.0+
533: [15:42:49] * RojoD has joined #silverstripe
534: [15:42:49] * RojoD quit (Changing host)
535: [15:42:49] * RojoD has joined #silverstripe
536: [15:45:01] <r3v3rb> doh, its the same my bad!
537: [15:58:54] * g4b0_ quit (Quit: Sto andando via)
538: [16:02:40] * mattybalaam has joined #silverstripe
539: [16:05:20] * Hubertusanton quit (Remote host closed the connection)
540: [16:10:54] * kinglozzer quit (Remote host closed the connection)
541: [16:18:41] * catcher has joined #silverstripe
542: [16:19:31] * lewellyn quit (Quit: Lost terminal)
543: [16:22:00] * lewellyn has joined #silverstripe
544: [16:45:50] * UncleCheese has joined #silverstripe
545: [16:51:20] <mattybalaam> Can anyone give me a pointer how to do a reverse look up on many_many? I have an object Tag which belong_many_many to a data object. Should something like return Tag::get()->CustomImage(); work?
546: [16:58:51] <mattybalaam> OK, I’ve suddenly realised I’ve been going about this all wrong. I can just do make a Tag::Get function and then <% loop getTag %><% loop CustomImages %> in the template
547: [17:06:33] * willmorgan quit (Read error: Connection reset by peer)
548: [17:11:02] * UncleCheese quit (Quit: UncleCheese)
549: [17:12:43] * gelignite has joined #silverstripe
550: [17:30:33] * popeshoe quit (Quit: This computer has gone to sleep)
551: [17:42:52] * r3v3rb quit (*.net *.split)
552: [18:06:22] * wmk has joined #silverstripe
553: [18:09:01] * micmania1 has joined #silverstripe
554: [18:09:23] <micmania1> Does anybody know if theres template vars for getting the login/logout links? (ie /Security/Login)
555: [18:09:24] * bobBush has joined #silverstripe
556: [18:09:50] <bobBush> Howdie all !!
557: [18:10:43] <bobBush> Anyone know how to get the calendar showing on DateField when inside FieldGroup in the SS3 CMS?
558: [18:12:09] <micmania1> When you setup your DateField just assign it to a variable and run the $dateField->setConfig('showcalendar', true)
559: [18:17:03] <bobBush> Hi micmania1, yeah that works fine so long as you don't place the datefield within a fieldgroup. As soon as you do, the calendar doesn't show.
560: [18:21:28] <micmania1> ah, sounds like a bug. You getting any js errors?
561: [18:22:02] <ss23> micmania1: You could try looking at the interanl templates for the CMS / login page etc and see how they do it
562: [18:22:46] <bobBush> Nope :( I have submitted the bug on github
563: [18:23:50] <bobBush> hmmm will have a look
564: [18:24:46] * mattybalaam quit (Quit: mattybalaam)
565: [18:33:43] <ss23> Is it a public holiday today (in NZ)?
566: [18:43:52] <micmania1> No idea, but its been very quiet on here.
567: [18:44:21] <ss23> Well most people in here that help out are from New Zealand, and it's only 6:43am here :P
568: [18:45:06] <micmania1> haha good point!
569: [18:45:30] <ss23> Oh, I'm staying work at Silverstripe (the company) this coming week...
570: [18:46:01] <micmania1> nice. I seen them post a few jobs recently. You go for one of those?
571: [18:47:02] <ss23> Originally yeah, but turns out they wanted someone experienced with Silverstripe, and I'm not that, so they created a new position that I'm going to be doing :P
572: [18:47:16] <ss23> Support kind of person for existing clients. Hopefully teach me more Silverstripe !:D
573: [18:48:07] <micmania1> Sounds good. Good luck with it!
574: [18:48:16] <micmania1> Were you already based in NZ?
575: [18:50:01] <abitran_> hi there.. had someone include pagination of children pages in a site? for some reason I'm getting blank results...
576: [18:50:13] <ss23> Yeah, micmania1
577: [18:50:52] * AlphaCactus quit (Quit: kthxbai)
578: [18:51:15] <micmania1> I was slightly tempted by them but never realistically. I'm UK based so its a little too far for me :0
579: [18:51:48] <micmania1> I'm sick of doing crappy wordpress sites! haha
580: [18:52:28] <abitran_> ahh.. I forgot.. release 3.1.x-dev
581: [18:52:32] <ss23> You know you want to, micmania1 :3
582: [18:52:39] <ss23> NZ > UK :D
583: [18:53:42] <micmania1> NZ Weather > UK Weather
584: [18:53:49] <micmania1> I'll give you that one ;)
585: [18:54:46] * r3v3rb has joined #silverstripe
586: [18:54:56] * abitran_ quit (Quit: leaving)
587: [18:56:44] <micmania1> Do you know anything about many_many_extraFields in 3.1? They're supposed to be supported in 3.1 in GridField but I'm not sure if that's natively or not?
588: [18:57:42] * abitran has joined #silverstripe
589: [19:12:25] * mobiusnz has joined #silverstripe
590: [19:12:53] * SightUnseen has joined #silverstripe
591: [19:12:55] * SightUnseen has left #silverstripe
592: [19:14:39] * Guest59219 quit (Ping timeout: 250 seconds)
593: [19:16:17] * osterlaus has joined #silverstripe
594: [19:16:28] * Guits has joined #silverstripe
595: [19:22:11] * zfmf1 has left #silverstripe
596: [19:31:09] * popeshoe has joined #silverstripe
597: [19:34:57] * pex has joined #silverstripe
598: [19:38:02] * SightUnseen has joined #silverstripe
599: [19:46:24] * osterlaus quit (Quit: Leaving.)
600: [20:09:47] * popeshoe quit (Quit: This computer has gone to sleep)
601: [20:15:17] * wmk quit (Quit: nice to meet you ;))
602: [20:15:52] * chillu quit (Quit: chillu)
603: [20:17:55] * pex quit (Remote host closed the connection)
604: [20:18:47] * Guits quit (Ping timeout: 276 seconds)
605: [20:25:26] * robert__ has joined #silverstripe
606: [20:25:26] * robert__ quit (Changing host)
607: [20:25:26] * robert__ has joined #silverstripe
608: [20:25:34] * UndefinedOffset quit (Quit: Leaving.)
609: [20:27:34] * robert_ quit (Ping timeout: 264 seconds)
610: [20:28:37] * UncleCheese has joined #silverstripe
611: [20:32:09] * nickmolhoek has joined #silverstripe
612: [20:32:10] * nickmolhoek quit (Remote host closed the connection)
613: [20:32:19] * DigNZ has joined #silverstripe
614: [20:32:20] * DigNZ quit (Remote host closed the connection)
615: [20:32:24] * nickmolhoek has joined #silverstripe
616: [20:32:34] * DigNZ has joined #silverstripe
617: [20:34:23] * micmania1 quit (Ping timeout: 250 seconds)
618: [20:36:11] <Pyromanik> sitting here wondering why the hell people rave on about css grid frameworks
619: [20:38:40] * UncleCheese quit (Quit: UncleCheese)
620: [20:42:56] * SightUnseen has left #silverstripe
621: [20:44:50] * bobBush quit (Quit: Page closed)
622: [20:53:28] * pex has joined #silverstripe
623: [20:57:28] * SightUnseen1 has joined #silverstripe
624: [21:01:28] <catcher> Pyromanik, if you figure it out, let me know. Trying to find a reason to sink the time into using one.
625: [21:01:36] * MrJeremy has joined #silverstripe
626: [21:02:57] * SightUnseen1 has left #silverstripe
627: [21:11:00] * chillu has joined #silverstripe
628: [21:14:28] * coldblooded01 has joined #silverstripe
629: [21:14:49] <coldblooded01> can someone help me with http://www.silverstripe.org/template-questions/show/23943 (thread i posted on SS forums)
630: [21:15:29] <irogue> Pyromanik: cos i'm lazy :-P
631: [21:15:29] <coldblooded01> @chillu
632: [21:18:21] <Pyromanik> catcher: I'm trying to use one now
633: [21:18:39] <catcher> Pyromanik, which one?
634: [21:18:58] <Pyromanik> the only advantage I can see is that someone goes "oh hey, 2 slots wide plox" instead of saying "30%"
635: [21:19:07] <Pyromanik> catcher: foundation
636: [21:19:15] <coldblooded01> anyone have any idea on http://www.silverstripe.org/template-questions/show/23943
637: [21:19:43] <irogue> Pyromanik: for me it's so i don't have to deal with browser oddities, someone else did it for me :-P
638: [21:19:55] <irogue> cos, as i said, lazy!
639: [21:20:16] <Pyromanik> yeah, that's about the only reason I can see to use one
640: [21:20:39] <Pyromanik> but it's like, 1000bazillionkbs just for ie9 support (which there's pretty much nothing wrong with)
641: [21:21:24] <Pyromanik> uses border box model so that backgrounds blend into each other, gg
642: [21:21:25] <Pyromanik> etc
643: [21:21:33] * joelpittet has joined #silverstripe
644: [21:21:34] <Pyromanik> my gutters aren't showing up
645: [21:21:51] <irogue> haven't used Foundation yet, can't really speak as to how it works
646: [21:21:59] <Pyromanik> it's like someone was all "HEY! I've never heard of display: table; so I'm going to re-invent tables with divs"
647: [21:22:02] <irogue> haven't had any problems with Bootstrap's grid stuff yet though
648: [21:22:36] <irogue> (fyi i use most of the bootstrapness, i'm not dumb enough to use bootstrap just for grids)
649: [21:22:44] <Pyromanik> class="two columns" is pretty much a modern colspan="2"
650: [21:22:59] <irogue> yup
651: [21:23:01] <Pyromanik> irogue: foundation is pretty much just bootstarp
652: [21:23:13] <irogue> i hear that's true of the new one
653: [21:23:20] <irogue> the previous version had little more than a grid system
654: [21:23:28] <ss23> Some developers are just far too arrogant for their own good
655: [21:23:33] <ss23> MEGA SUPER PASTE COMING (via pastebin)
656: [21:23:35] <Pyromanik> grids are crap, l2css
657: [21:24:02] * r3v3rb quit (Quit: r3v3rb)
658: [21:24:59] <Pyromanik> although I must admit it'd be much nicer if you coulddo calculations and reference the current rule in css.
659: [21:25:19] <Pyromanik> ie to make a square you did width: 20px; height: this.width;
660: [21:25:35] <Pyromanik> or this-width I guess it probably would be in css
661: [21:25:38] <Pyromanik> or this(width)
662: [21:25:49] * RojoD quit (Ping timeout: 248 seconds)
663: [21:25:52] <Pyromanik> var-blah defines blah, var(blah) calls blah.
664: [21:25:58] <Pyromanik> in css3
665: [21:26:34] <irogue> yeah
666: [21:27:10] <Pyromanik> it does look like with vars though it might be possible to use an attribute to define a width and have the width adapt to that
667: [21:27:12] <ss23> https://gist.github.com/ss23/3e071b3e8b8a1db0ab80 BLAASDFHASDFHASD
668: [21:27:27] <ss23> The ending emails just make it
669: [21:27:32] <Pyromanik> although css3 apparently has a grid layout, I've not found much on the net about it.
670: [21:27:36] <ss23> "YOU HAVEN'T READ ANYTHING I'VE SAID AND YOU DON'T KNOW SQL"
671: [21:27:39] <Pyromanik> everyone talks about flexbox instead
672: [21:27:46] <ss23> then 3 mins later "Oh sorry I didn't read what you said, I understand now"
673: [21:28:10] <irogue> Pyromanik: https://ztyi2g.bay.livefilestore.com/y2pRcNVKqnKXtjl58D-yrm-2_XWG5kbzN1SthYpXI7Mu4WIqkYceIQHmnjObFy0cOdlGoYJygZhz5GD_DRd9RT8tMZtwWU0oMdqbgYOH34naKu7SvqzZwHl5TYJDgLlQOzD/chip-bootstrap.png?psid=1
674: [21:28:15] <irogue> bootstrap much?! :-P
675: [21:28:28] <irogue> <3 extranets, don't have to care what it looks like
676: [21:30:05] <Pyromanik> butstrups
677: [21:30:39] <irogue> "oh, i want a search box"
678: [21:30:39] <Pyromanik> rofl ss23
679: [21:30:45] <irogue> <input class="search-query">
680: [21:30:46] <irogue> BAM
681: [21:31:15] <Pyromanik> coldblooded01: I don't understand your question
682: [21:31:29] <Pyromanik> also, remove your ?>
683: [21:31:35] <Pyromanik> it's bad and you should never do it in pure php files
684: [21:32:33] <irogue> coldblooded01: some routing stuff is changing in 3.1 iirc, and isn't quite finished yet
685: [21:32:57] <Pyromanik> oh, well yeah if you're pulling from the unstable head
686: [21:33:05] <irogue> don't know the details, just remembering hearing simon and will discussing it over pizza
687: [21:33:12] <Pyromanik> also
688: [21:33:18] * pex quit (Quit: pex)
689: [21:33:21] <Pyromanik> your controller rule is probably just too high.
690: [21:33:29] <Pyromanik> change the 50 to 10
691: [21:33:31] <ss23> TOO DAMN HIGH
692: [21:33:48] <Pyromanik> coldblooded01: use ?debug_request to see what's going on
693: [21:33:48] * zippy__ has joined #silverstripe
694: [21:33:54] <zippy__> Morning
695: [21:37:55] <irogue> kia ora
696: [21:38:01] <ss23> moin
697: [21:40:37] <coldblooded01> ok thank you Pyromanik
698: [21:42:02] <coldblooded01> basically the framework was pulled from github.com/silverstripe/silverstripe-framework - controller link routing works perfectly with other project running on silverstripe distribution package on their .org site
699: [21:42:55] <coldblooded01> mysite/_config/routes.yml is:
700: [21:42:56] <coldblooded01> --- Name: customroutes After: framework/routes#coreroutes --- Director: rules: 'EverythingController/$Action/$ID' : 'EverythingController_Controller'
701: [21:44:41] * Nivery quit (Quit: Nivery)
702: [21:46:44] <ss23> Grrr, gmail on a mailing list, when you click "reply", it replies by default to the single person you emailed, not the entire list
703: [21:46:54] <Pyromanik> coldblooded01: do one or the other. either _config/routes.yaml or _config.php, not both.
704: [21:47:13] <Pyromanik> ss23: tehre is an extension you can turn on to do replyall by defaul
705: [21:47:14] <Pyromanik> t
706: [21:47:33] <Pyromanik> pyromadaboutgrids
707: [21:47:39] <Pyromanik> it's worse than a table.
708: [21:47:54] <mobiusnz> ss23: what, you mean like normal proper email?
709: [21:48:18] <Pyromanik> I have to have a div.grid>div.row>div.column and then if I want the gutters to actually be effective I have to have ANOTHER grid
710: [21:48:27] <mobiusnz> ss23: that's probably why they provide a convenient 'reply-all' button, for situations when you want to include the entire group in your response
711: [21:48:31] <Pyromanik> so it's like table>tr>td>div.data
712: [21:48:46] <ss23> It's not reply all by default, and my client would be "reply to list" by default
713: [21:48:49] <ss23> :,
714: [21:48:52] <ss23> :<
715: [21:48:56] <Pyromanik> mobiusnz: yeah, but because it's a list he's mad it doesn't replyall by default
716: [21:48:56] <coldblooded01> ok pyro
717: [21:49:21] <mobiusnz> Pyromanik: I hate lists that fuck with the way email works
718: [21:51:14] * mattybalaam has joined #silverstripe
719: [21:51:23] <Pyromanik> mobiusnz: well it's kinda the point of a mailling list isn't it?
720: [21:51:29] <Pyromanik> a newsgroup as such?
721: [21:51:36] <catcher> those of you who use git for your own projects & third party modules, how do you manage it? non-git version of the module in your own project's repo? git submodule? something else?
722: [21:51:37] <Pyromanik> I fucking hate CSS grids
723: [21:51:37] <mobiusnz> depends on the situation
724: [21:51:39] <Pyromanik> retards
725: [21:51:43] <coldblooded01> Pyromanik: ?debug_request gives error:
726: [21:51:44] <coldblooded01> Debug (line 240 of RequestHandler.php): Testing '$Action//$ID/$OtherID' with '' on EverythingController_Controller Debug (line 248 of RequestHandler.php): Rule '$Action//$ID/$OtherID' matched to action 'handleAction' on EverythingController_Controller. Latest request params: array ( 'Action' => NULL, 'ID' => NULL, 'OtherID' => NULL, ) Debug (line 174 of RequestHandler.php): Action not set; using default action method na
727: [21:51:49] <Pyromanik> it's like built for wordpress goobers
728: [21:52:15] <mobiusnz> if you change reply to be reply all, then how can you reply to just the single sender with private information?
729: [21:52:39] <Pyromanik> coldblooded01: you need to define an index() on your controller
730: [21:52:45] <Pyromanik> you don't have an action
731: [21:52:49] * mattybalaam quit (Client Quit)
732: [21:53:28] * Stomach has joined #silverstripe
733: [21:53:29] * mattybalaam has joined #silverstripe
734: [21:55:25] <coldblooded01> i see
735: [21:57:11] <coldblooded01> public function index() {}
736: [21:57:23] <coldblooded01> that got rid of documentation pointer template
737: [22:03:07] * ec8or_ quit (Read error: Connection reset by peer)
738: [22:03:14] * ec8or has joined #silverstripe
739: [22:05:28] * willr has joined #silverstripe
740: [22:10:10] * popeshoe has joined #silverstripe
741: [22:22:54] <mobiusnz> The new mac looks like a subwoofer!
742: [22:23:12] <mobiusnz> http://www.apple.com/mac-pro/
743: [22:26:47] <Stomach> coca cola can
744: [22:27:58] * nikrolls has joined #silverstripe
745: [22:29:36] * popeshoe quit (Quit: This computer has gone to sleep)
746: [22:35:41] <mobiusnz> is there a way to loop over a dataobject in a template and spit out all its property values?
747: [22:36:03] * gelignite quit (Quit: http://bit.ly/nkczDT)
748: [22:48:56] <Pyromanik> mobiusnz: $Debug(Var) ?
749: [22:49:34] <catcher> chillu, the spamprotection module tries to alter a form field called 'CommenterURL' in the comment extension. The incoming form field is 'URL' though, and only works when I use that - should I fix & pull request, or am I missing something?
750: [22:51:21] * ec8or_ has joined #silverstripe
751: [22:51:49] * zippy__ quit (Read error: Connection reset by peer)
752: [22:54:49] * ec8or quit (Ping timeout: 240 seconds)
753: [22:56:13] * zippy__ has joined #silverstripe
754: [22:58:34] <MrJeremy> anything in silverstripe to make ics and vcards (for download links)?
755: [23:01:54] * zippy__ quit (Ping timeout: 246 seconds)
756: [23:02:19] <MrJeremy> or perhaps a library
757: [23:05:21] * chillu quit (Quit: chillu)
758: [23:07:24] <Pyromanik> MrJeremy: you mean like templates?
759: [23:10:30] <MrJeremy> anything, so I dont have to re invent the wheel. To give a "appointment.ics" (and .vcard alternative) download on the site with typical calendar details (date,time,description)
760: [23:12:49] <Pyromanik> public function vcard() {
761: [23:13:15] <Pyromanik> $this->request->setHeader(ContentType, text/x-vcard);
762: [23:13:32] <Pyromanik> return $this->renderWith('vcard');
763: [23:13:33] <Pyromanik> }
764: [23:13:36] * mattybalaam quit (Ping timeout: 255 seconds)
765: [23:16:51] * spronk has left #silverstripe
766: [23:17:53] * spronk has joined #silverstripe
767: [23:18:25] <spronk> hmm
768: [23:18:31] <spronk> bloody police'
769: [23:18:41] * mobiusnz quit (Quit: Leaving.)
770: [23:24:24] * willr quit (Quit: willr)
771: [23:25:29] * Hippieee quit (Read error: Connection reset by peer)
772: [23:25:38] * willr has joined #silverstripe
773: [23:25:55] * Hippieee has joined #silverstripe
774: [23:33:04] * Pyromanik quit (Ping timeout: 252 seconds)
775: [23:35:35] * Pyromanik has joined #silverstripe
776: [23:38:11] <Peavers> has anyone successful got webhooks working with gitlab pulling to a production server on commit to master?
777: [23:38:16] <Peavers> been struggling with it all morning
778: [23:41:40] <abitran> hi there.. had someone include pagination of children pages in ss3.1.x-dev? for some reason I'm getting blank results...
779: [23:42:15] <willr> abitran want to post your template code to ss-pastes or something?
780: [23:42:35] <abitran> ok..
781: [23:43:08] <coldblooded01> Peavers: no, i had a shot at it last week no joy
782: [23:43:44] <coldblooded01> does anyone have a solution for SS framework 3.05 being able to upload image before saving the entry?
783: [23:44:05] <coldblooded01> http://www.silverstripe.org/dataobjectmanager-module-forum/show/23904 solution to that
784: [23:44:09] <abitran> I tried first with $this->Children() as suggested in the documentation.. and then with dataobject.. I will paste the dataobject approach..
785: [23:45:28] <abitran> willr: here.. 
786: [23:45:30] <abitran> http://www.sspaste.com/paste/show/51b664df1235f
787: [23:45:57] <willr> coldblooded01 not but that feature has been added for 3.1
788: [23:46:37] <coldblooded01> yes but 3.1 controller routing is big time bugged
789: [23:46:53] <coldblooded01> i did use 3.1 distribution version, and even the trunk framework
790: [23:47:10] <coldblooded01> image upload was fixed and nice there
791: [23:47:15] <coldblooded01> but broke the controller routing
792: [23:47:17] <coldblooded01> :s
793: [23:47:49] <coldblooded01> nothing in the controller will pass any other methods but index()
794: [23:48:09] <abitran> willr: this is the template part.. http://www.sspaste.com/paste/show/51b665802f3ac
795: [23:49:03] * mattybalaam has joined #silverstripe
796: [23:51:16] <willr> abitran your template isn't in a <% loop %> or something that would change the scope
797: [23:51:34] <coldblooded01> willr, how does controller routing work with SS 3.1+
798: [23:51:39] <willr> coldblooded01 you sure? Sounds like a critical bug that should be raised.
799: [23:51:48] <coldblooded01> absolutely sure
800: [23:51:57] <willr> The only difference I know is you should use //$Action rather than /$Action
801: [23:52:03] <coldblooded01> AH!
802: [23:52:10] <abitran> willr: sure? check line 09
803: [23:52:11] <coldblooded01> that's what i didnt do...
804: [23:52:15] <abitran> willr: theres the loop
805: [23:52:18] * Bollig|DesignCty has joined #silverstripe
806: [23:52:48] <willr> abitran no I mean around that template or is that the whole thing?
807: [23:52:54] <coldblooded01> i used /$Action whole time
808: [23:53:06] <abitran> that's all
809: [23:53:18] <coldblooded01> ill upgrade framework back to 3.1 or even the trunk and try with //$Action
810: [23:53:20] <coldblooded01> >.>
811: [23:53:37] <coldblooded01> old way:
812: [23:53:38] <coldblooded01> Director::addRules(100, array( 'EverythingController/$Action/$ID'=>'EverythingController_Controller' ));
813: [23:53:40] <coldblooded01> new way:
814: [23:53:43] <coldblooded01> Director::addRules(100, array( 'EverythingController//$Action/$ID'=>'EverythingController_Controller' ));
815: [23:53:46] <coldblooded01> correct?
816: [23:53:53] <willr> yeah coldblooded01 see https://github.com/silverstripe/silverstripe-framework/pull/1816 for what would have changed in 3.1 that could break it
817: [23:54:08] <willr> if it doesn't work as documented raise a comment on that issue
818: [23:55:07] <abitran> willr: is a simple case of a news page with news articles as children..
819: [23:55:39] <willr> Just make sure the pagination is at the top most template scope (not inside any other loops or with)
820: [23:56:30] <abitran> is at the top..
821: [23:56:36] <coldblooded01> cheers willr, trying now
822: [23:59:04] <coldblooded01> Willr, //$Action worked - everything sorted
823: [23:59:07] <coldblooded01> finally joy

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