#silverstripe IRC Log

IRC log for 31 December 2014

All timestamps are in UTC.

1: [00:34:12] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
2: [00:39:20] * ezero has joined #silverstripe
3: [00:40:31] * Azure has joined #silverstripe
4: [00:41:32] <ezero> wondering if there is a way to overload classes inside SS framework ..
5: [00:58:39] * jenniferaslan quit (Quit: jenniferaslan has left the room)
6: [00:58:50] * ocm13 has joined #silverstripe
7: [01:03:34] * ocm13 quit (Ping timeout: 255 seconds)
8: [01:08:48] * toddmorey quit (Quit: My Mac has gone to sleep. ZZZzzz…)
9: [01:09:36] * toddmorey has joined #silverstripe
10: [01:12:14] * veb quit (Quit: veb-irc: &)
11: [01:38:56] <simon_w|work> ezero, what do you mean?
12: [01:39:32] <ezero> simon_w|work, just wanted to override a method in SecurityAdmin class
13: [01:39:44] <ezero> well, the intent was to add a tab right after Roles
14: [01:41:26] <ezero> not sure if using DataExtension will let me
15: [01:46:59] <starlifterdigi> Anyone up for a laugh? Here is my first semi-successful attempt at a SilverStripe site: http://ss-template.apollo.treshna.com/ My apologies to any vegetarians, enjoy…
16: [01:48:35] <ezero> cool, well done!
17: [01:49:08] * ezero no pun intended
18: [01:50:55] * Azure quit (Read error: Connection reset by peer)
19: [01:54:27] * veb has joined #silverstripe
20: [01:54:30] * veb quit (Changing host)
21: [01:54:30] * veb has joined #silverstripe
22: [02:01:27] * veb quit (Quit: veb-irc: quit)
23: [02:20:54] <starlifterdigi> Straight up Meat
24: [02:21:36] <starlifterdigi> I work at Meta Solutions here in Christchurch and sometimes we accidently spell it Meat Solutions, hence the concept for this site :D
25: [02:26:00] * Azure has joined #silverstripe
26: [02:32:00] <starlifterdigi> I’m working through the tutorial and was wondering if there was a list of variable extenders for $Content as in “$Content.FirstParagraph”
27: [03:19:45] <simon_w|work> starlifterdigi, http://api.silverstripe.org/3.1/class-HTMLText.html
28: [03:19:53] <simon_w|work> Anything that starts with a capital letter
29: [03:24:19] <starlifterdigi> Thanks for that. I need to brush up on the API huh
30: [03:38:17] * starlifterdigi quit (Quit: starlifterdigi)
31: [03:52:38] * gelignite quit (Quit: http://bit.ly/nkczDT)
32: [03:54:57] * hailwood has joined #silverstripe
33: [03:57:49] * hailwood has left #silverstripe
34: [03:58:03] * hailwood has joined #silverstripe
35: [03:58:42] * ocm13 has joined #silverstripe
36: [04:16:01] * cloph has joined #silverstripe
37: [04:16:04] * cloph_away quit (Ping timeout: 245 seconds)
38: [05:34:28] * ocm13 quit (Ping timeout: 255 seconds)
39: [07:02:14] * Shrike_Finland has joined #silverstripe
40: [07:03:19] * Error404NotFound has joined #silverstripe
41: [07:06:53] * Err404NotFound quit (Ping timeout: 240 seconds)
42: [07:32:28] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
43: [07:49:40] <Guest97869> ezero: " well, the intent was to add a tab right after Role" < create an extension with the method updateEditForm($form) and apply it to SecurityAdmin
44: [07:50:03] <Guest97869> line 196 of security admin, $this->extend('updateEditForm', $form); is your friend
45: [07:50:36] * Guest97869 is now known as elgrodo
46: [07:58:43] * Shrike_Finland quit (Quit: Leaving.)
47: [07:58:48] <ezero> hmm maybe thats what i forgot to do elgrodo
48: [07:58:52] <ezero> i.e extend
49: [07:58:58] <ezero> i did create an extention
50: [07:59:38] <ezero> ill give that another shot, thanks
51: [08:01:12] <ezero> i created a method getEditForm
52: [08:01:18] <ezero> no wonder it didn't work
53: [08:11:24] * Shrike_Finland has joined #silverstripe
54: [08:39:31] <Eliseth> Morning
55: [09:17:38] * elgrodo quit (Ping timeout: 244 seconds)
56: [09:30:17] * ocm13 has joined #silverstripe
57: [09:33:07] * slievr quit (Ping timeout: 246 seconds)
58: [09:34:46] * ocm13 quit (Ping timeout: 255 seconds)
59: [10:27:30] * Pynwyrk has joined #silverstripe
60: [10:27:40] <Pynwyrk> :O
61: [11:15:47] * Shrike_Finland quit (Quit: Leaving.)
62: [11:15:54] * Peer has joined #silverstripe
63: [11:16:17] * Peer is now known as Guest6512
64: [11:16:46] * Guest6512 quit (Client Quit)
65: [11:19:34] * Shrike_Finland has joined #silverstripe
66: [11:56:07] * slievr has joined #silverstripe
67: [12:00:28] * slievr quit (Ping timeout: 246 seconds)
68: [12:16:58] * ocm13 has joined #silverstripe
69: [12:24:50] * gelignite has joined #silverstripe
70: [13:00:37] * Kingy^ is now known as Kingy
71: [13:01:30] * Kingy is now known as Kingy[a]
72: [13:36:01] * Azure quit (Quit: My MBP went to sleep.)
73: [13:50:24] * origincube has joined #silverstripe
74: [14:14:36] * ocm13 quit (Quit: Leaving)
75: [14:22:29] * Azure has joined #silverstripe
76: [14:29:14] * catcher has joined #silverstripe
77: [14:51:19] * Shrike_Finland quit (Quit: Leaving.)
78: [15:17:23] * Shrike_Finland has joined #silverstripe
79: [16:05:29] * babak quit (Ping timeout: 272 seconds)
80: [16:08:55] * babak has joined #silverstripe
81: [16:20:45] <origincube> hey guys, might be a basic thing, but if i have two numbers that get put in via the cms, one is optional, so i want to display either that number, or if the other exists add them and then display the result. haven't had much luck finding any info on this in the docs
82: [16:20:58] <origincube> Happy New year to your guys out NZ way too! :)
83: [16:23:47] <catcher> origincube, function TheNumber(){ return $this->number1 + $this->number2; }
84: [16:24:31] <origincube> ugh, why didn't I think of that (i'm going to blame having to work in Symfony the rest of the time! I'm too used to doing random stuff in the view!)
85: [16:24:33] <origincube> thanks! :)
86: [16:25:38] <catcher> origincube, np :)
87: [16:25:47] <origincube> i presume i just stick that in my php file
88: [16:26:05] <catcher> origincube, in the controller, then call $TheNumber in the template (provided you haven't switched contexts)
89: [16:26:45] <origincube> context should be right
90: [16:27:06] <catcher> origincube, some would argue it belongs in the model, either will work in SS.
91: [16:28:02] <origincube> as long as it works, i'm happy
92: [16:29:00] <origincube> part of it is that i need to render the added number on the parent page, so i have a loop children, then use an include template to render the block of code corresponding to each child
93: [16:30:15] <catcher> origincube, in that case, it'll need to go in the model (re: context switch note above)
94: [16:36:23] <origincube> tx
95: [16:36:40] <origincube> been trying desperately to figure out why its not working, only to realise i haven't created the child pages yet. haha
96: [16:37:19] <origincube> just on a similar note. is that any easy way to change the label on say the page name field in the admin area
97: [16:37:46] <origincube> on this specific page would be useful if it said something else, but still functions as the page name
98: [16:41:44] <catcher> origincube, custom Page type?
99: [16:41:55] <origincube> yes
100: [16:43:13] <catcher> sure, in CMSFields, $fields->dataFieldByName('Title')->setTitle('CustomTitle');
101: [16:43:29] <origincube> perfect!
102: [16:43:40] <origincube> sorry for all these questions that are probably rather simple
103: [16:43:40] <origincube> hehe
104: [16:43:58] * jenniferaslan has joined #silverstripe
105: [16:44:07] <catcher> origincube, np, that's what the channel is here for.
106: [16:45:02] <catcher> origincube, and the API docs are helpful: http://api.silverstripe.org/3.1/class-FormField.html#_setTitle
107: [16:51:17] <Pynwyrk> catcher: origincube the model or the controller (for TheNumber()) - it's model specific so probably wouldn't hurt to be in there.
108: [16:51:17] <origincube> thanks
109: [16:52:33] <Pynwyrk> and yeh, form fields (mostly) follow a pattern (being subclasses of a common parent)
110: [16:52:45] <Pynwyrk> ie setTitle :)
111: [16:52:54] <Pynwyrk> things mostly make sense in SS! :)
112: [16:53:35] <origincube> yeah usually just have to get my brain in the right gear. since i work across a whole bunch of different products depending on the clients needs
113: [16:53:52] <Pynwyrk> yeh, understandable!
114: [16:54:07] <Pynwyrk> ps, working NYE sucks.
115: [16:54:24] <origincube> yeah i know, but its for a charity that wanted to go live with their new site on the 1st
116: [16:54:30] <Pynwyrk> ah yeh
117: [16:54:34] <origincube> so close, just ironing out the last few little tweaks :)
118: [16:54:48] <origincube> once this is done i can switch off until the 8th, woohoo
119: [16:54:51] <Pynwyrk> well, if it's because you want to, rather than having to... not so bad :>
120: [16:55:07] <Pynwyrk> I'm back at work on friday :<
121: [16:55:34] <catcher> Pynwyrk, it needs to be in the model in his case
122: [16:55:44] <Pynwyrk> mm
123: [16:55:48] <origincube> :/ ouch, you had any leave this festive season?
124: [16:56:14] * Shrike_Finland quit (Quit: Leaving.)
125: [16:56:30] <catcher> Me too, working Weds & Fri. boo.
126: [16:57:21] <Pynwyrk> origincube: well... I took christmas eve off, if that counts.
127: [16:57:34] <origincube> guess thats still better than nothign!
128: [16:57:38] <origincube> but thats hectic
129: [16:57:46] <origincube> ok more questions if you guys don't mind
130: [16:57:50] <Pynwyrk> it's been quiet. no dickhead new boss
131: [16:58:01] <origincube> hehe.
132: [16:58:01] <Pynwyrk> so just get to crack on instead of endless update documents.
133: [16:58:06] <catcher> Pynwyrk, still bad, huh?
134: [16:58:13] <Pynwyrk> catcher: well, yeah, mostly.
135: [16:58:30] <Pynwyrk> you want to progress something? Nah, we need to log all the hours we don't know about first.
136: [16:59:05] <Pynwyrk> I won't interrupt you if you're busy, but I need this now so if you could just drop everything and do that...
137: [16:59:16] <catcher> ugh
138: [16:59:44] <Pynwyrk> You shouldn't feel pressured to agree to do work... but we can't say no to the directors (where most of our stupid work comes from)
139: [16:59:59] <Pynwyrk> etc
140: [17:00:12] <origincube> ugh, makes you want to hit your head against a wall when you have to deal with bosses like that!
141: [17:00:53] <Pynwyrk> Yup. Stress free since he's off.
142: [17:01:04] <origincube> sweet :D
143: [17:01:14] <origincube> ok so another inane curious question
144: [17:01:22] <Pynwyrk> Also retard users are out too, so I get to do stuff that would normally interrupt service.
145: [17:01:50] <origincube> so within this child look, i need to pass each item the parent's url, so i'm usng an include with paramters one of which i give $Up.Link
146: [17:02:04] <origincube> any way to get the absolutely URL instead?
147: [17:02:50] <Pynwyrk> huh?
148: [17:02:55] <Pynwyrk> Parent.AbsoluteURL
149: [17:02:59] <Pynwyrk> $
150: [17:03:00] <Pynwyrk> ?
151: [17:03:10] <origincube> hmm
152: [17:03:11] <Pynwyrk> pages hold reference to their parents.
153: [17:03:19] <Pynwyrk> that's how hierarchial works
154: [17:03:27] <Pynwyrk> (extension applied to SiteTree)
155: [17:03:44] <Pynwyrk> most related things should hold a back reference.
156: [17:04:08] <Pynwyrk> so jumping template scope shouldn't be necessary, just drill further down which is actually further up, if that makes sense.
157: [17:04:27] <Pynwyrk> $Children.First.Parent == $this
158: [17:04:29] * gelignite quit (Quit: http://bit.ly/nkczDT)
159: [17:04:42] <Pynwyrk> where $this == $Me in template speak.
160: [17:04:56] <Pynwyrk> I'm probably just confusing you now though
161: [17:05:02] <origincube> just a tad
162: [17:05:02] <origincube> hehe
163: [17:05:41] <origincube> $Up.Link gives me the correct link
164: [17:06:02] <origincube> but without the base url
165: [17:06:15] <origincube> $Up.AbsoluteURL renders nothing
166: [17:06:35] <Pynwyrk> yeah, $Parent.AbsoluteURL
167: [17:06:40] <Pynwyrk> err, sorry
168: [17:06:42] <Pynwyrk> AbsoluteLink
169: [17:08:20] <Pynwyrk> anyway, it's hometime! Have a good new years folks!
170: [17:08:28] <origincube> you too Pynwyrk
171: [17:08:33] * Pynwyrk quit ()
172: [17:08:34] <origincube> have a fantastic one
173: [17:13:23] * gordon__ has joined #silverstripe
174: [17:13:40] * gordon__ is now known as elgrodo
175: [17:13:46] <elgrodo> Happy new year from Thailand
176: [17:14:08] * Liquide quit ()
177: [17:14:48] <origincube> happy new year elgrodo
178: [17:14:56] <origincube> catcher, are you still around?
179: [17:15:05] <elgrodo> :)
180: [17:15:37] <elgrodo> I'm going to change my username to nontgor to be consistent with my twitter handle, elgrodo is my old one (nontgor =- Nonthaburi Gordon)
181: [17:15:41] * elgrodo is now known as nontgor
182: [17:17:46] <origincube> so for some reason passing parameters to an included template isn't working
183: [17:17:54] <origincube> the values i pass in just aren't showing up. hmm
184: [17:18:19] <nontgor> I didn't know you could pass parameters to an included template
185: [17:19:14] <Zauberfisch> origincube: paste some code
186: [17:19:27] <nontgor> +1 :)
187: [17:19:36] <Zauberfisch> origincube: also, include parameters can be weird
188: [17:22:01] <origincube> ugh
189: [17:37:43] * Azure quit (Quit: My MBP went to sleep.)
190: [17:49:56] <Zauberfisch> origincube: ?
191: [17:56:29] <origincube> its working now
192: [17:58:37] <origincube> no idea what its problem was, could have just been the issues i had with the absolute url earlier since that was the one field
193: [17:58:40] <origincube> :)
194: [18:21:20] <catcher> DatePicker field rejects Dec. 30 2013 & 2014, but fine with 2012 & 2015. Hrm.
195: [18:22:32] <catcher> Clarification - I can pick those dates, and write them to the DB, but they display in the field as 2015 instead of 2014 for example.
196: [18:47:14] <catcher> Man. FYI, stick with lowercase 'y' for year formatting with the calendar picker. Capital does unpredictable things for no reason I can come up with.
197: [18:48:11] <Zauberfisch> yeah, damn date field
198: [18:48:15] <Zauberfisch> in fact. damn date formats
199: [18:49:30] <Zauberfisch> http://xkcd.com/1179/
200: [18:49:30] <Zauberfisch> !
201: [18:50:31] <catcher> Right!?
202: [18:51:42] <catcher> Just for fun, how could capital Y display Dec 30 (2013|2014) as Dec 30 2015, but Dec 30 2012 is fine? And lowercase fixes it?
203: [18:52:02] <Zauberfisch> i don't know
204: [18:52:23] <Zauberfisch> but what I do know is that writing MM DD YYYY is the most wrong format of them all
205: [18:52:50] <Zauberfisch> :P
206: [18:55:13] <catcher> more wrong than the cat?
207: [18:56:14] <Zauberfisch> cat?
208: [18:56:23] <catcher> http://xkcd.com/1179/
209: [19:02:43] <Zauberfisch> ah
210: [19:02:45] <Zauberfisch> hah
211: [19:02:48] <Zauberfisch> haha
212: [19:02:48] <Zauberfisch> yes
213: [19:02:53] <Zauberfisch> more wrong than the cat
214: [19:14:56] <origincube> i'm off guys, have a fantastic new years, see you on the flip side! :D
215: [19:16:17] <Zauberfisch> likewise
216: [19:16:24] * origincube has left #silverstripe
217: [19:21:44] * Shrike_Finland has joined #silverstripe
218: [19:42:34] * Shrike_Finland quit (Quit: Leaving.)
219: [19:44:11] * Shrike_Finland has joined #silverstripe
220: [19:49:23] * Shrike_Finland quit (Quit: Leaving.)
221: [19:50:32] * Shrike_Finland has joined #silverstripe
222: [20:24:33] * lerni_ has joined #silverstripe
223: [21:28:18] * Shrike_Finland quit (Quit: Leaving.)
224: [22:22:01] * lerni_ quit (Remote host closed the connection)
225: [22:22:40] * lerni_ has joined #silverstripe
226: [22:26:31] * simon__w has joined #silverstripe
227: [22:27:07] * lerni_ quit (Ping timeout: 264 seconds)
228: [22:34:24] * simon_w quit (*.net *.split)
229: [22:52:10] * catcher quit (Ping timeout: 255 seconds)
230: [22:54:01] * Kingy[a] is now known as Kingy
231: [23:06:05] * Azure has joined #silverstripe
232: [23:16:01] * travis-ci has joined #silverstripe
233: [23:16:01] <travis-ci> tractorcow/sapphire#29 (pulls/3.1/fix-url-query - e3f1ed8 : Damian Mooyman): The build failed.
234: [23:16:01] <travis-ci> Change view : https://github.com/tractorcow/sapphire/compare/8e9f1d48c6ea^...e3f1ed896532
235: [23:16:01] <travis-ci> Build details : http://travis-ci.org/tractorcow/sapphire/builds/45579854
236: [23:16:01] * travis-ci has left #silverstripe
237: [23:37:12] <Kingy> !bongoat Valentine, Michelle A - [Black Falcon 04] - Rock My Body [MF] (epub).rar
238: [23:38:05] <Kingy> !bongoat Valentine, Michelle A - [Black Falcon 04] - Rock My Body [MF] (epub).rar
239: [23:40:41] <Kingy> @search jay crownover rowdy

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