#silverstripe IRC Log

IRC log for 20 February 2014

All timestamps are in UTC.

1: [00:15:52] * antmas has joined #silverstripe
2: [00:18:31] * violetina quit (Remote host closed the connection)
3: [00:19:43] <Colin[pi]> zippy: y u no answer?
4: [00:19:45] <Colin[pi]> ;D
5: [00:22:32] <zippy__> Colin[pi]: lunch :)
6: [00:22:48] <Colin[pi]> ah that old chestnut
7: [00:22:55] <zippy__> Colin[pi]: http://www.dx.com
8: [00:23:24] <Colin[pi]> oh what did you order?
9: [00:23:47] <zippy__> servo, some wires, 3 temp sensors and a relay
10: [00:24:07] <Colin[pi]> what you building?
11: [00:24:10] <zippy__> hook them up to my raspberry pi and make magic smoke!
12: [00:24:23] <antmas> zippy__: nice
13: [00:24:41] <antmas> our senior dev is going to make a custom shower temp/timer monitor
14: [00:25:00] <Colin[pi]> cool
15: [00:27:30] <antmas> anyone here have Chromecast?
16: [00:30:56] * Liquide has joined #silverstripe
17: [00:35:16] <antmas> Take that as a no - wish they'd sell it here in NZ
18: [00:46:33] * Nimle has joined #silverstripe
19: [01:06:52] * antmas quit (Quit: Page closed)
20: [01:07:51] * antmas has joined #silverstripe
21: [01:10:50] <Ryan-Toast> anyone else have trouble using open in a controller?
22: [01:10:54] <Ryan-Toast> fopen**
23: [01:12:07] * SightUnseen has joined #silverstripe
24: [01:12:37] * SightUnseen has left #silverstripe
25: [01:18:03] <antmas> bah, datatables are hard to format for emails :(
26: [01:22:50] <antmas> anyone come across this before? http://deadlytechnology.com/silverstripe/html-emails-css/
27: [01:27:41] <Stomach> yeah
28: [01:27:45] <Stomach> its in use in swipestripe
29: [01:29:48] * ObiWanShanobi has joined #silverstripe
30: [01:33:58] * ObiWanShanobi quit (Client Quit)
31: [01:35:05] <antmas> hmmm
32: [01:35:10] <antmas> maybe I don't need to do that though
33: [01:35:22] <antmas> if it's just one field's data that needs formatting
34: [01:37:54] <antmas> is there a good way to wrap a field so that it renders html?
35: [01:37:58] <antmas> prperly*
36: [01:38:03] <antmas> properly**
37: [01:46:28] * antmas quit (Ping timeout: 245 seconds)
38: [01:46:53] * Nimle quit (Ping timeout: 245 seconds)
39: [01:50:14] * Tanger has joined #silverstripe
40: [01:53:09] <Ryan-Toast> antmas: nearly finished adding an api google fonts thingy.
41: [02:00:23] <zippy__> Ryan-Toast: It seems all you do at your work… is work on your boiler plate :)
42: [02:00:31] * antmas has joined #silverstripe
43: [02:00:35] <Ryan-Toast> I usually do two things at once.
44: [02:00:55] <Ryan-Toast> and we use boilerplate for our clients.
45: [02:01:30] <Ryan-Toast> this client needs custom fonts, so instead of just including them, I made the google fonts module and charged thewm for it :)
46: [02:01:57] <zippy__> Ryan-Toast: This shit is crazy I tell ya….. for this list of of 2 by 2 items, the developer is using javascript to get the height of them all, and using absolute positining setting the height and left paramaters of these divs… instead of floating and what not..
47: [02:02:23] <Ryan-Toast> Sounds like a winner :P
48: [02:02:36] <antmas> zippy__: o.O
49: [02:02:45] <zippy__> makes me feel good about my front end foo :)
50: [02:05:34] <antmas> zippy__: part time help desk job coming up here if you know anyone looking
51: [02:06:01] <zippy__> antmas: what would that involve, got a job link?
52: [02:06:40] <antmas> zippy__: not 'official' yet, but it's 3-4 days a week, typical helpdesk work
53: [02:06:49] <antmas> zippy__: I'll forward you the link when it comes up
54: [02:07:35] <zippy__> antmas: help desk for what though… like, windows/office problems or website issues or what
55: [02:07:52] <zippy__> antmas: any idea on requirements
56: [02:08:15] <antmas> zippy__: windows/office plus a bunch of other thirdparty apps
57: [02:08:38] <zippy__> ok yea, throw me the link when you can
58: [02:08:54] <antmas> software/hardware installs, update rollouts (when not admin managed)
59: [02:09:09] <antmas> mailmarshall/webmarshall work etc
60: [02:09:12] <antmas> zippy__: will do
61: [02:09:22] <zippy__> yea I might know a person suitable for a monkey role :)
62: [02:09:28] <zippy__> _might_
63: [02:09:57] <antmas> bah, how to private message again?
64: [02:10:07] <Ryan-Toast> double click on oname?
65: [02:10:30] <antmas> bah
66: [02:10:32] <antmas> lol
67: [02:10:39] <antmas> doesn't work in web client
68: [02:10:47] <antmas> zippy__: start one with me :D
69: [02:17:26] <antmas> so, anyone, how to style/format individual formfields in an email template?
70: [02:17:42] <antmas> should say 'format' rather than style
71: [02:18:17] <Ryan-Toast> Inline css
72: [02:19:30] <antmas> Ryan-Toast: I'm not sure that would be enough for this particular type of field though :/
73: [02:19:41] <guzzlefry> What is the field?
74: [02:20:01] <antmas> DataTable
75: [02:20:12] <guzzlefry> ah, no clue :/
76: [02:20:19] * Bollig|DesignCty has joined #silverstripe
77: [02:20:35] <Ryan-Toast> Is that even a thing?
78: [02:20:44] <guzzlefry> I don't see it.
79: [02:20:45] <antmas> Ryan-Toast: a custom thing yeah :)
80: [02:20:58] <Ryan-Toast> antmas: :P
81: [02:21:02] <Ryan-Toast> what does it look like?
82: [02:21:34] <antmas> Ryan-Toast: uses this https://datatables.net/
83: [02:22:04] <Ryan-Toast> what does it look like in the email template I mean
84: [02:22:13] <antmas> a whole mess
85: [02:22:14] <antmas> :P
86: [02:22:16] <antmas> hang on
87: [02:23:39] <Tanger> Hey guys, how's everyone doing? Is SS3.1 able to set canCreate from the _config.yml file?
88: [02:24:48] <antmas> Ryan-Toast: here http://www.sspaste.com/paste/show/530563ffeb4f6 you can see the 4 tables 'income' 'expenses 'organisation' etc.
89: [02:25:03] <Ryan-Toast> the fuck is this? :P
90: [02:25:12] <antmas> I KNOW
91: [02:25:22] <antmas> that is the resulting email :P
92: [02:25:29] <antmas> TRY FORMATTING THOSE FUCKERS
93: [02:25:34] <Ryan-Toast> iso you have to format the json?
94: [02:26:00] <Ryan-Toast> convert to array, using json_decode() then run a for lop generating an actual table.
95: [02:26:31] <antmas> Ryan-Toast: I figured I would
96: [02:26:47] <Ryan-Toast> once you decode it it should make more visual sense to you.
97: [02:27:06] <antmas> that's how it is formatted to display in the CMS and on the form itself, obviously it gets stripped back when send via email
98: [02:27:19] <antmas> with json_decode that is
99: [02:27:43] <Ryan-Toast> Yarp.
100: [02:27:49] <antmas> Ryan-Toast: so you're essentially saying it needs to be run through json_decode on the way back out?
101: [02:28:01] <Ryan-Toast> I just did a whole bunch of json stuff with: https://github.com/Rhym/ss_boilerplate/blob/master/themes/boilerplate/fonts/google-web-fonts.txt
102: [02:28:06] <Ryan-Toast> antmas: I assume so
103: [02:28:20] <antmas> Ryan-Toast: awesome, thanks. I'll make some moves on that
104: [02:28:25] <zippy__> oh gowd, now my images wont center!
105: [02:28:37] <Ryan-Toast> text-align: centre on the parent
106: [02:28:47] <zippy__> center - and yea thats done
107: [02:28:49] <zippy__> nudda
108: [02:29:03] <Ryan-Toast> is the parent full width?
109: [02:29:10] <Ryan-Toast> is the image floating?
110: [02:29:11] <zippy__> 50%
111: [02:29:25] * nicolaas has joined #silverstripe
112: [02:29:34] <Ryan-Toast> Is the parent larger than the image?
113: [02:29:56] <guzzlefry> antmas: There is no HTML!
114: [02:30:20] <antmas> guzzlefry: nope, that's just the output, not the source
115: [02:30:41] <guzzlefry> oh so
116: [02:30:42] <antmas> Ryan-Toast: where would I do this decode? on the page/form?
117: [02:30:46] <guzzlefry> why can't you just format it as a table?
118: [02:30:57] * joelpittet has joined #silverstripe
119: [02:31:33] <zippy__> Ryan-Toast: hmmm if I make the parent 100% it doesn't actually go 100% - if I set 400px, then it goes 400… so for some reason, the div is naffed
120: [02:31:38] <guzzlefry> wait, it doesn't look as simple as that.
121: [02:31:48] <antmas> guzzlefry: naw dawg, it's json
122: [02:31:58] <zippy__> wonder if it's because parent is display: table-cell;
123: [02:31:59] <Ryan-Toast> zippy__: it will only go to a percentage of it's parent.
124: [02:32:11] * zippy__ has left #silverstripe
125: [02:32:19] * zippy__ has joined #silverstripe
126: [02:32:28] <zippy__> ops, ctl-w wrong window
127: [02:32:31] <Ryan-Toast> lo
128: [02:32:33] <Ryan-Toast> lol
129: [02:32:46] <Bollig|DesignCty> also, percentage widths only work on elements whose parents have positions.
130: [02:32:52] <Ryan-Toast> Are you using table-cell for vertical centering?
131: [02:32:53] <Bollig|DesignCty> as in relative or absolute
132: [02:33:15] <Ryan-Toast> Bollig|DesignCty: they should work on relative, but not absolute, or fixed.
133: [02:33:47] <Bollig|DesignCty> setting width to a percentage? should work on all of them.
134: [02:33:49] <zippy__> Ye afor vert center
135: [02:34:03] * nicolaas quit (Ping timeout: 252 seconds)
136: [02:34:06] <Ryan-Toast> I mean for children.
137: [02:34:19] <zippy__> if I turn that off, it works
138: [02:34:33] <zippy__> the table I want to center the image in, sometimes has text which I want to verticle center
139: [02:36:03] * antmas quit (Ping timeout: 245 seconds)
140: [02:44:09] * SightUnseen has joined #silverstripe
141: [02:45:53] * SightUnseen has left #silverstripe
142: [02:50:14] * simon_w has joined #silverstripe
143: [02:52:54] * geekdenz has joined #silverstripe
144: [02:52:55] <Ryan-Toast> This so cool: http://danlec.com/blog/stackoverflow-in-4096-bytes
145: [02:57:50] <geekdenz> hi, maybe a silly question, but how do I programmatically add a dataobject to a many-many relationship and save it? I want to track up to 5 authors of a page type
146: [02:58:10] <simon_w> geekdenz, $this->ManyManyRelation()->add($object)
147: [02:58:22] <simon_w> geekdenz, $object has to be already written if $this has been
148: [03:00:07] <geekdenz> $authors = I tried $this->Authors();
149: [03:00:08] <geekdenz> $authors->add($author);
150: [03:00:08] <geekdenz> //...
151: [03:00:08] <geekdenz> $this->write();
152: [03:00:32] <geekdenz> $authors = $this->Authors();
153: [03:01:54] * nickmolhoek has joined #silverstripe
154: [03:03:30] <simon_w> And?
155: [03:03:33] <geekdenz> http://pastebin.com/SUk2k3Wk
156: [03:03:50] <geekdenz> and it doesn't get reflected in the db
157: [03:05:40] <simon_w> Well, for one thing, your write() signature is wrong
158: [03:05:45] <geekdenz> i tried adding 2 other users however, the 3rd user who edits the page doesn't get added
159: [03:07:31] <geekdenz> yeah thanks, but it was called anyhow
160: [03:07:41] <geekdenz> ill try giving the right sig
161: [03:12:37] <geekdenz> ok tried the correct signature now
162: [03:12:41] <geekdenz> with the same result
163: [03:13:40] <geekdenz> hang on
164: [03:13:46] <geekdenz> i think i know what the problem is
165: [03:14:26] <Colin[pi]> it's between the keyboard and the chair
166: [03:14:27] <Colin[pi]> ;D
167: [03:16:18] * jrthomer quit (Read error: Connection reset by peer)
168: [03:16:25] <geekdenz> it always is :-P
169: [03:16:39] <Colin[pi]> I have that problem all the time ;)
170: [03:16:54] * jrthomer has joined #silverstripe
171: [03:17:18] <geekdenz> anyway i need to go, will need to sort this out later. cheers
172: [03:17:25] * geekdenz has left #silverstripe
173: [03:17:45] * antmas has joined #silverstripe
174: [03:18:13] * nicolaas has joined #silverstripe
175: [03:23:14] <Colin[pi]> simon_w: booking system is handling concurrency like a champ
176: [03:23:25] <Colin[pi]> LOCK ALL THE THINGS
177: [03:26:34] <simon_w> Eww, locks :p
178: [03:26:35] <zippy__> oh absolute positioning, how I love thee!
179: [03:29:04] <antmas> :O
180: [03:29:05] <antmas> simon_w: !
181: [03:29:10] <antmas> simon_w: congrats
182: [03:29:13] <antmas> :D
183: [03:29:42] <simon_w> I have been summoned by the fiancee!
184: [03:29:58] <antmas> so, anyone keen to help me decode some json? :D you will get a free high5 o/
185: [03:31:14] <antmas> :D
186: [03:31:14] <antmas> don't leave me hangin o-
187: [03:31:20] <Stomach> json_decode($five_dollars_please, true)
188: [03:32:47] * antmas passes Stomach silly money
189: [03:33:08] <Stomach> wooo delicious
190: [03:34:05] <antmas> do I wan't to decode the field? or the DO it's saving to?
191: [03:40:35] * antmas quit (Quit: Page closed)
192: [04:02:10] * nickmolhoek quit (Quit: nickmolhoek)
193: [04:03:18] <Colin[pi]> how the heck does the file class in SS not have a single mention of MIME type?
194: [04:03:57] <guzzlefry> I thought it did...
195: [04:04:02] <guzzlefry> Colin[pi]: What are you looking for specifically?
196: [04:04:05] <Colin[pi]> not that I can see
197: [04:04:15] <Colin[pi]> just thought there would be a method to ask for a file's mime type
198: [04:04:31] <Tanger> Hey guys, is $hide_ancestor still a static in 3.1?
199: [04:05:21] <guzzlefry> Colin[pi]: Looks like get_app_type() is the closest...
200: [04:06:31] <Colin[pi]> guzzlefry: where is this?
201: [04:07:20] <Bollig|DesignCty> Tanger: private static $hide_ancestor on SiteTree
202: [04:07:23] <guzzlefry> appCategory() seems to be an alias.
203: [04:07:56] <guzzlefry> Colin[pi]: Basically checks a preset list of extensions/categories in the code, and tells you which category the extension is (music/compression/video/etc)
204: [04:07:56] <Tanger> Bollig|DesignCity: Thanks man
205: [04:08:10] <guzzlefry> File::appCategory()
206: [04:09:12] * nicolaas quit (Ping timeout: 252 seconds)
207: [04:09:15] <guzzlefry> Colin[pi]: http://us2.php.net/manual/en/function.finfo-file.php or mime_content_type() as well.
208: [04:09:36] * cloph_away has joined #silverstripe
209: [04:09:41] * cloph quit (Ping timeout: 248 seconds)
210: [04:12:20] <Colin[pi]> ta guzzlefry
211: [04:15:34] * Stomach quit (Ping timeout: 260 seconds)
212: [04:19:38] <Colin[pi]> this payment gateway... I swear, such nubs
213: [04:20:08] <Colin[pi]> "congrats, your app has been approved! we will send your client id in the next few days"
214: [04:20:20] <Colin[pi]> (client id is required to even test the thing)
215: [04:56:58] <Tanger> Colin[pi]: Apple dev does similar stuff. Except they charge you for a yearly subscription before you can even test it
216: [04:58:03] * FrozenFire quit (Quit: There's no place like ~)
217: [04:58:25] * FrozenFire has joined #silverstripe
218: [05:02:18] <simon_w> Tanger, nope. You only need to become a developer to run on a device.
219: [05:02:18] * FrozenFire quit (Excess Flood)
220: [05:02:35] <simon_w> For OSX dev, you only need it for gatekeeper reasons or the MAS
221: [05:02:44] * FrozenFire has joined #silverstripe
222: [05:19:11] <Colin[pi]> http://clientsfromhell.net/post/36538440173/meanwhile-in-an-alternate-universe
223: [05:29:11] * travis-ci has joined #silverstripe
224: [05:29:11] <travis-ci> [travis-ci] sminnee/sapphire#34 (fix-forum-templates - f6b72a2 : Sam Minnee): The build failed.
225: [05:29:11] <travis-ci> [travis-ci] Change view : https://github.com/sminnee/sapphire/compare/8b3d74ed0f3a^...f6b72a20919c
226: [05:29:11] <travis-ci> [travis-ci] Build details : http://travis-ci.org/sminnee/sapphire/builds/19236337
227: [05:29:11] * travis-ci has left #silverstripe
228: [05:29:56] <Tanger> simon_w: Yeah, but when I last developed an IOS app you HAD to pay a subscription to become a developer
229: [05:48:14] * ss23 quit (Ping timeout: 264 seconds)
230: [05:48:25] * ss23 has joined #silverstripe
231: [05:52:22] * zippy__ quit (Ping timeout: 252 seconds)
232: [05:56:34] * zippy__ has joined #silverstripe
233: [06:00:40] <guzzlefry> ss23: Was it you asking about a HHVM vagrant thingy?
234: [06:02:34] * joelpittet quit ()
235: [06:02:38] * zippy__ quit (Ping timeout: 246 seconds)
236: [06:14:46] * eq has joined #silverstripe
237: [06:14:53] <eq> cbb
238: [06:14:54] <eq> cv
239: [06:14:55] <eq> need
240: [06:15:34] <eq> hello
241: [06:19:24] <simon_w> Hello
242: [06:21:31] * Azure quit (Quit: My MBP went to sleep.)
243: [06:24:14] * Azure has joined #silverstripe
244: [06:53:15] * eq quit (Quit: Page closed)
245: [07:04:32] * SightUnseen has joined #silverstripe
246: [07:04:36] * SightUnseen has left #silverstripe
247: [07:49:09] * Shrike_Finland has joined #silverstripe
248: [07:53:41] * Shrike_Finland quit (Client Quit)
249: [07:56:06] * kk_ has joined #silverstripe
250: [08:05:03] <kk_> Zauberfisch: sorry, had to leave yesterday.. i tested it now and outside it does not work.. what could be the problem for a not working <%t %>
251: [08:07:51] <wmk> g'morning
252: [08:08:05] * Shrike_Finland has joined #silverstripe
253: [08:09:19] <kk_> wmk: good morning
254: [08:10:03] <wmk> if i want to change some values onBeforeWrite, where do i get the new data? Is it $this->MyValue or another variable?
255: [08:10:35] <ss23> guzzlefry: Someone asked me to make one, but I didn't ask really :O
256: [08:10:58] <kk_> i found out that <%t namespace.ENTITY "lala" %> does not work. but <%t namespace.entity "lala" %> does work.. WHY?
257: [08:11:17] <guzzlefry> ss23: jtreminio added support for puphpet.com, although it's not live yet. And I think it only works for CentOS at the moment.
258: [08:11:35] <wmk> kk, what's your entity in your lang file?
259: [08:11:45] <wmk> namespace.ENTITY or namespace.entity ?
260: [08:12:09] <kk_> wmk: namespace.ENTITY is in my lang file.
261: [08:12:27] <kk_> it finds the german string, but not the english one
262: [08:14:00] <kk_> wmk: ok, my fault.. the lowercase entity does not work neither..
263: [08:14:18] <guzzlefry> isn't it <%_t
264: [08:14:20] * guzzlefry checks
265: [08:15:30] <kk_> guzzlefry: nope.. the "_T" function is just for php.. :-(
266: [08:16:20] <wmk> kk ;)
267: [08:16:57] <guzzlefry> ah
268: [08:18:39] <kk_> wmk: but the root problem is still there: the german string is found properly but the english one is not...
269: [08:20:04] * ARNHOE has joined #silverstripe
270: [08:23:37] <simon_w> kk_, <% _t('namespace.ENTITY', 'lala') %>
271: [08:24:26] <simon_w> ss23, ARE YOU GOING TO TELL ME WHY I NEEDED TO LOGIN ON MY HOLIDAY YET?
272: [08:25:21] <guzzlefry> wait
273: [08:25:25] <guzzlefry> simon_w: So it is _t?!
274: [08:25:37] <ss23> ;_;
275: [08:25:43] <ss23> simon_w: No, that's what it tells *me*
276: [08:25:51] <ss23> simon_w: I wanted to read what you said, but it told me I had to log in :(
277: [08:25:51] <simon_w> guzzlefry, yes
278: [08:26:01] <simon_w> ss23, huh, it was supposed to be public
279: [08:26:25] <ss23> simon_w: Facebook isn't known for having a clear way of dealing with users who don't have accounts :O
280: [08:26:40] <simon_w> ss23, public things used to be world accessible (no login)
281: [08:26:47] <ss23> aw yep
282: [08:27:09] <guzzlefry> simon_w: http://docs.silverstripe.org/framework/en/topics/i18n#usage-in-template-files That shows <% t params %> now?
283: [08:27:31] <kk_> this link says <%t %> http://doc.silverstripe.org/framework/en/topics/i18n
284: [08:27:42] <simon_w> ss23, http://paste-app.net/m/yby-1p6xh
285: [08:27:48] <guzzlefry> maybe broken docs
286: [08:28:39] <simon_w> https://github.com/silverstripe/silverstripe-framework/blob/3.1/admin/templates/Includes/CMSLoadingScreen.ss uses _t
287: [08:29:03] <guzzlefry> odd
288: [08:29:32] <simon_w> The template parser doesn't support t
289: [08:30:16] <simon_w> <% t is supposed to work, but may be broken since it's not used
290: [08:30:40] <ss23> awwww
291: [08:30:42] <ss23> simon_w: So nice :D
292: [08:30:49] <kk_> now i am totaly confused... why <%t does find my german string??
293: [08:30:56] <simon_w> ss23, and we get the ring back tomorrow :)
294: [08:31:22] <simon_w> kk_, may not be parsing the entity properly? (assuming the german string's the default one)
295: [08:35:11] <kk_> simon_w: yes german is the default.. i have deleted all the entitys from the english one.. but it does not find the entity.. *aahhh*
296: [08:35:44] <simon_w> kk_, are other english strings being found? (Remember, it's i18n, not Translatable)
297: [08:38:02] * openbees has joined #silverstripe
298: [08:38:15] * Colin[pi] quit (Remote host closed the connection)
299: [08:38:32] <wmk> kk_, which silverstripe version?
300: [08:38:37] * Colin[pi] has joined #silverstripe
301: [08:39:25] <openbees> anybody around with experience of Varnish with SS ? my forms are not working with security tokens :(
302: [08:39:55] <ss23> openbees: You'll need to not cache pages with security tokens :O
303: [08:40:01] <simon_w> openbees, don't cache forms, or make sure they're ones you can turn the security token off for
304: [08:40:41] <wmk> kk_, something like <%t NewsHolderPage.DOWNLOADABLE "Download" %> works in SS 3.1
305: [08:41:29] <kk_> wmk, i am using ss 3.1.. what i have to put in my config?
306: [08:41:45] <openbees> ss23 .. that seems to be easiest solution ! simon_w .. probably you are suggesting to use Varnish ESI ?
307: [08:42:11] * started has joined #silverstripe
308: [08:42:51] <simon_w> openbees, assuming that's the partial caching thing, you could use that though would have to change the form handler to return the HTML on a GET
309: [08:43:15] <simon_w> Though I was more suggesting turning off the security token on forms that don't need it, so you can cache a little more
310: [08:43:22] <started> how can i change display of mi date from "6 days ago " to “date” like: 19/02/2014 00:04:00
311: [08:44:18] <openbees> ss23 simon_w thank you guys !
312: [08:44:19] <simon_w> started, where?
313: [08:44:58] * started has left #silverstripe
314: [08:46:18] <wmk> kk_ normally it works out of the box
315: [08:48:36] * amphi_ has joined #silverstripe
316: [08:48:43] <guzzlefry> night folks
317: [08:50:28] <kk_> wmk: damn it....
318: [08:54:47] <wmk> kk_ did you see my PM?
319: [08:55:36] <kk_> wmk, yes. :-)
320: [08:59:18] * guci0 has joined #silverstripe
321: [08:59:26] <guci0> Hello World!
322: [08:59:52] <ss23> Hallo guci0!
323: [09:02:13] <guci0> :)))
324: [09:02:21] <guci0> I have problem :)
325: [09:03:02] <wmk> guci0, who hasn't?
326: [09:05:09] <kk_> ^^
327: [09:06:35] * micmania1 has joined #silverstripe
328: [09:12:14] <guci0> how to override BreadCrumbs template in 3.1? Smt doesn't work :(
329: [09:12:40] <micmania1> quci0: I think its called BreadCrumbsList.ss
330: [09:12:55] <micmania1> Just create a template with that name.
331: [09:13:03] <guci0> sec.
332: [09:13:22] * pyxielisk has joined #silverstripe
333: [09:14:48] <micmania1> quci0: Just checked and your template should be BreadcrumbsTemplate.ss
334: [09:14:57] * Shashitechno has joined #silverstripe
335: [09:15:49] <guci0> Hmmm...
336: [09:16:55] * MrGuits has joined #silverstripe
337: [09:18:00] <guci0> I have two template BreadCrumbs.ss (wrapper) with $BreadCrumbs and second is BreadCrumbsTemplate.ss with all logical "looping"... I forget something?
338: [09:18:48] <micmania1> should be a lower-case 'c' in BreadcrumbsTemplate.ss - also remember to flush
339: [09:18:56] <guci0> wrr :)
340: [09:20:07] * Guits quit (Ping timeout: 260 seconds)
341: [09:21:03] * Shashitechno quit (Ping timeout: 245 seconds)
342: [09:21:53] * amphi_ quit (Ping timeout: 245 seconds)
343: [09:23:24] <guci0> won't work... Return main template form cms/templates name in both case is the same, now...
344: [09:23:54] * openbees quit (Ping timeout: 265 seconds)
345: [09:24:01] <micmania1> where are you putting your template?
346: [09:24:20] <guci0> Ok, works
347: [09:24:34] <guci0> my BreadCrumbsTemplate.ss was into includes
348: [09:24:58] <guci0> inside templates works fine
349: [09:25:16] <guci0> micmania1: thanks!
350: [09:25:29] <micmania1> :)
351: [09:26:32] * kinglozzer has joined #silverstripe
352: [09:27:08] <kinglozzer> svandragt: Just saw your forum post, have you investigated if it's possible to use Object->afterExtending(); ?
353: [09:27:13] <Zauberfisch> simon_w kk_ <%t Foo.Bar 'Foobar' %> works
354: [09:27:18] <Zauberfisch> I use it all the time
355: [09:27:21] * Shrike_Finland quit (Quit: Leaving.)
356: [09:31:09] * openbees has joined #silverstripe
357: [09:31:37] <svandragt> kinglozzer: Ah no wasn't aware of that. I'm trying to use the config.yml to load the extension before mysite which results in the extension's onAfterInit() method to run after other onAfterInits() in other modules.
358: [09:32:29] <svandragt> kinglozzer: could do both though I will see if it's necessary after testing
359: [09:33:36] * ocm has joined #silverstripe
360: [09:34:59] <kinglozzer> svandragt: That should run after all onAfterInit()s have been run (though not necessarily after any other ->afterExtending('onAfterInit')s, but those would be rare). Not sure if/how you can apply it with an extension
361: [09:35:51] <kinglozzer> I guess you could do onAfterInit() { $this->owner->afterExtending('onAfterInit', function(){...} ); }
362: [09:37:19] <svandragt> kinglozzer: ah that's clever
363: [09:37:56] * UncleCheese has joined #silverstripe
364: [09:37:58] <svandragt> kinglozzer: I don't want to rely on things that other modules could do also ;-) using the configuration system's before/after rules at least I know that there will be a determined order.
365: [09:39:01] <kinglozzer> Yeah I think that's the best method :)
366: [09:40:11] * fmu453 has joined #silverstripe
367: [09:40:28] <svandragt> kinglozzer: Although I don't understand that if two extensions implement onAfterInit() the one that is EARLIER in the configuration process is called LAST. Should I file that as a bug?
368: [09:41:25] * Tanger quit (Quit: Tanger)
369: [09:42:30] * Shrike_Finland has joined #silverstripe
370: [09:42:46] <kinglozzer> svandragt: Hmm, I'm not sure if it could be resolved anyway - that order would be correct for onBeforeInit() in those extensions
371: [09:43:37] <svandragt> kinglozzer: probably more complicated than applying the onAfterInit extensions in reverse order.
372: [09:44:26] * openbees quit (Ping timeout: 245 seconds)
373: [09:44:38] <kinglozzer> if (stristr($method, 'after') { array_reverse($this->extension_instances)... :P
374: [09:44:58] <pyxielisk> urgh, fuck'n sainsbury's employees.
375: [09:45:02] <pyxielisk> can't fucking count.
376: [09:45:19] <kinglozzer> pyxielisk: HEY I USED TO WORK FOR THEM :'(
377: [09:45:28] <pyxielisk> if something costs 6.60, and you give them a twenty
378: [09:45:30] <kinglozzer> Back in the day
379: [09:45:41] <pyxielisk> AND 60p
380: [09:45:49] <kinglozzer> Hahahaha yeah, they can't deal with it
381: [09:45:49] <pyxielisk> sure, I'd expect 14 back.
382: [09:45:52] * simon_w quit (Quit: This computer has gone to sleep)
383: [09:46:09] <pyxielisk> but when you give them 1.60, because you just want notes... and you get 14 back...
384: [09:46:16] <pyxielisk> that's a quid down the drain.
385: [09:46:21] <pyxielisk> and no fucking reciept.
386: [09:46:49] <pyxielisk> although a reciept doesn't proove how much you handed over or how much you got back at all... so I dunno.
387: [09:47:10] <pyxielisk> kinglozzer: yeh, but the difference being that i'm sure you're smart enough to be able to do basic math in your head.
388: [09:47:11] * zippy__ has joined #silverstripe
389: [09:47:47] <kinglozzer> pyxielisk: Yeah :P even if you're too stupid you can enter the amount that the customer handed over to you
390: [09:47:52] <pyxielisk> I got short changed a quid and the food I bought is crap.
391: [09:48:04] <pyxielisk> kinglozzer: yeah, apparently not.
392: [09:48:11] <pyxielisk> unless she pocketed the quid...
393: [09:48:17] <pyxielisk> I dunno.
394: [09:48:49] <pyxielisk> to be fair I shouldn't have been so stupid as to walk off at that point, having gotten coin back I should have counted.
395: [09:49:12] <pyxielisk> but it's all "next!, next!, next!" you feel like standing there is a bad thing to do.
396: [09:49:32] * fmu453 quit ()
397: [09:51:11] <pyxielisk> normally I'd be all "meh only a quid, can't get much for that", except here you can. and when you're still spending foreign currency because the banks are so fucking retarded you've really lost twice as much.
398: [09:51:43] <pyxielisk> for some reason it's got me a bit fired up :<
399: [09:54:08] <kinglozzer> pyxielisk: At the store I worked at, if anyone went to customer services and argued over a few quid they'd just give it to them
400: [09:54:16] <kinglozzer> No idea if other stores were like that tho
401: [09:54:25] <pyxielisk> no customer services in this place. too small.
402: [09:54:35] <kinglozzer> Ah
403: [09:54:44] <pyxielisk> just a local in a train station
404: [09:58:40] <pyxielisk> urgh zend studio, stop being shit at life.
405: [09:58:53] <pyxielisk> I know better, I'm the user. Stop assuming shit (WRONGLY).
406: [09:59:12] <wmk> pyxielisk, try phpstorm
407: [10:02:09] <pyxielisk> nah, I'm writing JS
408: [10:02:22] <pyxielisk> well, fighting with jqueryui
409: [10:05:36] * UncleCheese quit (Quit: UncleCheese)
410: [10:20:49] * travis-ci has joined #silverstripe
411: [10:20:49] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1996 (master - d6da92e : Ingo Schommer): The build passed.
412: [10:20:49] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/d8361f9d3f2a...d6da92edeb96
413: [10:20:49] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/19246592
414: [10:20:49] * travis-ci has left #silverstripe
415: [10:23:35] <micmania1> Stop the planet. I'm getting off.
416: [10:24:50] <kinglozzer> micmania1: Wordpress?
417: [10:25:03] <micmania1> worse.
418: [10:25:10] <kinglozzer> IE8 bug in wordpress?
419: [10:25:20] <micmania1> I'm to embarresed to even say what i've been asked to do this morning. Its fucking shameful
420: [10:25:35] <kinglozzer> Well, if you've been asked then someone else is to blame :P
421: [10:26:03] <ss23> micmania1: Come on, we've heard it all
422: [10:26:10] <ss23> micmania1: Spill the beans
423: [10:26:21] <micmania1> no lol
424: [10:26:41] <ss23> micmania1: ... I could get you on the super secret security preannounce list, if you share >.>
425: [10:26:42] <micmania1> but to give you an ideas, the same client asked if we could block his competitors IP addresses so they couldn't access his website
426: [10:26:44] * ss23 looks around nervously
427: [10:26:46] <micmania1> and wouldn't take no for an answer.
428: [10:26:48] <ss23> rofl
429: [10:26:51] <micmania1> this is worse than that.
430: [10:26:54] <ss23> I'm doing worse atm
431: [10:27:08] <ss23> Working on a site that does popup adverts when you click
432: [10:27:14] <micmania1> I just found you can bypass a login using ?bypass=true
433: [10:27:21] <micmania1> beat that.
434: [10:27:26] <ss23> hahah
435: [10:27:26] <ss23> XD
436: [10:27:31] <ss23> sql_engine.php?
437: [10:27:32] <ss23> :P
438: [10:27:46] <micmania1> its a cake php app
439: [10:28:11] <micmania1> they want a specifc login page for a specific user, but they don't want their login details stored in the database!
440: [10:28:32] <ss23> weirdos
441: [10:28:32] <ss23> :O
442: [10:28:55] <micmania1> yeah, and instead of telling them no or quoting high, we've given an hour for the job and just said yes.
443: [10:28:59] <micmania1> now i'm stuck with it.
444: [10:34:23] <micmania1> if ((isset($_COOKIE['resources_user_id']) && ($_COOKIE['resources_user_id'] != "")) || ((isset($_GET['bypass'])) && ($_GET['bypass'] == "true")))
445: [10:34:34] <micmania1> I'm going to end someone today.
446: [10:36:15] <svandragt> if ($username == $password) then redirect to logged in page lol
447: [10:37:05] * violetina has joined #silverstripe
448: [10:39:56] <micmania1> ha!
449: [10:43:13] <ss23> lol micmania1
450: [10:43:16] <ss23> A+ would work on this app
451: [10:43:24] <svandragt> Feedback welcome: https://github.com/svandragt/silverstripe-svdrequirements
452: [10:43:28] <ss23> micmania1: You konw, I can give you the budget to fix it, if you want! :D
453: [10:43:30] <ss23> Just send me a PM ;)
454: [10:49:54] <pyxielisk> it's the fuck'n J word isn't it!?
455: [10:50:37] <pyxielisk> oh, cake php.
456: [10:50:40] <ss23> haha
457: [10:50:44] <pyxielisk> I'm late to the party :<
458: [10:50:50] <ocm> hm, how can I get a value from the Group table in ss3.1?
459: [10:51:03] <ss23> Yeah, Joomla comes with bypass built in, doesn't need a bad dev to add it! right? :D
460: [10:51:34] <pyxielisk> [10:27] <@ss23> Working on a site that does popup adverts when you click
461: [10:51:36] <pyxielisk> porn!?
462: [10:53:05] <ocm> I am trying to do a DB query, but it returns nothing (on a custom group field)
463: [10:53:12] <ocm> like this: DB::query("SELECT ClientDashboard FROM Group WHERE ID =". $group)->value();
464: [10:53:22] <pyxielisk> svandragt: I'm really really confused as to why.
465: [10:54:11] <pyxielisk> ocm: what is $group? Seems more like you'd need $group->ID
466: [10:54:30] <ocm> ah $group is the group id already
467: [10:54:55] <ocm> passing an array of group ids as group
468: [10:55:10] <ocm> so $group is actually $group->ID
469: [10:55:58] <kinglozzer> svandragt: As it's a convenience thing, I'd make $class the second argument, and have it optional with a default of the owner's class
470: [10:56:47] * zippy__ quit (Quit: zippy__)
471: [10:56:58] <pyxielisk> ocm: an array? in that case you'd need IN (".implode($group)."...
472: [10:59:41] <svandragt> kinglozzer: thanks for the feedback, it's not possible to do that because it has to pass the actual class name of the method it's run from, not the final class name (ie if it's ran from Page and HomePage extends Page, using the owner's class would return HomePage_Controller instead of Page_Controller
473: [11:03:41] <kinglozzer> svandragt: Is that not intended? Thought if you ran it from HomePage, you'd want HomePage_Controller as the class name so it's called homepage_contoller.js?
474: [11:03:49] <ocm> pyxielisk, it is not an array anymore, $group contains a single value (an ID), however the query doesnt return anything back
475: [11:04:41] <ocm> i.e. when I change $group to an ID it still gives nothing back (like DB::query("SELECT ClientDashboard FROM Group WHERE ID = '3' ")->value(); )
476: [11:05:33] <svandragt> kinglozzer: if there is init methods in the parent they should have the parent controller classname because then they will be cached for any visits to page types that extend from it. ie adding a dozen css + js to both Page and HomePage results in 4 files, 1 per file type per class.
477: [11:06:30] <svandragt> kinglozzer: page_controller.css; homepage_controller.css; page_controller.js; homepage_controller.js
478: [11:08:06] <pyxielisk> ocm: could it be simply that there are no results for this query?
479: [11:08:30] <ocm> no, when I run the query in phpmyadmin it returns the expected
480: [11:08:35] <kinglozzer> svandragt: I'm lost :P I'll take your word for it
481: [11:09:07] * Error404NotFound has joined #silverstripe
482: [11:09:21] <ocm> so this query: "SELECT `ClientDashboard` FROM `group` WHERE `ID` = 3;" returns something
483: [11:10:21] <pyxielisk> so what if you die(var_dump(DB::Query("SELECT ClientDashboard FROM Group WHERE ID = '3' ")));
484: [11:10:39] <svandragt> kinglozzer: hehe sorry I'm having trouble explaining it, if I find a way to take the $class argument away whilst it still works in Extensions I will.
485: [11:10:53] <pyxielisk> svandragt: I still don't get why.
486: [11:12:09] <ocm> pyxielisk, I get an syntax error. however I dont see why :o
487: [11:12:13] <ocm> Couldn't run query: SELECT ClientDashboard FROM Group WHERE ID = 3 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Group WHERE ID = 3' at line 1
488: [11:12:33] <pyxielisk> ocm: syntax error from PHP or from mysql?
489: [11:12:38] <pyxielisk> oh
490: [11:12:52] <pyxielisk> becasue ANSI mode probably.
491: [11:12:58] <pyxielisk> I was going to mention earlier.
492: [11:13:37] <pyxielisk> SELECT "ClientDashboard" FROM "Group" WHERE "ID" = '3'
493: [11:13:44] <pyxielisk> perhaps. I dunno exactly
494: [11:14:11] <pyxielisk> most likely because it's seeing the Group talbe name as a fuckof of the "GROUP BY" delcaration
495: [11:14:19] <pyxielisk> table*
496: [11:14:49] <ocm> thnx pyxielisk! I got it working now
497: [11:15:05] <ocm> putting ` around the values seems to fix the problem
498: [11:15:12] <ocm> SELECT `ClientDashboard` FROM `group` WHERE `ID` = 3
499: [11:15:16] <svandragt> pyxielisk: If I'm using get_class(), get_called_class() or $this->owner->ClassName then the value will not be the "extended class name" even though the code is not in that init method becasuse of class extensions
500: [11:15:17] <ocm> is working
501: [11:15:25] <pyxielisk> ocm: no
502: [11:15:30] <pyxielisk> no backticks, doublequotes.
503: [11:15:46] <pyxielisk> backticks are stupid
504: [11:16:00] <svandragt> pyxielisk: this is not good because now for a HomePage, SectionPage, WhateverPage you are downloading all the Page requirements AGAIN as part of the controller's combined files.
505: [11:16:00] <pyxielisk> SS puts MySQL into ANSI mode.
506: [11:16:21] <pyxielisk> svandragt: no I mean I'm not sure what your module is for.
507: [11:16:35] <ocm> what is the difference between backticks and doublequotes? (might be a n00b question, but I honestly don't know)
508: [11:16:45] <pyxielisk> ocm: ANSI
509: [11:17:27] <svandragt> pyxielisk: To allow module authors to add their requirements to page controllers, keeping the advantages of Requirement::combine_files()
510: [11:18:13] <pyxielisk> ok. I maybe get it.
511: [11:18:53] <pyxielisk> min stuff more.
512: [11:18:56] <pyxielisk> got it.
513: [11:19:38] <svandragt> Say a HomePage has a Gallery, which comes with its own javascript and css. now if you already use ::combine_files() you won't be able to add those requirements to it. so that could be multiple extra ::css and ::javascript calls. now multiply this for every extension
514: [11:20:05] <svandragt> and you end up with dozens of css and javascript like the CMS module for example
515: [11:20:44] <svandragt> Anyways I'll shut up now :P
516: [11:23:57] <pyxielisk> svandragt: generally the gallery should encapsulate it's own css and javascript calls in combine_files, rather than adding them to a parent (separate set) of files.
517: [11:24:20] <pyxielisk> otherwise you download a brand new script for every page that has something different on it, instead of being able to cache stuff.
518: [11:24:48] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
519: [11:24:59] <pyxielisk> eg. commonly people combine_files to libraries and stuff (jquery and plugins used site wide), then combine extra things (eg all gallery code) so that the gallery stuff only need be included on the gallery page.
520: [11:25:04] <pyxielisk> as a single encapsulated unit
521: [11:25:23] <svandragt> pyxielisk: if a Page has a Gallery then why not include it in Page
522: [11:25:31] <pyxielisk> because not all pages are galleries
523: [11:27:13] <pyxielisk> the idea of minifying files is to reduce the size. but if you minify every single bit of code your site will ever need on any page into a single file, it's going to be large anyway.
524: [11:27:56] <svandragt> that's what I was trying to address but I guess I've done the balance wrong the other way. hmm
525: [11:28:07] <pyxielisk> well not necessarilly
526: [11:28:18] <pyxielisk> depends on the use case, etc.
527: [11:28:33] <pyxielisk> besides, making a module and exploring the SS system in more depth is never a bad thing ;)
528: [11:30:47] <svandragt> meh ah well live and learn :)
529: [11:32:12] <pyxielisk> Indeed :)
530: [11:35:29] * micmania1 quit (Ping timeout: 246 seconds)
531: [11:43:51] * micmania2 has joined #silverstripe
532: [12:01:27] * micmania1 has joined #silverstripe
533: [12:19:51] * learner has joined #silverstripe
534: [12:24:07] <learner> In cms, long list view is displayed with some column.how can i remove some column and change display format of column date having sorted descending???
535: [12:25:41] * Shrike_Finland quit (Quit: Leaving.)
536: [12:30:58] <wmk> learner, i bet you can. never did it.
537: [12:31:11] <wmk> which version of ss?
538: [12:31:21] <learner> ss3.1
539: [12:33:52] * Colin[pi] quit ()
540: [12:34:35] <wmk> learner, try to edit SiteTree.default_sort in mysite/_config/config.yml
541: [12:38:24] <learner> not getting you?
542: [12:39:19] <wmk> well, you have to look where in /cms/ the output is generated.
543: [12:39:33] <wmk> each dataobject has some defaults, e.g. for default sorting.
544: [12:39:44] <wmk> this can be globally changed via config API
545: [12:40:00] <wmk> this way you could change SiteTree's $default_sort
546: [12:40:30] <learner> oh...
547: [12:40:45] <Zauberfisch> learner: first you should tell us what list you are talking about
548: [12:40:46] <learner> this i have already tried ....but not working.........
549: [12:41:31] <Zauberfisch> learner: first thinkg you have to learn is how to ask questions: give details and context. we need to be able to understand what you are trying to do, where you are doing it. and what you have tried already
550: [12:41:43] <Zauberfisch> to me, your question can mean basicly anything
551: [12:42:34] <learner> i have already asked a proper question .......In cms, long list view is displayed with some column.how can i remove some column and change display format of column date having sorted descending???
552: [12:42:48] <kinglozzer> leaner: That's not a proper question
553: [12:42:50] <kinglozzer> Where in the CMS?
554: [12:42:54] <kinglozzer> SiteTree, ModelAdmin ?
555: [12:43:24] <Zauberfisch> gridfield?
556: [12:43:30] <Zauberfisch> sidebar?
557: [12:43:35] <Zauberfisch> sitetree as gridfield?
558: [12:43:45] <kinglozzer> Gridfield as SiteTree?
559: [12:43:46] * kinglozzer wut
560: [12:43:48] <kinglozzer> :P
561: [12:43:51] <Zauberfisch> kinglozzer: :D
562: [12:44:07] <learner> thankx for describing me the parts of cms
563: [12:44:18] <Zauberfisch> you are welcome
564: [12:44:29] <Zauberfisch> perhaps, now you could specify which part of the CMS you mean
565: [12:44:37] <kinglozzer> leaner: We're trying to help, just need a bit more info :)
566: [12:45:06] <learner> actually i dont know which part is it called...
567: [12:45:55] <learner> model admin ...i guess
568: [12:46:01] <kinglozzer> leaner: Is it the 'tree' view for pages? Or in it's own tab on the left?
569: [12:46:11] <learner> yes
570: [12:46:28] * Shrike_Finland has joined #silverstripe
571: [12:46:51] <kinglozzer> leaner: I assume you mean ModelAdmin. Use $summary_fields on your model to pick columns. You can use $default_sort = "Date DESC" to sort by date by default. To format the date, use "Date.Nice" in your $summary_fields array
572: [12:47:17] <Zauberfisch> and $searchable_fields to define the text fields for search in the sidebar
573: [12:47:33] <Zauberfisch> all those 3 variables are private statics, defined on the DataObject
574: [12:47:35] <Zauberfisch> so for example:
575: [12:47:45] <Zauberfisch> class Foobar extends DataObject {
576: [12:48:06] <Zauberfisch> private static $summary_fields = array('Title', 'Content');
577: [12:48:18] <Zauberfisch> private static $default_sort = 'Date DESC';
578: [12:48:20] <Zauberfisch> }
579: [12:48:36] <learner> oh ...this ,i have already tried.but not working
580: [12:48:57] <kinglozzer> learner: Did you flush?
581: [12:49:09] <Zauberfisch> private static variables are cached, so you need to ?flush=1
582: [12:50:58] * Error404NotFound quit (Read error: Connection reset by peer)
583: [12:52:39] <learner> flushed..but not working...
584: [12:55:38] <Zauberfisch> could you take a screenshot of your CMS and draw a mark on the section that you want to change
585: [12:55:47] <Zauberfisch> just to make sure we are talking about the same thing
586: [12:57:56] <learner> yes
587: [12:59:33] * Error404NotFound has joined #silverstripe
588: [12:59:43] <wmk> yeah, summary_fields. didn't find them before
589: [13:00:25] <learner> i have tried summary_fields too
590: [13:04:48] * learner quit (Ping timeout: 245 seconds)
591: [13:10:53] * UndefinedOffset has joined #silverstripe
592: [13:12:48] * Error404NotFound quit (Read error: Connection reset by peer)
593: [13:13:16] * Error404NotFound has joined #silverstripe
594: [13:13:36] * DimiStripe has joined #silverstripe
595: [13:15:02] <DimiStripe> HI guys, Im getting several HasManyList which i'm getting from relation , how can I combine those ? (they are same type, its like im getting them filtered and need making one HasManyList from several )
596: [13:15:07] <DimiStripe> anyone can give me a hint ?
597: [13:15:44] <DimiStripe> basically this would go to checkboxSet as one map later one , so any similar approach would do
598: [13:18:38] <Zauberfisch> DimiStripe: I don't think this would work with a HasManyList
599: [13:18:48] <Zauberfisch> you would need to merge the entries
600: [13:18:59] <Zauberfisch> if you are fine with an array list, than its eays
601: [13:19:02] <Zauberfisch> *easy
602: [13:19:09] <Zauberfisch> $l = ArrayList::create();
603: [13:19:19] <Zauberfisch> $l->merge($this->HasManyList1);
604: [13:19:21] <Zauberfisch> $l->merge($this->HasManyList2);
605: [13:19:23] <Zauberfisch> $l->merge($this->HasManyList3);
606: [13:19:34] <Zauberfisch> $map = $l->map();
607: [13:19:41] <Zauberfisch> something like this
608: [13:20:53] * silver_learner has joined #silverstripe
609: [13:21:05] <DimiStripe> hmm, will give it a try now :)
610: [13:27:23] <DimiStripe> Zauberfisch: Thanks - worked like a charm :)
611: [13:28:32] <DimiStripe> Zauberfisch: Maybe you know if i would write a sutom CheckBoxSet field, what would be the best way of inserting cutom text in between groups which Im mergin ?
612: [13:28:59] <DimiStripe> So that when checkboxset is displayed it would show $this->HasManyList1
613: [13:29:06] <DimiStripe> then some text, or hr
614: [13:29:13] <DimiStripe> then $this->HasManyList2
615: [13:29:16] <wmk> DimiStripe, why not a fieldgrout containing a checkboxset for each group?
616: [13:29:25] <wmk> fieldgroup
617: [13:30:04] <DimiStripe> all those HasManyLIsts should be bounded to one relation many_many , but be separated (filtered) by groups
618: [13:30:35] <DimiStripe> is it achievable with fieldgroup ?
619: [13:30:43] <Zauberfisch> not that easily
620: [13:30:46] <wmk> or compositefield?
621: [13:30:56] <Zauberfisch> you would need to do custom stuff either way
622: [13:31:11] <Zauberfisch> composite field and fieldgroup are both just wappers around fields
623: [13:31:21] <Zauberfisch> so each field inside still has to have its own name
624: [13:31:29] <Zauberfisch> and a name must be unique
625: [13:31:34] <wmk> ah, missed that part
626: [13:31:43] <Zauberfisch> so you can't have 3 fields with the name of the many_many relation
627: [13:31:54] <DimiStripe> yes
628: [13:32:01] <Zauberfisch> so 2 ways I can see this done:
629: [13:32:13] <Zauberfisch> - subclass checkboxsetfield
630: [13:32:42] * Error404NotFound quit (Read error: Connection reset by peer)
631: [13:32:51] <Zauberfisch> - use fieldgroup with 3 checkboxfields, and hack fix it by mergin the 3 arrys in onbefore write
632: [13:33:02] <Zauberfisch> not sure if that hacky way would actually work
633: [13:33:12] <wmk> should do
634: [13:33:15] <DimiStripe> I'm already sublassing chackboxfield
635: [13:33:26] <Zauberfisch> good choice
636: [13:34:05] <DimiStripe> basically i only need a way of adding lines with titles for each set . Is it possible injecting one object maybe in the map function somehow ?
637: [13:34:28] <DimiStripe> i mean i when I do merge , insert smth in betwean each merge maybe ?
638: [13:35:43] <Zauberfisch> DimiStripe: ->merge($set) is pretty much the same as foreach($set as $item) $l->push($item);
639: [13:36:05] <Zauberfisch> so you can do:
640: [13:36:09] <Zauberfisch> $l->merge($this->HasManyList1);
641: [13:36:37] <Zauberfisch> $l->push(ArrayData::create('ID'=>'Spacer1', 'Title' => '---');
642: [13:36:40] <Zauberfisch> $l->merge($this->HasManyList2);
643: [13:36:51] * jcwacky has joined #silverstripe
644: [13:37:39] <DimiStripe> Won't ID Spacer1 ruin relations list on save ?
645: [13:37:55] <DimiStripe> actually i'll try it and let you know :)
646: [13:40:08] <jcwacky> I'm looking to make some tweaks to the "Insert Image" "From the CMS" grid field. Is someone able to point me in the direction of where this code exists?
647: [13:41:38] <DimiStripe> Zauberfisch: $l->push(ArrayData::create('ID'=>'Spacer', 'Title' => '---'));
648: [13:41:42] <DimiStripe> brings error
649: [13:42:06] <DimiStripe> unexpected =>
650: [13:43:53] <Zauberfisch> forgot an array
651: [13:44:08] <Zauberfisch> $l->push(ArrayData::create(array('ID'=>'Spacer', 'Title' => '---')));
652: [13:44:19] <DimiStripe> oh yes, thanks
653: [13:44:38] <Zauberfisch> DimiStripe: well, its a hack, I have no idea what it will do :P
654: [13:45:39] <Zauberfisch> DimiStripe: what I would do:
655: [13:46:34] <Zauberfisch> subclass Checkboxsetfield to accpet an array of lists
656: [13:47:01] <Zauberfisch> but the hack perhaps works as well and is a lot less work
657: [13:47:10] <Zauberfisch> in fact, try it with ID = -1
658: [13:47:17] <DimiStripe> and it works ;)
659: [13:47:17] <Zauberfisch> and ID -2 for the 2nd spacer
660: [13:47:32] <Zauberfisch> with negative IDs it should not mess with your relation
661: [13:47:42] <DimiStripe> I'll just hide all cheboxes from custom template which would have certain ID/text like spacer
662: [13:47:51] <Zauberfisch> thats good
663: [13:47:55] <DimiStripe> it works fine unless it is ticked
664: [13:48:00] <DimiStripe> so thanks a lot
665: [13:48:10] <DimiStripe> how can i buy you a beer ?
666: [13:48:10] <DimiStripe> :)
667: [13:48:25] <pyxielisk> with money!
668: [13:48:40] <Zauberfisch> pyxielisk: ^^
669: [13:48:50] <Zauberfisch> DimiStripe: you can't, I don't drink alcohol
670: [13:48:50] <DimiStripe> :D
671: [13:48:55] <Zauberfisch> but you are welcome
672: [13:49:19] * Error404NotFound has joined #silverstripe
673: [13:52:14] <pyxielisk> micmania1: you have to buy a ticket now
674: [13:54:09] * cloph has joined #silverstripe
675: [13:59:42] * micmania1 quit (*.net *.split)
676: [13:59:42] * cloph_away quit (*.net *.split)
677: [13:59:43] * babak quit (*.net *.split)
678: [13:59:44] * irogue quit (*.net *.split)
679: [14:05:58] * micmania1 has joined #silverstripe
680: [14:06:49] * NobrainerWeb has joined #silverstripe
681: [14:07:10] <NobrainerWeb> Hi
682: [14:08:21] * CamelCase has joined #silverstripe
683: [14:08:38] * abitran_ has joined #silverstripe
684: [14:09:45] * babak has joined #silverstripe
685: [14:09:45] * irogue has joined #silverstripe
686: [14:10:46] <pyxielisk> hi
687: [14:10:58] * k_fish__ quit (Read error: Connection reset by peer)
688: [14:11:41] * k_fish_ has joined #silverstripe
689: [14:12:12] <wmk> ho
690: [14:12:29] * Error404NotFound quit (Read error: Connection reset by peer)
691: [14:15:30] <kinglozzer> yo
692: [14:15:31] * Error404NotFound has joined #silverstripe
693: [14:15:49] * abitran quit (Ping timeout: 367 seconds)
694: [14:19:23] * silver_learner quit (Ping timeout: 245 seconds)
695: [14:19:59] <pyxielisk> lo
696: [14:20:39] * babak quit (*.net *.split)
697: [14:20:39] * irogue quit (*.net *.split)
698: [14:20:46] * Shrike_Finland quit (Ping timeout: 247 seconds)
699: [14:20:51] <NobrainerWeb> I'm trying to use the http://doc.silverstripe.org/framework/en/reference/searchcontext to filter a list of records for me. I have a page with many_many items that i want to filter. Problem is that i get all my items returned, not just the ones related to the current page
700: [14:23:13] <NobrainerWeb> The filter works, the filter applied in frontend filters the returned items, but the function getResults seems to be working on all my DataObjects. Can someone help?
701: [14:23:25] <pyxielisk> not without code.
702: [14:23:56] <pyxielisk> searchcontext is for searching all stored instances of a type though. perhaps you're confusing it's purpose
703: [14:24:34] <NobrainerWeb> pyxielisk: i might be, my PHP skills are not the best :o)
704: [14:24:40] <pyxielisk> seems to me like you simply want a $this->mmrelname()->filter()
705: [14:25:30] <pyxielisk> there might be a way to apply a searchcontext to a sub-section of objects, although I'm not clear on it.
706: [14:25:46] <NobrainerWeb> pyxielisk: yes that is actually what i want, but i'm using the context so i have a frontend form of the filterable filds
707: [14:25:48] <pyxielisk> perhaps you're able to edit it before it executes a query to add a where clause.
708: [14:26:14] <NobrainerWeb> i tried to add $query = $context->getQuery($searchCriteria, null, array('start'=>$start,'limit'=>$limit))->where(array('GalleryPageID' => '15'));
709: [14:26:21] <pyxielisk> NobrainerWeb: well from memory you can get the fields another way, or take them from the searchcontext and use them separately, or soemthing
710: [14:28:03] * UndefinedOffset1 has joined #silverstripe
711: [14:28:03] * UndefinedOffset quit (Disconnected by services)
712: [14:28:15] * UndefinedOffset1 is now known as UndefinedOffset
713: [14:29:17] <NobrainerWeb> pyxielisk: thank you, i think i will try to look at it as suggested
714: [14:29:48] * NobrainerWeb quit (Quit: NobrainerWeb)
715: [14:31:48] * k_fish__ has joined #silverstripe
716: [14:31:48] * oceanmountain has joined #silverstripe
717: [14:32:09] <kinglozzer> I've really gotta get myself fully up to speed with Injector, looks so useful
718: [14:32:25] <DimiStripe> Zauberfisch: just in case - everything works smooth ;) Thanks again :)
719: [14:32:39] * pippy__ has joined #silverstripe
720: [14:33:52] * babak has joined #silverstripe
721: [14:33:53] * irogue has joined #silverstripe
722: [14:35:11] * svandragt1 has joined #silverstripe
723: [14:36:40] <kinglozzer> Class naming: APIService or ApiService?
724: [14:36:45] <kinglozzer> I think APIService
725: [14:38:20] * k_fish_ quit (*.net *.split)
726: [14:38:20] * ocm quit (*.net *.split)
727: [14:38:20] * ARNHOE quit (*.net *.split)
728: [14:38:21] * svandragt quit (*.net *.split)
729: [14:38:21] * pippy quit (*.net *.split)
730: [14:38:22] * oceanmountain is now known as ocm
731: [14:43:36] * ARNHOE has joined #silverstripe
732: [14:44:14] <pyxielisk> gawd kinglozzer, it's siesta time again :<
733: [14:45:09] <kinglozzer> pyxielisk: yeah, struggling to stay awake as well D:
734: [14:49:05] <Zauberfisch> kinglozzer: ApiService
735: [14:49:18] <Zauberfisch> well, API is tricky
736: [14:49:19] <Zauberfisch> hmmm
737: [14:49:28] <Zauberfisch> actually, I don't know
738: [14:49:40] <kinglozzer> Well, SilverStripe is a mix of the two :P
739: [14:49:53] <kinglozzer> You've got stuff like CMSStuff, then HtmlEditorField..
740: [14:50:00] <Zauberfisch> yes, it used to be one way, but then the coding guidlines changed, and now its the other way
741: [14:50:13] <Zauberfisch> I think it was simon_w or ingo who changed it
742: [14:50:47] <kinglozzer> Ah, "If a class name is comprised of more than one word, the first letter of each new word must be capitalized. Successive capitalized letters are used in acronyms, e.g. a class XMLImporter is used while XmlImporter is not."
743: [14:51:04] <kinglozzer> I'll stick to SS conventions
744: [14:55:25] <Zauberfisch> DimiStripe: "just in case" what did you mean?
745: [14:58:35] <DimiStripe> I mean , just letting you know :)
746: [14:58:39] * jcwacky quit (Quit: jcwacky)
747: [15:02:46] <Zauberfisch> I see
748: [15:02:50] <Zauberfisch> glad you got it working
749: [15:03:47] * NoobNl has joined #silverstripe
750: [15:08:01] <NoobNl> Hi
751: [15:08:15] <NoobNl> ihave the foloowing gridfield
752: [15:08:16] <NoobNl> http://pastebin.com/7D1PP5GS
753: [15:08:30] <NoobNl> but i want to filter on the current page id
754: [15:09:23] <NoobNl> the gridfield shows pages, who are children of a few categories
755: [15:10:12] <NoobNl> so in the gridfield i need a function or something
756: [15:10:44] <NoobNl> that shows only the children pages of the current page in the cms
757: [15:11:06] <NoobNl> does anyone knows how is can set that up?
758: [15:23:36] <pyxielisk> NoobNl: nothing to do with gridfield.
759: [15:23:50] <pyxielisk> gridfield simply displays whatever's in the list you give it.
760: [15:23:59] <pyxielisk> filter your list before giving it to gridfield.
761: [15:24:51] <pyxielisk> ie. $this->Products()->filter(array(<array of filters>))->sort('Oppervlakte')
762: [15:26:57] <NoobNl> cool thanks for your replay
763: [15:27:00] <NoobNl> reply
764: [15:28:49] * Shrike_Finland has joined #silverstripe
765: [15:29:12] <NoobNl> but what do i i have to put in the filter(array(<array of filters>))?
766: [15:29:32] <NoobNl> something like $this->Parent->ID or something
767: [15:29:34] <NoobNl> ?
768: [15:44:23] * NoobNl quit (Ping timeout: 245 seconds)
769: [15:59:53] <pyxielisk> Well I dunno son, you'll have to figure that out!
770: [16:00:08] <pyxielisk> maybe read docs, etc.
771: [16:04:21] * catcher has joined #silverstripe
772: [16:04:31] <micmania1> anybody used history.js before?
773: [16:11:03] * ARNHOE quit ()
774: [16:13:14] * Error404NotFound quit (Disconnected by services)
775: [16:13:17] * Err404NotFound has joined #silverstripe
776: [16:14:01] * Err404NotFound quit (Max SendQ exceeded)
777: [16:14:23] * Err404NotFound has joined #silverstripe
778: [16:17:09] * CamelCase quit (Ping timeout: 248 seconds)
779: [16:18:41] * Shrike_Finland quit (Quit: Leaving.)
780: [16:33:17] <andylockran> hey guys
781: [16:33:43] <andylockran> If I were to render a list of links, how would I hilight just those links that were for logged in users only
782: [16:33:56] <andylockran> SiteTree->Link doesn't appear to have anyway to check permissions on it?
783: [16:35:45] * kk_ quit (Quit: Page closed)
784: [16:38:53] <micmania1> <% if canView %>
785: [16:45:04] * muskie9 has joined #silverstripe
786: [16:57:16] <muskie9> was there a way in 2.4 to utilize ->limit() on a DataObjectSet or is that 3.0+ only?
787: [16:59:08] <andylockran> micmania1: that can hide & show links - I want to show links that are for logged-in-users only in a different colour to public links
788: [16:59:47] <micmania1> you'll need to write a checking function to use instead then.
789: [17:00:08] <andylockran> extending SiteTree->Link ?
790: [17:00:15] <micmania1> muskie9: see DataObject::get(). One of the parameters is order.
791: [17:00:42] <micmania1> anylockran: extend SiteTree
792: [17:01:33] <andylockran> ok, thanks
793: [17:02:02] <andylockran> micmania1: is this something that could be pulled into the core SiteTree class if I submitted a pull request - or is it not likely to make the core framework ?
794: [17:02:51] <micmania1> I doubt it would be. Its very specific functionality. Can't hurt to ask though
795: [17:03:04] <muskie9> micmania1: wasn't sure if I would have to write out a full ::get(), 3.x would let you go $this->RelationName()->limit(x)
796: [17:07:14] <kinglozzer> Ffs
797: [17:07:24] <kinglozzer> DataList->first() and ->last() return the same item
798: [17:07:33] <kinglozzer> I've no idea why
799: [17:07:43] <kinglozzer> They're sorted, ->sort('Sort ASC');
800: [17:07:50] <kinglozzer> When I do ->toArray(), they're in the correct order
801: [17:07:53] <kinglozzer> No duplicates
802: [17:10:11] <kinglozzer> Fuckit, tomorrow
803: [17:10:16] <kinglozzer> bb all <3
804: [17:10:22] * kinglozzer quit ()
805: [17:12:10] <catcher> Anyone here run multiple identical SS webservers behind a load balancer?
806: [17:13:26] <catcher> I'm sharing assets & cache between them, unsure whether or not I want to share everything (code, modules, themes, assets, cache)
807: [17:16:48] * Err404NotFound quit (Quit: User guilty of hitting the Big Red X...)
808: [17:19:10] <Zauberfisch> catcher: you have such a setup already?
809: [17:19:22] <Zauberfisch> or are you just planing on doing that now?
810: [17:19:23] <catcher> Zauberfisch, indeed, it's in testing
811: [17:19:53] <Zauberfisch> you must write about it. that sounds really intresting
812: [17:20:33] <catcher> Will do, once it's working.
813: [17:21:03] <catcher> I had a master->slave setup working, but I think I'm going to switch to an equal system.
814: [17:21:58] <catcher> If the slave received an /admin, /Security, or ?flush request, it redirected to master.
815: [17:22:12] <catcher> The problem with that was the lack of CMS access if the master ever went down.
816: [17:22:30] <catcher> So now I'm thinking a bi-directional sync is the way to go.
817: [17:23:59] <catcher> The issue I'm trying to work through is really just around code deployment.
818: [17:25:23] <Zauberfisch> really? isn't syncing the bigger issue?
819: [17:25:39] <Zauberfisch> how do you sync?
820: [17:25:59] <Zauberfisch> what database do you use?
821: [17:28:01] <catcher> I'm sharing a single mysql DB across the instances. AWS's RDS has multi-zone availability.
822: [17:28:14] <catcher> I'm using lsyncd for file syncing
823: [17:31:07] <pyxielisk> hometime! finally sweet sweet sleep will come.
824: [17:31:11] * pyxielisk quit ()
825: [17:55:14] <Zauberfisch> catcher: ah, I see, a centralized DB, that makes syncing rather easy (:
826: [17:55:40] <catcher> Zauberfisch, I'm not big on re-inventing wheels :)
827: [17:55:52] <Zauberfisch> how boring (:
828: [17:55:54] <catcher> haha
829: [17:57:28] <catcher> I've decided on not sharing code/themes/modules. Unsure on cache though.
830: [17:57:53] <catcher> I just answered my own question, cache shouldn't be shared since the code can be out of sync.
831: [18:03:27] <catcher> Where is the manifest stored?
832: [18:04:16] * NobrainerWeb has joined #silverstripe
833: [18:04:43] <catcher> np
834: [18:04:45] <catcher> nm*
835: [18:05:12] <catcher> Maybe I'll share everything after all, since the manifest will be shared, /dev/build won't be required on the other instances.
836: [18:05:29] <NobrainerWeb> Hey guys
837: [18:07:08] <catcher> howdy
838: [18:07:38] <NobrainerWeb> Can you have a form on a DataObject? I mean, can you handle form submissions like this tutorial on a DO not a page?: http://doc.silverstripe.org/framework/en/howto/simple-contact-form
839: [18:17:09] * joelpittet has joined #silverstripe
840: [18:24:31] * SphereSilverNL has joined #silverstripe
841: [18:28:09] * Shrike_Finland has joined #silverstripe
842: [18:45:53] <SphereSilverNL> I have found a worse CMS than Wordpress!
843: [18:59:00] * joelpittet quit ()
844: [19:06:19] * gelignite has joined #silverstripe
845: [19:06:43] * NobrainerWeb quit (Quit: NobrainerWeb)
846: [19:15:29] * oddnoc has joined #silverstripe
847: [19:28:44] * antmas has joined #silverstripe
848: [19:30:50] <antmas> anyone know how to convert json to html in a template?
849: [19:31:00] <antmas> when the json is from a $field?
850: [19:33:59] * Stomach has joined #silverstripe
851: [19:37:20] * nickmolhoek has joined #silverstripe
852: [19:37:41] <Ryan-Toast> You'd have to use ajax, if you can't manipulate the controller.
853: [19:37:58] <Ryan-Toast> well, javascript. Depending on where you're getting the json.
854: [19:38:18] <SphereSilverNL> public function getDecodedJSONField() { return json_decode($field); }
855: [19:38:25] <SphereSilverNL> and in template, $getDecodedJSONField
856: [19:38:31] <SphereSilverNL> wouldn't that work?
857: [19:41:10] <Ryan-Toast> SphereSilverNL: I think he's asking on how to get it from a field, so the data['field'] thingy
858: [19:42:15] * zippy__ has joined #silverstripe
859: [19:43:38] <pippy__> is there a way to see what version of silverstripe is running without logging on?
860: [19:43:43] * pippy__ is now known as pippy
861: [19:43:55] <SphereSilverNL> Nope, luckily not
862: [19:44:39] <SphereSilverNL> why would you want that?
863: [19:44:50] <Ryan-Toast> for haxoring
864: [19:45:10] <SphereSilverNL> Ah, from a haxor standpoint, I can understand
865: [19:45:28] <SphereSilverNL> From a develope standpoint, I would be quite pissed off if it was possible :P
866: [19:46:01] <SphereSilverNL> I suck at making a website look good :(
867: [19:46:36] <oddnoc> On 2.x, just visit http://example.org/sapphire/silverstripe_version
868: [19:46:44] <oddnoc> Glad that's gone in 3
869: [19:47:12] <SphereSilverNL> That won't work
870: [19:47:27] <SphereSilverNL> htaccess forbids it.
871: [19:47:43] <SphereSilverNL> This file is in 3 too by the way, but empty by default ;)
872: [19:47:44] <oddnoc> Now it does. But not always.
873: [19:48:14] <SphereSilverNL> That would be a failure of the developer, no file in Sapphire folder should be accessible by anyone
874: [19:50:27] * oddnoc agreed
875: [19:50:46] <zippy__> morning
876: [19:51:46] <zippy__> $ cat framework/silverstripe_version
877: [19:51:47] <zippy__> 3.1.2
878: [19:51:53] <zippy__> not empty :)
879: [19:53:59] <SphereSilverNL> Where did you get that? The Github-version is empty.
880: [19:54:18] <oddnoc> I think it gets put in when they build the installer
881: [19:54:20] <SphereSilverNL> And catting doesn't count, since you need server-access to cat anyway. So, you're already breached ;)
882: [19:56:55] <zippy__> yes I am aware it's not readable, I am just saying the file is not empty (at least in the download zip)
883: [19:57:51] <Stomach> so
884: [19:57:53] <Stomach> telecom is now spark
885: [19:57:54] <Stomach> wtf
886: [20:02:32] <zippy__> damn
887: [20:02:42] <zippy__> hang out washing time
888: [20:03:42] <Ryan-Toast> Too much bad press with that old corporate sounding name. Spark sounds hip, and with it; and not going to fuck you in the ass over shitty overpriced internet.
889: [20:04:21] <Ryan-Toast> "Spark is a word that has life and energy, and links to the creativity of New Zealanders" God, pander more.
890: [20:04:22] * SightUnseen has joined #silverstripe
891: [20:04:37] * SightUnseen has left #silverstripe
892: [20:17:57] * UncleCheese has joined #silverstripe
893: [20:18:34] * OxFF1 has joined #silverstripe
894: [20:24:34] <Ryan-Toast> Macs really suck at deleting things.
895: [20:24:58] <UncleCheese> get appzapper
896: [20:25:31] <Ryan-Toast> It's not even apps, just files.
897: [20:26:02] <Ryan-Toast> Although there's something beautiful about rm -fdr *
898: [20:26:10] <Ryan-Toast> feels so good.
899: [20:26:29] <Ryan-Toast> after that panic of was-that-the-folder-I-was-supposed-to-delete wears off.
900: [20:27:44] <zippy__> whats the use of d in that command… when you have rf as well
901: [20:27:45] * willr has joined #silverstripe
902: [20:29:49] * OxFF1 has left #silverstripe
903: [20:34:01] <pippy> SphereSilverNL: it's because there's a company that i might be sharing code with, don't know if they're on 2.x or 3.x
904: [20:34:29] * spronk has left #silverstripe
905: [20:35:05] * wracu has joined #silverstripe
906: [20:35:23] <pippy> wait they're on the CWP so they have to be 3.x, right?
907: [20:36:26] <wracu> I'm working on a site that has an HTMLEditorField for some summary information on each page... I need to re-purpose the information as text only (no HTML)
908: [20:37:07] * spronk has joined #silverstripe
909: [20:37:29] <wracu> is there a simple way to do this? I do not need any of the HTML info, but do need the text... i.e. if I change the field type, will I lose data?
910: [20:37:43] * antmas quit (Ping timeout: 245 seconds)
911: [20:38:01] <wracu> can silverstripe output the value of this field as text only (ignoring styling or html elements etc)
912: [20:38:15] <Ryan-Toast> zippy__: directories
913: [20:38:29] <zippy__> yes, but rm -rf will remove directories as well..
914: [20:38:44] <Ryan-Toast> yes, that's what I want :)
915: [20:38:50] <Ryan-Toast> remove all the things!
916: [20:38:58] <zippy__> ...
917: [20:39:03] <zippy__> you went rm -fdr
918: [20:39:07] <zippy__> I was curious on the d
919: [20:39:19] <Ryan-Toast> oh, really?
920: [20:39:27] <Ryan-Toast> what does d do then?
921: [20:39:45] <zippy__> directories according to the man page, but seems redundant
922: [20:39:50] <Ryan-Toast> lol, TIL
923: [20:40:56] <Ryan-Toast> the terminal is one of the only good things about macs.
924: [20:40:58] <Ryan-Toast> imo.
925: [20:41:38] <SphereSilverNL> Agreed.
926: [20:42:37] <zippy__> way better then windows, more polished than linux....
927: [20:50:18] <SphereSilverNL> Windows Powershell isn't that bad
928: [20:55:52] * k_fish_ has joined #silverstripe
929: [20:56:53] * oddnoc_ has joined #silverstripe
930: [20:56:54] * wracu quit (Ping timeout: 245 seconds)
931: [20:57:30] * antmas has joined #silverstripe
932: [20:57:40] * Shrike_Finland quit (Quit: Leaving.)
933: [20:57:44] <antmas> Ryan-Toast: SphereSilverNL sorry, was in a meeting
934: [20:57:49] <SphereSilverNL> np
935: [20:57:58] <SphereSilverNL> It's not like I'm really awake :P
936: [20:58:00] <antmas> I have a field that when output to a template comes out as json
937: [20:58:18] <antmas> so, I ran it through this http://json.bloople.net/#_output
938: [20:58:32] <Ryan-Toast> Can't you get the field output in the controller and format it before ou sent it to the template?
939: [20:58:35] <antmas> and that gives me what I want, but I'm not sure how to 'implement' that
940: [20:58:56] <Ryan-Toast> antmas: lol, maybe look at their source? https://github.com/bloopletech/json2html/tree/master
941: [20:59:07] <SphereSilverNL> Possibly the init() or __construct(), but I think you'll have to resolve to javascript
942: [20:59:18] <antmas> SphereSilverNL: yeah I think so
943: [20:59:57] <Ryan-Toast> SphereSilverNL: I'd save the json as an object, so you can loop through it like you would a dataObject in a template.
944: [21:00:36] * Azure quit (Quit: My MBP went to sleep.)
945: [21:00:39] <SphereSilverNL> Jep, saving it as an object in the first place is indeed the best, but if you're stuck with it, you have to work with it
946: [21:00:49] <Ryan-Toast> true true.
947: [21:00:53] <antmas> ah ok
948: [21:00:55] <antmas> I follow
949: [21:01:12] * pippy__ has joined #silverstripe
950: [21:01:22] <antmas> so what Ryan-Toast said before about grabbing the field's output in the controller?
951: [21:01:34] <antmas> format it there, then send it out?
952: [21:01:43] <Ryan-Toast> antmas: Yeah, that's what I'd do.
953: [21:01:49] <SphereSilverNL> jep, if you can, that's the best option
954: [21:02:15] <antmas> Ryan-Toast: OK cool, SphereSilverNL thanks guys and sorry about the pestering, I was asking about this yesterday like a le n00b
955: [21:02:27] <Ryan-Toast> No probs :)
956: [21:02:58] <antmas> Ryan-Toast: I now owe you a few beers come TechEd :P
957: [21:03:17] <Ryan-Toast> antmas: I still don't have tickets.
958: [21:03:19] <Ryan-Toast> :P
959: [21:03:47] <SphereSilverNL> TechEd europe?
960: [21:03:53] <Ryan-Toast> NZ :P
961: [21:04:03] <SphereSilverNL> Hmmm, that's a tiny bit out of range for me
962: [21:04:08] * babak quit (*.net *.split)
963: [21:04:08] * irogue quit (*.net *.split)
964: [21:04:19] <Ryan-Toast> SphereSilverNL: Dream big!
965: [21:04:26] <SphereSilverNL> antmas: Usually, we're quite easy going :P
966: [21:04:48] <SphereSilverNL> I can't go to every TechEd Ryan-Toast
967: [21:05:16] * UncleCheese quit (*.net *.split)
968: [21:05:16] * oddnoc quit (*.net *.split)
969: [21:05:16] * catcher quit (*.net *.split)
970: [21:05:16] * pippy quit (*.net *.split)
971: [21:05:16] * k_fish__ quit (*.net *.split)
972: [21:05:17] * gelignite quit (*.net *.split)
973: [21:05:17] * muskie9 quit (*.net *.split)
974: [21:05:20] * Zauberfisch quit (*.net *.split)
975: [21:05:20] * ajmitch quit (*.net *.split)
976: [21:05:20] * Raymondo quit (*.net *.split)
977: [21:05:20] * lewellyn quit (*.net *.split)
978: [21:05:20] * robert_ quit (*.net *.split)
979: [21:05:20] * andylockran quit (*.net *.split)
980: [21:05:21] * guzzlefry quit (*.net *.split)
981: [21:05:21] * ec8or__ quit (*.net *.split)
982: [21:05:33] <zippy__> ah noes, net split
983: [21:05:34] <SphereSilverNL> I'm guessing freenode gives up.
984: [21:05:36] <Ryan-Toast> ddos?
985: [21:05:45] <SphereSilverNL> no
986: [21:05:46] * oddnoc_ is now known as oddnoc
987: [21:06:00] <SphereSilverNL> Don't think ddos when something goes wrong
988: [21:06:03] * Zauberfisch has joined #silverstripe
989: [21:06:03] * ajmitch has joined #silverstripe
990: [21:06:03] * Raymondo has joined #silverstripe
991: [21:06:03] * lewellyn has joined #silverstripe
992: [21:06:03] * robert_ has joined #silverstripe
993: [21:06:03] * andylockran has joined #silverstripe
994: [21:06:17] <Ryan-Toast> I don't know what net split is
995: [21:06:18] <SphereSilverNL> There are way more options, DDoS is for scriptkiddies
996: [21:06:19] <zippy__> think, nuclear warfare
997: [21:06:26] <Ryan-Toast> ALWAYS THINK DDOS
998: [21:06:29] * gelignite has joined #silverstripe
999: [21:06:29] * muskie9 has joined #silverstripe
1000: [21:07:02] * antmas_ has joined #silverstripe
1001: [21:07:18] * antmas quit (Ping timeout: 245 seconds)
1002: [21:07:41] <antmas_> Ryan-Toast: I don't think they're on sale yet?>
1003: [21:07:45] <antmas_> I don't have mine either
1004: [21:08:02] * guzzlefry has joined #silverstripe
1005: [21:08:02] * ec8or__ has joined #silverstripe
1006: [21:08:06] <Ryan-Toast> It's not for ages, so fair enough.
1007: [21:08:15] <Ryan-Toast> oh god, dat lens flare on their site.
1008: [21:08:40] * Azure has joined #silverstripe
1009: [21:08:45] <antmas_> lol ikr, it's not even relfecting off an actual reflective surface
1010: [21:08:54] <antmas_> photoshop, I can tell by the pixels
1011: [21:09:17] * antmas_ is now known as antmas
1012: [21:12:02] * zippy__ puts his front end hat back on, to resume this responsive overhaul
1013: [21:13:13] * pippy__ is now known as pippy
1014: [21:13:31] <Ryan-Toast> zippy__: godspeed
1015: [21:14:05] <Ryan-Toast> Ryan-Toast tries to see if she can complete a $30,000 website in a day.
1016: [21:14:10] <Ryan-Toast> she...
1017: [21:14:11] <Ryan-Toast> wow.
1018: [21:14:22] * catcher has joined #silverstripe
1019: [21:14:32] <Ryan-Toast> Damn Banished has left me sleep deprived.
1020: [21:14:55] * babak has joined #silverstripe
1021: [21:14:56] * irogue has joined #silverstripe
1022: [21:16:47] * UndefinedOffset quit (Quit: Leaving.)
1023: [21:17:03] * lewellyn quit (Excess Flood)
1024: [21:17:14] * 17WAA5I37 has joined #silverstripe
1025: [21:17:14] * 6JTABAGCX has joined #silverstripe
1026: [21:19:35] <zippy__> Ryan-Toast: mmm that looks cool
1027: [21:19:43] <Ryan-Toast> zippy__: Banished?
1028: [21:19:49] <zippy__> yea, windows only eh!
1029: [21:19:58] <Ryan-Toast> zippy__: Yeah,I think so.
1030: [21:20:04] <Ryan-Toast> It's pretty fun.
1031: [21:20:18] * muskie9_ has joined #silverstripe
1032: [21:20:22] <Ryan-Toast> I was like this game's okay I guess, I'll just go to bed...oh it's 3am.
1033: [21:20:35] <Ryan-Toast> WHAT YEAR IS IT?!
1034: [21:20:42] <zippy__> came out couple of days ago… internesting
1035: [21:20:59] <Ryan-Toast> yeah, I've been following the development for a while.
1036: [21:21:11] <Ryan-Toast> Made by one guy
1037: [21:23:13] * travis-ci has joined #silverstripe
1038: [21:23:14] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#2002 (3.1 - 042e7a5 : Damian Mooyman): The build passed.
1039: [21:23:14] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/429fdfaa7222...042e7a5e5c24
1040: [21:23:14] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/19288434
1041: [21:23:14] * travis-ci has left #silverstripe
1042: [21:24:12] <zippy__> reminds me a little of settlers (watching first minute)
1043: [21:24:24] <zippy__> do you end up going to war / what happens after building up
1044: [21:24:37] <Ryan-Toast> zippy__: You try not to die.
1045: [21:24:42] <Ryan-Toast> Harder than it sounds.
1046: [21:24:45] * UncleCheese has joined #silverstripe
1047: [21:24:53] <SphereSilverNL> Jim Weirich died :O
1048: [21:24:56] <Ryan-Toast> Thought I was doing great, then all of my people died of old age...
1049: [21:24:58] <zippy__> indeed
1050: [21:25:34] <zippy__> 1 child rule eh ;-)
1051: [21:26:02] <Ryan-Toast> zippy__: I didn't expand quickly enough so people didn't pair up and have kids; so all I had was elderly people ><
1052: [21:26:12] <Ryan-Toast> then they all died.
1053: [21:26:13] <SphereSilverNL> Hmm, :O looks like a happy face. It should be a sad face
1054: [21:26:18] <Ryan-Toast> and the children starved to death.
1055: [21:28:30] * ajmitch_ has joined #silverstripe
1056: [21:32:45] <zippy__> SphereSilverNL: Sorry, unrelated to what you were saying
1057: [21:32:46] <SphereSilverNL> zippy__: Do you know who Jim Weirich was?
1058: [21:32:46] <zippy__> Ruby developer I think wasn't he?
1059: [21:32:46] <SphereSilverNL> A big one even.
1060: [21:32:46] <SphereSilverNL> He made his last commit yesterday: https://github.com/jimweirich/wyriki/commit/d28fac7f18aeacb00d8ad3460a0a5a901617c2d4
1061: [21:32:46] <antmas> so, to before, the json_decode SphereSilverNL mentioned before public function getDecodedJSONField() { return json_decode($Field); } would be what I'm after?
1062: [21:32:46] <antmas> and then call that $getDecodedJSONField in the template?
1063: [21:32:46] <antmas> wow, kinda creepy
1064: [21:32:46] <SphereSilverNL> Yep
1065: [21:32:46] <antmas> how'd he go?
1066: [21:32:47] * andylock1an has joined #silverstripe
1067: [21:32:48] * gelignite_ has joined #silverstripe
1068: [21:32:49] <SphereSilverNL> Creepy? I think it's great. He died unexpected.
1069: [21:32:49] <SphereSilverNL> He was in his 50's, don't know exactly. But I personally like the salutation of Github.
1070: [21:33:05] <Ryan-Toast> antmas: It'll most likely be an array of json objects since you're getting the fields, so you'll have too loop them.
1071: [21:33:20] <antmas> Ryan-Toast: ah right
1072: [21:34:42] <SphereSilverNL> On a completely other note. Are you from Europe and can you sponsor an event? contact me! silverstripe[at]casa-laguna.net
1073: [21:36:03] <antmas> zippy__: finally, rain :D
1074: [21:36:30] <zippy__> antmas: was meant to be hot! I have put the washing out
1075: [21:36:35] <zippy__> fu metservice
1076: [21:36:39] <antmas> zippy__: lol
1077: [21:36:52] <zippy__> I think lunch it's goign to crank out to 25 and be super muggy
1078: [21:37:00] * gelignite quit (Ping timeout: 245 seconds)
1079: [21:37:05] * muskie9 quit (Ping timeout: 245 seconds)
1080: [21:37:08] <antmas> screw that, I've had trouble sleeping
1081: [21:38:12] * gelignite_ is now known as gelignite
1082: [21:40:00] * guzzlefry quit (*.net *.split)
1083: [21:40:00] * ec8or__ quit (*.net *.split)
1084: [21:40:01] * Zauberfi1ch has joined #silverstripe
1085: [21:40:35] * Zauberfisch quit (*.net *.split)
1086: [21:40:36] * ajmitch quit (*.net *.split)
1087: [21:40:36] * Raymondo quit (*.net *.split)
1088: [21:40:37] * robert_ quit (*.net *.split)
1089: [21:40:38] * andylockran quit (*.net *.split)
1090: [21:40:43] * robert_ has joined #silverstripe
1091: [21:40:50] * robert_ quit (Changing host)
1092: [21:40:50] * robert_ has joined #silverstripe
1093: [21:40:53] <SphereSilverNL> I think Freenode has some connection-issues
1094: [21:41:10] <antmas> SphereSilverNL: yeah I'm getting booted a lot
1095: [21:44:22] <SphereSilverNL> Any thoughs? https://public.pad.fsfe.org/p/r.yEzZUvLl9FLcVvwo
1096: [21:45:42] <SphereSilverNL> antmas: I'm appearantly on a stable server :D
1097: [21:47:45] <Ryan-Toast> Same
1098: [21:51:06] * k_fish_t has joined #silverstripe
1099: [21:51:33] <zippy__> annnnd me
1100: [21:51:57] * jrthomer_ has joined #silverstripe
1101: [21:53:08] * SightUnseen1 has joined #silverstripe
1102: [21:53:40] * andylockran has joined #silverstripe
1103: [21:53:53] <SphereSilverNL> I'm hungry
1104: [21:55:28] * lewellyn has joined #silverstripe
1105: [21:55:31] * ss23_ has joined #silverstripe
1106: [21:55:38] <Ryan-Toast> Eat then.
1107: [21:56:11] * TRB143___ has joined #silverstripe
1108: [22:00:14] * andylock1an quit (*.net *.split)
1109: [22:00:15] * 6JTABAGCX quit (*.net *.split)
1110: [22:00:17] * Stomach quit (*.net *.split)
1111: [22:00:18] * ss23 quit (*.net *.split)
1112: [22:00:18] * jrthomer quit (*.net *.split)
1113: [22:00:18] * k_fish quit (*.net *.split)
1114: [22:00:22] * TRB143 quit (*.net *.split)
1115: [22:00:25] <Ryan-Toast> lol.
1116: [22:00:40] * SightUnseen1 has left #silverstripe
1117: [22:06:01] * muskie9_ quit (Read error: Connection reset by peer)
1118: [22:06:34] * Raymondo has joined #silverstripe
1119: [22:06:35] * guzzlefry has joined #silverstripe
1120: [22:06:35] * ec8or__ has joined #silverstripe
1121: [22:07:08] * Raymondo is now known as Guest41540
1122: [22:07:14] * muskie9 has joined #silverstripe
1123: [22:08:27] <SphereSilverNL> Nothing to eat here :(
1124: [22:09:31] <ss23_> Go out for eat
1125: [22:09:31] <ss23_> :D
1126: [22:09:33] * ss23_ is now known as ss23
1127: [22:10:02] <SphereSilverNL> At 11PM????
1128: [22:12:44] * Stevie has joined #silverstripe
1129: [22:16:09] * SightUnseen has joined #silverstripe
1130: [22:17:17] * SightUnseen has left #silverstripe
1131: [22:20:19] <zippy__> content_container - sub_content_container - sub_sub_content_content :)
1132: [22:20:19] <antmas> ss23: y u no IRC lately?
1133: [22:20:30] <zippy__> antmas: no simon :)
1134: [22:20:46] <guzzlefry> simon was here last night...day...something
1135: [22:20:49] <Ryan-Toast> Can you loop through page types that are at menu level 1?
1136: [22:20:54] <guzzlefry> roughly 14 hours ago :P
1137: [22:21:07] <Ryan-Toast> nvm, thought of a solution
1138: [22:21:21] <zippy__> Ryan-Toast: yus
1139: [22:21:39] <Ryan-Toast> zippy__: out of curiosity, how would I do that?
1140: [22:22:05] <zippy__> <% loop $Menu(1) %>
1141: [22:22:25] <Ryan-Toast> $menu(1).PAgeType('foo') ?
1142: [22:22:59] <zippy__> Ah so a specific page type at that level
1143: [22:23:15] <zippy__> You could always check ClassName in the loop
1144: [22:23:29] <Ryan-Toast> yeah, I just didn't want to loop through all pages.
1145: [22:23:34] <Ryan-Toast> for optimisation sake.
1146: [22:24:22] <SphereSilverNL> override the Children maybe
1147: [22:24:41] <SphereSilverNL> that sounds more morbid than it actually is.
1148: [22:24:45] <Ryan-Toast> l;ol
1149: [22:24:55] <Ryan-Toast> Shouldn't you be sleeping?
1150: [22:25:08] <SphereSilverNL> I should indeed
1151: [22:25:35] <SphereSilverNL> Goodnight strange, strange people
1152: [22:25:42] <Ryan-Toast> Night, man :)
1153: [22:25:45] <zippy__> nite
1154: [22:25:59] * SightUnseen1 has joined #silverstripe
1155: [22:26:01] * SphereSilverNL quit (Remote host closed the connection)
1156: [22:27:57] * SightUnseen1 has left #silverstripe
1157: [22:28:08] <spronk> lol "Spark"
1158: [22:28:08] <spronk> wtf
1159: [22:28:18] <Ryan-Toast> spronk: ikr
1160: [22:28:44] * Zauberfisch has joined #silverstripe
1161: [22:33:07] * Zauberfi1ch quit (*.net *.split)
1162: [22:33:08] * Guest41540 quit (*.net *.split)
1163: [22:33:11] * guzzlefry quit (*.net *.split)
1164: [22:33:11] * ec8or__ quit (*.net *.split)
1165: [22:36:23] * ec8or__ has joined #silverstripe
1166: [22:36:24] * guzzlefry has joined #silverstripe
1167: [22:36:24] * Guest41540 has joined #silverstripe
1168: [22:40:23] * joelpittet has joined #silverstripe
1169: [22:41:22] <Ryan-Toast> theres $Pos in the template, is there something to echo the Level?
1170: [22:42:54] <zippy__> What do you mean sorry?
1171: [22:43:16] <Ryan-Toast> Like if you're 3 levels deep, I want to echo 3
1172: [22:44:09] <zippy__> and you can't use $Pos? <b>$Pos item</b> ?
1173: [22:44:12] <ss23> antmas: On holiday
1174: [22:44:23] <Ryan-Toast> $Pos is the position in the list.
1175: [22:44:26] <Ryan-Toast> Not the leve;l
1176: [22:44:29] <Ryan-Toast> level**
1177: [22:44:43] <unsignedint> I dont know, but it would be pretty easy to write a function on Page that tells you the level its in by looking up Parent()->Parent() until it returns null
1178: [22:45:08] <unsignedint> dont know how performant that would be, probably not at all
1179: [22:45:10] <Ryan-Toast> unsignedint: good plan :)
1180: [22:45:27] <Ryan-Toast> especially in a loop :(
1181: [22:45:44] <unsignedint> try it and see :) automatic caching might make it work
1182: [22:46:08] * Guest41540 quit (*.net *.split)
1183: [22:46:09] * guzzlefry quit (*.net *.split)
1184: [22:46:09] * ec8or__ quit (*.net *.split)
1185: [22:46:34] <unsignedint> otherwise you could add a PageLevel field to Page, and then create a task that calculates it for each page
1186: [22:46:36] <zippy__> Im not sure what your doing, but wont you know the level your at ? And you can just write, "Top Level" or "2nd Level" since your going to have to write <% loop xxxx. %>…..<% loop bbb %>…. <% end_loop %> etc
1187: [22:46:38] <Stevie> store a level on the page onbefore write if you're worried about parent()->parent()
1188: [22:46:53] <unsignedint> or what Stevie said
1189: [22:46:58] * ec8or__ has joined #silverstripe
1190: [22:46:58] * guzzlefry has joined #silverstripe
1191: [22:46:58] * Guest41540 has joined #silverstripe
1192: [22:46:59] <unsignedint> would probably be the best way
1193: [22:47:13] * Stevie is now known as Stomach
1194: [22:48:04] <Ryan-Toast> Mmm, I'll try to see if this works first.
1195: [22:52:24] * micmania1 has joined #silverstripe
1196: [23:06:13] <zippy__> Works fine in chrome, naffed in firefox - good times this front end stuff
1197: [23:06:28] * guci0 quit (Ping timeout: 245 seconds)
1198: [23:12:33] * violetina quit (Remote host closed the connection)
1199: [23:15:07] * gelignite quit (Quit: http://bit.ly/nkczDT)
1200: [23:21:19] * joelpittet is now known as joelpittet|food
1201: [23:23:33] * antmas quit (Ping timeout: 245 seconds)
1202: [23:35:23] * antmas has joined #silverstripe
1203: [23:35:27] <antmas> http://img.gawkerassets.com/img/19gb8g3dg029fgif/ku-xlarge.gif
1204: [23:37:54] <Ryan-Toast> antmas: http://i.imgur.com/liyd3.gif
1205: [23:38:14] * oddnoc has left #silverstripe
1206: [23:41:42] <antmas> Ryan-Toast:
1207: [23:41:44] <antmas> :D
1208: [23:41:52] <antmas> we should make this gif Friday
1209: [23:41:56] <antmas> best. idea. ever.
1210: [23:44:42] * catcher quit (Quit: Leaving)
1211: [23:46:29] * k_fish_t is now known as k_fish
1212: [23:51:40] * travis-ci has joined #silverstripe
1213: [23:51:41] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#2008 (3.1 - 194393d : Damian Mooyman): The build passed.
1214: [23:51:41] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/042e7a5e5c24...194393d70573
1215: [23:51:41] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/19298642
1216: [23:51:41] * travis-ci has left #silverstripe
1217: [23:56:09] * joelpittet|food is now known as joelpittet

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