#silverstripe IRC Log

IRC log for 11 May 2013

All timestamps are in UTC.

1: [00:00:00] <FrozenFire> Naturally
2: [00:00:00] <Pyromanik__> cusp of autumn->winter
3: [00:00:00] <ss23> Pyromanik__: So yeah, if you wanted to go for a double, probably better to go to that hotel (and irogue is there too)
4: [00:00:00] <Pyromanik__> yeah
5: [00:00:00] <FrozenFire> It'll be ramping up in to summer, here.
6: [00:00:00] <Pyromanik__> normally 220
7: [00:00:00] <FrozenFire> I always forget that you guys are in the other hemisphere
8: [00:00:00] <Pyromanik__> that day
9: [00:00:00] <Pyromanik__> oh they have special
10: [00:00:00] <FrozenFire> Guess it depends on the season
11: [00:01:00] <Pyromanik__> haha
12: [00:01:00] <ss23> Pyromanik__: Ask you to tell me where I should stay and book a reoom there ;_;
13: [00:01:00] <Pyromanik__> what would you do otherwise ss23?
14: [00:01:00] <FrozenFire> Yeah, that makes more sense
15: [00:02:00] <Pyromanik__> this qualifies as both
16: [00:02:00] <Pyromanik__> I think Imma go for that $50 single
17: [00:02:00] <Pyromanik__> well
18: [00:02:00] <Pyromanik__> right around the corner from the SS.com
19: [00:02:00] <ss23> Pyromanik__: I've only been to wellington once, so idk where anything is. I want either so close to silverstripe I can't get lost, or somewhere someone else is staying :<
20: [00:04:00] <Pyromanik__> then again
21: [00:04:00] <Pyromanik__> http://www.westplaza.co.nz/West-Plaza-Hotel/Location/Page.htm
22: [00:04:00] <Pyromanik__> SS is right where that 6 is.
23: [00:04:00] <ss23> Pyromanik__: So what should I do? :O
24: [00:04:00] <Pyromanik__> :D
25: [00:04:00] <Pyromanik__> :O
26: [00:04:00] <Pyromanik__> D:
27: [00:04:00] <Pyromanik__> :S
28: [00:05:00] <Pyromanik__> I'm tempted for cheap room
29: [00:05:00] <Pyromanik__> :/
30: [00:05:00] <Pyromanik__> :|
31: [00:05:00] * ss23 dies
32: [00:05:00] <Pyromanik__> :|
33: [00:05:00] <Pyromanik__> $50 for a single ain't bad
34: [00:06:00] <ss23> At backpackers?
35: [00:07:00] <ss23> is that one close? :O
36: [00:07:00] <Pyromanik__> http://www.wellywoodbackpackers.co.nz/room/standard-single-room
37: [00:08:00] * Pyromanik__ has joined #silverstripe
38: [00:08:00] <ss23> lol
39: [00:08:00] * Pyromanik__ has left #silverstripe
40: [00:08:00] <Pyromanik__> :< wrong tab
41: [00:08:00] * simon_w|air quit (Quit: This computer has gone to sleep)
42: [00:09:00] <Pyromanik__> tell me more about this breakfast
43: [00:09:00] <ss23> idk
44: [00:09:00] <Pyromanik__> text irogue and tell him to stop (or start) being antisocial and IRC
45: [00:09:00] <Pyromanik__> also
46: [00:09:00] <Pyromanik__> I arrive at 7-something
47: [00:10:00] <ss23> haha, is there a rush?
48: [00:11:00] <Pyromanik__> plus I can't really do this stuff when I'm at work.
49: [00:11:00] <Pyromanik__> well, I'd like to get it sorted before I run out of money to pay for it with
50: [00:12:00] <willr> they should be paying for it :D
51: [00:12:00] <willr> why not Pyromanik__? it's really a business trip
52: [00:13:00] <Pyromanik__> Less freedom when business pays.
53: [00:13:00] <ss23> Pyromanik__: Well I wouldn't worry about the breakfast. If the issue is paying for it, I can just pay for it for you
54: [00:13:00] <Pyromanik__> nah, I didn't ask.
55: [00:13:00] <Pyromanik__> yeah
56: [00:13:00] <Pyromanik__> ha
57: [00:13:00] <Pyromanik__> probably fly me back that same night.
58: [00:14:00] <Pyromanik__> ss23: :<
59: [00:14:00] <ss23> You mean ":D"
60: [00:15:00] <ss23> ;_;
61: [00:15:00] <Pyromanik__> Righto, might as well take your room. Then get own bathroom and soap. Carry on soap is a fucking debakle.
62: [00:15:00] <ss23> Pyromanik__: So you wanna do the hotel room then?
63: [00:15:00] <ss23> haha
64: [00:15:00] <Pyromanik__> like a dog.
65: [00:15:00] <Pyromanik__> hallway
66: [00:15:00] <ss23> Where will I sleep then
67: [00:15:00] <ss23> TAKE MY ROOM?
68: [00:16:00] <ss23> Pyromanik__: Bro, party all night is my middle names.
69: [00:16:00] <ss23> :D
70: [00:16:00] <ss23> (one is queen, one is single)
71: [00:16:00] <ss23> Pyromanik__: If you let me take the queen, I'll pay the extra $5 too :D
72: [00:16:00] * simon_w has joined #silverstripe
73: [00:16:00] <Pyromanik__> well, if you're planning to party all night
74: [00:16:00] <Pyromanik__> if you're not planning on party all night I'll take single backpackers. Then I can head back whenevers
75: [00:17:00] <ss23> mm
76: [00:17:00] <ss23> haha
77: [00:17:00] <Pyromanik__> Plus it kinda depends on who is around.
78: [00:17:00] <Pyromanik__> I'm getting old :(
79: [00:17:00] <Pyromanik__> well maybe party half night then
80: [00:17:00] <Pyromanik__> hmm
81: [00:17:00] <ss23> I think sam said he was keen to go to some bars after etc
82: [00:18:00] <ss23> at the hotel? :O
83: [00:18:00] <Pyromanik__> there's the breakfree weekend deal with free breakfast the next morning
84: [00:18:00] <Pyromanik__> that's why I asked
85: [00:18:00] <Pyromanik__> keke
86: [00:18:00] <Pyromanik__> righto sweet bruv
87: [00:19:00] <Pyromanik__> but don't think it has extra bed. although says roll out bed is available on requwest
88: [00:19:00] <Pyromanik__> Includes Full Buffet breakfast for two and COMPLIMENTARY late check out up to 1pm on request
89: [00:19:00] <Pyromanik__> Breakfree Weekend Deal Book Now
90: [00:20:00] <ss23> The day after staying in the hotel, idk, but breakfast at hotel sounds sweet :D
91: [00:20:00] <ss23> Pyromanik__: The breakfast with simon_w I was talking about was going to be like, on the morning of SS, so not on hotel that night?
92: [00:20:00] <Pyromanik__> Yeh, $15 extra
93: [00:20:00] <Pyromanik__> 125
94: [00:20:00] <Pyromanik__> total
95: [00:21:00] <Pyromanik__> balla
96: [00:21:00] <Pyromanik__> looking at picture
97: [00:21:00] <Pyromanik__> balls*
98: [00:21:00] <Pyromanik__> looks like double room, not twin :<
99: [00:21:00] <ss23> not bad, $15/2 extra for breakfast
100: [00:21:00] <Pyromanik__> althoguh
101: [00:26:00] <ss23> Pyromanik__: I gotta go out, but if you wanna use rollout bed + breakfast there, we can do that, but if you prefer a proper bed, we can do the twin if you like, or you know, whatever floats your boat (but srsly, since it's $5 extra for hotel room instead of backpackers, would prefer to do this if you have no oppisition). Also if we don't get breakfast at hotel, I'll need breakfast somewhere else too, and so will irogue I gues, so we can go out and get wh
102: [00:26:00] <ss23> I remember where all the mcdonalds are from my last stay in Wellington :D
103: [00:26:00] <ss23> The only place I can remember, mcdonalds... mmm
104: [00:32:00] <jcwacky> For example, sort blog posts by the number of comments they have.
105: [00:32:00] <jcwacky> How can I sort a DataObject on the number of related records it has?
106: [00:33:00] <Pyromanik__> ss23: yeah, I'm about to go out too
107: [00:34:00] <Pyromanik__> ss23: should check with irogue, see what he has planned for breakfast. Not much point in us going there while he gets left out
108: [00:35:00] <Pyromanik__> I don't mind a rollout bed, so long as there's enough room to put it in is all (where it doesn't turn a double into a triple)
109: [00:35:00] <Pyromanik__> you and irogue can sort it out
110: [00:35:00] <Pyromanik__> I'll pay you whatever my share is, just let me know.
111: [00:37:00] <Pyromanik__> We can always get breakfast at the hotel anyway without the deal.
112: [00:37:00] <Pyromanik__> you'll have to make your own query I think
113: [00:37:00] <Pyromanik__> jcwacky: count()
114: [00:38:00] <Pyromanik__> you might be able to do it with SQLQuery
115: [00:38:00] <Pyromanik__> (count as in SQL, not count as in $dl->count())
116: [00:39:00] <jcwacky> Ah ok, cheers, I'll give that a go.
117: [00:39:00] * Pyromanik__ has left #silverstripe
118: [00:59:00] * jcwacky quit (Quit: jcwacky)
119: [01:02:00] * joelpittet has joined #silverstripe
120: [01:06:00] * simon__w has joined #silverstripe
121: [01:06:00] * ec8or_ has joined #silverstripe
122: [01:08:00] * ec8or quit (Ping timeout: 245 seconds)
123: [01:08:00] * ooystein_ quit (Ping timeout: 245 seconds)
124: [01:08:00] * simon_w quit (Read error: Connection reset by peer)
125: [01:08:00] * ooystein has joined #silverstripe
126: [01:08:00] * discorpia quit (Ping timeout: 245 seconds)
127: [01:09:00] * simon__w is now known as simon_w
128: [01:09:00] * discorpia has joined #silverstripe
129: [01:13:00] * Kolin quit (*.net *.split)
130: [01:14:00] * Kolin has joined #silverstripe
131: [01:20:00] * joelpitt_ has joined #silverstripe
132: [01:23:00] * joelpittet quit (Ping timeout: 276 seconds)
133: [01:31:00] * joelpittet has joined #silverstripe
134: [01:31:00] * ^pH has joined #silverstripe
135: [01:32:00] * ^pH- quit (Ping timeout: 276 seconds)
136: [01:36:00] * Anthraxnz has joined #silverstripe
137: [01:36:00] <Anthraxnz> Hello everyone :)
138: [01:38:00] <simon_w> You say that like it's a good thing :p
139: [01:38:00] <Anthraxnz> Never said it was a good thing, just suprised :P
140: [01:38:00] * ooystein_ has joined #silverstripe
141: [01:38:00] <Anthraxnz> Oh wow... Sup - I think i actually know you :P
142: [01:38:00] <ss23> Hi :)
143: [01:39:00] <Anthraxnz> SS 3 and ecommerce having problems with the product page... Basically it's not returning anything.
144: [01:39:00] <ss23> haha
145: [01:39:00] <ss23> Whats up?
146: [01:39:00] <Anthraxnz> I need some help :(
147: [01:39:00] <ss23> Yeah, I recognize you I think Anthraxnz :P
148: [01:40:00] <ss23> Returning as in it's not showing anything, or returning as in the DB stuff isn't returning any objects in the result set?
149: [01:40:00] <Anthraxnz> not showing anything.
150: [01:41:00] * discorpia has joined #silverstripe
151: [01:41:00] * discorpia quit (Ping timeout: 268 seconds)
152: [01:41:00] <ss23> Anthraxnz: As in view-source shows nothing too? If so, sounds like a PHP error
153: [01:42:00] <Anthraxnz> yeah.
154: [01:42:00] <ss23> Have you tried turning on error reporting?
155: [01:44:00] * Marvanni has joined #silverstripe
156: [01:44:00] * ^pH quit (*.net *.split)
157: [01:44:00] * joelpitt_ quit (*.net *.split)
158: [01:44:00] * ooystein quit (*.net *.split)
159: [01:44:00] * Marvanni quit (*.net *.split)
160: [01:46:00] <ss23> Anthraxnz: How did you turn it on?
161: [01:46:00] <Anthraxnz> Maybe you should tell me how i should turn it on :P
162: [01:46:00] <ss23> Would you like to give us the error?
163: [01:46:00] <Anthraxnz> I've turned on error reporting (Atleast i think i have and not getting anythign back) :S
164: [01:46:00] <Anthraxnz> It would appear that there is two pages i get an error back while publishing as well, the cart, checkout page order confirmation, add fine and are working as expected but wehn i try to add/publish New Account, Product Category and search page i get Error at line 580 of <DataPath>\framework\model\
165: [01:47:00] <ss23> Yeah, you need to set display_startup_errors, display_errors, and error_reporting
166: [01:47:00] <Anthraxnz> to display errors?
167: [01:47:00] <ss23> Edit the php.ini file for your particular SAPI
168: [01:47:00] * joelpitt_ has joined #silverstripe
169: [01:47:00] <ss23> If you turn it on with like <?php ini_set, it won't give you any syntax errors
170: [01:48:00] <ss23> After editing your php.ini (make sure it's the right one for hoever you're accessing PHP, the CLI one is different to the apache one for example), restart whatever is using php, and load it
171: [01:48:00] <ss23> Shouldn't get any white screens after taht
172: [01:48:00] <ss23> But in regards to the other error you got, if you could pastebin it, that would be helpful in us fixing that too
173: [01:50:00] * willr_ has joined #silverstripe
174: [01:50:00] * willr_ quit (Changing host)
175: [01:50:00] * willr_ has joined #silverstripe
176: [01:50:00] <Anthraxnz> The error was: Error at line 580 of <DataPath>\framework\model\MySQLDatabase.php
177: [01:51:00] <ss23> Anthraxnz: Copy and paste us the entire output. Like, literally, all of the error, the stack trace too, everything.
178: [01:52:00] <Anthraxnz> lol... I'm too noob for that kind of shit :P Everything else i have done with any other CMS i've never had the trouble :P
179: [01:53:00] * simon__w has joined #silverstripe
180: [01:55:00] <Anthraxnz> tell you what - give me a private message with some contact details or something and i'll let you have a direct look? - Much easier than trying to step a n--b through it.
181: [01:55:00] * ec8or has joined #silverstripe
182: [01:55:00] * unsigned_ has joined #silverstripe
183: [01:56:00] * willr quit (*.net *.split)
184: [01:56:00] * joelpittet quit (*.net *.split)
185: [01:56:00] * simon_w quit (*.net *.split)
186: [01:57:00] <Anthraxnz> no probs.
187: [01:57:00] <ss23> sounds good, one min, eaTING luch :D
188: [01:58:00] * abitran has joined #silverstripe
189: [01:58:00] * willr_ is now known as willr
190: [01:58:00] <Anthraxnz> Actually, If you have TS that would be handy? 131.203.124.6
191: [02:01:00] * Ian_Harris has joined #silverstripe
192: [02:03:00] * ec8or_ has joined #silverstripe
193: [02:03:00] <ss23> simon_w: Yeah :O
194: [02:03:00] * ec8or_ quit (*.net *.split)
195: [02:03:00] * abitran_ quit (*.net *.split)
196: [02:03:00] * unsignedint quit (*.net *.split)
197: [02:03:00] * FrozenFire quit (*.net *.split)
198: [02:03:00] <simon__w> Man, free node's having problems this morning
199: [02:03:00] * simon__w is now known as simon_w
200: [02:03:00] * joelpittet has joined #silverstripe
201: [02:04:00] <ss23> Anthraxnz: Uh, no Teamspeak (assuming that was TS)
202: [02:04:00] <Anthraxnz> yeah... Sweet as
203: [02:05:00] * FrozenFire has joined #silverstripe
204: [02:06:00] * FrozenFire has joined #silverstripe
205: [02:06:00] * FrozenFire quit (Changing host)
206: [02:06:00] * spronk2_ has joined #silverstripe
207: [02:07:00] * popeshoe quit (Ping timeout: 252 seconds)
208: [02:07:00] * spronk2 quit (Ping timeout: 252 seconds)
209: [02:09:00] * ec8or quit (Read error: Connection reset by peer)
210: [02:09:00] * joelpitt_ quit (Ping timeout: 245 seconds)
211: [02:17:00] * ec8or has joined #silverstripe
212: [02:19:00] * willr quit (*.net *.split)
213: [02:20:00] * ec8or_ quit (Ping timeout: 276 seconds)
214: [02:21:00] * Marvanni has joined #silverstripe
215: [02:21:00] * Marvanni is now known as 16WAAV8K3
216: [02:21:00] * Marvanni has joined #silverstripe
217: [02:21:00] * Marvanni quit (*.net *.split)
218: [02:23:00] * ooystein has joined #silverstripe
219: [02:23:00] * EasyCo_ quit (Client Quit)
220: [02:23:00] * EasyCo_ has joined #silverstripe
221: [02:25:00] * sekjal_ has joined #silverstripe
222: [02:26:00] * EasyCo quit (*.net *.split)
223: [02:26:00] * ooystein_ quit (*.net *.split)
224: [02:26:00] * sekjal quit (*.net *.split)
225: [02:26:00] * unsignedint has joined #silverstripe
226: [02:26:00] * joelpitt_ has joined #silverstripe
227: [02:26:00] * 16WAAV8K3 quit (*.net *.split)
228: [02:28:00] * joelpitt_ has joined #silverstripe
229: [02:28:00] * joelpitt_ quit (Remote host closed the connection)
230: [02:29:00] * discorpia has joined #silverstripe
231: [02:29:00] * discorpia quit (Ping timeout: 268 seconds)
232: [02:29:00] * unsigned_ quit (Ping timeout: 268 seconds)
233: [02:29:00] * joelpittet quit (Ping timeout: 268 seconds)
234: [02:35:00] * joelpitt_ quit (Remote host closed the connection)
235: [02:35:00] * joelpittet has joined #silverstripe
236: [02:38:00] * spronk2 has joined #silverstripe
237: [02:39:00] * abitran_ has joined #silverstripe
238: [02:44:00] * abitran quit (Ping timeout: 268 seconds)
239: [02:44:00] * spronk2_ quit (Ping timeout: 268 seconds)
240: [02:52:00] * spronk2 quit (Ping timeout: 252 seconds)
241: [02:52:00] * spronk2_ has joined #silverstripe
242: [02:53:00] * simon_w quit (*.net *.split)
243: [02:59:00] * simon_w has joined #silverstripe
244: [03:02:00] * abitran has joined #silverstripe
245: [03:11:00] * gelignite quit (Quit: http://bit.ly/nkczDT)
246: [03:11:00] * abitran_ quit (*.net *.split)
247: [03:14:00] * DesignerX has joined #silverstripe
248: [03:18:00] * simon_w quit (Read error: Connection reset by peer)
249: [03:20:00] * simon_w has joined #silverstripe
250: [03:31:00] <folibis> hi All!
251: [03:31:00] * folibis has joined #silverstripe
252: [03:33:00] * cloph_away has joined #silverstripe
253: [03:34:00] * cloph quit (Ping timeout: 272 seconds)
254: [03:34:00] <folibis> what I do wrong, guys? I want to define new action on my Home page with this url - http://mysite.com/data.xml. I do inside HomePage_Controller: public static $url_handlers = array('/data.xml' => 'data' );
255: [03:35:00] <folibis> and of cource function public function data($request) {}
256: [03:35:00] <folibis> I got error 404
257: [03:36:00] <simon_w> folibis, the URL for that action'll be home/data.xml
258: [03:37:00] <folibis> no i need it from the site root
259: [03:37:00] <simon_w> yup
260: [03:37:00] <folibis> you mean http://mysite.com/home/data.xml?
261: [03:39:00] * simon_w|air has joined #silverstripe
262: [03:39:00] * robert_ has joined #silverstripe
263: [03:39:00] * robert_ quit (Changing host)
264: [03:39:00] * robert_ has joined #silverstripe
265: [03:40:00] <folibis> how can I define action like this - http://mysite.com/data.xml? I guess it have to work like sitemap
266: [03:40:00] <simon_w|air> *director rule
267: [03:40:00] <simon_w|air> You need adiecor rule that points to a controller
268: [03:41:00] * simon_w quit (Read error: Connection reset by peer)
269: [03:41:00] * simon__w has joined #silverstripe
270: [03:41:00] <folibis> bumay be I need to define it inside mysite/_config/route.yml?
271: [03:42:00] <simon_w|air> Yes, that's where you define director rules
272: [03:44:00] <folibis> ok but what I define with public static $url_handlers ? ))
273: [03:44:00] <simon_w|air> Nothing. You need another controller to handle it
274: [03:44:00] * willr has joined #silverstripe
275: [03:49:00] * nicolaas has joined #silverstripe
276: [03:50:00] <nicolaas> does anyone know how to work with GridField and Has Many editor.... Basically, when I open the edit-one-record, the linked field is not autocompleted.
277: [03:51:00] <simon_w|air> nicolaas, just remove it from the object's getCMSFields()
278: [03:51:00] <simon_w|air> It gets written on save, no matter what value you pick
279: [03:55:00] * simon_w|air quit (Quit: This computer has gone to sleep)
280: [03:55:00] * OldTom has joined #silverstripe
281: [03:58:00] * maknz quit (Read error: Connection reset by peer)
282: [03:58:00] * maknz has joined #silverstripe
283: [03:58:00] * maknz has joined #silverstripe
284: [03:58:00] * maknz quit (Changing host)
285: [04:02:00] <nicolaas> ok - that is great, BUT I am wondering how I can show it in some editors and not in other editors
286: [04:02:00] <nicolaas> hi Simon
287: [04:02:00] <nicolaas> thank you
288: [04:09:00] <willr> @simon_w bah you having me change the regex, worked fine in the first commit :P should be resolved now
289: [04:09:00] <simon__w> willr, I made you make it faster! :p
290: [04:09:00] * simon__w is now known as simon_w
291: [04:32:00] <nicolaas> simon__w that does not seem to work!
292: [04:33:00] <nicolaas> any idea?
293: [04:33:00] <simon_w> Elaborate?
294: [04:35:00] <nicolaas> when I click on the button "add OrderLog" ... it does not add the orderid... so it creates the orderlog, BUT it does not auto-set the OrderID to the originating Order.ID
295: [04:35:00] <nicolaas> does that make sense?
296: [04:35:00] <nicolaas> ok, so I removed the "orderid" field in the orderLog class getCMSFields.... One Order has_many OrderLogs
297: [04:36:00] <simon_w> You're not passing in the HasManyList
298: [04:36:00] <nicolaas> I have really had a very good look... and it is pretty important to me.
299: [04:36:00] <nicolaas> hope you can help
300: [04:36:00] <nicolaas> or perhaps you have an idea on how to search for this.
301: [04:37:00] <nicolaas> how do I do that? Order->OrderLogs()?
302: [04:38:00] <simon_w> GridField doesn't let you do that
303: [04:38:00] <simon_w> Well, not the stock one anyone
304: [04:38:00] <nicolaas> I actually want to pass a subset... and when I add an OrderLog I want it to be
305: [04:38:00] <nicolaas> a specific sub-class (extension) of the OrderLog
306: [04:38:00] <nicolaas> any ideas?
307: [04:38:00] <simon_w> Yes, when creating the GridField
308: [04:40:00] <simon_w> Well, I guess you can add a ClassName drop down to your getCMSFields
309: [04:42:00] <nicolaas> yeah - done that... good ideas Simon_w
310: [04:42:00] <nicolaas> I am also trying : setSourceClass
311: [04:43:00] <nicolaas> sorry: $source->setDataModel($sourceClass);
312: [04:45:00] <simon_w> And when DataModel actually starts being used, that's just going to break
313: [04:45:00] <nicolaas> yeah - setDataModel does not work
314: [04:46:00] <nicolaas> The thing is when i did not use the hasManyList
315: [04:46:00] <nicolaas> actually that is not sufficient
316: [04:46:00] <nicolaas> I wonder if we can prepopulate the className dropdown
317: [04:47:00] <simon_w> You could $gf->setModelClass($classname)
318: [04:47:00] <nicolaas> but rather, I just sourced the source - everything works EXCEPT setting the OrderID.
319: [04:48:00] <simon_w> Having the relation not being set means you're managing a generic list, not a relation list. You need to use the relation list for the relation to be set.
320: [04:48:00] <nicolaas> hmm, let me try that...
321: [04:50:00] <nicolaas> thank you....
322: [04:50:00] <nicolaas> that worked!!!! great!!!
323: [04:50:00] * Anthraxnz quit (Ping timeout: 245 seconds)
324: [04:50:00] <nicolaas> one more question: how do you work with : "I can't handle sub-URLs of a Form object"
325: [04:51:00] <nicolaas> well, I get that error, after I save... everything works now, but when I save I get: "I can't handle sub-URLs of a Form object"
326: [04:51:00] <simon_w> A form submission handler's returning something it shouldn't
327: [04:51:00] * folibis quit (Quit: Page closed)
328: [04:53:00] <nicolaas> any idea on how to ignore this?
329: [04:56:00] <ss23> "I love the improvements in IE10, it downloads firefox/chrome like almost twice as fast since the update"
330: [04:57:00] <simon_w> ss23, but then that person'll be running firefox or chrome!
331: [04:57:00] <simon_w> nicolaas, find out what's causing the error and fix that?
332: [04:57:00] <ss23> simon_w: fanboy.
333: [05:10:00] * howardgrigg quit (Remote host closed the connection)
334: [05:13:00] * liam has joined #silverstripe
335: [05:28:00] * simon__w has joined #silverstripe
336: [05:31:00] * simon_w quit (Ping timeout: 240 seconds)
337: [06:56:00] * ss-log has joined #silverstripe
338: [07:02:00] * willmorgan has joined #silverstripe
339: [07:06:00] * robert_ has left #silverstripe
340: [07:16:00] * joelpittet quit (Remote host closed the connection)
341: [07:32:00] * willr quit (Quit: willr)
342: [07:36:00] * simon_w|air has joined #silverstripe
343: [07:36:00] * simon__w quit (Read error: Connection reset by peer)
344: [07:37:00] * simon_w has joined #silverstripe
345: [07:37:00] * travis-ci has joined #silverstripe
346: [07:37:00] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#362 (3.1 - 7c68414 : Will Rossiter): The build passed.
347: [07:37:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/d766af542d30...7c68414fe751
348: [07:37:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/7074529
349: [07:37:00] * travis-ci has left #silverstripe
350: [07:38:00] <simon_w|air> Bah, I keep forgetting DBField's interface is kinda crap
351: [07:52:00] * SightUnseen has joined #silverstripe
352: [07:52:00] * SightUnseen has left #silverstripe
353: [08:00:00] * simon_w|air quit (Quit: This computer has gone to sleep)
354: [08:00:00] <simon_w|air> Oh well, composite field again it is
355: [08:34:00] * Nacho has joined #silverstripe
356: [08:36:00] <Nacho> Hello - I need some help from someone smarter than me. Am I in the right place? The second blog widget is not showing any content, nothing present in the html code either. Any hints?
357: [08:37:00] <willmorgan> what is your code, what have you tried?
358: [08:39:00] <Nacho> just added the widget in the cms - when I add 2 widgets in the cms whichever widget I added first and land on the bottom doesn't get any content. The widget on top works fine regardless which one it is.
359: [08:40:00] <Nacho> I don't really have a clue where to look for an error - thanks for your patience.
360: [08:46:00] <Nacho> <div class="BoxHeader"> <h7>Tag Cloud</h7> </div> <div class="sidebarBox WidgetHolder TagCloudWidget first last"> <p class="tagcloud"> <a href="" class=""></a> </p> <div class="clear"><!-- --></div> </div>
361: [08:51:00] <willmorgan> what version of SS?
362: [08:51:00] <Nacho> 3.0.5
363: [08:54:00] <willmorgan> and the version of the blog module?
364: [08:57:00] <Nacho> 0.6.0
365: [08:59:00] <willmorgan> this one right?
366: [08:59:00] <willmorgan> https://github.com/silverstripe/silverstripe-blog
367: [09:01:00] <willmorgan> can you show me your code?
368: [09:02:00] <Nacho> No I got this one: http://www.silverstripe.org/assets/modules/stable/silverstripe-blog-master-0.6.0.tar.gz - Sure I can, which one? Here's a link to the page with the num tag cloud widget: http://www.wp11170768.server-he.de/aktuelles/
369: [09:02:00] <Nacho> numb
370: [09:03:00] <willmorgan> when did you download the tarball of the blog stuff btw?
371: [09:03:00] <willmorgan> i need to see your source code
372: [09:03:00] <Nacho> widgetcontrollerextension.php?
373: [09:04:00] <Nacho> 2 weeks ago - the latest release was not available for download at silverstripe.org
374: [09:04:00] <willmorgan> that sounds interesting, yes, i'll see that please :)
375: [09:04:00] <willmorgan> www.sspaste.org
376: [09:04:00] <willmorgan> http://www.sspaste.com/
377: [09:04:00] <willmorgan> ah ok. the 0.6 version on github is probably newer
378: [09:05:00] <Nacho> http://www.sspaste.com/paste/show/518e09cdc2dc8
379: [09:05:00] <willmorgan> are you using any version control system?
380: [09:05:00] <willmorgan> composer, svn, etc?
381: [09:06:00] <willmorgan> yeah no worries. okay - are you adding the extension to the widget controller?
382: [09:06:00] <Nacho> not that I knew - I'll try to install the 0.6 Version
383: [09:06:00] <Nacho> Thank you for your help!
384: [09:09:00] <willmorgan> Nacho: ^
385: [09:09:00] <willmorgan> how so
386: [09:09:00] <Nacho> 0.6 breaks framework\main.php :(
387: [09:12:00] <Nacho> substituted the /blog folder with the new one, dev/build, ?flush=all -> IIS 7.5 Express tells me FastCgiModule - ExecuteRequestHandler PHP53_via_FastCGI1 error code 0x00000000
388: [09:13:00] <willmorgan> oh LOL
389: [09:13:00] <willmorgan> Nacho, I just ran /dev/build on your site
390: [09:13:00] <Nacho> II'll roll that back. How do I add the extension to the widget controller?
391: [09:14:00] <willmorgan> some changes were made
392: [09:14:00] <willmorgan> hmmmm
393: [09:14:00] <willmorgan> Widget.ClassName enum changed
394: [09:15:00] <Nacho> Don't want to mess our school's website :)
395: [09:15:00] <Nacho> Yeah I'm messing around at my localhost sandbox now though.
396: [09:16:00] <willmorgan> hmm
397: [09:16:00] <willmorgan> i'm no good with IIS to be honest
398: [09:17:00] <willmorgan> can you maybe put a bit of debug in?
399: [09:17:00] <Nacho> definitely
400: [09:17:00] <willmorgan> and you're sure you have tags, ri ght?
401: [09:17:00] <willmorgan> ha, ok
402: [09:18:00] <willmorgan> let's try and find out whether your datasource is correct
403: [09:18:00] <Nacho> I changed the order of the widgets, now you can see the tags but not the dates http://www.wp11170768.server-he.de/aktuelles/
404: [09:19:00] <willmorgan> and flush
405: [09:19:00] <willmorgan> $TagsCollection.debug
406: [09:19:00] <willmorgan> can you do this:
407: [09:19:00] <willmorgan> before line 1
408: [09:19:00] <willmorgan> https://github.com/silverstripe/silverstripe-blog/blob/0.6/templates/TagCloudWidget.ss
409: [09:19:00] <willmorgan> and in this file:
410: [09:19:00] <willmorgan> can you change the order back
411: [09:19:00] <willmorgan> save template and reload
412: [09:20:00] <Nacho> I'm on my way - give me 1 minute
413: [09:25:00] <Nacho> Did that - however the cms won't let me now to change back the order of the widgets
414: [09:27:00] <Nacho> I added $TagsCollection.debug to the archive widget
415: [09:28:00] <Nacho> Sorry I meant $Date.Year.debug :)
416: [09:32:00] <Nacho> Why on earth isn't the cms allowing me to change order of the widgets now? When I save the new order it will just ignore it.
417: [09:36:00] <Nacho> All right, got that sorted out by adding a third widget (blog management) and then deleting it. Nice bug
418: [09:40:00] * priithansen has joined #silverstripe
419: [09:51:00] <Nacho> Still no tag clod items in the widget though
420: [10:28:00] <Nacho> I'd be thankful for an answer to this: http://www.silverstripe.org/widgets-2/show/21778
421: [10:30:00] * Colin[pi] quit ()
422: [10:34:00] * micmania1 has joined #silverstripe
423: [10:46:00] * jcwacky has joined #silverstripe
424: [10:48:00] <jcwacky> I'm currently getting to grips with using just the SS Framework. Defined my own routes in routes.yml but dev/build isn't working anymore, as it's trying to look for the dev action on my controller. How can I make sure the /dev and /admin actions still work?
425: [10:50:00] * LoveDuckie has joined #silverstripe
426: [10:50:00] <willmorgan> jcwacky: your first port of call should be debugging the current routes available in Director
427: [10:51:00] <LoveDuckie> OK
428: [10:51:00] <willmorgan> but you must remember that admin/ points to the CMS
429: [10:51:00] <LoveDuckie> I'm wondering if anyone can answer this for me.
430: [10:51:00] <LoveDuckie> I've created a dataextension with members in its $db array
431: [10:51:00] <willmorgan> LoveDuckie: can you paste your code? www.sspaste.com
432: [10:51:00] <willmorgan> i want to see the dataextension please
433: [10:51:00] <willmorgan> so if you don't have the CMS module available, of course, /admin will not work :-P
434: [10:51:00] <LoveDuckie> and I want to access those settings from another controller
435: [10:52:00] <willmorgan> and what version of SS might you be using?
436: [10:52:00] <LoveDuckie> http://sspaste.com/paste/show/518e22e599adf
437: [10:53:00] <willmorgan> i *think* you can do this:
438: [10:53:00] <LoveDuckie> yeah, I want to know how to access the settings stored by that DataExtension
439: [10:53:00] <LoveDuckie> 3.0.1
440: [10:53:00] <willmorgan> and you want to get the entire DB array from another object, yeah?
441: [10:53:00] <willmorgan> Config::inst()->get('Contact', 'db');
442: [10:54:00] <jcwacky> willmorgan: I've used the example yml at http://doc.silverstripe.org/framework/en/reference/director#routing which includes a line telling the custom routes to run after the core routes, but it doesn't appear to be working.
443: [10:54:00] <willmorgan> so basically LoveDuckie, in 3.1 SS is moving to using the Config class for everything. this means things speed up
444: [10:54:00] <LoveDuckie> I assume that what DataExtension is meant to be doing in this regards. Extending the functionality of the settings pane.
445: [10:54:00] <LoveDuckie> Ah right.
446: [10:54:00] <willmorgan> also LoveDuckie I'm not sure that you're defining the $db array right - do the extra fields get added at /dev/build?
447: [10:54:00] <willmorgan> used to using function extraStatics() { } myself
448: [10:55:00] <LoveDuckie> Yeah, they seem to be added fine.
449: [10:55:00] <LoveDuckie> at least it looked like during the dev/build
450: [10:55:00] <willmorgan> ah. right, cool
451: [10:55:00] <jcwacky> willmorgan: nope
452: [10:55:00] <jcwacky> willmorgan: /admin actually points to AdminRootController in framework, as you can still access it without the cmd module, just not the Pages tab.
453: [10:55:00] <willmorgan> LoveDuckie: no, i mean do the actual database fields get added to the schema
454: [10:55:00] <LoveDuckie> Yeah it works fine.
455: [10:55:00] <LoveDuckie> you mean updateCMSFields?
456: [10:55:00] <willmorgan> jcwacky: do you have the cms module installed?
457: [10:56:00] <willmorgan> but it's one of those :-P
458: [10:56:00] <willmorgan> i forgot
459: [10:56:00] <willmorgan> i believe it is ?showqueries or ?debug_request
460: [10:56:00] <willmorgan> jcwacky: can you debug the request?
461: [10:56:00] <willmorgan> it would be a good idea if you read up on the 3.1 Config API changes LoveDuckie as some really good stuff is coming in them
462: [10:56:00] <willmorgan> anyway, hope that config thing helps
463: [10:56:00] <willmorgan> all right, disregard the latter part of what i said
464: [10:56:00] <LoveDuckie> Alright, shall do. Will have to look into upgrading at some point :<
465: [10:58:00] <willmorgan> ah
466: [10:58:00] <jcwacky> willmorgan: Debug: http://spdr.me/AuB6
467: [10:59:00] <willmorgan> what's your routes.yml looking like?
468: [10:59:00] <willmorgan> thanks :)
469: [10:59:00] <jcwacky> willmorgan: http://spdr.me/LaVq
470: [10:59:00] <willmorgan> because i think you might have a conflict somewhere that is overriding by accident
471: [11:00:00] <jcwacky> that's basically my homepage for the app
472: [11:00:00] <willmorgan> ahhh
473: [11:00:00] <willmorgan> do you basically want all requests to go to WishController?
474: [11:00:00] <jcwacky> unless otherwise specified yes
475: [11:01:00] <willmorgan> can you see what happens if you go '': 'WishController'?
476: [11:01:00] <jcwacky> but when performing an action on a specific wish I'll want /wish/edit/4 to point elsewhere. But not done that bit yet!
477: [11:01:00] <willmorgan> yeah. the routing config is a bit of an enigma to me, i mostly get around it with trial and error :)
478: [11:02:00] <jcwacky> when trying to access an action on WishController such as vote/4 it doesn't work anymore.
479: [11:02:00] <willmorgan> also, if you have a main controller that you want all requests to go to by default, the standard SS name is "RootURLController"
480: [11:02:00] <jcwacky> '' makes dev/build work, and my homepage still loads
481: [11:02:00] <jcwacky> but
482: [11:03:00] <willmorgan> yeah, okay
483: [11:04:00] <willmorgan> yeah both
484: [11:04:00] <willmorgan> try that ^
485: [11:04:00] <jcwacky> ah, both of them?
486: [11:04:00] <willmorgan> '': 'WishController'
487: [11:04:00] <willmorgan> '$Action/$ID': 'WishController'
488: [11:04:00] <willmorgan> if that doesn't work, you could try moving the $Action/$ID bit in to the WishController config
489: [11:05:00] <willmorgan> i'm kind of guessing here though. maybe simon_w knows better though
490: [11:06:00] <jcwacky> dev still not working with both
491: [11:07:00] <LoveDuckie> is config the same as database members?
492: [11:07:00] * micmania1 quit (Ping timeout: 245 seconds)
493: [11:07:00] <LoveDuckie> Will, not entirely sure the thing that you suggested is working
494: [11:08:00] <LoveDuckie> i.e. information that is stored under static $db
495: [11:09:00] <willmorgan> if you're using 3.0, you should still be able to access it via the config API
496: [11:09:00] <willmorgan> i'm pretty sure the 2.4 func still works in 3.0
497: [11:09:00] <willmorgan> for 2.4 you can do singleton('ModelName')->db(), i seem to remember
498: [11:10:00] <willmorgan> hopefully you're fixed when i'm back :)
499: [11:10:00] <willmorgan> i need to go for about 30 mins - just to the post office
500: [11:10:00] <LoveDuckie> Is there anyway to verbosely output the data that is in a variable through SS?
501: [11:10:00] <LoveDuckie> like 'echo'
502: [11:10:00] <willmorgan> Debug::dump()
503: [11:10:00] <LoveDuckie> OK.
504: [11:10:00] <LoveDuckie> thanks.
505: [11:10:00] <LoveDuckie> alright, no worries
506: [11:10:00] <LoveDuckie> and I hope so too :P
507: [11:14:00] <simon_w> Maybe I know what?
508: [11:14:00] <LoveDuckie> hm?
509: [11:15:00] <simon_w> [23:05:15] <willmorgan> i'm kind of guessing here though. maybe simon_w knows better though
510: [11:16:00] <LoveDuckie> sorry
511: [11:16:00] <simon_w> Too much back scroll to read :p
512: [11:16:00] <LoveDuckie> ah right
513: [11:17:00] * OldTom quit (Read error: Connection reset by peer)
514: [11:17:00] <willmorgan> fucking postal service in this country is shit
515: [11:18:00] <willmorgan> a flock of demented penguins would do a better job of delivering parcels
516: [11:18:00] * Zauberfisch has joined #silverstripe
517: [11:20:00] <LoveDuckie> Is everything hidden away when I use ContactForm?
518: [11:20:00] <LoveDuckie> lol
519: [11:20:00] <LoveDuckie> Yeah, just getting no luck. Even more so when using Debug::dump(). Nothing showing.
520: [11:21:00] <LoveDuckie> The problem that I am facing at the moment is that I am trying to access those Config vars from the "submit" function of my contact form.
521: [11:21:00] * kerosene has joined #silverstripe
522: [11:23:00] <willmorgan> LoveDuckie: you need to pass an argument to Debug::dump()
523: [11:23:00] <willmorgan> try Debug::dump(singleton('Member')->db());
524: [11:26:00] * zfmf has joined #silverstripe
525: [11:27:00] <simon_w> jcwacky, you need something like:
526: [11:27:00] <simon_w> ---
527: [11:27:00] <simon_w> Name: rootroutes
528: [11:27:00] <simon_w> After: 'framework/*#rootroutes'
529: [11:27:00] <simon_w> ---
530: [11:27:00] <simon_w> Director:
531: [11:27:00] <simon_w> rules:
532: [11:27:00] <simon_w> '': 'WishController'
533: [11:27:00] <simon_w> '//$Action/$ID': 'WishController'
534: [11:28:00] <jcwacky> That's done the trick! Thanks Simon!
535: [11:29:00] <LoveDuckie> Getting "undefined method" willmorgan
536: [11:29:00] <LoveDuckie> when changing db() to the field name that I am after.
537: [11:30:00] <willmorgan> assuming you're extending contact
538: [11:30:00] <simon_w> LoveDuckie, field access is through properties, not methods
539: [11:30:00] <LoveDuckie> singleton('ContactExtension')->db()
540: [11:30:00] <LoveDuckie> should be
541: [11:30:00] <willmorgan> LoveDuckie: should just be "Contact"
542: [11:30:00] <LoveDuckie> singleton('ContactExtension')->db()->EmailAddress?
543: [11:30:00] <LoveDuckie> no
544: [11:31:00] <willmorgan> yes but what OBJECT do you intend to extend or decorate?
545: [11:31:00] <willmorgan> what are you extending?
546: [11:31:00] <LoveDuckie> ContactExtension extends DataExtension
547: [11:31:00] <LoveDuckie> That has static $db which is it's own set of database fields.
548: [11:31:00] <willmorgan> do you have a Contact DataObject?
549: [11:32:00] <LoveDuckie> ContactOut
550: [11:32:00] <LoveDuckie> http://sspaste.com/paste/show/518e2c5489774
551: [11:32:00] <LoveDuckie> Basically, in that method
552: [11:32:00] <LoveDuckie> I want to check against the ContactExtension values
553: [11:32:00] <willmorgan> okay
554: [11:32:00] <LoveDuckie> Ok, so I have a ContactForm that extends from Form
555: [11:32:00] <willmorgan> and what does that save in to?
556: [11:33:00] <willmorgan> do you have a _config.yml anywhere?
557: [11:33:00] <willmorgan> or just a _config.php?
558: [11:33:00] <willmorgan> okay lets open that up
559: [11:33:00] <LoveDuckie> _config.php yes
560: [11:33:00] <LoveDuckie> as to whether or not it can send the message to an email
561: [11:33:00] <LoveDuckie> and if so, which email.
562: [11:33:00] <willmorgan> have you used a dataextension before?
563: [11:33:00] <LoveDuckie> Not really.
564: [11:33:00] <willmorgan> didn't think so :)
565: [11:33:00] <willmorgan> okay
566: [11:34:00] <LoveDuckie> Object::add_extension('SiteConfig','ContactExtension');
567: [11:34:00] <willmorgan> ah
568: [11:34:00] <willmorgan> you're extending SiteConfig, not ContactOut
569: [11:34:00] <LoveDuckie> Already placed Object::add_extension declaration in there.
570: [11:34:00] <willmorgan> paste that line please
571: [11:34:00] <LoveDuckie> // Add the settings to the appropriate menu
572: [11:35:00] <LoveDuckie> OK.
573: [11:35:00] <willmorgan> so what do you think you should change in that line?
574: [11:35:00] <LoveDuckie> But say I wanted to access from SiteConfig? Is that not possible?
575: [11:35:00] <willmorgan> irrelevant
576: [11:36:00] <willmorgan> so you need to change that somehow
577: [11:36:00] <willmorgan> you are adding the fields you specified in your ContactExtension, at present, to SiteConfig, not ContactOut
578: [11:37:00] <LoveDuckie> Still not making much sense. I made it SiteConfig so that it could be a configuration that I could change from the settings pane.
579: [11:37:00] <LoveDuckie> I then wanted to be able to access those configurations from other controllers
580: [11:37:00] <willmorgan> ahh
581: [11:38:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/d6733caf14ad...7ade1ebd594c
582: [11:38:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/7077276
583: [11:38:00] <LoveDuckie> ContactOut is just a data object that gets dumped into the database on submit();
584: [11:38:00] * travis-ci has left #silverstripe
585: [11:38:00] <willmorgan> i see that now
586: [11:38:00] <willmorgan> your naming convention (or lack thereof) is very confusing
587: [11:38:00] * travis-ci has joined #silverstripe
588: [11:38:00] <travis-ci> [travis-ci] silverstripe/sapphire#2210 (3.1 - 7ade1eb : Will Rossiter): The build passed.
589: [11:39:00] <willmorgan> form i guess
590: [11:39:00] <LoveDuckie> OK.
591: [11:39:00] <willmorgan> oh, well in that case this gets easy :)
592: [11:39:00] <willmorgan> http://sspaste.com/paste/show/518e2c5489774
593: [11:39:00] <willmorgan> this paste here, this is on your controller or on your form?
594: [11:39:00] <LoveDuckie> form
595: [11:39:00] <willmorgan> let me amend it a bit
596: [11:41:00] <simon_w> LoveDuckie, SiteConfig::current_site_config()->FieldName
597: [11:42:00] <LoveDuckie> Grabbing the values that I require now :)
598: [11:42:00] <LoveDuckie> Awesome.
599: [11:43:00] <willmorgan> but that's a long long story :)
600: [11:43:00] <LoveDuckie> Thanks for your patience.
601: [11:43:00] <willmorgan> LoveDuckie: try this: http://sspaste.com/paste/show/518e2c5489774
602: [11:43:00] <LoveDuckie> Oooh, OK.
603: [11:43:00] <LoveDuckie> I wasn't aware of the Email object.
604: [11:43:00] <willmorgan> if you grab SiteConfig out of the controller then it's slightly easier code to test
605: [11:43:00] <LoveDuckie> Yeah, that's what I'm doing at the moment
606: [11:44:00] <LoveDuckie> nothing was dumping out of the submit function
607: [11:44:00] <willmorgan> $email->populateTemplate($submission);
608: [11:45:00] <willmorgan> generally best to put email templates under /themes/yourthemename/templates/Email/MyEmailTemplate.ss
609: [11:45:00] <LoveDuckie> OK, I'll look into that in a sec.
610: [11:45:00] <LoveDuckie> Hold up.
611: [11:45:00] <zfmf> are the SS_Filefinder callbacks like accept_dir_callback called only once after the dev/build is run
612: [11:45:00] <willmorgan> this means all fields into the submission are going to be available in whatever email template you use
613: [11:45:00] <willmorgan> but you'll need to do $email->setTemplate
614: [11:46:00] <LoveDuckie> Got it.
615: [11:46:00] <simon_w> zfmf, they're called on flush
616: [11:47:00] <zfmf> simon_w: im running dev/build/?flush=all i'm echoing something on dev/buld window there is no output but on the first response after dev/build/?flush=all i'm seeing the output
617: [11:49:00] * simon_w|air has joined #silverstripe
618: [11:49:00] <simon_w|air> zfmf, nope. Can't config to filter things that need to be found before the config system is loaded
619: [11:49:00] <zfmf> i don't find anythink think, the best way to do this, is to use this callbacks
620: [11:49:00] <zfmf> simon_w: i'm searching a hook on dev/build is there one? to dis-enable modules from the cms, wihtout using _manifest_exclude
621: [11:50:00] * simon_w quit (Read error: Connection reset by peer)
622: [11:52:00] * simon_w has joined #silverstripe
623: [11:53:00] <zfmf> hmm, and what you think about the callbacks is this a good way to do this
624: [11:54:00] <simon_w|air> How are you going to be able to configure them?
625: [11:55:00] <simon_w|air> You're trying to configure the thing used to load the configuration system
626: [11:55:00] <zfmf> hhhmm
627: [11:55:00] <zfmf> can I not write the modules on a callback to a DO
628: [11:55:00] <zfmf> if thex not exists in the table
629: [11:56:00] <simon_w|air> database connection isn't set up until well after the config is loaded
630: [11:57:00] <simon_w|air> The best way to manage modules from with the CMS, if you must do it at all, is to move them into some folder that's not part of the manifest
631: [11:58:00] * osterlaus has joined #silverstripe
632: [11:59:00] <zfmf> how to autoload them when they'r not a part of manifest
633: [12:00:00] <simon_w|air> You don't. Isn't that what you're trying to do?
634: [12:02:00] <zfmf> i have a application with my modules, so after the installation i want to en - disable some modules for example the customer A
635: [12:05:00] <simon_w|air> A module is enabled or not depending of it's in the manifest or not
636: [12:08:00] * simon_w|air quit (Quit: This computer has gone to sleep)
637: [12:12:00] <zfmf> hmm the problem is i have over 20-40 different pages , i don't want to add all pages manually on each installation, i want to add all and disable some from the cms with disabling the module.
638: [12:27:00] <jcwacky> *selecting
639: [12:27:00] <jcwacky> How would I go about selected all DataObjects that were created this month?
640: [12:28:00] <DesignerX> jcwacky hi, do you know how to return DataObjects created in the past month ?
641: [12:29:00] <DesignerX> jcwacky: just looking up filter() in SilverStripe & I will get you some code sample :D
642: [12:30:00] <jcwacky> not really, I'm aware of Created:GreaterThan, but not quite sure how to specify the month rather than the full date.
643: [12:30:00] <jcwacky> thank you! :)
644: [12:34:00] * liam has left #silverstripe
645: [12:35:00] <jcwacky> within the current month
646: [12:35:00] * Zauberfisch quit (Ping timeout: 268 seconds)
647: [12:35:00] <DesignerX> jcwacky: do you want the data from the past 30 days or just within the month like all data from jan or Feb ?
648: [12:37:00] <jcwacky> but is clearly wrong!
649: [12:37:00] <jcwacky> my attempt was Vote::get()->filter(array("MemberID" => Member::currentUserID(), "MONTH(Created)" => "MONTH(CURDATE())")) !!
650: [12:40:00] <jcwacky> GF and all?
651: [12:40:00] <DesignerX> GridField
652: [12:40:00] <DesignerX> jcwacky: do you know how to do the rest? get the returned data in GF & all ?
653: [12:41:00] <jcwacky> yep!
654: [12:41:00] <DesignerX> kk, so we stuck at an SQl query :D
655: [12:41:00] <jcwacky> yep, happy with the rest
656: [12:41:00] <jcwacky> ah, this is for frontend, not worried about GridField
657: [12:41:00] <DesignerX> or which ever way you managing the objects
658: [12:41:00] <jcwacky> just need to know how to get a DataList with the objects created in the current month
659: [12:42:00] <DesignerX> filter is a function that does a "where" validation in SQL ..
660: [12:42:00] <jcwacky> and not via filter()?
661: [12:42:00] <jcwacky> Can it only be down in an SQLQuery then?
662: [12:43:00] <jcwacky> ok, so are you able to advise how I can match the current month?
663: [12:43:00] <DesignerX> so yeh, using filter or get($filter)
664: [12:44:00] <DesignerX> googling
665: [12:45:00] <jcwacky> where("YEAR(Created) = YEAR(CURDATE()) AND MONTH(Created) = MONTH(CURDATE())")
666: [12:45:00] <jcwacky> ah, done it!
667: [12:45:00] <jcwacky> I used where() instead of filter()
668: [12:45:00] * priithansen quit (Quit: priithansen)
669: [12:46:00] <DesignerX> jcwacky: :D nice
670: [12:46:00] <zfmf> whats the best way to regenerate the manifest onafterwrite???
671: [13:21:00] * Nacho quit (Ping timeout: 245 seconds)
672: [13:50:00] <zfmf> is there a way for multiple inserts?
673: [14:00:00] <DesignerX> zfmf: multiple inserts ?
674: [14:20:00] * osterlaus quit (Quit: Leaving.)
675: [14:20:00] * UncleCheese has joined #silverstripe
676: [14:21:00] * UncleCheese quit (Client Quit)
677: [14:31:00] <zfmf> whats the right way to add actions to a modeladmin in ss3
678: [14:31:00] <zfmf> DesignerX: its ok thanks ;)
679: [14:36:00] * vogels has joined #silverstripe
680: [14:42:00] * vogels quit (Quit: Page closed)
681: [14:46:00] * MichaelDesignerX has joined #silverstripe
682: [14:49:00] * DesignerX quit (Ping timeout: 264 seconds)
683: [14:51:00] * FrozenFire quit (Ping timeout: 264 seconds)
684: [14:52:00] * FrozenFire has joined #silverstripe
685: [15:23:00] * abitran_ has joined #silverstripe
686: [15:27:00] * abitran quit (Ping timeout: 245 seconds)
687: [15:32:00] * MichaelDesignerX quit (Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/)
688: [15:49:00] <jcwacky> Just updated my web app to 3.1 (from 3) and all my URL requests seem to be running the index action, instead of the action in the URL. Any ideas?
689: [15:50:00] * Zauberfisch has joined #silverstripe
690: [15:58:00] * Zauberfisch_ has joined #silverstripe
691: [15:59:00] * Zauberfisch__ has joined #silverstripe
692: [16:02:00] * Zauberfisch quit (Ping timeout: 268 seconds)
693: [16:03:00] * Zauberfisch_ quit (Read error: Connection reset by peer)
694: [16:03:00] * Zauberfisch__ quit (Read error: Connection reset by peer)
695: [16:10:00] * omgsharks has joined #silverstripe
696: [16:11:00] <jcwacky> Ok, I'm having real trouble working out what my routes should be for my root controller after upgrading to 3.1. Anyone able to lend a hand?
697: [16:13:00] <omgsharks> i have a plugin architecture where all plugins are dataobjects extending a BasicPlugin class, is there any way to setup a gridfield in ss3 so i can add any of those subtypes while having $has_many as 'Plugins' => 'BasicPlugin'?
698: [16:20:00] * ARNHOE has joined #silverstripe
699: [16:21:00] * FireMe has joined #silverstripe
700: [16:24:00] * ARNHOE_ has joined #silverstripe
701: [16:25:00] * ARNHOE quit (Ping timeout: 245 seconds)
702: [16:25:00] * Marvanni quit (Ping timeout: 245 seconds)
703: [16:25:00] <FireMe> Hi, I'm Completely dumb when it comes to php, so I was wondering if some could post me an example of how to check if a value in the db table field is < than 1 and if so change emun field to another value in database, if you get what i mean, thanks
704: [16:26:00] * Marvanni has joined #silverstripe
705: [16:27:00] <FireMe> basically if "Places" less than 1 change "slot" from available to unavailable
706: [16:29:00] <jcwacky> that what you after?
707: [16:29:00] <jcwacky> if ($this->Places < 1) { $this->slot = "unavailable"; $this->write(); }
708: [16:30:00] <FireMe> i think so thanks
709: [16:33:00] <FireMe> another dumb question how would i add this to a function that automatically runs?
710: [16:36:00] <jcwacky> automatically runs when?
711: [16:37:00] * simon__w has joined #silverstripe
712: [16:38:00] <FireMe> i guess on page load, basically making sure its not set to available when there are 0 places
713: [16:40:00] * ooystein quit (Ping timeout: 256 seconds)
714: [16:40:00] <jcwacky> Is it possible for a thing to be unavailable when it still has spaces?
715: [16:40:00] * simon_w quit (Ping timeout: 256 seconds)
716: [16:41:00] <FireMe> no
717: [16:42:00] * LoveDuckie quit (Read error: Connection reset by peer)
718: [16:42:00] * LoveDuckie has joined #silverstripe
719: [16:42:00] * ooystein has joined #silverstripe
720: [16:42:00] <jcwacky> well I'd remove the availability enum as a field from the database, and then create a basic function that returns "available" or "unavailable" based on the no. places.
721: [16:44:00] * priithansen has joined #silverstripe
722: [16:44:00] <FireMe> yes that sounds like it would be better, so how would that function be written? thanks
723: [16:47:00] <FireMe> thanks jcwacky
724: [16:47:00] <jcwacky> FireMe: http://spdr.me/kn4P
725: [16:48:00] <jcwacky> no probs!
726: [16:50:00] * discorpi1 has joined #silverstripe
727: [16:51:00] * xyphoid_ has joined #silverstripe
728: [16:53:00] * discorpia quit (Ping timeout: 256 seconds)
729: [16:53:00] * xyphoid quit (Ping timeout: 256 seconds)
730: [16:54:00] <FireMe> thanks again works great, how did you learn php, any tips/websites/books?
731: [17:02:00] * nicolaas__ has joined #silverstripe
732: [17:02:00] * gordon_ has joined #silverstripe
733: [17:03:00] * willmorgan1 has joined #silverstripe
734: [17:04:00] * unsigned_ has joined #silverstripe
735: [17:07:00] * nicolaas__ is now known as nicolaas
736: [17:07:00] * willmorgan quit (*.net *.split)
737: [17:07:00] * nicolaas quit (*.net *.split)
738: [17:07:00] * unsignedint quit (*.net *.split)
739: [17:07:00] * elgrodo quit (*.net *.split)
740: [17:07:00] * zfmf quit (*.net *.split)
741: [17:23:00] <FrozenFire> ss23, Where's your PHP tutorial hosted?
742: [17:31:00] * ARNHOE_ quit (Remote host closed the connection)
743: [17:38:00] * willmorgan1 quit (Ping timeout: 268 seconds)
744: [17:40:00] * ss-log quit (Ping timeout: 268 seconds)
745: [17:40:00] * nicolaas quit (Ping timeout: 268 seconds)
746: [20:03:00] * ss-log has joined #silverstripe
747: [20:24:00] * willmorgan has joined #silverstripe
748: [20:26:00] * ss23_ has joined #silverstripe
749: [20:29:00] * Zauberfisch has joined #silverstripe
750: [20:31:00] * xyphoid has joined #silverstripe
751: [20:31:00] * xyphoid_ quit (Remote host closed the connection)
752: [20:31:00] * ss23 quit (Ping timeout: 276 seconds)
753: [20:33:00] * willmorgan quit (Ping timeout: 264 seconds)
754: [20:38:00] * pex quit (Ping timeout: 240 seconds)
755: [20:41:00] * pex has joined #silverstripe
756: [21:06:00] * priithansen has joined #silverstripe
757: [21:16:00] * pippy_ quit (Ping timeout: 245 seconds)
758: [21:17:00] * ss-log quit (Ping timeout: 245 seconds)
759: [21:17:00] * Zauberfisch quit (Ping timeout: 245 seconds)
760: [21:44:00] * ss-log has joined #silverstripe
761: [21:45:00] * simon_w has joined #silverstripe
762: [21:49:00] <simon_w|air> Damn graphics drivers. I'm not even running linux.
763: [21:51:00] <Zauberfisch> simon_w that is an excellent point
764: [21:56:00] * simon_w|air quit (Quit: This computer has gone to sleep)
765: [21:59:00] * pewpew has joined #silverstripe
766: [22:00:00] <pewpew> is http://www.ssbits.com/tutorials/2011/add-a-duplicate-button-to-model-admin/ still a valid approach for ss3?
767: [22:04:00] * spronk2 has joined #silverstripe
768: [22:07:00] <simon_w> If it's for 2.4, no
769: [22:10:00] * spronk2_ quit (*.net *.split)
770: [22:11:00] <FrozenFire> pewpew, A duplicate button would be implemented by creating a subclass of GridFieldDetailForm_ItemRequest which implements your action and supplements the form actions.
771: [22:12:00] <FrozenFire> Then getting the GridFieldDetailForm on your GridField and changing the ItemRequestClass to that.
772: [22:13:00] <FrozenFire> Here's one I implemented for a DataObject I have
773: [22:13:00] <FrozenFire> http://www.sspaste.com/paste/show/518ec291062ef
774: [22:14:00] <FrozenFire> http://www.sspaste.com/paste/show/518ec2d5b740f Then this is my ModelAdmin
775: [22:21:00] * Rojod quit (Quit: EliteBNC - http://elitebnc.org (Auto-Removal: idle account/not being used))
776: [22:23:00] <Zauberfisch> what are your every day modules at the moemnt?
777: [22:24:00] <Zauberfisch> - silverstripe link-field
778: [22:24:00] <Zauberfisch> I have:
779: [22:24:00] <Zauberfisch> - a JS popup
780: [22:24:00] <Zauberfisch> - googlesitemaps
781: [22:24:00] <FrozenFire> Sortable GridField
782: [22:24:00] <Zauberfisch> and third party libs
783: [22:25:00] <Zauberfisch> - modernizr
784: [22:25:00] <FrozenFire> SMTP
785: [22:26:00] <FrozenFire> That's actually about it. I typically install those two, and then a couple of proprietary modules
786: [22:27:00] <Zauberfisch> agreed
787: [22:27:00] <FrozenFire> Both of which should really just be in the framework
788: [22:27:00] <FrozenFire> Since sorting a GF is such a common thing
789: [22:27:00] <FrozenFire> And SMTP is practically a requirement of sending email reliably.
790: [22:27:00] <Zauberfisch> but there are plans on getting them into framework
791: [22:28:00] <Zauberfisch> cool, do that
792: [22:28:00] <FrozenFire> And then create a PR
793: [22:28:00] <FrozenFire> Meh. Maybe I'll rewrite SMTP to be a bit more composerable
794: [22:28:00] <Zauberfisch> I take the gridfield (:
795: [22:28:00] <Zauberfisch> but its going to take a while until they are in
796: [22:29:00] <FrozenFire> 3.1, that is.
797: [22:29:00] <FrozenFire> Now if only SS would run on PHP's built-in webserver...
798: [22:29:00] <FrozenFire> Wasn't able to get it running recently.
799: [22:29:00] <FrozenFire> Errors galore with assets and JS and whatnot
800: [22:31:00] <Zauberfisch> but I am not sure if I should put the gridfield extensions into the boilerplate
801: [22:32:00] <Zauberfisch> because gridfield is not an every day thing
802: [22:32:00] <Zauberfisch> more a every 2nd day
803: [22:32:00] <FrozenFire> Hrmm, apparently GridField has something for GridField_FormAction...
804: [22:32:00] <FrozenFire> I suppose that defeats the purpose of my custom ItemRequest
805: [22:33:00] <FrozenFire> Hrmm...
806: [22:33:00] <FrozenFire> Err, GridField_ActionProvider, that is
807: [22:34:00] <FrozenFire> I suppose GridField_ActionProvider is for the actual little buttons in each row of the GridField
808: [22:34:00] * pewpew quit (Ping timeout: 245 seconds)
809: [22:34:00] <FrozenFire> Err, wait, maybe that's not an actual solution to the thing for GridFieldDetailForm
810: [22:36:00] <FrozenFire> These ActionProviders are complicated. :P
811: [22:36:00] * FrozenFire sticks to his custom ItemRequest
812: [22:37:00] * FrozenFire hates these little tangents his mind takes
813: [22:38:00] <FrozenFire> Then I was like, hey there, GridField_ActionProvider
814: [22:38:00] <FrozenFire> And on it goes
815: [22:38:00] <FrozenFire> Initial thought was that I should write some documentation for the custom ItemRequest class in the GridField tutorial
816: [22:44:00] * kerosene quit (*.net *.split)
817: [22:48:00] * abitran_ quit (Ping timeout: 256 seconds)
818: [22:52:00] * Guest46770 quit (Ping timeout: 256 seconds)
819: [22:52:00] * ss-log quit (Ping timeout: 256 seconds)

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