#silverstripe IRC Log

IRC log for 4 May 2013

All timestamps are in UTC.

1: [00:00:00] * SightUnseen has left #silverstripe
2: [00:02:00] * pex__1 has joined #silverstripe
3: [00:03:00] <sminnee> FrozenFire: now with magic Phar sprinkles ;) https://github.com/sminnee/sspak
4: [00:17:00] * willr_ has joined #silverstripe
5: [00:17:00] * willr_ has joined #silverstripe
6: [00:17:00] * willr_ quit (Changing host)
7: [00:23:00] <willr_> hello samuel.
8: [00:23:00] <sminnee> how's your saturday?
9: [00:23:00] <sminnee> hello willr_
10: [00:24:00] <sminnee> Nice. I'm mucking about with sspak again
11: [00:24:00] <sminnee> Making it Phar-based.
12: [00:24:00] <willr_> Pretty quiet for a change
13: [00:24:00] <sminnee> Then I'm gonna use it to revamp the demo system.
14: [00:25:00] <sminnee> yeah.
15: [00:25:00] <willr_> Meh phar. Wasn't really a fan but at least it's on something
16: [00:25:00] <willr_> simon_w noticed that demo didn't have any of the modules?
17: [00:26:00] <sminnee> I was going to have support for multiple demo styles.
18: [00:26:00] <sminnee> So, the sspak format means that I can bundle the code, assets, and db of a demo site in one thing.
19: [00:26:00] <willr_> Any reason for not including supported ones like Userforms?
20: [00:27:00] <sminnee> And to copy something for CWP we have where you can create your own demo site.
21: [00:27:00] <sminnee> The sspak thing will just mean it's easier to have a bunch of different demo starting points.
22: [00:28:00] <sminnee> Phar was useful for at least turning the whole of the sspak tool into a single file without needing to code it as one massive script
23: [00:28:00] <willr_> sweet. Yeah had a meeting with J/sig/mateusz testerday on CWP. Mentioned something like sspack to download / sync copies
24: [00:29:00] <sminnee> yeah, i'm not sure how they're getting on with impl, but the general idea is to couple it with the deployment tool.
25: [00:29:00] <sminnee> sspak is still a bit of a personal project, but it's coming together nicely ;)
26: [00:30:00] <sminnee> I'm not sure how good Phar will be for the actual sspak files; in principle it's handy but I need to make sure that I can stream large files (like a 3GB assets.tar.gz) into it somehow.
27: [00:31:00] <sminnee> It doesn't need any internal changes.
28: [00:31:00] <sminnee> i think phar stream wrappers should do the trick, which will make it easier to bundle up the assets and database on a remote server without needing to create a temp folder on the remote server first.
29: [00:31:00] <willr_> I might give sspak support a go with our internal system scripts, did you need any core changes for it does it not touch the framework at all?
30: [00:32:00] <sminnee> it then uses all of those things to run the relevant mysqldump, etc, commands.
31: [00:32:00] <sminnee> it chucks a small php file into /tmp which includes <webroot>/framework/core/Core.php or <webroot>/sapphire/core/Core.php, and then spits out databaseConfig and ASSETS_PATH
32: [00:33:00] <sminnee> or sspak save --sudo=www-data will@someserver:/sites/bla/www bla.sspak
33: [00:33:00] <sminnee> You can run it as, for example, sspak save will@someserver:/sites/bla/www bla.sspak
34: [00:36:00] <FrozenFire> You'll want rid of that
35: [00:36:00] <FrozenFire> sminnee, Coolio. https://github.com/sminnee/sspak/blob/master/bin/build-phar#L35
36: [00:36:00] <FrozenFire> I don't think you typically ever even include the semicolon, though I may be wrong.
37: [00:36:00] <FrozenFire> If it does, it's probably wrong. :P
38: [00:36:00] <FrozenFire> Nothing ever comes after __HALT_COMPILER()
39: [00:36:00] <sminnee> composer has it.
40: [00:36:00] <sminnee> FrozenFire: ?
41: [00:37:00] <sminnee> Well, it works, so I'd say that it's "unnecessary" rather than "wrong"
42: [00:37:00] * willmorgan quit (Quit: Leaving.)
43: [00:37:00] <FrozenFire> Heh
44: [00:37:00] <sminnee> i'll see what happens w/o the semicolon though. Phar chokes if it doesn't like the stub script, so it's hard to go too wrong
45: [00:37:00] <sminnee> Thankfully, getting Phar going wasn't too much of a mindfuck
46: [00:37:00] * pex__1 has left #silverstripe
47: [00:38:00] <FrozenFire> It's mostly a default bootstrap script
48: [00:38:00] <FrozenFire> Yeah, phar really, really isn't anything too magical
49: [00:38:00] <sminnee> looking at using this kind of approach http://www.php.net/manual/en/phar.using.stream.php to stream large asset/db files into the phar
50: [00:38:00] <FrozenFire> And then existing methodologies
51: [00:38:00] <FrozenFire> Iirc, the main advantage of the extension is that it implements the stream wrappers
52: [01:18:00] * priithansen quit (Quit: priithansen)
53: [01:44:00] * Colin[pi] has joined #silverstripe
54: [01:52:00] <sminnee> FrozenFire: FYI - you do need the semicolon ;)
55: [01:57:00] <sminnee> yeah it's pretty quiet today
56: [01:57:00] <Colin[pi]> hey sminnee, didn't think anyone else was in here
57: [01:57:00] <sminnee> heh
58: [01:57:00] <Colin[pi]> i have too much work :(
59: [01:58:00] <Colin[pi]> shouldn't complain, better than none :)
60: [02:01:00] <sminnee> ?
61: [02:01:00] <Colin[pi]> hey sminnee, you getting into the organ printing business since you're a pioneer?
62: [02:01:00] <Colin[pi]> ;)
63: [02:01:00] <Colin[pi]> all over the news
64: [02:02:00] <Colin[pi]> first body organs printed using 3d printer
65: [02:02:00] <Colin[pi]> http://www.sbs.com.au/news/article/1762276/Aust-3D-breakthrough-in-growing-organs
66: [02:03:00] <Colin[pi]> SilverStripe CMS and Body Parts?
67: [02:03:00] <sminnee> oh true
68: [02:08:00] <sminnee> haha
69: [02:17:00] <sminnee> willr_: sspak phar is available for download at the crappest possible website: http://sminnee.github.io/sspak/
70: [02:37:00] * folibis has joined #silverstripe
71: [02:38:00] <folibis> hello all!
72: [02:40:00] <folibis> guys, please help ) I have a Page object (ArticlePage) with many_many connected DataObject (Tags). so how can I filter output by special TagID. ArticlePage::get()->filter("Tags.ID",$this->TagID) not works
73: [02:57:00] <folibis> good idea but not works too $tag = Tags::get()->byID($this->TagID); $projectPages = $tag->ArticlesPage();
74: [03:15:00] <willr_> folibis that will work if you relationships setup
75: [03:15:00] <willr_> If you have a many_many setup named ArticlePages on Tag then $tag->ArticlePages() will work
76: [03:22:00] * folibis quit (Quit: Page closed)
77: [03:41:00] * Marvanni quit (Ping timeout: 256 seconds)
78: [03:41:00] * Marvanni has joined #silverstripe
79: [03:41:00] * cloph_away has joined #silverstripe
80: [03:43:00] * cloph quit (Ping timeout: 276 seconds)
81: [03:46:00] <FrozenFire> sminnee, Good to know. I suppose the semicolon is PHP's "execute prior statement" token
82: [03:50:00] * folibis has joined #silverstripe
83: [04:26:00] <folibis> if ArticlePage is Page and Tags is his many_many relation why that not works: ArticlePage::get()->Tags("Tags.ID=7")
84: [04:30:00] <folibis> I am about to tear my hair out (
85: [04:34:00] <FrozenFire> Are you trying to get ArticlePage where Tags.ID is 7?
86: [04:35:00] <FrozenFire> If so, ArticlePage::get()->filter("Tags.ID:ExactMatch", 7);
87: [04:38:00] <folibis> ok
88: [04:38:00] <folibis> wait
89: [04:39:00] <folibis> it works
90: [04:39:00] <folibis> yes!!!
91: [04:39:00] <FrozenFire> :)
92: [04:40:00] <FrozenFire> If you spend more than 20 on something, it's best to just ask here.
93: [04:40:00] <folibis> thank you man )
94: [04:40:00] <FrozenFire> SS is a fickle bitch
95: [04:40:00] <folibis> i waisted 2 hours and it was so easy )
96: [04:42:00] <folibis> but what wrong with that: $tag = Tags::get()->byID(7);$articles = $tag->ArticlesPage();?
97: [04:46:00] <FrozenFire> You're performing two SQL queries, there.
98: [04:47:00] <FrozenFire> Also, do you have the reverse $belongs_many_many relation on Tag?
99: [04:47:00] <folibis> yes I have
100: [04:48:00] <FrozenFire> You don't care about the Tag
101: [04:48:00] <FrozenFire> Just its ID
102: [04:48:00] <FrozenFire> Well, still. No sense performing two queries
103: [04:48:00] <folibis> yeah you right but anyway ... i got error
104: [05:01:00] * willmorgan has joined #silverstripe
105: [05:35:00] * kerosene has joined #silverstripe
106: [05:41:00] <Colin[pi]> ->filter("Tags.ID:ExactMatch" - is that SS3 ORM only?
107: [05:50:00] <FrozenFire> Naturally
108: [05:50:00] <FrozenFire> Doing it in 2.4 would require an inner join
109: [05:50:00] <FrozenFire> Or maybe a left join
110: [05:52:00] <Colin[pi]> yep I did the same thing with a left join in my own code
111: [05:54:00] * mobiusnz has joined #silverstripe
112: [06:13:00] * mobiusnz quit (Quit: Leaving.)
113: [07:32:00] * howardgrigg quit (Remote host closed the connection)
114: [08:03:00] * folibis quit (Quit: Page closed)
115: [08:06:00] * gumble has joined #silverstripe
116: [08:13:00] * DesignerX has joined #silverstripe
117: [08:45:00] * SightUnseen has joined #silverstripe
118: [08:46:00] * SightUnseen quit (Client Quit)
119: [08:51:00] * guci0 has joined #silverstripe
120: [09:02:00] * willr_ quit (Quit: willr_)
121: [09:03:00] * Colin[pi] quit ()
122: [09:17:00] * gumble quit (Ping timeout: 276 seconds)
123: [09:31:00] * NobrainerWeb has joined #silverstripe
124: [09:32:00] * priithansen has joined #silverstripe
125: [09:36:00] <NobrainerWeb> Hi guys, I'm trying to use the setDisplayFields method on the Griedfield extension from ajshort, that allows for inline editing of managed dataobjects
126: [09:37:00] <NobrainerWeb> I'm using a DataExtension to extend Page, do i need to change soothing from the example?
127: [09:37:00] <NobrainerWeb> But i can't get it to work, using the example from https://github.com/ajshort/silverstripe-gridfieldextensions/blob/master/docs/en/index.md i get an error: the method 'setdisplayfields' does not exist on 'ArrayList'
128: [09:40:00] <NobrainerWeb> I made a sspaste of my code, can someone have a look and see what the problems is please? http://www.sspaste.com/paste/show/5184d7869b656
129: [09:48:00] * simon_w has joined #silverstripe
130: [09:49:00] * gelignite has joined #silverstripe
131: [09:53:00] <NobrainerWeb> simon_w: Hi, do you have a few minutes to look at some code, problem described in comment below the code? http://www.sspaste.com/paste/show/5184d7869b656
132: [09:57:00] <simon_w> NobrainerWeb, you probably just want getComponentByType
133: [09:58:00] <NobrainerWeb> instead of getComponentsByType?
134: [09:58:00] <simon_w> yes
135: [09:58:00] <NobrainerWeb> Well something happened, no more error messages. but looks weird now, will look into it, Thanks!
136: [10:12:00] <DesignerX> Hi, has anyone used BulkEditingTool plugins for GF ? I get the following error : Uncaught LogicException: GridField HTML fragment 'bulk-edit-tools' was given content, but not defined. Perhaps there is a supporting GridField component you need to add?
137: [10:19:00] * Guest46770 has joined #silverstripe
138: [10:20:00] * irogue quit (Ping timeout: 252 seconds)
139: [10:28:00] <NobrainerWeb> I need to store some data from my module in a table (my module extends page) - how should this be done? Do i just create a data object and write to that or?
140: [10:30:00] <DesignerX> NobrainerWeb: hi, so yiour module is a "Page Type" in a way . What kind of data you wanan store (is it a list of object or just a block of text that can be saved into one field on the same page )
141: [10:32:00] <NobrainerWeb> * a list of template files
142: [10:32:00] <NobrainerWeb> It needs to store enum values, a list of files of template files available to the module so i don't have to look for files for each page load
143: [10:34:00] <NobrainerWeb> I have no page type, i extend Page
144: [10:34:00] <DesignerX> is your page type "unique"? meaning will it bea used only once or multiple times ?
145: [10:34:00] <DesignerX> be *
146: [10:36:00] <DesignerX> I think SS already creates a list of all available template on ?flush=all , A good idea is to try access that files then filter the results ?
147: [10:37:00] <NobrainerWeb> Hmm that might be a good idea, where are these templates stored?
148: [10:39:00] <NobrainerWeb> ohh ok, but thanks :-)
149: [10:39:00] <NobrainerWeb> and btw, i did not try to use the BulkEditingTool
150: [10:39:00] <DesignerX> I need to answer that too myself .. I havnt spent much time on this..
151: [10:39:00] <DesignerX> is this something urgent or do you have some time
152: [10:40:00] <DesignerX> NobrainerWeb: If I may ask, what you trying to do? I have a basic module that allows to change the Main & Layout templates of any page in the CMS .. is this what you need ?
153: [10:40:00] <NobrainerWeb> Not urgent, i will just find another way for now, but i would like to know how to do it the best way
154: [10:42:00] <DesignerX> what CMS was that ?.
155: [10:42:00] <NobrainerWeb> Dynamicweb CMS
156: [10:42:00] <NobrainerWeb> Doing a module that adds the option to divide a page up into many sections, each section with its own template - works very well
157: [10:42:00] <NobrainerWeb> It's something that another CMS i work with have, and i miss it in SS
158: [10:43:00] <DesignerX> I am trying to do the same thing lol
159: [10:43:00] <NobrainerWeb> Danish CMS and pretty good one too, but expensive
160: [10:43:00] <DesignerX> I am using widgets as "sections"
161: [10:43:00] <NobrainerWeb> Ok, i have it working . just trying to make it smarter
162: [10:43:00] <NobrainerWeb> You know that one? It's not open source
163: [10:43:00] <DesignerX> nope :(
164: [10:44:00] <NobrainerWeb> never used widgets, don't know how that stuff even works
165: [10:44:00] <NobrainerWeb> hmm i can send you the module i guess - i want to share on Github, so maybe i should upload the files and let you know?
166: [10:44:00] <DesignerX> can I download it somewhere ?
167: [10:45:00] <NobrainerWeb> I just need to clean up bait again, just tried something new and it's not done
168: [10:45:00] <NobrainerWeb> *a bit
169: [10:47:00] <NobrainerWeb> Haha ok, i will try to get something up fast - i would also love some feedback
170: [10:47:00] <DesignerX> dirty *
171: [10:47:00] <DesignerX> I can read dirt code lol :) .. YOu can e-mail or upload to github .. which ever on is faster
172: [10:48:00] <Zauberfisch|idle> MiniZeka you are still at the GF issue?
173: [10:48:00] <DesignerX> sure.. I always wanted something like this, if you need tester, just PM me anytime I'm here lol
174: [10:48:00] <NobrainerWeb> Going to have to learn Github, i only know how to upload a module
175: [10:48:00] <Zauberfisch|idle> MiniZeka hey
176: [10:48:00] <DesignerX> blub
177: [10:48:00] <NobrainerWeb> super, i will get back to you i little later today
178: [10:48:00] <Zauberfisch|idle> wen't to bed yesterday
179: [10:49:00] <Zauberfisch|idle> ohai DesignerX
180: [10:50:00] <DesignerX> :) hi .. have you tried the GF bulk uploader ? its giving me an error with a very basic setup
181: [10:50:00] * jon-shape has joined #silverstripe
182: [10:51:00] <DesignerX> does the has_many relation has to be to an "Image" or " File" ?
183: [10:52:00] <Zauberfisch|idle> so I never touched it again
184: [10:52:00] <Zauberfisch|idle> had a cool idea, but was to bugy to be used
185: [10:52:00] <Zauberfisch|idle> I tried it a few month ago
186: [10:53:00] <DesignerX> kk all good .. wanted to use it for my galleries, guess I have to wait till I have more time to play around with it
187: [11:00:00] <DesignerX> hi
188: [11:00:00] <Guest46770> evening all
189: [11:01:00] <DesignerX> Guest46770: if you have a question, please go ahead and ask, anyone seeing this & knows the answer will reply (including me ) :D
190: [11:01:00] <Guest46770> hehe, nope, no question :P
191: [11:02:00] <DesignerX> that explains alot
192: [11:02:00] <irogue> nope, part of the furniture :P
193: [11:02:00] <DesignerX> ok :D
194: [11:02:00] * Guest46770 is now known as irogue
195: [11:02:00] <DesignerX> :) new here ?
196: [11:04:00] <DesignerX> brb
197: [11:05:00] <MiniZeka> yes, I still have it Zauberfisch|idle
198: [11:05:00] <MiniZeka> I narrowed it down to GridFieldSortableHeader
199: [11:09:00] <Zauberfisch|idle> MiniZeka can you confirm thats it is just an arrylist bug?
200: [11:09:00] <Zauberfisch|idle> and that it works with datalist?
201: [11:10:00] * osterlaus has joined #silverstripe
202: [11:16:00] <jon-shape> Is it possible to use ->sort() to sort by the amount occurrences of a foreign key ie sorting mentors by who has the most students?
203: [11:32:00] * osterlaus quit (Quit: Leaving.)
204: [11:34:00] * Shrike_Finland has joined #silverstripe
205: [11:34:00] <DesignerX> jon-shape: I dont think it can be using the ->sort() , but maybe get and sort the data you need using SQL ?
206: [11:44:00] <jon-shape> Yeah I can I am still getting into silverstripe though so I am forcing my self to use as much of the orm as I can
207: [11:45:00] <jon-shape> But regular SQL works fine
208: [11:51:00] <DesignerX> jon-shape: I think you can do something along these lines (not tested) DataObject::get(Mintor)->filter("where "QueryToCountRelatedStudents" as "NumberOfStudents")->sort(NumberOfStudents) ?
209: [11:53:00] <DesignerX> jon-shape: this may help http://doc.silverstripe.org/framework/en/3.1/reference/sqlquery
210: [11:58:00] <jon-shape> DesignerX: Thanks I'll take a look at that
211: [12:05:00] <NobrainerWeb> DesignerX: This Github ??? glad i have the Mac app, otherwise i would never understand :-) Well i managed to get some files uploaded for my Silverstripe Section Module: https://github.com/NobrainerWeb/Silverstripe-Section-Module Let me know what you think
212: [12:05:00] <NobrainerWeb> Hope it works :-)
213: [12:06:00] <NobrainerWeb> Anyone using the Mac app for Github, that can tell me how i can make it not upload the .DS_Store files and the .githubignore? Also how can i delete a file?
214: [12:07:00] <DesignerX> NobrainerWeb: I read something on google regarding that few month ago, try google it & check out the 1st few links ..:)
215: [12:16:00] <NobrainerWeb> Did you install: GridField Extensions
216: [12:16:00] <DesignerX> I already installed all required modules
217: [12:16:00] <DesignerX> NobrainerWeb: Fatal error: Class 'GridFieldDetailFormCustom' not found in W:\xampp\htdocs\_my_projects\SS3\SS3Loaded\SectionsModules\code\SectionModule.php on line 33
218: [12:17:00] <DesignerX> ss3.0.5
219: [12:17:00] <NobrainerWeb> Are you on SS3.1?
220: [12:18:00] <DesignerX> maybe these components only for ss 3.1
221: [12:18:00] <NobrainerWeb> Hmm i only tested with 3.1 but don't know if that's the issue. The module folder name should be sectionmodule, but i don't know if it matters
222: [12:18:00] <DesignerX> commented out lines 33 & 35 ..
223: [12:19:00] <NobrainerWeb> yes, they are also only for improving the UI
224: [12:21:00] <DesignerX> btw, is 3.1 stable enough for basic sites ?
225: [12:23:00] <NobrainerWeb> I was just recommended to use it, because of the API changes. And i think i was also told it should be as stable as 3.0.5 as that version should have quite a few problems - but what do i know - my first playing around with ss3 as i have had issues installing
226: [12:23:00] * Liquide has joined #silverstripe
227: [12:24:00] <NobrainerWeb> But for what i have been doing so far, ss3.1 beta3 is actually pretty nice
228: [12:24:00] <DesignerX> upgrade time
229: [12:27:00] <NobrainerWeb> :-)
230: [12:29:00] <DesignerX> Fatal error: Access level to ErrorPage::$db must be public (as in class Page) in W:\xampp\htdocs\_my_projects\SS3\SS3Loaded\cms\code\model\ErrorPage.php on line 310
231: [12:37:00] <MiniZeka> Zauberfisch|idle: I tried to put SiteTree::get() instead of my collected data
232: [12:38:00] <MiniZeka> rather than PHP
233: [12:38:00] <MiniZeka> and I'm pretty sure it's JS error
234: [12:38:00] <MiniZeka> only to find out that same bug persists
235: [12:40:00] <DesignerX> is "GridFieldSortableRows" required in SS3.1 ?
236: [12:46:00] <NobrainerWeb> DesignerX: No, i have used it, but then i decided to go with the GridField Extensions from ajshort (GridFieldOrderableRows)
237: [12:46:00] <DesignerX> ah.. & is that for SS 3.1 ?
238: [12:48:00] <NobrainerWeb> it works in ss 3.1 here
239: [12:55:00] <irogue> urghghghg
240: [13:31:00] * SmileyJoe has joined #silverstripe
241: [13:32:00] <SmileyJoe> Wondering if it's possible to get SS to output FQDN URLs for assets during a static export process?
242: [13:35:00] <SmileyJoe> As it is now, I am recommending to client that their deployment process include a step to perform a global search & replace on the static export directory for anything with [src="assets/]
243: [13:42:00] <willmorgan> SmileyJoe: we had to do what you're recommending
244: [13:44:00] * priithansen quit (Quit: priithansen)
245: [13:52:00] <Zauberfisch|idle> try upgrading to 3.1
246: [13:52:00] <Zauberfisch|idle> MiniZeka hmmm, what version are you on again? 3.0.5?
247: [13:54:00] <DesignerX> How can I get all pages by class ? $Pages = Page::get('CustomPage'); ?
248: [13:56:00] <DesignerX> This is in 3.1 , I used the above in 3.0.5 the a foreach loop to delete page by page .. why it doesnt work in 3.1 ?
249: [14:00:00] * zfmf has joined #silverstripe
250: [14:10:00] <SmileyJoe> willmorgan: What did you end up doing?
251: [14:11:00] <SmileyJoe> willmorgan: Oh, I see... you just had them do the search & replace dance :D
252: [14:12:00] <SmileyJoe> Thinking about adding a site config entry that allows the static exporter to prepend template URL's with the selected FQDN, but that doesn't help with the DB assets
253: [14:13:00] <SmileyJoe> Perhaps I can write a special .bat script to perform the search & replace for them by making use of the selected deployment target from the site config
254: [15:07:00] <MiniZeka> Zauberfisch|idle: I will try to replicate it on clean SS 3.1 install before doing update
255: [15:08:00] <Zauberfisch|idle> create an issue on the github tracker and add @Zauberfisch to the message
256: [15:08:00] <Zauberfisch|idle> good
257: [15:08:00] <Zauberfisch|idle> if it turns out to be a bug in 3.1 I am happy to fix it
258: [15:09:00] <MiniZeka> btw, what will happen with 3.0.* series?
259: [15:10:00] <Zauberfisch|idle> well, nothing
260: [15:10:00] <Zauberfisch|idle> there might be security releases
261: [15:11:00] <Zauberfisch|idle> but 3.0.x is done for
262: [15:16:00] <MiniZeka> ok
263: [15:20:00] * ARNHOE quit (Remote host closed the connection)
264: [15:20:00] * ARNHOE has joined #silverstripe
265: [15:20:00] * ARNHOE has joined #silverstripe
266: [15:26:00] <Zauberfisch|idle> don't use beta
267: [15:26:00] <Zauberfisch|idle> use latest
268: [15:26:00] <MiniZeka> Zauberfisch|idle: yep, it's still there
269: [15:26:00] <Zauberfisch|idle> are you using composer?
270: [15:26:00] <MiniZeka> 3.1 beta 3
271: [15:26:00] <Zauberfisch|idle> meh
272: [15:27:00] <MiniZeka> nope
273: [15:28:00] <Zauberfisch|idle> then download https://github.com/silverstripe/silverstripe-cms/tree/3.1
274: [15:28:00] <Zauberfisch|idle> ok
275: [15:28:00] <Zauberfisch|idle> download link: https://github.com/silverstripe/silverstripe-cms/archive/3.1.zip
276: [15:29:00] <Zauberfisch|idle> framework: https://github.com/silverstripe/sapphire/archive/3.1.zip
277: [15:29:00] <MiniZeka> ok
278: [15:31:00] <Zauberfisch|idle> FrozenFire is right
279: [15:31:00] <FrozenFire> I was skeptical at first about composer, but I just got done converting my entire work infrastructure to use it
280: [15:31:00] <Zauberfisch|idle> getting started with composer takes 15 minutes
281: [15:31:00] <Zauberfisch|idle> yeah
282: [15:31:00] <Zauberfisch|idle> haha
283: [15:31:00] <FrozenFire> Or better yet, use composer.
284: [15:32:00] <Zauberfisch|idle> and its gonna save you hours in a matter of weeks
285: [15:32:00] <Zauberfisch|idle> same here
286: [15:32:00] <FrozenFire> Now I type one command and I have entire new projects up and running
287: [15:32:00] <Zauberfisch|idle> composer all the way
288: [15:33:00] <Zauberfisch|idle> yes github
289: [15:33:00] <MiniZeka> still there
290: [15:33:00] <Zauberfisch|idle> ok
291: [15:33:00] <Zauberfisch|idle> create a bug report
292: [15:33:00] <Zauberfisch|idle> include my name
293: [15:33:00] <MiniZeka> on github?
294: [15:33:00] <Zauberfisch|idle> and please inclue a screenshot of the gridfield
295: [15:34:00] <Zauberfisch|idle> on framework
296: [15:35:00] <MiniZeka> ?
297: [15:35:00] <MiniZeka> https://github.com/silverstripe/sapphire
298: [15:37:00] <Zauberfisch|idle> yes
299: [15:40:00] <MiniZeka> where should I include your name?
300: [15:40:00] <Zauberfisch|idle> write @Zauberfisch somewhere in the message
301: [15:47:00] <DesignerX> was it only 3.1 ?
302: [15:47:00] <FrozenFire> Uhhh...
303: [15:47:00] <FrozenFire> Never?
304: [15:47:00] <DesignerX> guys... when was GF able to use multiple classes in the same table !!!!
305: [15:48:00] <Zauberfisch|idle> FrozenFire it always was
306: [15:48:00] <FrozenFire> Not that I'm aware of.
307: [15:48:00] <FrozenFire> Hrmm
308: [15:48:00] <FrozenFire> Seems ill-advised.
309: [15:48:00] <MiniZeka> Zauberfisch|idle: https://github.com/silverstripe/sapphire/issues/1835
310: [15:48:00] <FrozenFire> How is that even represented in a RelationList?
311: [15:48:00] <DesignerX> IO think its great
312: [15:48:00] <FrozenFire> Unless you're talking about descendents of a common class
313: [15:48:00] <DesignerX> an example module that uses it is https://github.com/NobrainerWeb/Silverstripe-Section-Module
314: [15:48:00] <DesignerX> now it does, tested in 3.1
315: [15:49:00] <Zauberfisch|idle> I do it on a project I am working on right now
316: [15:49:00] * SmileyJoe quit (Quit: Page closed)
317: [15:49:00] <FrozenFire> Yeah. Okay, I thought you were talking about something else.
318: [15:49:00] <Zauberfisch|idle> Class Base extends DataObject{} class Foo extends Base {} class Bar extends Base {}
319: [15:49:00] <Zauberfisch|idle> you just need to have the same base class
320: [15:49:00] <FrozenFire> Thought you were talking about multiple unrelated DataObjects with the same fields.
321: [15:49:00] <Zauberfisch|idle> and then I just have Base::get() as datalist
322: [15:50:00] <FrozenFire> Or multiple and a custom field list
323: [15:50:00] <FrozenFire> Yeah, that's always been possible, sfaik
324: [15:50:00] <DesignerX> nah, just like above
325: [15:51:00] <MiniZeka> https://github.com/silverstripe/silverstripe-cms/issues/651
326: [15:51:00] <MiniZeka> btw, this one still occurs (first noticed in 3.0.3)
327: [15:51:00] <DesignerX> mm i wish I found it few month ago :9
328: [15:52:00] <DesignerX> anyways, lets hope it works as expected .. need more testing tomorow, 2am GN
329: [15:53:00] * DesignerX quit (Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/)
330: [15:54:00] <NobrainerWeb> Hi guys, as DesignerX just linked to, i put my new module (for ss 3.1) up on Github - please have a look and let me know what you think: https://github.com/NobrainerWeb/Silverstripe-Section-Module
331: [16:02:00] <MiniZeka> Zauberfisch|idle: I think I located part of the problem
332: [16:02:00] <MiniZeka> and as I thought, it's JS
333: [16:02:00] * willmorgan quit (Read error: Connection reset by peer)
334: [16:02:00] <Zauberfisch|idle> just posted a comment
335: [16:03:00] <MiniZeka> line #44 in framework/javascript/GridField.js
336: [16:03:00] <Zauberfisch|idle> NobrainerWeb first thing: you are not using composer
337: [16:03:00] <MiniZeka> if(ajaxOpts.data[0].filter=="show"){
338: [16:04:00] <NobrainerWeb> You are right! I read about it first time today :-)
339: [16:04:00] <MiniZeka> in mine ajaxOpts.data[0]
340: [16:04:00] <MiniZeka> filter is "hidden"
341: [16:05:00] <NobrainerWeb> i never installed anything with composer - isn't that like command line?
342: [16:05:00] <NobrainerWeb> Zauberfisch|idle: first module i made on my own and i just looked into Github - so many things to learn
343: [16:05:00] <Zauberfisch|idle> NobrainerWeb funny, I just started working on pretty much the same module
344: [16:06:00] <Zauberfisch|idle> composer is a php script
345: [16:06:00] <Zauberfisch|idle> its actually pretty easy to install
346: [16:06:00] <NobrainerWeb> Zauberfisch|idle: ok that's funny - give it a try and let me know if you have inputs - i'm no developer, just a hacker so i can deffo use input :-)
347: [16:06:00] <Zauberfisch|idle> but you can set it up to work like a command line tool
348: [16:07:00] <Zauberfisch|idle> you need to look into it as soon as possible :P
349: [16:07:00] <NobrainerWeb> ok, i must look into it at some point
350: [16:07:00] <Zauberfisch|idle> makes your live so much easyer
351: [16:07:00] <Zauberfisch|idle> and is instlaled in a minute
352: [16:07:00] <jon-shape> NobrainerWeb: it's definitely worth the time playing with, it works with a whole bunch of other things, Mage,ZF,SilverStripe etc etc
353: [16:07:00] <NobrainerWeb> ok ok i will i will :-)
354: [16:08:00] <Zauberfisch|idle> symfony as well
355: [16:09:00] <MiniZeka> that piece of code eliminates the bug
356: [16:09:00] <MiniZeka> Zauberfisch|idle - http://sspaste.com/paste/show/518532b6242ce
357: [16:10:00] <MiniZeka> can you take a look at it?
358: [16:14:00] <Zauberfisch|idle> sorry
359: [16:14:00] <Zauberfisch|idle> not at the moment
360: [16:15:00] <MiniZeka> that's the file I mentioned earlier
361: [16:15:00] <MiniZeka> framework/javascript/GridField.js
362: [16:15:00] <MiniZeka> ok
363: [16:15:00] <MiniZeka> tell me one more thing
364: [16:16:00] <MiniZeka> when you sort GF
365: [16:16:00] <MiniZeka> should it sort all records displayed in GF, or just current page?
366: [16:31:00] * ARNHOE quit (Remote host closed the connection)
367: [16:40:00] <FrozenFire> Pagination happens separately
368: [16:40:00] <FrozenFire> It applies the sort to the source list
369: [17:34:00] * priithansen has joined #silverstripe
370: [17:56:00] * Zauberfisch has joined #silverstripe
371: [17:58:00] * Zauberfisch quit (Client Quit)
372: [17:59:00] * Zauberfisch has joined #silverstripe
373: [18:17:00] * osterlaus has joined #silverstripe
374: [18:21:00] * NobrainerWeb quit (Quit: NobrainerWeb)
375: [18:27:00] * NobrainerWeb has joined #silverstripe
376: [18:34:00] * NobrainerWeb quit (Quit: NobrainerWeb)
377: [19:00:00] * zfmf has left #silverstripe
378: [19:05:00] * zfmf has joined #silverstripe
379: [19:08:00] * Zauberfisch|idle quit (Read error: Connection reset by peer)
380: [19:09:00] * kerosene quit (Ping timeout: 256 seconds)
381: [19:09:00] * Zauberfisch|idle has joined #silverstripe
382: [19:10:00] * zlincoln has joined #silverstripe
383: [19:11:00] * Zauberfisch|idle quit (Read error: Connection reset by peer)
384: [19:12:00] * Zauberfisch|idle has joined #silverstripe
385: [19:13:00] <zlincoln> does anyone know how I could join inputs from two fields into one?
386: [19:14:00] <zlincoln> MakeAndModel and Year are separate fields
387: [19:14:00] <zlincoln> i've got a vehicle dataobject and i want to combine MakeAndModel with Year as the Name field
388: [19:25:00] <zlincoln> i think that will get me where i need
389: [19:25:00] <zlincoln> i've just stumbled on the function onBeforeWrite
390: [19:42:00] * NobrainerWeb has joined #silverstripe
391: [19:47:00] * osterlaus quit (Quit: Leaving.)
392: [20:28:00] * zfmf has left #silverstripe
393: [20:30:00] * NobrainerWeb quit (Quit: NobrainerWeb)
394: [21:04:00] * mobiusnz has joined #silverstripe
395: [21:05:00] * seth has joined #silverstripe
396: [21:19:00] * priithansen quit (Ping timeout: 252 seconds)
397: [21:19:00] <seth> hello, is anyone around that can point me to a location to get TranslatableModelAsController.zip? balbuss.com seems to be offline.
398: [21:24:00] * mobiusnz quit (Quit: Leaving.)
399: [21:42:00] * seth quit (Ping timeout: 245 seconds)
400: [21:44:00] * Colin[pi] has joined #silverstripe
401: [21:51:00] * seth has joined #silverstripe
402: [22:18:00] * zlincoln quit (Ping timeout: 245 seconds)
403: [22:28:00] * SightUnseen has joined #silverstripe
404: [23:13:00] * guci0 quit (Ping timeout: 245 seconds)
405: [23:19:00] * priithansen has joined #silverstripe
406: [23:26:00] * priithansen quit (Quit: priithansen)
407: [23:28:00] <simon_w> Woo, the Config parser breaks on perfectly valid syntax
408: [23:29:00] * SightUnseen has left #silverstripe
409: [23:41:00] <Colin[pi]> yay!
410: [23:48:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/simonwelsh/silverstripe-framework/builds/6889033
411: [23:48:00] * travis-ci has joined #silverstripe
412: [23:48:00] <travis-ci> [travis-ci] simonwelsh/silverstripe-framework#13 (remove-dup - cb0977c : Simon Welsh): The build failed.
413: [23:48:00] <travis-ci> [travis-ci] Change view : https://github.com/simonwelsh/silverstripe-framework/compare/17bd8733d0a5^...cb0977ce9ff1
414: [23:48:00] * travis-ci has left #silverstripe
415: [23:49:00] <Colin[pi]> woo
416: [23:50:00] <simon_w> Bah, I'd thought I turned that off
417: [23:59:00] * Zauberfisch quit (Remote host closed the connection)

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