#silverstripe IRC Log

IRC log for 29 June 2013

All timestamps are in UTC.

1: [00:03:39] * priithansen quit (Quit: priithansen)
2: [00:08:35] <guzzlefry> ah, well this is broken on dev: PHP Fatal error: Class 'CMSForm' not found
3: [00:12:40] <guzzlefry> k, /dev/build and ?flush=all fixed all of that. Now production and dev match.
4: [00:21:31] * swordsmanz quit (Quit: swordsmanz)
5: [00:46:43] * micmania1 quit (Ping timeout: 250 seconds)
6: [00:48:53] * spronk quit (Ping timeout: 276 seconds)
7: [01:10:21] * Peavers has joined #silverstripe
8: [01:16:53] * Peavers quit (Ping timeout: 264 seconds)
9: [01:33:10] * Colin[pi] quit ()
10: [02:51:20] * simon_w|air has joined #silverstripe
11: [03:15:09] * simon_w|air quit (Quit: This computer has gone to sleep)
12: [03:26:19] * wmk has joined #silverstripe
13: [03:44:39] * cloph_away has joined #silverstripe
14: [03:45:53] <ss23> T NOW! what do we want? MORE TIME-TRAVEL JOKES! when do we want them? RIGH
15: [03:45:57] * willr has joined #silverstripe
16: [03:46:17] * cloph quit (Ping timeout: 264 seconds)
17: [04:16:53] * simon_w|air has joined #silverstripe
18: [05:21:19] * spronk has joined #silverstripe
19: [05:23:15] * spronk has left #silverstripe
20: [05:23:39] * spronk has joined #silverstripe
21: [06:19:55] * simon_w|air quit (Quit: This computer has gone to sleep)
22: [06:30:21] * guzzlefry has left #silverstripe
23: [06:49:37] * howardgrigg has joined #silverstripe
24: [06:50:00] <howardgrigg> Nice - composer now runs a dev build after adding a new module :)
25: [06:54:07] * simon_w|air has joined #silverstripe
26: [06:56:19] <simon_w|air> howardgrigg, that got committed a month ago :p
27: [06:56:30] * howardgrigg has been busy :p
28: [06:56:55] <simon_w|air> This is when I bug you about that thing you're too busy to do, right? :p
29: [06:57:09] <howardgrigg> the podcast?
30: [06:57:30] <simon_w|air> Yeah, that
31: [06:58:43] <howardgrigg> Yea I know... I feel bad because I just havent kept up to date in the last couple of months so I don't have much to offer
32: [07:11:33] <howardgrigg> hah http://addons.silverstripe.org/ that's new
33: [07:14:49] * lenix has joined #silverstripe
34: [07:15:10] * simon__w has joined #silverstripe
35: [07:16:39] <ss23> howardgrigg: I started working at SS too
36: [07:16:40] <ss23> :D
37: [07:16:42] <ss23> That's new
38: [07:16:52] <howardgrigg> cool :) in Welly?
39: [07:19:10] * simon_w|air quit (Ping timeout: 276 seconds)
40: [07:19:10] * lenix- quit (Ping timeout: 276 seconds)
41: [07:19:11] * simon_w quit (Ping timeout: 276 seconds)
42: [07:19:12] * Marvanni quit (Ping timeout: 276 seconds)
43: [07:19:13] * simon_w|air has joined #silverstripe
44: [07:20:08] <ss23> howardgrigg: Yep
45: [07:20:16] <ss23> Getting burgerfuel with simon_w|air lots :D
46: [07:20:27] * Marvanni has joined #silverstripe
47: [07:20:37] <howardgrigg> lol living the dream
48: [07:20:59] <ss23> XD
49: [07:21:25] <ss23> eating pretty much chcoolate and donuts again for dinner
50: [07:21:31] <ss23> I <3 not living with parents
51: [07:21:32] <ss23> :D
52: [07:29:26] <wmk> howardgrigg, how does composer know to run dev/build ? didn't notice it the last days i added some modules
53: [07:30:14] <howardgrigg> wmk: dunno man - composer still scares me
54: [07:30:25] * simon_w|air quit (Quit: This computer has gone to sleep)
55: [07:31:21] <howardgrigg> wmk: in the composer.json file it has commands that run post install and post update
56: [07:31:28] <howardgrigg> "post-install-cmd": "php ./framework/cli-script.php dev/build",
57: [07:31:49] <wmk> howardgrigg, cool. so maybe it's only for newly installed projects.
58: [07:32:09] <howardgrigg> well those running the latest build of the installer
59: [07:32:58] <wmk> that's really cool
60: [07:52:41] * howardgrigg quit (Remote host closed the connection)
61: [08:18:14] <Shrike_Finland> Do I have to write enum values in tempaltes with ' or not? Like <% if $JumbotronEffect = Skrollr %> or <% if $JumbotronEffect = 'Skrollr' %>
62: [08:19:29] <simon__w> Quote it
63: [08:19:32] * simon__w is now known as simon_w
64: [08:20:25] <Shrike_Finland> Thanx
65: [08:30:50] * priithansen has joined #silverstripe
66: [08:59:41] * simon_w|air has joined #silverstripe
67: [09:24:55] * willr quit (Quit: willr)
68: [09:30:10] * LoveDuckie has joined #silverstripe
69: [09:44:06] * andrew has joined #silverstripe
70: [09:44:30] * andrew is now known as Guest12058
71: [09:45:14] <Guest12058> HI. just added in ecommerce model for ss. but when i go into my admin section it worn let me. any ideas?>
72: [09:54:01] * Guest12058 quit (Ping timeout: 250 seconds)
73: [11:21:22] <Shrike_Finland> Is there something wrong in my code: http://pastebin.com/AqKdBEQR -> Can not get widgetarea to appear in CMS
74: [11:21:43] <Shrike_Finland> Only displays "Inherit Sidebar From Parent" checkbox
75: [11:38:08] <Shrike_Finland> Seems to be the legendary cache problem :D
76: [12:32:58] * spronk2 has joined #silverstripe
77: [12:49:52] * wmk quit (Ping timeout: 256 seconds)
78: [12:59:45] * wmk has joined #silverstripe
79: [13:08:31] * spronk2 quit (Quit: spronk2)
80: [13:20:59] * popeshoe has joined #silverstripe
81: [13:22:48] * willmorgan has joined #silverstripe
82: [13:47:12] <ARNHOE> I am currently calling multiple objects on a template through this way <% loop $Edities.First %>. I only want the first "Edition" of the Tournament to show up, but during my development I notice that sometimes it fails to load the Edition
83: [13:47:31] <ARNHOE> Does it has anything to do with that <% loop $Edities.First %> is having a big impact on the loading times?
84: [13:50:45] * popeshoe quit (Quit: This computer has gone to sleep)
85: [14:06:33] * LoveDuckie quit ()
86: [14:40:10] <priithansen> ARNHOE: maybe <% with $Edities.First %> is better?
87: [14:40:29] <ARNHOE> ill try, but why is with better?
88: [14:41:04] <priithansen> no idea :) just that that's what with is for
89: [14:41:12] <ARNHOE> hmpf, it returns the same
90: [14:41:21] <ARNHOE> just randomly refreshing
91: [14:41:26] <ARNHOE> I have 5 tournaments atm
92: [14:41:32] <ARNHOE> and it only shows the edition of 1 tournament
93: [14:41:42] <ARNHOE> but most of the time
94: [14:41:55] <ARNHOE> it shows all the edition of the 5 tournament, but on odd times it only shows one edition for some reason
95: [14:43:35] <priithansen> sounds weird
96: [14:44:32] <ARNHOE> yeah, very odd. I have 12 editions right now
97: [14:44:53] <ARNHOE> 5 tournaments, and some of the tournaments have more then 4 editions
98: [14:45:03] <ARNHOE> so I think it has something to do with the loading?
99: [14:45:58] <priithansen> Can't imagine php giving random results
100: [14:46:40] <ARNHOE> priithansen: do you have experience with merging 2 dataobjects and sorting them?
101: [14:47:25] <ARNHOE> I am using a search function from a old project which returns the two dataobjects, but I want to sort them by LastEdited: http://www.sspaste.com/paste/show/51cef2eabe87b
102: [14:49:27] <priithansen> do Referee and Tournament have some kind of relationship too?
103: [14:50:57] <priithansen> otherwise maybe move the sort function below merges
104: [14:51:00] <ARNHOE> Not directly, Referee has a relationship with Editie and Editie is parent of Tournament. But I dont want this to relay on relantionships, because I will be adding almost everything in there
105: [14:51:13] <ARNHOE> it is a sort of "latest updates" column
106: [14:52:08] <ARNHOE> moving below the merges didnt change it
107: [14:52:34] <ARNHOE> I could sort from the Tournament::get but I want to sort obv after I called all the objects
108: [14:53:24] <ARNHOE> mabye LastEdited cant be called there?
109: [14:55:30] <priithansen> What is it doing wrong at the moment?
110: [14:55:42] <priithansen> If I remember correctly there was some trickery with sorting and dates
111: [14:56:43] <ARNHOE> currently its showing
112: [14:56:48] <ARNHOE> Tournaments
113: [14:56:50] <ARNHOE> --
114: [14:56:52] <ARNHOE> Referees
115: [14:57:03] <ARNHOE> the last tournament has a date of 26/06
116: [14:57:13] <ARNHOE> the first referee has 24/06, so he should be below the tournament
117: [14:57:29] <ARNHOE> but its just showing the first dataobject first and then the second dataobject
118: [14:59:58] <priithansen> Hm maybe it's adding two datalist's to arraylist and instead you should foreach (tornaments as tournament) arraylist->add(tournament) them one by one
119: [15:03:12] <ARNHOE> priithansen: I am not the biggest genius when it comes to arrays, is it possible you could comment on the sspaste the code? Would be much appriecated
120: [15:03:23] <ARNHOE> I found this post from simon_w priithansen http://www.silverstripe.org/data-model-questions/show/20682#post316256
121: [15:03:37] <ARNHOE> but this also seems to add them one after the other
122: [15:05:42] <priithansen> That seems about what I had in mind
123: [15:06:49] <ARNHOE> I removed the filter and the sort
124: [15:06:52] <ARNHOE> and added $set->sort('LastEdited');
125: [15:08:45] <priithansen> I posted a comment on sspaste
126: [15:10:14] <ARNHOE> priithansen: cheers, but sadly enough this still doesnt make them like "one" dataobject and still shows the first dataobject and then the second dataobject
127: [15:11:29] * LoveDuckie has joined #silverstripe
128: [15:11:43] <LoveDuckie> Anyone know of the best way of integrating syntax-highlighter into SS3.1?
129: [15:13:24] <priithansen> ARNHOE: you could try sort without array sort('LastEdited', 'DESC') but it should work just the same or try sorting by some other column like ID that is not datetime
130: [15:16:02] <priithansen> just to see if the problem is with sorting date's or something else
131: [15:16:15] <ARNHOE> priithansen: I checked that already, but did it again but same result, it doesnt do any sorting
132: [15:16:25] <ARNHOE> I did both DESC and ASC to check whether it changes and tried other columns
133: [15:16:43] <ARNHOE> no movement
134: [15:18:28] <priithansen> maybe there is something that overwrites the sort later in the process I would try var_dump($searchresult) before return and see if sorting gives effect there
135: [15:19:58] <ARNHOE> var dump shows the same result like it does with return
136: [15:20:33] <ARNHOE> and cant find any sorting
137: [15:20:41] <ARNHOE> no sort, desc, asc can be found
138: [15:28:56] <priithansen> ARNHOE: just tested it myself
139: [15:29:06] <priithansen> merge should be fine like your original code
140: [15:29:40] <priithansen> but it seems like $resultsorted = $result->sort(…… is needed
141: [15:29:58] <priithansen> or add the sort straight to return line like return $result->sort(..
142: [15:30:36] <ARNHOE> oh man
143: [15:30:37] <ARNHOE> ur awesome
144: [15:31:03] <ARNHOE> priithansen: http://www.sspaste.com/paste/show/51cefd3db1fdd
145: [15:31:04] <ARNHOE> works!
146: [15:31:23] <ARNHOE> thanks for the help
147: [15:32:01] <priithansen> splendid, you can change the foreach loops back to merge for cleanser code
148: [15:35:28] <priithansen> see the comment on last sspaste
149: [15:45:25] <ARNHOE> cheers did that
150: [15:56:21] * wmk quit (Read error: Connection reset by peer)
151: [15:56:38] * wmk has joined #silverstripe
152: [16:32:49] * Werner_2_ has joined #silverstripe
153: [16:36:46] * wmk quit (Ping timeout: 252 seconds)
154: [16:54:31] * swordsmanz has joined #silverstripe
155: [17:15:25] * supernovah_ has joined #silverstripe
156: [17:16:39] * supernovah__ has joined #silverstripe
157: [17:16:57] * supernovah quit (Ping timeout: 246 seconds)
158: [17:17:03] * supernovah__ is now known as supernovah
159: [17:20:25] * supernovah_ quit (Ping timeout: 246 seconds)
160: [17:38:15] * SAM_ has joined #silverstripe
161: [17:38:33] <SAM_> Hi all need help on blog module in silverstripe 2.4
162: [17:46:55] * willmorgan quit (Ping timeout: 248 seconds)
163: [18:04:33] * SAM_ quit (Ping timeout: 250 seconds)
164: [18:13:54] <LoveDuckie> anybody know how to get syntaxhl working with silverstripe3?
165: [18:29:54] <ARNHOE> Are there any ways to prevent silverstripe-cache folder on a local area enviroment?
166: [18:36:20] * zfmf1 has joined #silverstripe
167: [18:36:21] * zfmf1 has left #silverstripe
168: [18:36:21] * zfmf1 has joined #silverstripe
169: [18:39:59] * guzzlefry has joined #silverstripe
170: [18:40:17] <zfmf1> he guys, i have a 2.4 installation and i'm using restfulserver, i have two dataobjects when i want a relation of DO B i'm getting only some fields not all, domain.com/api/v1/DOA/7/DOB when i use domain.com/api/v1/DOB i'm getting all fields, i have all fields in api_access = array('view'=> array('....') )on DOB whats the problem here?
171: [19:44:48] * Werner_2_ is now known as wmk
172: [21:04:46] * ticklenetwork has joined #silverstripe
173: [21:05:34] <ticklenetwork> Good morning. Just installed the ecommerce module into ss and come up with Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/tickle/public_html/ecommerce/code/model/Order.php on line 2167 in the dev build. but cant find out to fix it :( can anyone help
174: [21:09:13] * zfmf1 has left #silverstripe
175: [21:11:54] <ticklenetwork> can anyone help?
176: [21:26:06] * swordsmanz_ has joined #silverstripe
177: [21:26:18] * swordsmanz quit (Ping timeout: 260 seconds)
178: [21:26:19] * swordsmanz_ is now known as swordsmanz
179: [21:28:26] <wmk> did i ever mention that i love silvestripe?
180: [21:46:54] * wmk quit (Ping timeout: 264 seconds)
181: [21:55:06] * ticklenetwork quit (Ping timeout: 250 seconds)
182: [22:29:58] * SphereSilverNL has joined #silverstripe
183: [22:30:07] <SphereSilverNL> g'night folks!
184: [22:31:59] <SphereSilverNL> Question: Is there a method in the DataModel, to filter on "LessOrEqual"? Can't find it :'(
185: [22:41:23] * DigNZ has joined #silverstripe
186: [23:04:28] * DigNZ quit (Quit: DigNZ)
187: [23:24:30] <SphereSilverNL> Anyone know of a good Twitter/Facebook integration module? One that also allows posting to FB-wall and twitter and such. Only needs to work in the backend :)
188: [23:42:33] * DigNZ has joined #silverstripe
189: [23:54:14] * chrisrio has joined #silverstripe
190: [23:55:03] <chrisrio> if I have 5 different page types that extend page, and I want a many_many between those 5 page types and member
191: [23:55:11] <chrisrio> anyone know if I can get away with a many_many with Page?
192: [23:55:23] <chrisrio> I could just try, but its Sunday.
193: [23:55:31] <SphereSilverNL> in what way?
194: [23:56:09] <chrisrio> I basically wanna assign a bunch of pages to a member, different pages for each member.
195: [23:56:21] <chrisrio> they're all different, but they all extend page.
196: [23:56:22] <SphereSilverNL> yes you can, since the extension takes over the habits and features from the extended class
197: [23:56:26] <chrisrio> cool
198: [23:56:28] <chrisrio> _b
199: [23:56:30] <chrisrio> <3
200: [23:58:38] <SphereSilverNL> That's the whole idea of extending, having access to everything the extended class has, and optionally, add more

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