#silverstripe IRC Log

IRC log for 1 April 2013

All timestamps are in UTC.

1: [00:02:00] * priithansen quit (Quit: priithansen)
2: [00:04:00] * priithansen has joined #silverstripe
3: [00:11:00] * priithansen quit (Quit: priithansen)
4: [00:13:00] * rekt quit (Ping timeout: 240 seconds)
5: [02:16:00] * peter_ss has joined #silverstripe
6: [02:21:00] * Zauberfisch-idle quit (*.net *.split)
7: [02:26:00] * DigNZ has joined #silverstripe
8: [02:38:00] * Zauberfisch-idle has joined #silverstripe
9: [03:16:00] * DigNZ has joined #silverstripe
10: [03:16:00] * DigNZ quit (Quit: DigNZ)
11: [03:19:00] * DigNZ quit (Client Quit)
12: [03:24:00] * rekt has joined #silverstripe
13: [03:29:00] * cloph_away has joined #silverstripe
14: [03:30:00] * cloph_away1 quit (Ping timeout: 255 seconds)
15: [04:00:00] * MichaelinWelling has joined #silverstripe
16: [04:01:00] <MichaelinWelling> Hello, Does anyone know if you can chain with the DataObjects for the ORM?
17: [04:02:00] <MichaelinWelling> Example Member has Devices : devices->get one device ->has many messages
18: [04:09:00] <MichaelinWelling> I'm guessing everyone is actually on holiday, woe me! :D
19: [04:11:00] * Error404NotFound has joined #silverstripe
20: [04:20:00] * MarcusDalgren quit (Quit: Page closed)
21: [04:53:00] <ss23> What are decent/best png / jpg optimisers?
22: [05:27:00] * bobdobbs has joined #silverstripe
23: [05:50:00] * MichaelinWelling quit (Quit: MichaelinWelling)
24: [06:08:00] * brondanino has joined #silverstripe
25: [06:12:00] * brondanino quit (Ping timeout: 240 seconds)
26: [07:00:00] * rekt quit (Ping timeout: 255 seconds)
27: [07:20:00] * priithansen has joined #silverstripe
28: [07:23:00] * SightUnseen has left #silverstripe
29: [07:23:00] * SightUnseen has joined #silverstripe
30: [07:27:00] * MichaelinWelling has joined #silverstripe
31: [07:29:00] <MichaelinWelling> optipng
32: [07:32:00] <ss23> mmk, and any ideas for jpg?
33: [07:37:00] <ss23> I don't know anything about jpg's, but I thought there were certain optimisations that didn't involve data loss?
34: [07:37:00] <lewellyn> you don't want to recompress jpg.
35: [07:38:00] <lewellyn> you can optimize the compression tables and stuff, but you only gain a couple percent.
36: [07:38:00] <ss23> kk
37: [07:38:00] <lewellyn> nothing that'll really be worth the effort.
38: [07:38:00] <ss23> ty
39: [07:39:00] <lewellyn> about the only REAL gain you can get is to end up saving a packet. ;)
40: [07:39:00] <lewellyn> (in the former case, you still don't gain if it's something like lte, due to the way the network works.)
41: [07:39:00] <lewellyn> unless you're optimizing for mobile or are pumping massive traffic, you're unlikely to gain anything worthwhile, tbh.
42: [07:49:00] <DrCuriosity> Because the quantisation tables for JPEGs tend to be pretty standard, not everyone bothers parsing custom tables anyway.
43: [07:49:00] <lewellyn> that's the word i was looking for, not compression.
44: [07:49:00] <lewellyn> it's late :)
45: [07:56:00] * brondanino has joined #silverstripe
46: [08:01:00] * brondanino quit (Ping timeout: 261 seconds)
47: [08:06:00] * rekt has joined #silverstripe
48: [08:13:00] * rekt quit (Ping timeout: 245 seconds)
49: [08:35:00] <MichaelinWelling> Example Member has Devices : devices->get one device ->has many messages
50: [08:35:00] <MichaelinWelling> Does anyone know if you can chain with the DataObjects for the ORM?
51: [08:36:00] * Motoservo quit (Quit: Shhh. I'm trying to get some sleep here.)
52: [08:42:00] * MichaelinWelling quit (Quit: MichaelinWelling)
53: [08:52:00] * Zauberfisch has joined #silverstripe
54: [09:00:00] * brondanino has joined #silverstripe
55: [09:02:00] * Zauberfisch-idle quit (Ping timeout: 246 seconds)
56: [09:04:00] * peter_ss quit (Ping timeout: 260 seconds)
57: [09:14:00] * Zauberfisch-idle has joined #silverstripe
58: [09:16:00] <Shrike_Finland1> Everyone is on holiday...
59: [09:51:00] <Zauberfisch> not me
60: [10:02:00] <Shrike_Finland1> Nailed it!!!
61: [10:03:00] <Shrike_Finland1> Now I know, why saving the SiteTree link ID on dataobject did not work...
62: [10:05:00] <Shrike_Finland1> 'InternalLink' => 'SiteTree' is not enough
63: [10:05:00] * Uitto has left #silverstripe
64: [10:05:00] <Shrike_Finland1> You HAVE TO have a has_one link to page the dataobject is linking
65: [10:07:00] <Zauberfisch> what are you saying?
66: [10:07:00] <Zauberfisch> hold on Shrike_Finland1
67: [10:08:00] <Shrike_Finland1> I paste working example...
68: [10:09:00] <Shrike_Finland1> http://www.sspaste.com/paste/show/51595cc83f7a7
69: [10:10:00] <Zauberfisch> that should not be the case
70: [10:10:00] <Shrike_Finland1> LinkLoc -> SiteTree is not saving the state if you do not have has_one relation with the page, in this case 'FeaturedItemsPage' => 'FeaturedItemsPage'
71: [10:10:00] <Zauberfisch> lol?
72: [10:10:00] <Zauberfisch> dafuq
73: [10:11:00] <Shrike_Finland1> if I take it away, link is not saving anymore the state
74: [10:11:00] <Shrike_Finland1> If I put it back, it works
75: [10:11:00] <Shrike_Finland1> but it is
76: [10:12:00] <Shrike_Finland1> Not, yet.
77: [10:12:00] <Zauberfisch> weird
78: [10:12:00] <Shrike_Finland1> I do not know, is it a bug or not
79: [10:12:00] <Zauberfisch> have you tried doing LinkLoc => 'Page' instead of siteTree?
80: [10:13:00] <Shrike_Finland1> There could be also quite special case in my pagetypes, as I extend many pagetypes to create frontpage in this case.
81: [10:15:00] <Shrike_Finland1> Page is extended with UpperPart which is extended with FeaturedBoxes which is extended with HugeImage part which is extended with actual Frontpage pagetype :)
82: [10:23:00] * C10ne quit (Ping timeout: 245 seconds)
83: [10:27:00] * rekt has joined #silverstripe
84: [10:43:00] * rekt has left #silverstripe
85: [11:23:00] * r3v3rb has joined #silverstripe
86: [11:24:00] <r3v3rb> morning all, any one tried using guzzle/oauth with 2.4.10 ?
87: [11:31:00] <r3v3rb> no one home :(
88: [11:39:00] * r3v3rb quit (Quit: r3v3rb)
89: [12:09:00] * Error404NotFound quit (Ping timeout: 256 seconds)
90: [12:20:00] * Error404NotFound has joined #silverstripe
91: [12:24:00] * lx-berlin has joined #silverstripe
92: [12:30:00] * lx-berlin has left #silverstripe
93: [13:31:00] * cal is now known as Guest27219
94: [13:31:00] * cal has joined #silverstripe
95: [13:33:00] <Guest27219> Anyone know if it's possible to make multi line comments in ss templates?
96: [13:34:00] <Guest27219> <%-- comment --%> only works on a single line and I'd like to add some documentation to all my templates
97: [14:20:00] * jkaunisv has joined #silverstripe
98: [14:20:00] <Zauberfisch> Guest27219 but you an do <% if false %> .... <% end_if %>
99: [14:20:00] <Zauberfisch> its kind of hacky, but it works
100: [14:20:00] <Zauberfisch> Guest27219 no its not possible
101: [14:20:00] * Nivery has joined #silverstripe
102: [14:24:00] <jkaunisv> Hi all, I'm new to SS and I'm pulling my hair out trying to translate my theme
103: [14:24:00] <jkaunisv> I keep getting "PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted" no matter what I up the limit to
104: [14:25:00] <jon-shape> jkaunisv: Do you have a something like template A includes B and B includes and causing an infinite loop?
105: [14:25:00] * micmania1 has joined #silverstripe
106: [14:25:00] <jon-shape> *B includes A
107: [14:26:00] <jkaunisv> jon-shape: Don't think so, but I'll double check. Good point
108: [14:26:00] <jon-shape> That's where I find that type of error occurs.
109: [14:29:00] <jkaunisv> Do you know what the truth is on that?
110: [14:29:00] <jkaunisv> The documentation suggests I can collect text from template files, this (http://www.balbus.tk/internationalize#ModulesToCollect) suggests otherwise
111: [14:33:00] * Guest27219 quit (Ping timeout: 245 seconds)
112: [14:37:00] <jkaunisv> Can't find any infinite loops..
113: [14:42:00] <jon-shape> Do you have xdebug installed for a stack trace?
114: [14:43:00] <jkaunisv> no, that's another good call
115: [14:50:00] * catcher has joined #silverstripe
116: [14:51:00] <jkaunisv> Got the stack trace, there's definitely some kind of loop going on
117: [14:59:00] <Zauberfisch> jkaunisv does this error occur when loading the website or when running the _t() collector?
118: [15:00:00] <Zauberfisch> btw, I don't get what you mean with "The documentation suggests I can collect text from template files, this (http://www.balbus.tk/internationalize#ModulesToCollect) suggests otherwise"
119: [15:01:00] <Zauberfisch> note that the collector is broken in 3.0, it only works in 2.4.x and 3.0.5 (i think) and above
120: [15:01:00] <Zauberfisch> you can let the collector task run over the whole website or just 1 module. it collect _t() and <%t %> from php files and .ss files
121: [15:01:00] <Zauberfisch> <%t %> is ss3 only
122: [15:02:00] <Zauberfisch> you can run it for just mysite by running: foobar.com/dev/tasks/i18nTextCollectorTask/?module=mysite
123: [15:02:00] <jkaunisv> ah, it's broken!
124: [15:03:00] <jkaunisv> I'm on 3.0.3, I'll upgrade to 3.0.5 and see if that works
125: [15:03:00] <Zauberfisch> it will walk through /mysite/code and /mysite/templates and output to /mysite/lang
126: [15:03:00] <jkaunisv> in that link I included, it says you specifically CAN'T collect from theme templates
127: [15:03:00] <jkaunisv> what about templates included in themes/
128: [15:03:00] <jkaunisv> ?
129: [15:03:00] <jkaunisv> Zauberfisch: the error occurs when running the _t() collector
130: [15:04:00] <Zauberfisch> jkaunisv ah, you should have made that more clear, I think jon-shape was thinking that you had a normal template error
131: [15:04:00] <jkaunisv> yeah sorry I'm not used to thinking in SS's ways yet
132: [15:05:00] <Zauberfisch> yeah, it is
133: [15:05:00] <jkaunisv> It is very hard to find definitive answers in all the documentation - I have the book next to me but it seems to be quite outdated
134: [15:05:00] <Zauberfisch> I never read more than the first couple of pages of the book
135: [15:06:00] <Zauberfisch> jkaunisv well, the template engine got a whole lot better
136: [15:06:00] <jkaunisv> So is there something different about theme templates?
137: [15:06:00] <Zauberfisch> the book is good, but I started reading it to late, by that time I already knew more than one can find in it, and the book was outdated
138: [15:06:00] <Zauberfisch> - better error messages
139: [15:06:00] <Zauberfisch> - loop & with instead of control
140: [15:07:00] <jkaunisv> Zauberfisch: yeah, I saw that stuff
141: [15:07:00] <Zauberfisch> - more complex statements, you can now do <% if $Foo == 'bar' && $Bar == 'foo' %>
142: [15:08:00] <Zauberfisch> - you should now use <%t Page.HelloWorld 'Ohai there' %> instead of <% _t('Page.HelloWorld','Ohai there') %>
143: [15:09:00] <Zauberfisch> yes
144: [15:09:00] <jkaunisv> ok, good
145: [15:09:00] <Zauberfisch> I don't use the theme folder, so I can't say it for certain, but in 2.4.0 it worked
146: [15:09:00] <jkaunisv> thanks for your help, I'll let you know how it goes once I'm upgrade to 3.0.5
147: [15:09:00] <jkaunisv> Yep
148: [15:09:00] <jkaunisv> But if I run the _t() collector, can I expect it to build language tables for my Theme templates?
149: [15:10:00] <Zauberfisch> I see no point why I should place my code in mysite but my templates in themes/mysite
150: [15:10:00] <Zauberfisch> I put all my templates inside mysite/templates
151: [15:10:00] <jkaunisv> oh? what's your workflow like then?
152: [15:10:00] <jkaunisv> you just build everything into mysite?
153: [15:10:00] <jkaunisv> hm, ok
154: [15:10:00] <Zauberfisch> yep
155: [15:10:00] <Zauberfisch> that just makes no sense
156: [15:11:00] <Zauberfisch> I build client specific templates. and for that mysite is the right place if you ask me
157: [15:11:00] <Zauberfisch> those 2 things belong together, because when I build a website, the template is closely bound to the code
158: [15:11:00] <Zauberfisch> I don't do generic templates that can be used on 100 websites
159: [15:11:00] <jkaunisv> yeah, makes sense
160: [15:12:00] <Zauberfisch> (of course, if you have 100 clients with the same template then use theme folder, but not for custom built sites)
161: [15:12:00] <catcher> trying to use the AssetUploadField template for uploadfield, but js error 'has no method 'entwine'. jquery.entwine-dist.js is included though. Ideas?
162: [15:12:00] <Zauberfisch> catcher entwine included after the other?
163: [15:13:00] <catcher> Zauberfisch, I didn't include it explicitly, haven't seen what exactly brings it in yet. Maybe AssetUploadField.js?
164: [15:14:00] <catcher> Oh no, that calls the entwine.
165: [15:14:00] <Zauberfisch> catcher well, check the HTML output
166: [15:15:00] <catcher> Indeed, out of order
167: [15:15:00] <Zauberfisch> is the script tag of entwine at the start or are there some files before that?
168: [15:16:00] <Zauberfisch> include entwine before that
169: [15:16:00] <catcher> block entwine & re-include? Or is there a better way?
170: [15:16:00] <Zauberfisch> Requirements will see that entwine is already included and will not include it again
171: [15:17:00] <Zauberfisch> (you probably also have to include jquery before, because entwine depends on jquery)
172: [15:25:00] <catcher> Zauberfisch, no luck overriding them yet - I'm doing this from a custom form definition, should that work? Or should I move it to the controller that creates the custom form?
173: [15:32:00] <catcher> ty Zauberfisch
174: [15:32:00] <catcher> nm, working as expected.
175: [15:37:00] <Zauberfisch> np catcher
176: [15:38:00] <Zauberfisch> jkaunisv you got your problem fixed?
177: [15:40:00] * Motoservo has joined #silverstripe
178: [15:41:00] <jkaunisv> Zauberfisch: not yet - it's not erroring out anymore, but it's not building the language tables
179: [15:42:00] <Zauberfisch> hmmm, maybe its only fixed in 3.1
180: [15:48:00] * Shrike_Finland has joined #silverstripe
181: [15:48:00] * Shrike_Finland1 quit (Read error: Connection reset by peer)
182: [16:12:00] <catcher> Zauberfisch, do you know if requirements prevents double includes based on filename?
183: [16:13:00] <Zauberfisch> yes it does
184: [16:14:00] <Zauberfisch> and on a uniqueness key for customCSS and customScript
185: [16:15:00] <Zauberfisch> Requirements::customScript($myCSS, 'this_is_my_key');
186: [16:15:00] <catcher> so it'll go ahead and include the same .js file twice if they have different filenames?
187: [16:24:00] <Marvanni> any experience with namespaced classes?
188: [16:24:00] <Marvanni> Im trying to implement this Ogone lib : https://github.com/marlon-be/marlon-ogone
189: [16:25:00] <Marvanni> PaymentRequest.php has namespace Ogone. The PaymentRequest.php is in the SS manifest
190: [16:26:00] <Marvanni> any hints?
191: [16:26:00] <Marvanni> but I still have to use require_once to use new PaymentRequest();
192: [16:26:00] <Marvanni> im not very familiar with namespace and use etc..
193: [16:27:00] <FrozenFire> My hint would be to read the manual
194: [16:27:00] <Marvanni> really?
195: [16:29:00] <FrozenFire> Not quite sure what your question is.
196: [16:29:00] <FrozenFire> If it's a vendor lib, then yeah, you need to require it explicitly.
197: [16:30:00] <FrozenFire> SS's ordinary autoloading mechanism won't include vendor libs, that I'm aware of
198: [16:33:00] <Marvanni> that seems a bit redundant
199: [16:33:00] <Marvanni> well my question is: now I need to add use \blah\bla\etc on top of my Controller AND use require_once('path/to/blah/blah/etc);
200: [16:33:00] <Marvanni> but otherwise I get class not found errors, even when they are in the classmanifest
201: [16:34:00] <FrozenFire> You can either reference its namespace explicitly, or import it into your scope
202: [16:34:00] <FrozenFire> I'd repeat my previous statement about reading the manual. Namespacing is pretty cut and dry.
203: [16:35:00] <FrozenFire> use \blah\blah\etc;
204: [16:35:00] <FrozenFire> Then etc is in your current scope
205: [16:36:00] <Marvanni> yes thats what i have... but is require_once still required then?
206: [16:37:00] <FrozenFire> If it's in the manifest, then you might have something to ask about
207: [16:37:00] <FrozenFire> Yes. This is a vendor lib. The autoloading mechanism in SS is not written to arbitrarily locate class files in the vendor directory
208: [16:37:00] <FrozenFire> But I doubt it is
209: [16:37:00] <Zauberfisch> catcher yes it will
210: [16:37:00] <Zauberfisch> catcher but why would you want to include a file twice?
211: [16:39:00] <Marvanni> http://sspaste.com/paste/show/5159b80897005
212: [16:39:00] <FrozenFire> If you're loading the vendor libs via composer, and they have an autoloading mechanism defined, then that will autoload them
213: [16:39:00] <FrozenFire> Marvanni, Alternatively, you could place something like require_once(BASE_PATH."/vendor/autoload.php"); in your project _config.php I think
214: [16:39:00] <Marvanni> yes, didnt work
215: [16:39:00] <Zauberfisch> Marvanni have you tried doing $obj = new namespace\Class; ?
216: [16:40:00] <Marvanni> there is an autoload.php for symfony...
217: [16:41:00] <FrozenFire> Those have secondary dependencies to Symfony
218: [16:41:00] <FrozenFire> If you installed SS from composer, then it will have included certain components in its require-dev, which recent versions of composer will install by default
219: [16:41:00] <FrozenFire> It all depends on the libraries you're including.
220: [16:42:00] <Marvanni> its installed from download... hm... ss 2.4 btw
221: [16:45:00] * jerga has joined #silverstripe
222: [16:46:00] <FrozenFire> Anything you do with namespaces will have to be explicit.
223: [16:46:00] <FrozenFire> Probably was non-existent
224: [16:46:00] <Zauberfisch> Marvanni ah, ss 2.4, I don't think namespace support was that great in 2.4
225: [16:47:00] <Zauberfisch> well, simon_w did some work on namespace support pre 3.0, but I am not sure how far it got
226: [16:52:00] <Marvanni> i guess i will use the require_once for now...
227: [16:52:00] <Marvanni> thanks anyway
228: [16:59:00] <catcher> Zauberfisch, no intention to include it twice, just curious.
229: [17:06:00] * brondanino quit (Read error: Connection reset by peer)
230: [17:06:00] * brondani_ has joined #silverstripe
231: [17:08:00] <catcher> no results from setTemplate() on my front-end UploadField, but setTemplateFileButtons is working as expected. Any known issues with this?
232: [17:09:00] * FrozenFire isn't sure whether his database is going away, or if SS is currently fucked
233: [17:09:00] <FrozenFire> Keep getting config errors for my database
234: [17:09:00] <FrozenFire> Nothing changes
235: [17:10:00] <Zauberfisch> catcher try setFieldHolderTemplate or something like that
236: [17:11:00] <jerga> Anyone used the ItemSetField module much?
237: [17:13:00] * Shrike_Finland quit (Quit: Leaving.)
238: [17:13:00] <Zauberfisch> catcher what template are you trying to overwrite?
239: [17:13:00] <catcher> Zauberfisch, gave that a go as well, no luck. Though I see setTemplate() being used successfully by the cms.
240: [17:14:00] <Zauberfisch> the one for a row or the field template?
241: [17:15:00] <catcher> Zauberfisch, UploadField.ss
242: [17:16:00] <Zauberfisch> hmmm, just looked it up, it should be setTemplate
243: [17:16:00] <Zauberfisch> have you flushed?
244: [17:16:00] <Zauberfisch> and have you tryed renaming your template?
245: [17:17:00] <Zauberfisch> call it "MyUploadFIeld.ss" and call ->setTemplate('MyUploadField')
246: [17:17:00] <Zauberfisch> if you name it UploadField.ss as well, maybe the framework/admin/templates/UploadField.ss has higher priority than your template and therefore you don't see the effect
247: [17:17:00] <catcher> flushing each time, and I've given my template a custom name & dropped it in themes/mytheme/templates/Includes
248: [17:17:00] * jkaunisv quit (Ping timeout: 245 seconds)
249: [17:17:00] <catcher> Done all that so far, hmm..
250: [17:18:00] <catcher> in FormField.php, setTemplate has the right template name before returning, but getTemplate is blank before returning.
251: [17:21:00] * Shrike_Finland has joined #silverstripe
252: [17:22:00] * Nivery quit (Quit: Nivery)
253: [17:58:00] <catcher> Zauberfisch, any ideas? Or any way around without hacking the core?
254: [17:59:00] <catcher> I could try a subclassed getTemplate() method I s'pose
255: [18:01:00] <Zauberfisch> what ss version are you using?
256: [18:02:00] <catcher> 3.0.5
257: [18:02:00] * zlincoln has joined #silverstripe
258: [18:02:00] <catcher> actually I'll need to override getTemplates() it appears.
259: [18:03:00] <Zauberfisch> so it can be fixed
260: [18:03:00] <catcher> looking some more though
261: [18:03:00] <catcher> Zauberfisch, been trying to find that, no luck yet
262: [18:03:00] <Zauberfisch> would be nice if you can figure out where it goes wrong
263: [18:04:00] * jerga quit (Ping timeout: 256 seconds)
264: [18:04:00] <zlincoln> hey all, anyone ever have trouble with the EventCalendar module always registering AM in 24 time mode?
265: [18:05:00] <zlincoln> if i type in 16:00 it goes into the DB as 16:00 and shows 4:00 AM in the CMS
266: [18:06:00] <FrozenFire> Down the timezone rabbit hole you go.
267: [18:06:00] <zlincoln> yes, i've been pulling my hair out for a couple hours now
268: [18:07:00] <FrozenFire> Ideally, the way it should always be set up is, every. fucking. service. has UTC as its timezone
269: [18:07:00] <FrozenFire> Then, when people want time in a different timezone, they simply set that as the locale, and the time gets converted.
270: [18:09:00] <Zauberfisch> !
271: [18:09:00] <zlincoln> not sure if its really a timezone issue though, its just seems to be a bug where there is a mismatch with time_formats
272: [18:09:00] <Zauberfisch> "Ideally, the way it should always be set up is, every. fucking. service. has UTC as its timezone"
273: [18:09:00] <Zauberfisch> you said it
274: [18:11:00] <zlincoln> i agree
275: [18:11:00] <zlincoln> ah yes just looked up UTC
276: [18:19:00] <Zauberfisch> in fact, I'd say drop all timezones
277: [18:20:00] <Zauberfisch> one problem less
278: [18:20:00] <Zauberfisch> just use UTC around the world
279: [18:33:00] <FrozenFire> Heh
280: [18:37:00] <FrozenFire> public static $db = array( "Created" => "Stardate" );
281: [18:38:00] <FrozenFire> Created: 66715.2
282: [18:43:00] * FrozenFire had planned to take today off
283: [18:43:00] <FrozenFire> But all of the Americans want my dick today
284: [18:43:00] * FrozenFire is sad
285: [18:48:00] <priithansen> Any ideas what would qualify as a valid source for that dropdownfield extendsion http://goo.gl/NUAH4 ?
286: [18:49:00] <FrozenFire> I vaguely recall DropdownField being a bit of a mess
287: [18:54:00] <priithansen> wondering if it could be because of 3.0 vs 3.1 differences
288: [18:56:00] * bkmorse_ has joined #silverstripe
289: [18:57:00] <bkmorse_> I was wondering if you could answer some questions
290: [18:57:00] <bkmorse_> I am coming over from EE and will be working with SS for my next client project.
291: [18:58:00] <Shrike_Finland> Hi, wonder why Silverstripe is printing if(Director::isLive() on every page refresh?
292: [18:59:00] <bkmorse_> in EE, you can do multi col / row fields, called Matrix, which is similar to Grid Field.
293: [18:59:00] <Shrike_Finland> It flashes few millisecods on page before content, styles, scripts etc. loads
294: [19:01:00] <bkmorse_> what module/add-on do you need to build custom forms, for an editor to log in and enter their data to the form, that will display on the webpage? Not like a contact email form
295: [19:01:00] * DigNZ has joined #silverstripe
296: [19:02:00] * DigNZ quit (Client Quit)
297: [19:02:00] * Shrike_Finland quit (Quit: Leaving.)
298: [19:05:00] <catcher> bkmorse_, user defined forms is pretty solid
299: [19:05:00] <catcher> bkmorse_, https://github.com/silverstripe/silverstripe-userforms
300: [19:06:00] <catcher> ha, as the build fails
301: [19:09:00] <bkmorse_> <catcher> does userforms support using the grid field within it?
302: [19:09:00] * Jeremy_ has joined #silverstripe
303: [19:10:00] * Jeremy_ is now known as clodeindustrie
304: [19:10:00] <catcher> bkmorse_, not out of the box. GridField is designed for CMS use, for now at least.
305: [19:10:00] * Shrike_Finland has joined #silverstripe
306: [19:11:00] <bkmorse_> what is userforms designed for, setting up forms like: contact us form pages?
307: [19:12:00] <bkmorse_> what are some gotchas about SilverStripe, so I'll know about those when planning this project, I don't know SilverStripe as well as EE.
308: [19:13:00] * SightUnseen has joined #silverstripe
309: [19:15:00] * SightUnseen has left #silverstripe
310: [19:17:00] * mobiusnz has joined #silverstripe
311: [19:18:00] <Shrike_Finland> bkmorse_: userforms is a advanced tool to make more complicated forms, even with if-conditions
312: [19:25:00] <bkmorse_> what field types can useforms do?
313: [19:26:00] * DigNZ has joined #silverstripe
314: [19:26:00] <bkmorse_> besides radio, check, text, textarea, select.
315: [19:26:00] * DigNZ has joined #silverstripe
316: [19:26:00] * DigNZ quit (Remote host closed the connection)
317: [19:27:00] * nickmolhoek quit (Read error: Connection reset by peer)
318: [19:27:00] * nickmolhoek has joined #silverstripe
319: [19:28:00] * nickmolhoek has joined #silverstripe
320: [19:29:00] <bkmorse_> can SilverStripe relate to another entry within itself? For example, I have a form that I enter players on a baseball roster.
321: [19:30:00] <bkmorse_> When I go to add a news entry into the baseball news section, I want to be able to relate it to players on the baseball roster
322: [19:30:00] <bkmorse_> so when I pull up the player page, it can list all the articles they were referred in
323: [19:31:00] <catcher> bkmorse_, the userform module will only take you so far though.
324: [19:31:00] * eikonos1 has joined #silverstripe
325: [19:31:00] <catcher> bkmorse_, if you're decent with PHP, you can build just about anything you want into a form in SS.
326: [19:32:00] <bkmorse_> it doesn't support relationships out of the box?
327: [19:32:00] * eikonos quit (Ping timeout: 245 seconds)
328: [19:32:00] <bkmorse_> thanks, I like the documentation for the framework, so that shouldn't be too hard.
329: [19:32:00] * jkaunisv has joined #silverstripe
330: [19:32:00] <catcher> if you like the documentation, you'll like the rest better. :-P
331: [19:33:00] <bkmorse_> can you change the Admin UI, instead of listing each page, can it be a drop-down list, or a list that is linked, just in case their is over 100+ pages to maintain?
332: [19:33:00] <catcher> SS's ORM certainly does, but I don't think the userforms module does.
333: [19:35:00] <catcher> bkmorse_, I always use DataObjects instead of Pages for that sort of thing, so they can behave however you want.
334: [19:35:00] <catcher> SS uses ModelAdmin to give you a free interface for managing DataObjects in the CMS.
335: [19:36:00] <catcher> bkmorse_, the tutorials are good, best to start with those.
336: [19:37:00] <Shrike_Finland> I have used a bit EE and I think you will like a lot SS
337: [19:38:00] <bkmorse_> #Shrike_Finland do you prefer EE?
338: [19:39:00] * zfmf has joined #silverstripe
339: [19:43:00] * eikonos1 is now known as eikonos
340: [19:43:00] * eikonos quit (Changing host)
341: [19:43:00] * eikonos has joined #silverstripe
342: [19:49:00] * Error404NotFound quit (Read error: Connection reset by peer)
343: [19:50:00] * mobiusnz quit (Ping timeout: 240 seconds)
344: [19:52:00] * Error404NotFound has joined #silverstripe
345: [19:53:00] * mobiusnz has joined #silverstripe
346: [19:54:00] * Error404NotFound has joined #silverstripe
347: [19:54:00] * Error404NotFound quit (Max SendQ exceeded)
348: [20:16:00] * Motoservo_ has joined #silverstripe
349: [20:16:00] * Motoservo quit (Ping timeout: 255 seconds)
350: [20:16:00] * Motoservo_ is now known as Motoservo
351: [20:21:00] * eikonos has joined #silverstripe
352: [20:21:00] * eikonos quit (Read error: No route to host)
353: [20:21:00] * eikonos quit (Changing host)
354: [20:21:00] * eikonos has joined #silverstripe
355: [20:27:00] * Maduranga has joined #silverstripe
356: [20:32:00] * lx-berlin has joined #silverstripe
357: [20:32:00] * zfmf quit (Read error: No route to host)
358: [20:34:00] * mobiusnz1 has joined #silverstripe
359: [20:37:00] * zfmf has joined #silverstripe
360: [20:37:00] * mobiusnz quit (Ping timeout: 272 seconds)
361: [20:40:00] * mobiusnz has joined #silverstripe
362: [20:40:00] * mobiusnz1 quit (Read error: Connection reset by peer)
363: [20:43:00] <jkaunisv> Zauberfisch: I can't get i18nTextCollector to work, is there a way to do this manually? It looks like it just generates yml files, I have no problem writing them myself if that's all there is to it
364: [20:44:00] <Zauberfisch> jkaunisv yes, you can write them by hand
365: [20:44:00] * Pyromanik has joined #silverstripe
366: [20:44:00] <Zauberfisch> just create a file /lang/en.yml
367: [20:44:00] <Zauberfisch> then write:
368: [20:44:00] <Zauberfisch> en:
369: [20:44:00] <Zauberfisch> Page:
370: [20:44:00] <jkaunisv> Zauberfisch: awesome, thanks
371: [20:44:00] <Zauberfisch> - HelloWorld: 'ohai there'
372: [20:51:00] * terryapodaca has joined #silverstripe
373: [20:52:00] * Maduranga quit (Ping timeout: 245 seconds)
374: [20:52:00] * brondani_ quit (Remote host closed the connection)
375: [20:53:00] * brondanino has joined #silverstripe
376: [20:55:00] <terryapodaca> does module capitalization matter?
377: [20:55:00] * bkmorse_ quit (Ping timeout: 245 seconds)
378: [20:56:00] <Pyromanik> module names never mattered really, it's the CSS directives that do.
379: [20:56:00] <Pyromanik> shouldn't do anymore
380: [20:56:00] <Pyromanik> front end resources, etc.
381: [20:56:00] <terryapodaca> I only ask because I want to use SortableGridField and GridFieldBulkEditingTools
382: [20:56:00] <Pyromanik> yeah, they're fine like that
383: [20:57:00] <terryapodaca> would they break if i made them all lowercase?
384: [20:57:00] <Pyromanik> dunno, maybe
385: [20:58:00] * tankr has joined #silverstripe
386: [20:58:00] * brondanino quit (Ping timeout: 255 seconds)
387: [20:58:00] <Pyromanik> but can't say for sure
388: [20:58:00] <Pyromanik> sortable grid field looks like it might be able to go lowercase
389: [20:58:00] <terryapodaca> I'll leave it
390: [20:58:00] <Pyromanik> or be renamed
391: [21:00:00] * jerga has joined #silverstripe
392: [21:01:00] * micmania1 quit (Ping timeout: 245 seconds)
393: [21:03:00] * mobiusnz quit (Ping timeout: 256 seconds)
394: [21:04:00] * tankr quit (Quit: Leaving.)
395: [21:06:00] * mobiusnz has joined #silverstripe
396: [21:07:00] * rekt has joined #silverstripe
397: [21:09:00] * clodeindustrie quit (Quit: Textual IRC Client: www.textualapp.com)
398: [21:10:00] * zfmf has left #silverstripe
399: [21:12:00] * nicolaas has joined #silverstripe
400: [21:13:00] * mobiusnz quit (Ping timeout: 245 seconds)
401: [21:13:00] <nicolaas> hi - I am getting errors in the uploadify module that I find impossible to debug. Is there anyone out there who knows how to fix this? I am getting pretty desperate.
402: [21:16:00] * MarcusDalgren has joined #silverstripe
403: [21:16:00] * ARNHOE has joined #silverstripe
404: [21:16:00] * lx-berlin quit (Ping timeout: 245 seconds)
405: [21:17:00] <MarcusDalgren> Zauberfisch: I just updated with comment support!
406: [21:18:00] * lx-berlin has joined #silverstripe
407: [21:20:00] * rekt has left #silverstripe
408: [21:20:00] <lx-berlin> hi , i am playing around with composer for the first time. after installing ss with composer (which is very nice) i see that in /themes/simple there is a .git folder. I think thats why phpstorm is telling me that it has found unregistered git roots
409: [21:22:00] * zlincoln quit (Ping timeout: 245 seconds)
410: [21:22:00] <Shrike_Finland> hi guys. Is it normal tha SS is flashing very quickly ifdirector :: islive etc on page load?
411: [21:23:00] <lx-berlin> Zauberfisch: are you using compass to install ? do you also get these "unregistered git roots" in PhpStorm ?
412: [21:24:00] <Zauberfisch> lx-berlin you mean composer?
413: [21:24:00] <Zauberfisch> lx-berlin no, haven't had time to look into composer yet
414: [21:24:00] * mobiusnz has joined #silverstripe
415: [21:24:00] <lx-berlin> ah, right :) haha
416: [21:24:00] <lx-berlin> PhpStorm 6 has composer support. That is really nice
417: [21:25:00] <Zauberfisch> alternative you can also open it via the menu
418: [21:25:00] <Zauberfisch> lx-berlin when php storm tells you "unregistered git roots" it just means that it found git, but that phpStorm is not configured to use git
419: [21:25:00] <Zauberfisch> so just click on the configure link in the message
420: [21:25:00] <lx-berlin> i will try it again
421: [21:25:00] <Zauberfisch> click on:
422: [21:25:00] <catcher> Anyone using SS on EC2?
423: [21:26:00] <MarcusDalgren> Zauberfisch: also try out the new include functionality. If you write an include tag to a file it can't find it offers a quick fix for creating it
424: [21:26:00] <Zauberfisch> File -> Settings -> Version Control
425: [21:27:00] <lx-berlin> MarcusDalgren: your plugin is the next thing i will install :)
426: [21:27:00] <Zauberfisch> press on on the add link
427: [21:27:00] <Zauberfisch> then you will see a couple of messages telling you all the git roots it found
428: [21:27:00] <Zauberfisch> then close the window with OK
429: [21:27:00] <Shrike_Finland> Could here be something wrong, that do not match when I change site to 'live'? http://www.sspaste.com/paste/show/5159fb8627097
430: [21:28:00] <lx-berlin> i will
431: [21:28:00] <MarcusDalgren> lx-berlin: Awesome! Please come by the git repo and report stuff and give feedback :)
432: [21:29:00] <MarcusDalgren> I'm using it in my day to day work and I think it's awesome, but I'm also very biased ;)
433: [21:29:00] <lx-berlin> :)
434: [21:30:00] <Pyromanik> try updating it
435: [21:30:00] <Pyromanik> nicolaas, no one knows how to debug that, sorry.
436: [21:31:00] <Zauberfisch> lx-berlin and once you have added the git roots, you can press CTRL+K to commit
437: [21:31:00] <Zauberfisch> omg omg omg, this plugin gets more awesome every day
438: [21:32:00] <Zauberfisch> I am really excited :D
439: [21:33:00] <MarcusDalgren> :D
440: [21:33:00] <MarcusDalgren> I think the include functionality can really speed up the workflow
441: [21:33:00] <MarcusDalgren> write the tag, quick fix it and boom! You've got that include file
442: [21:41:00] <lx-berlin> Zauberfisch: i think i did it wrong now. When you start a new project in PhpStorm , i have chosen "new project (composer project)" and it worked really well. But now it is not a clone of the bitbucket project. So i think i have to start a project with "Checkout from version control"
443: [21:42:00] <Zauberfisch> lx-berlin you can add git later
444: [21:42:00] <lx-berlin> really ?
445: [21:42:00] <Zauberfisch> is the bitbucket project empty?
446: [21:42:00] <lx-berlin> yes
447: [21:43:00] <lx-berlin> it was last time i checked
448: [21:43:00] <Zauberfisch> perfect
449: [21:43:00] <Zauberfisch> $ git remote add origin URL_TO_BITBUCKET
450: [21:43:00] <Zauberfisch> $ git init
451: [21:43:00] <Zauberfisch> then run
452: [21:43:00] <Zauberfisch> but just open a console
453: [21:43:00] <Zauberfisch> I am not sure how to do it in phpstorm/intellij
454: [21:44:00] <lx-berlin> oh, i didnt know that adding git later is possible :) let me try
455: [21:44:00] <Zauberfisch> $ git push origin master
456: [21:44:00] <Zauberfisch> and thats it
457: [21:44:00] <Zauberfisch> now you can do
458: [21:51:00] <lx-berlin> ok, its uploading now to bitbucket now. thanks
459: [21:54:00] <lx-berlin> btw. in the composer silverstripe installer i selected 3.0.x
460: [21:59:00] <lx-berlin> ok, 3 minutes to midnight . time to go to sleep. bye all
461: [21:59:00] * lx-berlin has left #silverstripe
462: [22:05:00] * ARNHOE quit (Remote host closed the connection)
463: [22:07:00] * ARNHOE has joined #silverstripe
464: [22:11:00] * mobiusnz quit (Read error: No route to host)
465: [22:11:00] * ARNHOE quit (Remote host closed the connection)
466: [22:13:00] * MarcusDalgren quit (Quit: Page closed)
467: [22:13:00] * mobiusnz has joined #silverstripe
468: [22:17:00] <mobiusnz> with just the current version?
469: [22:17:00] <mobiusnz> Hmm. is there an easy way to repopulate the [dataobject]_versions table?
470: [22:22:00] <Pyromanik> do a publish?
471: [22:23:00] * mobiusnz quit (Quit: Leaving.)
472: [22:23:00] <Pyromanik> copy pasta the record?
473: [22:26:00] * SightUnseen has left #silverstripe
474: [22:26:00] * SightUnseen has joined #silverstripe
475: [22:27:00] * jkaunisv quit (Ping timeout: 245 seconds)
476: [22:27:00] * jerga has left #silverstripe
477: [22:34:00] <Kay2> hey all
478: [22:34:00] * Kay2 has joined #silverstripe
479: [22:34:00] <Kay2> apologies if this question doesnt quite make sense
480: [22:34:00] <Kay2> I have a DataObject with a has_many relationship to another DataObject
481: [22:35:00] <Kay2> how do I add existing DataObjects to the has_many relationship?
482: [22:36:00] <Kay2> eg. my DataObject Events can have many Artists - the Artist DataObjects already exist so I want to be able to add the existing artists to the event dataobject
483: [22:40:00] <Kay2> anyone?
484: [22:45:00] <nicolaas> Kay2: Artist has_one Event?
485: [22:45:00] <nicolaas> firstly, I often found it works better to use many_many relationships rather than has_many
486: [22:46:00] <nicolaas> does that help?
487: [22:46:00] <nicolaas> one of the reasons why MM is great is that I use the CheckboxSetField to create (and remove) relationships
488: [22:56:00] * chillu has joined #silverstripe
489: [22:56:00] <Kay2> good idea on the many_many
490: [22:56:00] <Kay2> sort of - not really - just looking for a code example
491: [23:03:00] * bunyip-oz has joined #silverstripe
492: [23:03:00] <Pyromanik> Kay2, you need many many
493: [23:03:00] <Pyromanik> has many will not cut it
494: [23:03:00] <Pyromanik> and use a gridfield
495: [23:04:00] <Pyromanik> http://doc.silverstripe.org/framework/en/reference/grid-field
496: [23:04:00] <Pyromanik> code examples in docs
497: [23:05:00] <Pyromanik> done.
498: [23:05:00] <Kay2> the relationships are being created on a custom front end form so gridfield wont do the trick
499: [23:05:00] <Pyromanik> basically just: new GridField('Artists', null, $this->Artists(), new GridFieldConfig_RelationEditor())
500: [23:05:00] <Kay2> yeah sweet have changed the relationship to many_many and getting closer
501: [23:06:00] <Kay2> am thinking using ->push() might do the trick
502: [23:07:00] * nicolaas quit (Ping timeout: 272 seconds)
503: [23:12:00] * DigNZ1 has joined #silverstripe
504: [23:16:00] * pippy_ has joined #silverstripe
505: [23:16:00] <terryapodaca> anyone know a calendar style schedule module for ss3?
506: [23:17:00] * [lewellyn] is now known as lewellyn
507: [23:17:00] * lewellyn quit (Disconnected by services)
508: [23:17:00] * [lewellyn] has joined #silverstripe
509: [23:21:00] * Error404NotFound quit (Ping timeout: 272 seconds)
510: [23:21:00] * DigNZ quit (Ping timeout: 272 seconds)
511: [23:21:00] * Error404NotFound has joined #silverstripe
512: [23:21:00] * pippy quit (Ping timeout: 272 seconds)
513: [23:21:00] * spronk quit (Ping timeout: 272 seconds)
514: [23:23:00] * SticksM has joined #silverstripe
515: [23:24:00] * SticksM quit (Client Quit)
516: [23:24:00] * SticksM has joined #silverstripe
517: [23:25:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/c62eb055185c...babdcc9eea64
518: [23:25:00] * travis-ci has left #silverstripe
519: [23:25:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/5972094
520: [23:25:00] * travis-ci has joined #silverstripe
521: [23:25:00] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#309 (3.0 - babdcc9 : Ingo Schommer): The build passed.
522: [23:32:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/41039cc8d386...1b83e489ef3b
523: [23:32:00] * travis-ci has left #silverstripe
524: [23:32:00] * travis-ci has joined #silverstripe
525: [23:32:00] <travis-ci> [travis-ci] silverstripe/sapphire#1840 (3.0 - 1b83e48 : Ingo Schommer): The build passed.
526: [23:32:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/5972100
527: [23:39:00] * catcher quit (Quit: Leaving)
528: [23:41:00] <terryapodaca> I REALLY hate all these updates
529: [23:46:00] <ss23> They're all on 3.1, which is where hte updates should be
530: [23:46:00] <terryapodaca> nooo....i dont' mean the physical updates
531: [23:46:00] * tankr has joined #silverstripe
532: [23:46:00] <ss23> Why?
533: [23:47:00] <ss23> Yeah, I'm not sure there's a big use in them, and it's made worse that each of them is 5 lines. 2 for join/part, plus 3 for the update
534: [23:47:00] <ss23> oic haha
535: [23:47:00] * brondanino has joined #silverstripe
536: [23:47:00] <terryapodaca> i mean them posting here and cluttering up the room
537: [23:47:00] <ss23> Could condense it down to 1 line instead, would be much nicer
538: [23:48:00] <terryapodaca> could always just go look for myself if i wanted to see
539: [23:48:00] <terryapodaca> i'd much more rather it not even be posted
540: [23:48:00] <ss23> Yeah, I agree, but I figure if it is posted, 1 line is better than 5
541: [23:51:00] * brondanino quit (Ping timeout: 248 seconds)
542: [23:55:00] * tankr quit (Quit: Leaving.)
543: [23:57:00] * Bollig|DesignCty has joined #silverstripe

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