#silverstripe IRC Log

IRC log for 13 April 2016

All timestamps are in UTC.

1: [00:00:01] * ss-helper quit (Remote host closed the connection)
2: [00:00:15] * ss-helper has joined #silverstripe
3: [00:04:36] * Stomach quit (Ping timeout: 244 seconds)
4: [00:06:22] * Stomach has joined #silverstripe
5: [00:11:17] * BrewNaked quit (Remote host closed the connection)
6: [00:22:49] * micmania1 quit (Quit: micmania1)
7: [00:37:03] <robbiea> hi all - does the CMS come with any pre-packaged CSS classes, e.g. "success" for green text?
8: [00:40:11] <robbiea> found it - message-success etc for flash messages
9: [00:44:41] <robbiea> actually, .message .good and .message .bad seems better
10: [00:55:57] * micmania1 has joined #silverstripe
11: [00:56:12] * robbiea quit (Remote host closed the connection)
12: [01:00:07] * Stomach quit (Quit: zzz)
13: [01:01:27] * robbiea has joined #silverstripe
14: [01:08:13] * Stomach has joined #silverstripe
15: [01:08:28] * EasyCo has joined #silverstripe
16: [01:08:50] <EasyCo> Hey team, does anybody have any experience/advise on how to provide different page types based on the theme?
17: [01:13:02] <EasyCo> I'm thinking I could prefix the page types and filter the available page types based on the selected theme...
18: [01:25:37] * Stomach quit (Quit: zzz)
19: [01:27:45] * vitaly_ quit (Read error: No route to host)
20: [01:28:43] * Tanger_ has joined #silverstripe
21: [01:30:04] <ss-helper> Generating CSV from CMS EditForm - http://stackoverflow.com/questions/36586869/generating-csv-from-cms-editform
22: [01:47:08] * robbiea quit (Remote host closed the connection)
23: [01:51:05] * robbiea has joined #silverstripe
24: [01:55:13] * robbiea quit (Ping timeout: 244 seconds)
25: [01:56:50] * robbiea has joined #silverstripe
26: [02:00:06] * BrewNaked has joined #silverstripe
27: [02:01:09] * robbiea quit (Ping timeout: 246 seconds)
28: [02:01:20] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
29: [02:01:54] * Stomach has joined #silverstripe
30: [02:02:26] * robbiea has joined #silverstripe
31: [02:03:06] <spronk> WOOOO
32: [02:03:10] <spronk> MY TESTS ARE PASSING EVERYONE
33: [02:04:39] * BrewNaked quit (Ping timeout: 260 seconds)
34: [02:05:16] * robbiea quit (Read error: Connection reset by peer)
35: [02:05:22] * robbiea_ has joined #silverstripe
36: [02:27:39] <micmania1> spronk: good work. Have a beer.
37: [02:33:06] <xyphoid> magento just announced they're doing the silverstripe platform idea too
38: [02:33:13] <xyphoid> gonna be interesting to compare them
39: [02:33:14] <spronk> o_O
40: [02:41:55] * micmania1 quit (Quit: micmania1)
41: [02:47:28] * pinc has joined #silverstripe
42: [02:48:26] <pinc> Hi guys, does anyone know how to make domain.com/upload go to a 404 page like silverstripe.org does. Most other sites go to a 'Welcome to SilverStripe' page
43: [03:11:32] * Stomach quit (Quit: zzz)
44: [03:14:20] * Stomach has joined #silverstripe
45: [03:14:51] * robbiea_ quit (Ping timeout: 250 seconds)
46: [03:31:34] * Hailwood quit (Ping timeout: 260 seconds)
47: [03:32:48] * robbiea has joined #silverstripe
48: [03:34:39] * gordon has joined #silverstripe
49: [03:35:03] * gordon is now known as Guest44446
50: [03:36:30] * Guest44446 is now known as nontgor
51: [03:40:30] * robbiea quit (Remote host closed the connection)
52: [03:41:38] * robbiea has joined #silverstripe
53: [03:44:11] <EasyCo> ror
54: [03:44:52] * Stomach quit (Quit: zzz)
55: [03:47:02] * robbiea quit (Remote host closed the connection)
56: [03:47:34] * robbiea has joined #silverstripe
57: [03:48:59] * BrewNaked has joined #silverstripe
58: [03:51:55] * robbiea_ has joined #silverstripe
59: [03:52:34] * robbiea quit (Ping timeout: 240 seconds)
60: [03:53:57] * BrewNaked quit (Ping timeout: 276 seconds)
61: [03:56:15] * micmania1 has joined #silverstripe
62: [03:56:27] * Hailwood has joined #silverstripe
63: [04:01:32] * Stomach has joined #silverstripe
64: [04:11:54] * jules0x quit (Quit: Leaving)
65: [04:26:53] * robbiea_ quit (Remote host closed the connection)
66: [04:36:06] * robbiea has joined #silverstripe
67: [04:47:34] * Stomach quit (Quit: zzz)
68: [04:48:18] * Stomach has joined #silverstripe
69: [04:55:59] <robbiea> can anyone tell me what the purpose of the CategorisationObject interface is for in the blog module, in that is doesn't enforce anything?
70: [04:56:12] * vitaly_ has joined #silverstripe
71: [04:58:13] * Phlunk3 quit (Remote host closed the connection)
72: [05:10:27] * robbiea quit (Ping timeout: 248 seconds)
73: [05:12:42] * Hailwood quit (Ping timeout: 260 seconds)
74: [05:24:31] * Hailwood has joined #silverstripe
75: [05:37:47] * ichaber has joined #silverstripe
76: [05:37:47] <ss-helper> ichaber: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
77: [05:37:49] * BrewNaked has joined #silverstripe
78: [05:38:07] * ichaber quit (Client Quit)
79: [05:38:36] * micmania1 quit (Quit: micmania1)
80: [05:41:52] * wmk has joined #silverstripe
81: [05:42:03] * BrewNaked quit (Ping timeout: 240 seconds)
82: [05:50:01] * adrexia quit (Quit: My Mac has gone to sleep. ZZZzzz…)
83: [05:55:34] * m_4_k_x quit (Ping timeout: 240 seconds)
84: [06:02:45] * pinc quit (Remote host closed the connection)
85: [06:14:11] * neilf__ has joined #silverstripe
86: [06:16:41] * guci0 has joined #silverstripe
87: [06:16:43] <guci0> Hello World!
88: [06:26:58] * Eliseth has joined #silverstripe
89: [06:36:49] <wmk> Eliseth, ☺/
90: [06:37:54] * Stomach quit (Quit: zzz)
91: [06:42:13] <Eliseth> wmk! \o/
92: [06:43:19] <wmk> sigh... updating content on a 2.4 site...
93: [06:43:31] <wmk> dataobjectmanager was good then, but grid is much better now.
94: [06:58:07] * arnhoe has joined #silverstripe
95: [07:00:37] * spekulatius quit (Ping timeout: 250 seconds)
96: [07:00:43] * Audlex quit ()
97: [07:00:55] * Audlex has joined #silverstripe
98: [07:03:17] * pinc has joined #silverstripe
99: [07:07:33] * pinc quit (Ping timeout: 250 seconds)
100: [07:09:56] * Mike123 has joined #silverstripe
101: [07:23:42] * spronk quit (Quit: I may need a longer sleep timer...)
102: [07:24:45] * swaiba has joined #silverstripe
103: [07:27:03] * BrewNaked has joined #silverstripe
104: [07:30:45] * spronk has joined #silverstripe
105: [07:31:15] * BrewNaked quit (Ping timeout: 248 seconds)
106: [07:32:03] * vitaly_ quit (Ping timeout: 240 seconds)
107: [07:34:31] * spekulatius has joined #silverstripe
108: [07:46:26] * m_4_k_x has joined #silverstripe
109: [07:50:43] * m_4_k_x has left #silverstripe
110: [07:57:26] * UncleCheese has joined #silverstripe
111: [08:01:23] * kinglozzer has joined #silverstripe
112: [08:01:57] * elgabbu has joined #silverstripe
113: [08:03:34] * Agilix_ has joined #silverstripe
114: [08:05:34] * slievr has joined #silverstripe
115: [08:13:15] * spronk quit (Quit: I may need a longer sleep timer...)
116: [08:21:47] * pinc has joined #silverstripe
117: [08:26:09] * pinc quit (Ping timeout: 246 seconds)
118: [08:37:17] * mrguits has joined #silverstripe
119: [08:40:14] <mrguits> Hi, I want to make a frontend File Library (tree) with login - Has anyone done anything like that? Modules?
120: [08:47:37] <nontgor> trying to program sick at 40C aint working :(
121: [08:50:36] <guci0> go to bed, I know what i'm saying
122: [08:53:09] <nontgor> have been there for most of the last 18 hrs, it gets boring!
123: [08:54:16] <guci0> recently a week I am lying in bed
124: [08:56:23] <guci0> watch the video, maybe "Friends"...
125: [08:58:29] <guci0> *movie something :)
126: [09:09:50] * vitaly has joined #silverstripe
127: [09:14:16] * vitaly quit (Ping timeout: 264 seconds)
128: [09:15:33] * g4b01 has joined #silverstripe
129: [09:15:40] <g4b01> hi all
130: [09:15:57] * BrewNaked has joined #silverstripe
131: [09:20:01] * BrewNaked quit (Ping timeout: 244 seconds)
132: [09:33:56] <g4b01> I'm fighting with ModelAdmin
133: [09:34:20] <g4b01> If I filter some data, and then I try to sort it, the filter is gone
134: [09:35:32] * neilf__ quit (Quit: Connection closed for inactivity)
135: [09:38:33] <wmk> g4b01, yup...
136: [09:40:00] <swaiba> wmk g4b01 https://github.com/Little-Giant/silverstripe-persistentgridfield ?
137: [09:40:23] <wmk> good idea...
138: [09:42:01] * g4b02 has joined #silverstripe
139: [09:42:01] <ss-helper> g4b02: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
140: [09:44:54] * EasyCo_ has joined #silverstripe
141: [09:47:52] * g4b01 quit (*.net *.split)
142: [09:47:52] * UncleCheese quit (*.net *.split)
143: [09:47:53] * Tanger_ quit (*.net *.split)
144: [09:47:53] * EasyCo quit (*.net *.split)
145: [09:48:20] * EasyCo_ is now known as EasyCo
146: [10:21:29] * agent44 has joined #silverstripe
147: [10:32:24] <swaiba> wmk g4b01 any joy?
148: [10:33:49] * kinglozzer quit (Read error: Connection reset by peer)
149: [10:34:08] * kinglozzer has joined #silverstripe
150: [10:37:56] <g4b02> hi swaiba
151: [10:47:01] <swaiba> g4b02 with the https://github.com/Little-Giant/silverstripe-persistentgridfield ?
152: [10:59:56] * Firesphere_ has joined #silverstripe
153: [11:01:03] <Firesphere_> Hello world, do you receive my message?
154: [11:01:42] * Firesphere_ is now known as Firesphere
155: [11:02:05] <Firesphere> And now without underscore even!
156: [11:04:29] * BrewNaked has joined #silverstripe
157: [11:08:54] * BrewNaked quit (Ping timeout: 260 seconds)
158: [11:09:29] <swaiba> hello Firesphere
159: [11:09:56] <Firesphere> The fact that I get your message, means my bouncer is back online!
160: [11:10:01] * Firesphere does happy dance
161: [11:24:22] * vitaly has joined #silverstripe
162: [11:28:41] * vitaly quit (Ping timeout: 244 seconds)
163: [11:33:50] * DimiStripe_alt has joined #silverstripe
164: [11:33:54] * slievr_ has joined #silverstripe
165: [11:35:09] <g4b02> tnks swaiba, I will try it
166: [11:35:52] * DimiStripe quit (Ping timeout: 264 seconds)
167: [11:35:53] * DimiStripe_alt is now known as DimiStripe
168: [11:36:28] * slievr quit (Ping timeout: 264 seconds)
169: [11:36:30] * gamma quit (Ping timeout: 264 seconds)
170: [11:49:55] * gamma has joined #silverstripe
171: [11:59:01] * ShannonPatterson has joined #silverstripe
172: [12:15:11] * UndefinedOffset has joined #silverstripe
173: [12:24:07] * pinc has joined #silverstripe
174: [12:28:34] * pinc quit (Ping timeout: 252 seconds)
175: [12:53:31] * BrewNaked has joined #silverstripe
176: [12:56:04] * mrguits quit (Quit: Page closed)
177: [12:58:22] * BrewNaked quit (Ping timeout: 268 seconds)
178: [13:26:08] * muskie9 has joined #silverstripe
179: [13:36:49] * TombL_ has joined #silverstripe
180: [13:38:23] * UndefinedOffset quit (Read error: Connection reset by peer)
181: [13:38:55] * UndefinedOffset has joined #silverstripe
182: [13:43:45] * TombL quit (*.net *.split)
183: [14:04:30] <g4b02> swaiba: it was my mistake
184: [14:05:04] <g4b02> because I'm implementing a custom filtering on ModelAdmin and I was checking getVars
185: [14:05:22] <g4b02> since filternig options are sent via GET
186: [14:05:36] <g4b02> but sorting options are sent via POST :/
187: [14:06:31] <g4b02> let's go to the next question :)
188: [14:06:52] <g4b02> is it possible to sort a gridfield on a custom field?
189: [14:07:46] <g4b02> eg. I have a summary_field like Operator.Name
190: [14:08:00] <g4b02> I would like to sort by Operator Name
191: [14:08:06] <g4b02> but it seems not possibl
192: [14:08:09] <g4b02> e
193: [14:10:57] <swaiba> g4b02 - when you say custom field... do you mean one using casting?
194: [14:11:51] <g4b02> in Operator DataObject I have a function getName()
195: [14:11:56] <g4b02> that returns a string
196: [14:14:44] <swaiba> and how is that being added to the gridfield?
197: [14:15:49] <g4b02> via summary_fields (I'm in a ModelAdmin)
198: [14:16:35] <kinglozzer> g4b02: You can only sort on it if it's an actual field
199: [14:16:51] <kinglozzer> So if you did Operator.Surname (assuming Surname actually exists in DB) it should work
200: [14:17:02] <kinglozzer> Then you can override the formatting for that column to output the name
201: [14:17:37] <g4b02> how can I override it?
202: [14:17:55] <g4b02> via getSurname() in Operator DO?
203: [14:18:34] <kinglozzer> g4b02: Does Surname exist in DB?
204: [14:18:48] <g4b02> yes
205: [14:19:04] <g4b02> in DB I have Name and Surname
206: [14:19:43] <kinglozzer> You mean FirstName and Surname? Then getName() returns both, righ?
207: [14:19:52] <g4b02> but my customer want to see "Surname Name" in the same column, and he also want to sort it
208: [14:19:59] <g4b02> right
209: [14:20:03] <kinglozzer> So add 'Surname' => 'Name' to your summary fields, it'll then sort by surname. To display the full name, you'll then need to do $grid->getConfig()->getComponentByType('GridFieldDataColumns')->setDisplayFields(... etc
210: [14:20:08] <kinglozzer> I have a gist somewhere I think... sec
211: [14:20:18] <g4b02> tnx
212: [14:22:00] <kinglozzer> g4b02: Something like this: https://gist.github.com/kinglozzer/330f484c6ff7bb0fc1017a852c981d47
213: [14:23:25] <g4b02> mmm, I'm a little bit confused
214: [14:24:03] <g4b02> I'm preparing a pastebin
215: [14:29:11] <g4b02> actually I'm in this situation: http://pastebin.com/KMuxMYdg
216: [14:29:24] <g4b02> my ModelAdmin is handling DoCicloLavorazione
217: [14:29:45] <g4b02> but I want to display (and Sort) Operatore.FullName
218: [14:30:22] <g4b02> what do I have to put in summary_fields?
219: [14:31:56] * Mike123 quit (Ping timeout: 250 seconds)
220: [14:39:51] <g4b02> I did it! Thanks kinglozzer!
221: [14:42:04] <kinglozzer> Nice! :)
222: [14:42:18] * BrewNaked has joined #silverstripe
223: [14:42:36] <g4b02> I had a little bit of problem because I'm sorting on a has_one property
224: [14:44:51] <g4b02> Another little (and I hope easy) question about GridField:
225: [14:45:05] <g4b02> is it possible to have date localized ?
226: [14:45:29] <g4b02> eg. my DO have a 'DataCiclo' => 'Date' in $db
227: [14:45:43] <g4b02> and in GF I see the mysql date format
228: [14:46:05] <g4b02> do I have to play with get/setDisplayFields again?
229: [14:46:34] * BrewNaked quit (Ping timeout: 244 seconds)
230: [14:54:50] * ShannonPatterson quit (Quit: Leaving)
231: [15:14:53] <Agilix_> g4b02: You can do DataCiclo.Nice in the front-ned. And many more: http://api.silverstripe.org/2.4/class-Date.html
232: [15:14:55] * bwaah has joined #silverstripe
233: [15:17:46] * arnhoe quit ()
234: [15:18:47] <bwaah> hi guys is it possible to transfer a live site back to localhost
235: [15:18:57] * BrewNaked has joined #silverstripe
236: [15:19:49] <swaiba> bwaah sure - https://github.com/silverstripe/sspak is recommended
237: [15:20:14] <swaiba> assuming you are installing the code with composer and you want the assets and db only
238: [15:29:54] * g4b02 going home
239: [15:30:00] <g4b02> bye
240: [15:32:50] * g4b02 has left #silverstripe
241: [15:38:08] * slievr__ has joined #silverstripe
242: [15:38:08] <ss-helper> slievr__: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
243: [15:38:44] <bwaah> ok let me try and see
244: [15:40:37] * slievr_ quit (Ping timeout: 250 seconds)
245: [15:41:33] * cass_ has joined #silverstripe
246: [15:42:20] <cass_> I have a question if anyone is available
247: [15:43:23] <cass_> \join
248: [15:44:06] <muskie9> cass_ better to ask the question than ask to ask the question ;p
249: [15:44:19] * gamma quit (*.net *.split)
250: [15:45:15] <cass_> I need to know if it is possible to migrate an existing site into silverstripe i have existing code that i need a cms for.
251: [15:45:29] <cass_> sorry!
252: [15:48:58] * Eliseth quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
253: [15:49:16] <Agilix_> cass_: an existing silverstripe site or something else?
254: [15:51:38] * gamma has joined #silverstripe
255: [15:51:42] <cass_> html5,css, small amount of jquery. no backend controllers so no not an existing silverstripe site. just the front end for a basic site
256: [15:53:25] <muskie9> cass_ you can move it into SilverStripe... we've moved static sites (no cms) into SilverStripe many times
257: [15:54:51] <cass_> how do i go about that? or is there a link that has a walkthrough? I would really appreciate the help
258: [15:56:44] <muskie9> the best way would be to get familiar with SilverStripe first via the docs https://docs.silverstripe.org/en/3.3/ and the lessons http://www.silverstripe.org/learn/lessons
259: [15:56:49] <Agilix_> So do you need to import the lay-out as well then? You should create a custom theme I suppose
260: [15:59:42] <cass_> yes i do . I'm semi familiar with it i've just never have done this before. i wasn't sure if i needed to go into the php to do it or if it was easy as creating a custom theme. of which is new to me because most of our customers use other cms and they most of the time ask them to be build through the cms. i basically have a client who asked for a site and then later asked for a cms.
261: [16:00:23] <ss-helper> Scaffold ListBox multiple select in ModelAdmin Filter for DataObject with Enum - http://stackoverflow.com/questions/35910394/scaffold-listbox-multiple-select-in-modeladmin-filter-for-dataobject-with-enum
262: [16:00:39] <muskie9> SilverStripe themes are basically html with some variables for the data/content from the cms
263: [16:00:58] <muskie9> http://www.silverstripe.org/learn/lessons/creating-your-first-theme?ref=hub
264: [16:01:15] <muskie9> http://www.silverstripe.org/learn/lessons/migrating-static-templates-into-your-theme?ref=hub
265: [16:03:40] <cass_> thank you!! awesome
266: [16:04:40] <muskie9> the lessons well done and cover a lot of things to get a site up and running/adding typical functionality
267: [16:05:32] * Agilix_ quit (Ping timeout: 250 seconds)
268: [16:05:50] <cass_> thakn you thank you!
269: [16:09:24] * swaiba quit (Remote host closed the connection)
270: [16:10:49] * wmk quit (Ping timeout: 244 seconds)
271: [16:25:32] * pinc has joined #silverstripe
272: [16:29:54] * pinc quit (Ping timeout: 244 seconds)
273: [16:32:31] * kinglozzer quit ()
274: [16:53:02] * gelignite has joined #silverstripe
275: [16:53:04] * muskie9 quit (Ping timeout: 260 seconds)
276: [17:01:46] * wmk has joined #silverstripe
277: [17:09:29] * agent44 quit (Quit: zzz)
278: [17:37:35] * cass_ quit (Quit: Page closed)
279: [17:39:45] * x4j5 has joined #silverstripe
280: [17:50:02] * muskie9 has joined #silverstripe
281: [17:51:13] <neomang> I've got a function I just wrote for a page that causes the page to not load at all when I call it
282: [17:51:36] <neomang> I've checked the code works on a test page, but i cant seem to get it to work in silverstripe
283: [17:52:06] <neomang> I might be calling it wrong but I've tried $function and <% loop function() %> (it should return an arraylist)
284: [17:52:09] <neomang> but neither work
285: [17:53:21] <muskie9> neomang <% loop $functionName %>
286: [17:53:39] <muskie9> is your function in the model or controller of your page?
287: [17:58:10] <neomang> it's in the model
288: [17:59:05] <neomang> Also that still doesn't work :\
289: [17:59:23] <muskie9> try having your function named getYourFunctionName()
290: [17:59:31] <muskie9> note the get in front
291: [17:59:44] <neomang> gotcha
292: [18:00:57] <neomang> no dice, I tried it all 3 ways
293: [18:01:13] <muskie9> can you paste your model
294: [18:01:15] <muskie9> !paste
295: [18:01:15] <ss-helper> Please paste your code using something like http://kopy.io/ or http://www.sspaste.com/ or https://gist.github.com/ and then paste the link here.
296: [18:04:22] <neomang> http://www.sspaste.com/paste/show/570e8a1d8b3a7
297: [18:05:15] <muskie9> neomang what does this return? episode::getEpsThreeDays(date("Y-m-d 00:00:00", $startDate->format('U')))
298: [18:05:33] <neomang> that returns an array
299: [18:05:53] <neomang> of episode objects
300: [18:05:54] <muskie9> an associative array?
301: [18:06:13] <neomang> no, just a standard array of objects, indexed 0+
302: [18:06:20] <muskie9> ok
303: [18:08:14] <muskie9> to put those results in your array you'd do something like this: https://gist.github.com/muskie9/53a703ac1eb3b3dfff2b8635c562dfaa
304: [18:10:25] <neomang> ah, that's good to know, I saw that the constructor could just take an array, but
305: [18:10:37] <neomang> the issue I'm still having is that the page won't even load
306: [18:10:45] <neomang> when I try to call the function
307: [18:11:14] <muskie9> do you have dev mode enabled
308: [18:11:51] <neomang> not at the moment, no
309: [18:11:54] <neomang> lemme turn it on
310: [18:12:01] <muskie9> that might show you the error
311: [18:15:01] <neomang> weird
312: [18:15:10] <neomang> it's saying it's getting a fatal call to pg_connect
313: [18:15:16] <neomang> which is in the episode class file
314: [18:15:29] <neomang> hmmm
315: [18:15:38] <muskie9> that'd do it
316: [18:15:49] <muskie9> is that a class in your code folder?
317: [18:16:31] <neomang> pg_connect is a php built in function for connecting to a postrgreSQL database
318: [18:16:40] <neomang> basically where I'm pulling data from
319: [18:17:02] <muskie9> right, I meant episode
320: [18:17:10] <neomang> yeah, that's in my code folder
321: [18:17:34] <neomang> it's not a silverstripe class, I'm reusing code
322: [18:17:38] <muskie9> not sure you need to do the include then in that function... but doesn't explain why that built in method isn't available
323: [18:17:41] <muskie9> ah gotcha
324: [18:17:44] <neomang> it's just a php helper class
325: [18:18:00] <neomang> yeah
326: [18:18:04] <neomang> this is gonna be tricky
327: [18:18:10] <neomang> thanks for your help this far though lol
328: [18:18:19] <muskie9> no problem
329: [18:19:42] <neomang> OH GOD
330: [18:19:46] <neomang> I'm just dumb
331: [18:20:06] <neomang> the module isn't installed on the local dev environment im using
332: [18:20:17] <neomang> 100% my fault
333: [18:20:44] <muskie9> that'll do it lol
334: [18:27:40] * bwaah quit (Ping timeout: 250 seconds)
335: [18:36:17] * DimiStripe_alt has joined #silverstripe
336: [18:36:39] * Embraden has joined #silverstripe
337: [18:38:10] * DimiStripe quit (Ping timeout: 252 seconds)
338: [18:38:11] * DimiStripe_alt is now known as DimiStripe
339: [18:39:15] * muskie9__ has joined #silverstripe
340: [18:39:18] * TombL_ quit (Ping timeout: 252 seconds)
341: [18:39:20] * Embraden_ quit (Ping timeout: 252 seconds)
342: [18:39:31] * TombL has joined #silverstripe
343: [18:39:49] * muskie9 quit (Ping timeout: 252 seconds)
344: [18:39:49] * x4j5 quit (Ping timeout: 252 seconds)
345: [18:49:56] <neomang> well that was much harder to deal with than it should have been, but the page now loads!
346: [18:49:59] <neomang> thanks again
347: [18:50:11] <muskie9__> no problem
348: [18:50:35] * muskie9__ is now known as muskie9
349: [18:53:06] * x4j5 has joined #silverstripe
350: [19:01:51] <neomang> Now I just need to figure out how to reference each object's attribute
351: [19:01:52] <neomang> s
352: [19:02:11] <muskie9> should be $arrayKey
353: [19:02:57] <neomang> well, this is the structure I'm dealing with for each one. The array keys I've tried so far don't work
354: [19:03:30] <neomang> http://kopy.io/Jw5WQ
355: [19:04:13] <neomang> obviously the ones with colons don't work
356: [19:06:42] <muskie9> you may need to do something to set an array up with key =>val pairings unfortunately
357: [19:20:24] * x4j5 quit (Ping timeout: 244 seconds)
358: [19:24:26] * helenclarko has joined #silverstripe
359: [19:24:36] <helenclarko> Hey all
360: [19:25:54] <muskie9> helenclarko o/
361: [19:27:36] <helenclarko> So this might be a dumb question, but I cant get my head around it. How would I loop over a something and ony pull out the first occurence? For example I have a dropdown in the backend for a team members role in the company. I then want to loop over the team members and pull them out of the list based on their roles. But I want them sorted by role.
362: [19:28:02] <muskie9> helenclarko GroupedList?
363: [19:28:04] <helenclarko> I know how to sort them, Just need to work out how to make a header
364: [19:28:22] <muskie9> https://docs.silverstripe.org/en/3.3/developer_guides/model/how_tos/grouping_dataobject_sets/
365: [19:28:34] <helenclarko> At the moment I have like 5 if statements for each god dame role
366: [19:29:03] <helenclarko> Just so I can create an h2 tag before doing the loop
367: [19:29:53] <muskie9> ya, try GroupedList, it should allow you to do the header, then loop through the items ($Children) for that grouped set
368: [19:30:19] <helenclarko> Oh I like that.
369: [19:30:49] <helenclarko> Then I can pull do $this->Role and just pull one of each role...
370: [19:30:52] <helenclarko> Nice
371: [19:32:48] <muskie9> it's a handy little list type
372: [19:45:02] * spekulatius2 has joined #silverstripe
373: [19:45:29] <ss-helper> PHP/Silverstripe IDE Survey : What IDE do you use for SS work ? - https://groups.google.com/d/msg/silverstripe-dev/bozY5hh9g4c/o1LIMQAMBgAJ
374: [19:45:48] * Stomach has joined #silverstripe
375: [19:48:25] * TombL quit (*.net *.split)
376: [19:48:29] * spekulatius quit (*.net *.split)
377: [19:48:31] * ajmitch quit (*.net *.split)
378: [19:48:35] * cloph_away quit (*.net *.split)
379: [19:48:35] * Kapdap quit (*.net *.split)
380: [19:48:36] * _longines quit (*.net *.split)
381: [19:48:47] * robbiea has joined #silverstripe
382: [19:57:19] * _longines_ has joined #silverstripe
383: [20:00:30] <ss-helper> Re: PHP/Silverstripe IDE Survey : What IDE do you use for SS work ? - https://groups.google.com/d/msg/silverstripe-dev/bozY5hh9g4c/nYs9piQMBgAJ
384: [20:00:49] <ss23> vim 4l yfe
385: [20:01:06] <muskie9> 😳
386: [20:03:10] * TombL has joined #silverstripe
387: [20:03:10] * ajmitch has joined #silverstripe
388: [20:03:10] * cloph_away has joined #silverstripe
389: [20:03:10] * Kapdap has joined #silverstripe
390: [20:03:10] * _longines has joined #silverstripe
391: [20:03:19] * bwaah has joined #silverstripe
392: [20:04:33] * TombL quit (*.net *.split)
393: [20:04:39] * ajmitch quit (*.net *.split)
394: [20:04:41] * cloph_away quit (*.net *.split)
395: [20:04:41] * Kapdap quit (*.net *.split)
396: [20:04:42] * _longines quit (*.net *.split)
397: [20:05:09] * Phlunk3 has joined #silverstripe
398: [20:06:20] * TombL has joined #silverstripe
399: [20:11:55] * ajmitch has joined #silverstripe
400: [20:11:55] * cloph_away has joined #silverstripe
401: [20:11:55] * Kapdap has joined #silverstripe
402: [20:14:34] * cloph_away quit (Ping timeout: 240 seconds)
403: [20:15:36] * ajmitch quit (Ping timeout: 240 seconds)
404: [20:15:36] * Kapdap quit (Ping timeout: 240 seconds)
405: [20:15:37] <neomang> No love for N++?
406: [20:15:42] * Kapdap has joined #silverstripe
407: [20:17:39] * ajmitch has joined #silverstripe
408: [20:19:19] * cloph_away has joined #silverstripe
409: [20:19:28] * _longines_ is now known as _longines
410: [20:26:57] * pinc has joined #silverstripe
411: [20:29:09] * UndefinedOffset quit (Quit: Leaving.)
412: [20:30:30] <ss-helper> Re: [silverstripe-dev] PHP/Silverstripe IDE Survey : What IDE do you use for SS work ? - https://groups.google.com/d/msg/silverstripe-dev/bozY5hh9g4c/_1gGEewNBgAJ
413: [20:31:42] * pinc quit (Ping timeout: 276 seconds)
414: [20:32:14] <wmk> neomang, no
415: [20:37:51] * robbiea_ has joined #silverstripe
416: [20:38:19] * muskie9__ has joined #silverstripe
417: [20:38:48] * ec8or_ has joined #silverstripe
418: [20:38:50] * Embraden_ has joined #silverstripe
419: [20:38:50] * Embraden_ quit (Changing host)
420: [20:38:50] * Embraden_ has joined #silverstripe
421: [20:40:44] * madmatt has joined #silverstripe
422: [20:41:08] * madmatt is now known as Guest59807
423: [20:41:40] * Azure|dc has joined #silverstripe
424: [20:42:39] * Kapdap_ has joined #silverstripe
425: [20:44:36] * xyphoid_ has joined #silverstripe
426: [20:45:31] <ss-helper> Re: [silverstripe-dev] PHP/Silverstripe IDE Survey : What IDE do you use for SS work ? - https://groups.google.com/d/msg/silverstripe-dev/bozY5hh9g4c/-7GutC4PBgAJ
427: [20:45:31] <ss-helper> Re: [silverstripe-dev] PHP/Silverstripe IDE Survey : What IDE do you use for SS work ? - https://groups.google.com/d/msg/silverstripe-dev/bozY5hh9g4c/TD-m0ywPBgAJ
428: [20:47:08] * Kapdap quit (*.net *.split)
429: [20:47:08] * TombL quit (*.net *.split)
430: [20:47:09] * robbiea quit (*.net *.split)
431: [20:47:10] * muskie9 quit (*.net *.split)
432: [20:47:11] * Embraden quit (*.net *.split)
433: [20:47:18] * Azure quit (*.net *.split)
434: [20:47:22] * ec8or quit (*.net *.split)
435: [20:47:24] * Guest3090 quit (*.net *.split)
436: [20:47:27] * xyphoid quit (*.net *.split)
437: [20:55:52] * Stomach quit (Quit: zzz)
438: [20:56:28] * robbiea_ quit (Remote host closed the connection)
439: [21:00:31] <ss-helper> Re: [silverstripe-dev] PHP/Silverstripe IDE Survey : What IDE do you use for SS work ? - https://groups.google.com/d/msg/silverstripe-dev/bozY5hh9g4c/uGvzhmcPBgAJ
440: [21:01:35] * TombL has joined #silverstripe
441: [21:02:23] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
442: [21:04:30] * robbiea has joined #silverstripe
443: [21:04:32] * guci0 quit (Ping timeout: 250 seconds)
444: [21:08:11] * vitaly_ has joined #silverstripe
445: [21:09:50] * Hailwood quit (Read error: Connection reset by peer)
446: [21:10:34] * Stomach has joined #silverstripe
447: [21:14:09] * pinc has joined #silverstripe
448: [21:15:31] <ss-helper> Re: [silverstripe-dev] PHP/Silverstripe IDE Survey : What IDE do you use for SS work ? - https://groups.google.com/d/msg/silverstripe-dev/bozY5hh9g4c/HZboxI4QBgAJ
449: [21:21:01] * micmania1 has joined #silverstripe
450: [21:21:47] * Stomach quit (Quit: zzz)
451: [21:21:52] * bwaah quit (Ping timeout: 250 seconds)
452: [21:41:53] * cloph_away quit (Ping timeout: 264 seconds)
453: [21:44:37] * Hailwood has joined #silverstripe
454: [21:46:02] <Hailwood> Hey folks, anyone know of a generic way to "if the page has pagination, and we are not on the first page append " | page #" to the title?
455: [21:46:23] * cloph_away has joined #silverstripe
456: [21:47:18] <muskie9__> <% if $PaginatedPages.NotFirstPage %> | page $PaginatedPages.PageNum<% end_if %>
457: [21:47:22] <muskie9__> or something like that
458: [21:47:42] * Stomach has joined #silverstripe
459: [21:48:17] <muskie9__> where $PaginatedPages is your pagination loop variable
460: [21:48:20] <Hailwood> muskie9__, Yeah, issue being that the blog uses $PaginatedList another module uses just $Pagination etc. so I'm looking for something more generic. Is there a specific request var maybe that is always set?
461: [21:48:37] <Hailwood> then I could alter the MetaTags function to check for that
462: [21:49:57] <muskie9__> I don't think there's anything generic since, to that point, each paginated list instance can have it's own loop variable and is completely dependent on what the code running it is setup as
463: [21:50:03] * muskie9__ is now known as muskie9
464: [21:53:36] * slievr__ quit (Ping timeout: 276 seconds)
465: [21:56:37] * wmk quit (Ping timeout: 260 seconds)
466: [22:07:56] * Embraden_ quit (Read error: Connection reset by peer)
467: [22:08:16] * micmania1 quit (Quit: micmania1)
468: [22:08:31] * Embraden has joined #silverstripe
469: [22:08:31] * Embraden quit (Changing host)
470: [22:08:31] * Embraden has joined #silverstripe
471: [22:10:38] * liori quit (Ping timeout: 248 seconds)
472: [22:11:31] * liori has joined #silverstripe
473: [22:13:40] * muskie9 quit (Quit: My Mac has gone to sleep. ZZZzzz…)
474: [22:28:05] * Stomach quit (Quit: zzz)
475: [22:29:09] * Stomach has joined #silverstripe
476: [22:30:33] <ss-helper> Re: [silverstripe-dev] PHP/Silverstripe IDE Survey : What IDE do you use for SS work ? - https://groups.google.com/d/msg/silverstripe-dev/bozY5hh9g4c/w9rR0d0UBgAJ
477: [22:30:33] <ss-helper> Re: [silverstripe-dev] PHP/Silverstripe IDE Survey : What IDE do you use for SS work ? - https://groups.google.com/d/msg/silverstripe-dev/bozY5hh9g4c/UF2iw9YUBgAJ
478: [22:30:33] <ss-helper> Re: [silverstripe-dev] PHP/Silverstripe IDE Survey : What IDE do you use for SS work ? - https://groups.google.com/d/msg/silverstripe-dev/bozY5hh9g4c/7oOsxcEUBgAJ
479: [22:30:33] <ss-helper> Re: [silverstripe-dev] PHP/Silverstripe IDE Survey : What IDE do you use for SS work ? - https://groups.google.com/d/msg/silverstripe-dev/bozY5hh9g4c/NQRO1IAUBgAJ
480: [22:34:34] * pinc quit ()
481: [22:41:32] * spronk has joined #silverstripe
482: [22:45:34] <ss-helper> Re: [silverstripe-dev] PHP/Silverstripe IDE Survey : What IDE do you use for SS work ? - https://groups.google.com/d/msg/silverstripe-dev/bozY5hh9g4c/CWPL2koVBgAJ
483: [22:45:34] <ss-helper> Re: [silverstripe-dev] PHP/Silverstripe IDE Survey : What IDE do you use for SS work ? - https://groups.google.com/d/msg/silverstripe-dev/bozY5hh9g4c/YdhGOhIVBgAJ
484: [22:57:24] * robbiea quit (Remote host closed the connection)
485: [23:09:37] <spronk> I should send Apple and Microsoft a bill for all the time their hideously slow autoupdates lose me
486: [23:15:34] <ss-helper> Re: [silverstripe-dev] PHP/Silverstripe IDE Survey : What IDE do you use for SS work ? - https://groups.google.com/d/msg/silverstripe-dev/bozY5hh9g4c/uL9Qu1oXBgAJ
487: [23:15:34] <ss-helper> Re: [silverstripe-dev] PHP/Silverstripe IDE Survey : What IDE do you use for SS work ? - https://groups.google.com/d/msg/silverstripe-dev/bozY5hh9g4c/nyIFN7YWBgAJ
488: [23:18:45] <spronk> oh god, fuck off ss-helper
489: [23:21:04] <ss23> Yeah, that's annoying
490: [23:21:08] <ss23> Who runs ss-helper now?
491: [23:21:23] <ss23> Hit me up if it's not... more quiet for the rest of the day, and I'll ban it (going for a sleep now)
492: [23:21:30] <ss23> spronk: i gotcha man, I GOTCHA
493: [23:21:38] * robbiea has joined #silverstripe
494: [23:21:57] <spronk> how was the bread?
495: [23:25:58] * micmania1 has joined #silverstripe
496: [23:30:35] <ss-helper> Re: [silverstripe-dev] PHP/Silverstripe IDE Survey : What IDE do you use for SS work ? - https://groups.google.com/d/msg/silverstripe-dev/bozY5hh9g4c/dJAlzjUYBgAJ
497: [23:30:35] <ss-helper> Re: [silverstripe-dev] PHP/Silverstripe IDE Survey : What IDE do you use for SS work ? - https://groups.google.com/d/msg/silverstripe-dev/bozY5hh9g4c/JQSZcb0XBgAJ
498: [23:30:35] <ss-helper> Re: [silverstripe-dev] PHP/Silverstripe IDE Survey : What IDE do you use for SS work ? - https://groups.google.com/d/msg/silverstripe-dev/bozY5hh9g4c/HyuKH4YXBgAJ
499: [23:35:59] * robbiea quit (Ping timeout: 250 seconds)
500: [23:37:37] * robbiea has joined #silverstripe
501: [23:43:28] * Azure|dc is now known as Azure
502: [23:45:35] <ss-helper> Re: [silverstripe-dev] PHP/Silverstripe IDE Survey : What IDE do you use for SS work ? - https://groups.google.com/d/msg/silverstripe-dev/bozY5hh9g4c/KZEGy_4YBgAJ
503: [23:45:35] <ss-helper> Re: [silverstripe-dev] PHP/Silverstripe IDE Survey : What IDE do you use for SS work ? - https://groups.google.com/d/msg/silverstripe-dev/bozY5hh9g4c/nmhaG3YYBgAJ
504: [23:46:14] * mayko has joined #silverstripe
505: [23:50:30] * mayko quit (Ping timeout: 250 seconds)
506: [23:52:44] * darjusIT has joined #silverstripe
507: [23:53:50] <darjusIT> Hi all on writing queries with new SQLSelect(); can I have multiple addWhere() ?

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