#silverstripe IRC Log

IRC log for 18 October 2016

All timestamps are in UTC.

1: [00:00:04] <ss-helper> RFC Replace Zend_Locale with new i18n backend - https://groups.google.com/d/msg/silverstripe-dev/BVgFrxb7ISw/BH4nr_XjAwAJ
2: [00:07:08] * helenclark0 quit (Ping timeout: 245 seconds)
3: [00:08:51] * helenclarko has joined #silverstripe
4: [00:34:16] * helenclark0 has joined #silverstripe
5: [00:36:40] * helenclarko quit (Ping timeout: 260 seconds)
6: [01:07:59] * Nightjar has joined #silverstripe
7: [01:12:00] <Nightjar> DanaeNZ, mysqldump SS_lolfase > lolfase.sql
8: [01:12:36] <DanaeNZ> Nightjar: unfortunately I only have a csv to work with
9: [01:12:47] <DanaeNZ> data migration-ish
10: [01:13:04] <Nightjar> SSIS package
11: [01:14:10] <Nightjar> That stands for (MS)SQL SERVER INTEGRATION PACKAGES btw.
12: [01:15:07] <Nightjar> +Services (fuck'n missed the last S, what a derp)
13: [01:15:36] <Nightjar> seriously though, good product. Just... good luck getting it to integrate with ODBC drivers to MySQL :<
14: [01:15:47] <DanaeNZ> Also I have like...two days
15: [01:15:54] <Nightjar> (because of MySQL ODBC drivers, SSIS is legit.)
16: [01:16:14] <Nightjar> php.net/read_csv or whatever, idk.
17: [01:16:15] <Nightjar> GOSH
18: [01:16:44] <spronk> oo_O
19: [01:16:57] <spronk> you can load a csv into a sql database
20: [01:17:11] <spronk> load data infile termined by '...' delimited by '...'
21: [01:17:11] <spronk> etc
22: [01:17:22] <Nightjar> yeah, but mathmatically 'My' == '!'
23: [01:17:23] <muskie9> DanaeNZ I usually just do ->myFunctionName in a csv bulk loader... I can't remember if the 3rd param for a function in that case is the entire row or not
24: [01:17:41] <Nightjar> that is, NOT
25: [01:17:54] <DanaeNZ> muskie9: that's what I started with and then it threw a hissy fit whenever it came across an apostrophe or something
26: [01:18:07] <DanaeNZ> I'm trying SilverStripe import/export module
27: [01:18:17] <DanaeNZ> might just...make a build task or something
28: [01:18:18] <Nightjar> lol apostrophe
29: [01:18:25] <muskie9> I do that too
30: [01:18:26] <Nightjar> DanaeNZ, like, what is the question?
31: [01:18:40] <Nightjar> how get data?
32: [01:18:41] <Nightjar> https://github.com/burnbright/silverstripe-importexport#bulkloadersource
33: [01:18:53] <DanaeNZ> Nightjar: through GridField component
34: [01:19:07] <DanaeNZ> at the moment I'm actually stuck on getting the mapping right
35: [01:19:29] <DanaeNZ> columnMap vs mappableFields
36: [01:19:45] <DanaeNZ> the headers in the CSV have completely different names to the fields
37: [01:19:52] <DanaeNZ> but it won't pick up my map? I don't know
38: [01:20:03] <DanaeNZ> I'm very close to just making a task and ditching gridfield altogether
39: [01:20:21] <muskie9> gridfield in model admin?
40: [01:20:28] <Nightjar> DanaeNZ, draw a picture.
41: [01:20:33] <Nightjar> like, honestly.
42: [01:20:43] <DanaeNZ> muskie9: yep
43: [01:20:44] <Nightjar> (for yourself, not me)
44: [01:20:54] <DanaeNZ> Nightjar: I guess I could, though I don't know what to draw?
45: [01:21:08] <DanaeNZ> It's a third party module so I don't know exactly how it works to begin with
46: [01:21:39] <Nightjar> DanaeNZ, column mappings
47: [01:22:46] <DanaeNZ> Nightjar: I guess the drawing would look exactly like this column map array I made though
48: [01:23:13] <DanaeNZ> I think I'm just using the module wrong
49: [01:23:21] <Nightjar> <DanaeNZ> at the moment I'm actually stuck on getting the mapping right
50: [01:23:25] <Nightjar> Liar!
51: [01:23:59] <muskie9> what's ur gridfield code look like
52: [01:24:01] <DanaeNZ> as in it's not mapping
53: [01:25:11] <DanaeNZ> muskie9: like a big mess: http://www.sspaste.com/paste/show/580579eacfa63
54: [01:25:44] <DanaeNZ> nb, I just swapped the key/val around for the columnMap to see if that would work
55: [01:27:38] <DanaeNZ> https://github.com/burnbright/silverstripe-importexport#mapping-record-data-to-a-standard-format
56: [01:27:47] <DanaeNZ> Like, that should work right? According to docs?
57: [01:28:15] <DanaeNZ> array key is CSV headings, array val is the db field name
58: [01:28:29] <muskie9> looks like it... as long as your keys are accurate
59: [01:28:52] <muskie9> still looks better than the import controllers I write lolz
60: [01:31:11] * Stomach quit (Quit: zzz)
61: [01:31:22] <muskie9> DanaeNZ is this a one time import, or will this be something that will be done periodically?
62: [01:31:57] * Stomach has joined #silverstripe
63: [01:31:58] <DanaeNZ> muskie9: I think it will be done periodically. They have a third party inventory / product management thing
64: [01:32:44] <muskie9> gotcha
65: [01:32:54] <DanaeNZ> gah it's completely ignoring my specific column mapping. Just scaffolds it
66: [01:37:09] <muskie9> is your loader class correct?
67: [01:39:01] <DanaeNZ> muskie9: yep, it's just the BetterBulkLoader
68: [01:39:08] <muskie9> DanaeNZ you're getting the loader but that's returning the scaffoldLoader: https://github.com/burnbright/silverstripe-importexport/blob/master/code/gridfield/GridFieldImporter.php#L44-L55
69: [01:39:08] <muskie9> **if it's not set
70: [01:39:52] <muskie9> only if you run the set first I think... the constructor for the component doesn't seem to set a loader
71: [01:40:06] <DanaeNZ> muskie9: ah i think that might be it
72: [01:40:16] <DanaeNZ> it appears to forget the mappings after clicking 'import'
73: [01:40:24] <muskie9> it's not obvious from the docs imo
74: [01:41:37] * muskie9 quit (Read error: Connection reset by peer)
75: [01:41:55] * muskie9 has joined #silverstripe
76: [01:41:57] <muskie9> makes sense though, cause it can't assume the dev has done the mapping, so has to fall back to scaffold
77: [01:42:09] * Stomach quit (Quit: zzz)
78: [01:42:53] * Stomach has joined #silverstripe
79: [01:43:32] <DanaeNZ> muskie9: guess so. Now I need to figure out why it's ignoring the mapping I am explicitly setting
80: [01:43:42] <DanaeNZ> just whyyyyyy
81: [01:44:09] <DanaeNZ> it can read the mappableFields properly
82: [01:44:14] <DanaeNZ> just not the columnMap
83: [01:44:38] <DanaeNZ> It also remembers the transforms from the initialisation
84: [01:47:56] * janneklouman-- has joined #silverstripe
85: [01:48:44] <muskie9> that is strange since it's public and should be overridable
86: [01:49:56] <DanaeNZ> I've just done a stepthrough with xdebug, and it actually remembers all the properties. It's just not applying them? to the object? I don't know
87: [01:50:22] <DanaeNZ> this is a pain in the arse
88: [01:51:25] <muskie9> just curious, did the debug give you the $loader value, as far as what object class it is?
89: [01:51:50] <DanaeNZ> muskie9: BetterBulkLoader
90: [01:51:53] <DanaeNZ> errtime
91: [01:51:59] <muskie9> 👍
92: [01:52:44] * janneklouman-- quit (Ping timeout: 260 seconds)
93: [01:53:06] * Stomach quit (Quit: zzz)
94: [01:53:30] * Stomach has joined #silverstripe
95: [01:58:51] <muskie9> well, I'm stumped lolz
96: [02:02:32] <DanaeNZ> same tbh
97: [02:02:57] <DanaeNZ> it probably doesn't help I'm using it on extensions of silvershop objects etc
98: [02:03:23] <muskie9> ah
99: [02:03:27] <muskie9> could be part of it
100: [02:18:36] * Azure quit (Ping timeout: 244 seconds)
101: [02:51:49] * Bollig|DesignCty has joined #silverstripe
102: [03:25:03] * helenclark0 quit (Ping timeout: 245 seconds)
103: [03:26:42] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
104: [03:27:03] * pandaux has joined #silverstripe
105: [03:27:16] * Stomach quit (Quit: zzz)
106: [03:28:02] * Stomach has joined #silverstripe
107: [03:28:59] * helenclarko has joined #silverstripe
108: [03:33:47] * helenclarko quit (Read error: Connection reset by peer)
109: [03:36:58] * janneklouman-- has joined #silverstripe
110: [03:40:48] * Stomach quit (Quit: zzz)
111: [03:41:32] * Stomach has joined #silverstripe
112: [03:41:36] * janneklouman-- quit (Ping timeout: 256 seconds)
113: [04:03:20] * Stomach quit (Ping timeout: 260 seconds)
114: [04:04:31] * pandaux quit (Ping timeout: 260 seconds)
115: [04:07:21] * DanaeNZ quit (Remote host closed the connection)
116: [04:07:58] * DanaeNZ has joined #silverstripe
117: [04:12:11] * micmania1 quit (Quit: micmania1)
118: [04:12:24] * DanaeNZ quit (Remote host closed the connection)
119: [04:12:44] * DanaeNZ has joined #silverstripe
120: [04:26:00] * DanaeNZ quit (Remote host closed the connection)
121: [04:26:37] * DanaeNZ has joined #silverstripe
122: [04:31:13] * DanaeNZ quit (Ping timeout: 260 seconds)
123: [04:40:56] * micmania1 has joined #silverstripe
124: [05:08:35] * janneklouman-- has joined #silverstripe
125: [05:10:34] * janneklouman-- quit (Read error: Connection reset by peer)
126: [05:12:44] * micmania1 quit (Quit: micmania1)
127: [05:32:11] * spronk quit (Quit: I may need a longer sleep timer...)
128: [05:37:17] * cheddam quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
129: [05:43:10] * wmk has joined #silverstripe
130: [06:07:07] * Stomach has joined #silverstripe
131: [06:11:11] * Shrike_Finland has joined #silverstripe
132: [06:32:14] * janneklouman-- has joined #silverstripe
133: [06:37:57] * janneklouman-- quit (Ping timeout: 256 seconds)
134: [06:43:17] * Kingy quit (Ping timeout: 248 seconds)
135: [06:51:50] * Kingy has joined #silverstripe
136: [06:52:48] <wmk> Is there already a ready-to-use RedirectorPage where i can link to a downloadable file?
137: [07:13:26] * cheddam has joined #silverstripe
138: [07:17:43] * Stomach quit (Quit: zzz)
139: [07:17:51] * madmatt quit (Ping timeout: 250 seconds)
140: [07:17:54] * spronk has joined #silverstripe
141: [07:18:06] * madmatt has joined #silverstripe
142: [07:18:30] * madmatt is now known as Guest91752
143: [07:18:41] * swaiba has joined #silverstripe
144: [07:18:51] <swaiba> good morning all
145: [07:23:15] * lerni has joined #silverstripe
146: [07:24:08] <swaiba> good morning l!
147: [07:25:03] * janneklouman-- has joined #silverstripe
148: [07:33:56] * janneklouman-- quit (Ping timeout: 256 seconds)
149: [07:34:09] * pweh has joined #silverstripe
150: [07:41:03] * cupcake has joined #silverstripe
151: [07:41:13] <cupcake> o/
152: [07:42:49] * spronk quit (Quit: I may need a longer sleep timer...)
153: [07:42:56] <swaiba> ola cupcake
154: [07:43:29] <cupcake> whats up? :)
155: [07:43:57] <swaiba> just back to work and it's raining :)
156: [07:44:14] <swaiba> any you?
157: [07:44:42] <swaiba> *and
158: [07:45:16] <cupcake> heheh here its pretty sunny
159: [07:45:23] <cupcake> back to work too
160: [07:45:43] <cupcake> ectually yesterday was at work after 9 hours of travelling
161: [07:47:02] <swaiba> 9 hours... ouch...
162: [07:47:39] <swaiba> I had similar, but it was well it was worth it :)
163: [07:56:14] <lerni> hi there
164: [07:57:01] <lerni> and hello swaiba
165: [07:57:14] <swaiba> :)
166: [08:01:21] <cupcake> hehe ye ... ljubljana -> trieste->rome-> malta
167: [08:01:25] <cupcake> hey lerni :)
168: [08:02:09] <cupcake> it was worth it i enjoyed the well organized conference and city of ljubljana :) enjoyed so much greenery i dont get to see much in my island :)
169: [08:03:30] <lerni> heho cupcake ;)
170: [08:03:46] <cupcake> + i got to put some faces to irc ppl :) haha
171: [08:05:00] * kinglozzer has joined #silverstripe
172: [08:05:44] <swaiba> yeah I met lerni... again!
173: [08:06:16] <swaiba> seriously yes meeting everyone is the best part of the confernce for me
174: [08:06:28] <cupcake> :)
175: [08:06:43] * cloph quit (Remote host closed the connection)
176: [08:06:58] * cloph_away has joined #silverstripe
177: [08:07:20] * cloph_away is now known as cloph
178: [08:07:23] * cloph quit (Remote host closed the connection)
179: [08:07:38] * cloph_away has joined #silverstripe
180: [08:08:21] * cloph_away is now known as clophp
181: [08:08:24] * clophp is now known as cloph
182: [08:10:14] * cloph quit (Remote host closed the connection)
183: [08:10:28] * cloph_away has joined #silverstripe
184: [08:12:19] * janneklouman-- has joined #silverstripe
185: [08:16:29] * cheddam quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
186: [08:27:38] * DanaeNZ has joined #silverstripe
187: [08:27:38] * slievr has joined #silverstripe
188: [08:28:22] <slievr> mornin'
189: [08:32:08] * DanaeNZ quit (Ping timeout: 260 seconds)
190: [08:33:16] <wmk> moin
191: [08:34:35] <wmk> hola cupcake
192: [08:35:13] <wmk> lerni old saussage skin, everything ok back in the mountains?
193: [08:35:33] * wmk doubts bavarian terms can be translated 1:1...
194: [08:36:21] <lerni> well ketchup
195: [08:36:32] <lerni> https://image-store.slidesharecdn.com/d4467caf-cb42-4536-93d2-f439f91798fa-large.jpeg
196: [08:37:04] <wmk> so true
197: [08:37:35] <lerni> wmk: all fine had a good trip back - you2?
198: [08:38:20] <wmk> thanks. had to mayonaise the train
199: [08:38:24] <wmk> eh, ketchup
200: [08:38:46] <wmk> so the last kilometers driven were a bit... hm... faster than usual
201: [08:40:41] <lerni> I was back home for lunch, we had saussages with mustard, haha
202: [08:43:06] <cupcake> hey wmk
203: [08:43:46] <wmk> anyone knows a ready-to-use pagetype where i can link a file download in the menu?
204: [08:45:46] <swaiba> wmk couldn't you just make a redirector page, select an asset? or say "other site" and put the asset url in?
205: [08:45:50] <lerni> wmk: redirection and "other Website" with the URL to the file...
206: [08:46:04] <swaiba> lerni - high five
207: [08:46:08] <wmk> hmm... with file attached would be nice
208: [08:46:15] <lerni> swaiba: :)
209: [08:46:16] <wmk> cause the file would change
210: [08:46:28] <wmk> it's for a restaurant's monthly menu card
211: [08:46:52] <swaiba> then just extend page, add has_one file and overrider Link() to return the file link
212: [08:46:58] <lerni> but this should be replaced, right?
213: [08:47:34] * agent44 has joined #silverstripe
214: [08:58:21] * ss32noob has joined #silverstripe
215: [08:58:34] <wmk> ss32noob, ☺/
216: [09:02:16] * agent44 quit (Quit: zzz)
217: [09:02:45] * agent44 has joined #silverstripe
218: [09:03:31] <lerni> hi ss32noob
219: [09:06:11] <swaiba> ss32noob o/
220: [09:09:17] <ss32noob> hey lerni and swaiba
221: [09:09:17] <ss32noob> :D
222: [09:12:22] * Bollig|DesignCty quit (Ping timeout: 265 seconds)
223: [09:16:07] <wmk> trying to speed up my vagrant installation..... wish me luck
224: [09:17:48] * Shrike_Finland quit (Quit: Leaving.)
225: [09:18:19] <ss32noob> hehe goodluck. :D
226: [09:18:57] * Hailwood has joined #silverstripe
227: [09:19:42] <Hailwood> Hey folks! What's the recommended package for SMTP in silverstripe?
228: [09:22:09] <cloph_away> none? (aka use the system provide mailing system)
229: [09:22:21] * cloph_away is now known as cloph
230: [09:25:47] <swaiba> Hailwood sam said swiftmailer would be used in ss4
231: [09:26:23] <swaiba> we use an old, hacked up version of https://github.com/xeraa/silverstripe-smtp
232: [09:26:24] <Hailwood> swaiba: is there a SS3 package for it already?
233: [09:26:30] <swaiba> (with sendgrid or mailgun)
234: [09:26:59] <swaiba> not that I know of
235: [09:27:06] <Hailwood> Interesting.. Thanks. I'm looking at trying out this now https://github.com/lekoala/silverstripe-sparkpost
236: [09:27:32] <swaiba> https://github.com/kinglozzer/silverstripe-mailgunner this is good isn't it kinglozzer?
237: [09:28:58] <kinglozzer> It's wonderful
238: [09:29:00] <kinglozzer> :D
239: [09:30:30] <slievr> I'm sensing there may be some bias
240: [09:30:54] <swaiba> lol
241: [09:31:24] <swaiba> I think mailgun is better than sendgrid, but I've not used KLs mod yet
242: [09:34:21] <swaiba> wmk do the same as I suggested for mysql... mount a drive in memory and then run vagrant from there!
243: [09:34:38] <wmk> well, problem is the shared folder
244: [09:34:50] <wmk> just trying to use nfs on my windows box, but still tricky
245: [09:43:21] * DimiStripe has joined #silverstripe
246: [09:45:09] <ss32noob> does <% if myTest %> and <% if $myTest %> makes a big difference? i mean both of them are working so was wondering does it make a big difference if you use the without $ aside from following the coding guidelines..
247: [09:45:32] <wmk> $ is newer syntax and more clear
248: [09:45:46] <wmk> better style. technically both are the same
249: [09:45:53] <swaiba> I'd always follow what is documented (he says!) as it is more likely to stay working
250: [09:47:18] <ss32noob> that's true. it's just that if your site is old.. and then new ss devs are following the new one.. there are just big inconsistencies in the templating.. some parts using without and some has
251: [09:50:41] * lerni quit ()
252: [09:55:41] * cupcake quit (Ping timeout: 260 seconds)
253: [10:03:56] * cheddam has joined #silverstripe
254: [10:11:35] <wmk> so excited... will it be faster?
255: [10:12:17] <wmk> omg... seems so
256: [10:12:30] <wmk> @Zauberfisch, just got nfs running on win10...
257: [10:13:33] <Zauberfisch> wmk: nfs server on windows?
258: [10:14:23] <wmk> yes
259: [10:14:46] <Zauberfisch> ok
260: [10:14:47] <Zauberfisch> cool
261: [10:15:06] <wmk> basically https://github.com/winnfsd/vagrant-winnfsd
262: [10:15:09] <Zauberfisch> there is also hyper-v support in vagrant
263: [10:15:25] <Zauberfisch> but no vagrant package yet, so I can't easily make a box
264: [10:15:37] <Zauberfisch> but the docs say it will come in a later version
265: [10:15:44] <wmk> nice. does a vagrant box works with hyper-v out of the box? or do i need to create a new box for that?
266: [10:15:54] <wmk> oh, ok.
267: [10:17:39] <Zauberfisch> yeah, you need to create them separately
268: [10:17:53] <Zauberfisch> that's what packer is there for to automate that
269: [10:18:01] <Zauberfisch> but I will do it manually
270: [10:18:20] <Zauberfisch> at some point I will make virtualbox, vm ware, hyper-v and kvm
271: [10:18:31] <wmk> ;)
272: [10:18:32] <Zauberfisch> but for the time being, you have to live with virtualbox
273: [10:19:25] <wmk> well, if it's finally faster now on my new laptop I'm totally happy with that
274: [10:19:33] <wmk> will save some coffee
275: [10:20:08] <swaiba> coffee is always good!
276: [10:24:34] <wmk> well, if i don't have to wait all the time, my coffee cost will lower
277: [10:29:04] * DanaeNZ has joined #silverstripe
278: [10:33:15] * BrewJay has joined #silverstripe
279: [10:33:42] * DanaeNZ quit (Ping timeout: 252 seconds)
280: [10:34:11] <BrewJay> I'm trying to get OmniPay to work. I've composer installed the omnipay package and the gateway package. However when I try and run $gateways = GatewayInfo::getSupportedGateways(); in a task. I'm getting that the class is not found..
281: [10:39:05] <kinglozzer> BrewJay: Looks like the module is namespaced
282: [10:39:39] <kinglozzer> So you'll need a "use SilverStripe\Omnipay\GatewayInfo;" statement at the top of your file
283: [10:41:31] <swaiba> BrewJay - you were at stripe con?
284: [10:41:43] <swaiba> https://tlk.io/stripecon16
285: [10:41:51] <swaiba> http://www.slideshare.net/RomanSchmid/silvershop-and-omnipay-slides
286: [10:42:04] <swaiba> videos coming soon I guess
287: [10:42:31] <BrewJay> Unfortunately not. I couldn't make it :(
288: [10:42:44] <BrewJay> Thank for the namespace tip! Didn't think of that. Will give it a go
289: [10:50:53] <BrewJay> That works perfect. In the Config yaml file for OmniPay how do I know what the gateway name is?
290: [11:22:50] * cheddam quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
291: [11:34:43] * Shrike_Finland has joined #silverstripe
292: [11:55:18] * cheddam has joined #silverstripe
293: [11:58:02] * Hailwood quit (Quit: Konversation terminated!)
294: [11:58:19] * cupcake has joined #silverstripe
295: [12:22:45] * UndefinedOffset has joined #silverstripe
296: [12:31:58] * cheddam quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
297: [13:00:15] <ss-helper> SilverStripe .ico preview - http://stackoverflow.com/questions/40108758/silverstripe-ico-preview
298: [13:00:43] * cupcake quit (Quit: Page closed)
299: [13:00:57] * cupcake has joined #silverstripe
300: [13:01:12] * samsam has joined #silverstripe
301: [13:03:03] <samsam> How do you "select" a field from parent page class? I want to apply ->setRows within "Page" for the HTMLEditorField which is set in "SiteTree"
302: [13:03:44] <kinglozzer> $fields->dataFieldByName('Content')->setRows(10) samsam ^^
303: [13:03:55] <samsam> Hehe nice cheers
304: [13:04:04] <samsam> #nuub
305: [13:04:10] * pweh quit (Read error: Connection reset by peer)
306: [13:12:06] <samsam> I wonder what a "row" stands for
307: [13:12:25] <samsam> It's definitely not linebreaks
308: [13:26:10] * Shrike_Finland quit (Quit: Leaving.)
309: [13:27:41] <swaiba> samsam everyone is new sometimes...
310: [13:27:51] <swaiba> and the "rows" are like number of lines
311: [13:28:13] <samsam> I know you
312: [13:28:15] <swaiba> e.g. https://www.amtrak.com/servlet/eWebEditPro/ug/images/table_sh.gif
313: [13:28:18] <samsam> We're great friends on stackoverflow
314: [13:28:20] <swaiba> i know me too :)
315: [13:28:29] <samsam> ah I see
316: [13:29:50] * otterpocket has joined #silverstripe
317: [13:44:44] * muskie9 has joined #silverstripe
318: [13:55:13] * Mike123 has joined #silverstripe
319: [13:55:35] <Mike123> Hey
320: [13:55:40] <muskie9> o/
321: [13:56:21] <Mike123> maybe someone can help a bit :) i have array of params let's say, i need to generate link out of it, maybe SS has something handy for this situation ?
322: [13:57:09] <muskie9> so you have ['getVar1' => 'val1', 'getVar2' => 'val2'] or something and want getVar1=val1&getVar2=val2
323: [13:57:16] <Mike123> yep
324: [13:57:25] <kinglozzer> PHP has something to help you ;)
325: [13:57:32] <muskie9> httpbuildquery or something
326: [13:57:41] <kinglozzer> $string = http_build_query($array)
327: [13:57:42] <kinglozzer> ^^
328: [13:57:48] <muskie9> that's it
329: [13:58:00] <Mike123> thanks you :) i knew there is something
330: [13:58:26] <muskie9> I don't think it prepends the ? though
331: [14:03:55] <wmk> samsam, have you been at #stripecon? Didn't see you there
332: [14:04:14] <samsam> I wish I could :(
333: [14:04:30] <samsam> missed it, no transport
334: [14:04:37] <wmk> :(
335: [14:04:49] <samsam> I heard there was some good stuff presented
336: [14:05:04] <wmk> If you know someone on location in NL you might have a shorter travel ;)
337: [14:06:20] * alias__ has joined #silverstripe
338: [14:06:20] <ss-helper> alias__: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
339: [14:06:20] <samsam> When is the next one? 2017
340: [14:06:40] <alias__> HI, i need to find a way to load an (or several) image(s) into the page. I used private static $many_many = array( /'imageCarrousel' => 'Image' ); but how to add a legend?
341: [14:06:55] <wmk> samsam, yes, next year.
342: [14:07:27] <wmk> alias__, i normally have a DataObject with Title/Description, Copyright and a has_one to the Imgae
343: [14:07:34] <muskie9> ^
344: [14:07:38] <wmk> and Page has_many (or many_many) that DO
345: [14:08:01] <muskie9> wmk, the coffee hasn't reached my fingers this morning... was halfway done typing the same thing lol
346: [14:08:02] <wmk> alias__, look for image / gallery modules or extensions
347: [14:08:17] <samsam> wait, is there a slash in that array?
348: [14:08:21] <alias__> <wmk>DO you have an exemple lying somewhere? I dont want a module.
349: [14:08:27] * wmk is just giving another 10-finger course atm, so my speed is becoming even better
350: [14:08:54] <wmk> alias__, i meanyou could use a module as example
351: [14:09:20] <alias__> <wmk>Ok, i thought there may be a tutorial somewhere?
352: [14:09:39] <wmk> did you see the lessons? I think that should cover gallery stuff
353: [14:09:54] <wmk> http://www.silverstripe.org/learn/lessons
354: [14:10:11] <wmk> Don't read when hungry, that are "Delicious tutorials"
355: [14:10:18] <samsam> Lool
356: [14:10:37] <muskie9> https://www.silverstripe.org/learn/lessons/working-with-files-and-images?ref=hub
357: [14:10:40] <muskie9> possibly this one ^
358: [14:10:50] <alias__> <wmk>Yes i digged there. No find.
359: [14:10:55] <alias__> <muskie9>Idem
360: [14:11:09] <muskie9> that one might be has_one only 😞
361: [14:11:42] <samsam> I wonder when I would need to use many_many over has_many for images
362: [14:12:19] <alias__> How about this? Guy said it has an error, but its close to what i want to do. https://www.silverstripe.org/community/forums/general-questions/show/75750
363: [14:12:58] * JZubero has joined #silverstripe
364: [14:12:58] <ss-helper> JZubero: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
365: [14:13:15] <kinglozzer> samsam: If you're relating something directly to 'Image' or 'File', use many_many instead of has_many
366: [14:13:26] <alias__> Simple, i need to create a block (dataObject) that has two items: an image and a description (HTMLText), and then loop that Object and render it in the templates.
367: [14:13:29] <kinglozzer> has_many implies that the other end is has_one - i.e. you can only use one image in one place, ever
368: [14:13:49] <samsam> I see!
369: [14:14:09] <samsam> I knew that, but kind of assumed it magically didn't apply for images
370: [14:15:22] <samsam> Here's something that has been bothering me for a while: Can you set a default image to an UploadField?
371: [14:15:50] <samsam> When user doesn't delete or replace it, it shows a default image
372: [14:16:02] <samsam> default value* to be specific
373: [14:16:02] <muskie9> samsam like if nothing's loaded you see an image on the frontend anyways?
374: [14:16:19] <kinglozzer> samsam: You could probably overload populateDefaults() to attach an image
375: [14:16:26] * kinglozzer shrugs
376: [14:16:50] <samsam> Indeed muskie9
377: [14:17:22] <samsam> https://www.silverstripe.org/community/forums/archive/show/3567
378: [14:17:26] <muskie9> we do <% if %> in the layouts... could do a method I would guess in php and just call $ImageOrDefault or something
379: [14:17:35] <samsam> the post is from the time of pyramids
380: [14:18:00] <samsam> Oh wait, that's a front-end solution
381: [14:18:05] <muskie9> yup
382: [14:18:36] <samsam> will try populateDefaults() today and report the findings
383: [14:18:51] <kinglozzer> Or just onBeforeWrite() ^^
384: [14:19:09] <kinglozzer> if (!$this->Image()->exists()) { $this->ImageID = Image::get()->first(); }
385: [14:19:14] <kinglozzer> Something like that
386: [14:19:22] <samsam> Does that work before the first "save"?
387: [14:19:33] <samsam> aka publish
388: [14:19:45] <swaiba> yep
389: [14:19:56] * JZubero quit ()
390: [14:20:03] <samsam> I c
391: [14:20:08] <alias__> Guys?
392: [14:21:35] <kinglozzer> alias__: I'm not sure what you need help with
393: [14:21:44] <kinglozzer> > alias__: Simple, i need to create a block (dataObject) that has two items: an image and a description (HTMLText), and then loop that Object and render it in the templates.
394: [14:21:51] <kinglozzer> That's what you need to do, yes
395: [14:22:40] <alias__> <kinglozzer>I need a place where i can look and study how this is accomplished. Is this one a good start? https://www.silverstripe.org/community/forums/general-questions/show/75750
396: [14:23:04] <samsam> this is: https://www.silverstripe.org/learn/lessons/
397: [14:23:22] <kinglozzer> alias__: Yes, except you won't need has_many images (as you've said each "block" only needs one image)
398: [14:24:37] <alias__> <kinglozzer>I may have expressed myself wrongly. I want multiple images (that will load into a JQuery Image gallery) but each image must have its own description.
399: [14:24:58] <samsam> I'm writing the code, one moment
400: [14:25:05] <muskie9> alias__ https://github.com/dynamic/silverstripe-flexslider/tree/master
401: [14:25:16] <muskie9> https://github.com/dynamic/silverstripe-flexslider/blob/master/code/FlexSlider.php
402: [14:25:27] <muskie9> it's in a DataExtension, but it essentially does what you're looking for
403: [14:26:51] <alias__> <muskie9><kinglozzer>Again, is this a good start? https://www.silverstripe.org/community/forums/general-questions/show/75750
404: [14:27:22] <muskie9> it could be, there may be extra stuff in there that you don't need though
405: [14:27:32] <kinglozzer> alias__: Yes. You'll need a DataObject to "hold" the image and the description
406: [14:28:20] <muskie9> the module example is literally a slideshow gallery of many images that would be applied to either a DataObject or Page... no more, no less
407: [14:28:54] <samsam> something like this alias? http://www.sspaste.com/paste/show/5806317e10bee
408: [14:29:33] <samsam> Someone should run over it though, just to be sure
409: [14:29:42] <alias__> <kinglozzer>This is what i am looking for. In the end, i need <% loop MyImage %><img src="$URL"><span>$myText</span>
410: [14:29:50] <alias__> <samsam>Trying it.
411: [14:30:24] <muskie9> alias__ you would <% with $MyImage %> for a has_one
412: [14:30:29] <samsam> You still have to create a GridField to be able to populate the table in the CMS area
413: [14:30:34] <samsam> you would loop as follows:
414: [14:30:37] <wmk> yo, nfs and vagrant on windows rocks...
415: [14:31:58] <samsam> http://www.sspaste.com/paste/show/58063253b000e
416: [14:31:58] <kinglozzer> alias__: This is very close to what you want: https://www.silverstripe.org/learn/lessons/working-with-data-relationships-has-many?_ga=1.167543996.380562083.1463066691
417: [14:32:21] <kinglozzer> Each "region" would be one slide of your image gallery
418: [14:32:50] <samsam> you append .URL to get the Image URL
419: [14:32:54] <samsam> MyImage.URL
420: [14:33:13] <alias__> Thanks guys. Will dig into that. On the other end, is SimpleHTMLText still exist? I need a simple HTML texte field. No need for the full TinyCME
421: [14:33:37] <kinglozzer> alias__: I don't think that exists anymore, no
422: [14:34:07] <samsam> That reminds me, has anyone got TinyMCE4 working on SS 3.x?
423: [14:34:21] <alias__> <kinglozzer>So i need a full TinyCME for a single line of text that has some HTML tags?
424: [14:34:35] <swaiba> samsam I can say that is in ss4, but no idea about an ss3x
425: [14:34:40] <kinglozzer> samsam: Yes, there's a module somewhere
426: [14:34:52] <samsam> I tested it, didn't work :/
427: [14:35:09] <swaiba> oooo nice:), followed by oh dear :(
428: [14:35:36] <alias__> kinglozzer Too bad, that SimpleTHMLText was convenient.
429: [14:35:43] <muskie9> alias__ I was looking for something similar recently... I found a plugin I may work into a form field if I can find the time... but would bold, italic, underline and maybe one other thing
430: [14:35:52] <samsam> Going to give it another shot right now
431: [14:36:05] <kinglozzer> I just use markdown ¯\_(ツ)_/¯
432: [14:36:07] <samsam> Going on an adventure lol
433: [14:36:24] <kinglozzer> Suppose it's not very user-friendly, though
434: [14:36:30] <swaiba> you are a developer kinglozzer... is what my product owner would say
435: [14:36:34] <kinglozzer> :P
436: [14:36:45] <swaiba> but I'm with you lol
437: [14:36:51] <swaiba> bloody users
438: [14:36:54] <kinglozzer> swaiba: I would reply "git gud scrub"
439: [14:37:00] <kinglozzer> but thankfully I don't have to deal with users :D
440: [14:37:03] <alias__> muskie9: you will please a lot of people (newbies at least). But newbies have idols, no seasoned pros... :-)
441: [14:37:35] <samsam> lol @ swaiba
442: [14:38:02] <muskie9> http://jakiestfu.github.io/Medium.js/docs/#invoke
443: [14:38:17] <muskie9> but single line for an HTMLVarchar field
444: [14:38:25] <alias__> kinglozzer: what do you mean by I just use markdown ¯\_(ツ)_/¯ That you enter this into a Textfield and i can render HTML tags?
445: [14:39:06] <kinglozzer> alias__: Are you familiar with markdown
446: [14:39:06] <kinglozzer> ?
447: [14:39:14] <swaiba> http://addons.silverstripe.org/add-ons?search=markdown
448: [14:39:32] <kinglozzer> https://github.com/axllent/silverstripe-simplemde-markdown
449: [14:39:35] <kinglozzer> Oooo that looks nice
450: [14:39:42] <kinglozzer> Based on this editor: https://github.com/NextStepWebs/simplemde-markdown-editor
451: [14:39:48] <alias__> kinglozzer: nope, but i am not afraid of my capacities, but my client's, yes....
452: [14:40:17] <kinglozzer> alias__: This is markdown: https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet
453: [14:40:18] <swaiba> clients are always capable of doing crazy things with tinymce... not so much with markdown lol
454: [14:40:38] <kinglozzer> swaiba: No paste from word 🙌
455: [14:40:47] <alias__> swaiba: cray things mean messing up the design?
456: [14:40:48] <swaiba> win kinglozzer win
457: [14:41:08] <swaiba> yep alias__ bugging you to insert this tag and that tag
458: [14:41:25] <alias__> Ok, what would you suggest for the simplest solution?
459: [14:41:25] <swaiba> and as KL said the dreaded "paste from word doesn't work..."
460: [14:41:41] <swaiba> I'm not really, I'm just moaing, but in a postive way
461: [14:43:46] * spliff_ has joined #silverstripe
462: [14:43:46] <ss-helper> spliff_: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
463: [14:44:13] <cupcake> haha swaiba
464: [14:44:17] * spliff_ quit (Client Quit)
465: [14:44:39] <cupcake> yeh here now they want import from excel... need to check if something already exists
466: [14:45:03] <swaiba> it's one of the many, not quite released, modules I have
467: [14:45:16] <cupcake> really?
468: [14:45:18] <swaiba> based on https://phpexcel.codeplex.com/
469: [14:45:19] <cupcake> cool
470: [14:45:37] <swaiba> if you have a simple data model it's easy to do just from that code base
471: [14:46:01] <swaiba> the thing built on top is a bit custom to us (as always) but handles relationships as well
472: [14:46:24] <swaiba> let me know how you get on with just phpexcel...
473: [14:46:31] <cupcake> sure thanks for the tip :)
474: [14:46:39] * spliff_ has joined #silverstripe
475: [14:46:48] <samsam> Tested the TinyMCE4 mod: https://github.com/Mediaweb/silverstripe-tinymce4
476: [14:46:53] <samsam> Doesn't seem to work on SS 3.4.1
477: [14:47:08] <alias__> OK guys thanks for all. Back to work.
478: [14:53:22] <cupcake> swaiba u have more modules for tinymce?
479: [14:53:37] <cupcake> i worked on some customizations for the insert image
480: [14:53:46] * Mike123 quit (Ping timeout: 260 seconds)
481: [14:53:54] <cupcake> and added a new 'insert custom button' plugin
482: [14:54:22] <cupcake> supports webfonticons too
483: [14:54:47] <ss32noob> fontawesome you mean cupcake
484: [14:54:47] <ss32noob> :D
485: [14:55:19] <wmk> wasn't there an excel importer around?
486: [14:55:21] <cupcake> thanks for the correction :D
487: [14:55:27] <wmk> at least a csv importer
488: [14:56:34] <wmk> problem is always: you need a consistent mapping
489: [14:57:12] <kinglozzer> wmk: Do you mean in general, or something to do with the TinyMCE discussion?
490: [14:57:14] <wmk> cupcake, http://addons.silverstripe.org/add-ons/lekoala/silverstripe-excel-import-export
491: [14:57:21] <wmk> kinglozzer, in general
492: [14:57:25] <wmk> was excel import for tiny?
493: [14:57:27] <kinglozzer> https://github.com/burnbright/silverstripe-importexport
494: [14:57:52] <cupcake> yeh
495: [14:58:18] <wmk> yup, that burnbright looks really good
496: [14:58:33] <wmk> cupcake, !define yeh
497: [14:58:51] <cupcake> copy from excel on tinymce
498: [14:59:21] <cupcake> paste from excel
499: [14:59:24] <wmk> omfg
500: [14:59:25] <cupcake> like paste from word
501: [14:59:33] <ss32noob> o.O
502: [14:59:39] <kinglozzer> wat
503: [14:59:41] <wmk> well, there might be a tiny plugin already
504: [14:59:49] <cupcake> yeh still need to check that out
505: [14:59:54] <wmk> and you want some kind of table then?
506: [15:00:18] <wmk> cannot excel create html you can paste like from word?
507: [15:01:00] <cupcake> yeh exactly a table retaining same format if possible
508: [15:01:08] <cupcake> no idea but will have to investigate it soon :)
509: [15:02:23] <wmk> http://non-stop-ext.blogspot.co.at/2014/05/paste-excel-data-into-tinymce.html
510: [15:02:29] <wmk> but.. table and tiny is always a problem
511: [15:02:39] <wmk> how do you want to make it responsive?
512: [15:03:35] <swaiba> cupcake was afk no more modules, like no modules at all really (some really old ss2 ones)
513: [15:04:04] <swaiba> I like the burnbirght import/export for normal csv
514: [15:06:36] * ss32noob quit (Ping timeout: 260 seconds)
515: [15:07:04] <wmk> is it still supported, or wasn't that module orphaned?
516: [15:09:19] <cupcake> responsiveness with tables its a bit problematic
517: [15:09:20] <wmk> wow... vagrant normal sync vs nfs: 3234ms vs 357ms
518: [15:09:24] <Zauberfisch> got a student in need of basic php tutorials, can anyone recommend a good one?
519: [15:09:27] <alias__> kinglozzer: swaiba: Can you check that please? I have a blank screen http://www.sspaste.com/paste/show/58063aff7dfe4
520: [15:09:29] <Zauberfisch> wmk: oh, wow. nice
521: [15:09:32] <cupcake> we just allow the user to scroll left and right if the table is huge
522: [15:09:34] <Zauberfisch> that's pretty slick
523: [15:09:53] <Zauberfisch> wmk: so that plugin brings the nfs share along or do you need to setup the server yourself?
524: [15:09:57] <wmk> at least i can now finally feel the newer machine
525: [15:10:11] <wmk> Zauberfisch, i just configured in the Vagrantfile
526: [15:10:38] <wmk> on another machine i had to wait a bit until nginx found the folder. Have to dig into that if it makes problems in future
527: [15:14:36] <wmk> Zauberfisch, see http://www.silverstrip.es/blog/speed-up-a-vagrant-machine-on-windows
528: [15:14:52] <swaiba> wmk yay another blog post!
529: [15:15:08] <wmk> swaiba, yup. Even with interesting content!
530: [15:15:14] <swaiba> the second I get something firm on php7 3.1 I'll blog
531: [15:15:34] <wmk> 3.1 on php7?
532: [15:15:41] <alias__> samsam: Can you check that please? I have a blank screen http://www.sspaste.com/paste/show/58063aff7dfe4
533: [15:15:46] <wmk> there is already a fix for 3.2, maybe you can backport it?
534: [15:15:53] <swaiba> !debug alias__
535: [15:15:53] <ss-helper> alias__: Maybe it's time to start xdebug and see whats going on... check out http://docs.silverstripe.org/en/developer_guides/debugging/ and http://xdebug.org/docs/
536: [15:15:58] <wmk> swaiba, https://github.com/lekoala/silverstripe-327
537: [15:16:15] <samsam> checking
538: [15:16:15] <wmk> swaiba, you take over my responsibility?
539: [15:16:46] <swaiba> wmk well you go right ahead... did I ever say how wonderful you are?
540: [15:16:48] <samsam> are you using this in the real code?
541: [15:16:49] <samsam> :: ImageCours
542: [15:17:34] <wmk> swaiba, you cannot say that often enough
543: [15:17:53] <swaiba> wmk :)
544: [15:18:46] <muskie9> alias__ has_one back to PageCours
545: [15:19:15] <alias__> samsam: what do you mean? this? ::ImageCours private static $has_one = array ( 'Photo' => 'Image', 'PageCours' => 'PageCours' );
546: [15:20:07] <samsam> ::ImageCours << that's not valid php comment as far as I know
547: [15:20:24] <muskie9> alias__ yes to the has_one array
548: [15:20:31] <alias__> samsam: no i am not.
549: [15:21:07] <wmk> :: is a T_PAAMAYIM_NEKUDOTAYIM
550: [15:21:53] <samsam> thats hebrew
551: [15:21:57] <samsam> going to test your dataobject
552: [15:22:00] <wmk> http://php.net/manual/en/keyword.paamayim-nekudotayim.php
553: [15:22:04] <alias__> samsam: swaiba: here it is again http://www.sspaste.com/paste/show/58063e0750dc4
554: [15:22:12] <wmk> yup, hebrew, unfortunately nothing tasty to eat
555: [15:23:07] <swaiba> !debug alias__
556: [15:23:07] <ss-helper> alias__: Maybe it's time to start xdebug and see whats going on... check out http://docs.silverstripe.org/en/developer_guides/debugging/ and http://xdebug.org/docs/
557: [15:23:37] <wmk> alias__, see also: https://speakerdeck.com/wernerkrauss/debug-silverstripe-like-a-pro
558: [15:23:56] <wmk> </advertising data-mode="shameless">
559: [15:24:08] <samsam> <alias__> your dataobject code is just fine
560: [15:24:31] <alias__> samsam: thanks!
561: [15:24:39] <samsam> checking your page
562: [15:24:52] <samsam> is there a specific reason you make it extend from SiteTree?
563: [15:26:01] <alias__> samsam: otherwise, it gets all over all Page.php pages
564: [15:27:34] <cupcake> o.O
565: [15:28:11] <wmk> alias__, you did dev/build AND flush?
566: [15:28:19] <wmk> !flush alias__
567: [15:28:19] <ss-helper> alias__: Have you flushed? Try doing a ?flush=all and /dev/build then see if it's sorted. Do it twice for good measure ;-)
568: [15:29:01] <samsam> The error is in your PageCours class
569: [15:29:10] <wmk> and try new UploadField('PhotoID'... as it's a has-one
570: [15:29:30] <samsam> You commented out some arguments for the GridField class
571: [15:29:38] <wmk> yup
572: [15:30:08] <samsam> http://www.sspaste.com/paste/show/58063ffaecf2f
573: [15:30:11] <samsam> replace it with this
574: [15:30:12] <alias__> to all: yes I've flushed... Do it again.
575: [15:31:32] <wmk> btw alias__ this is what i use: a DataExtension that adds a has_many DO GalleryPic
576: [15:31:51] <wmk> with GridfieldGalleryTheme and GridFieldSortableRows
577: [15:31:55] <wmk> looks neat in backend
578: [15:32:20] <wmk> of course you need to install those gridfield extensions also
579: [15:33:52] <alias__> samsam: looks like it5s working! Putting this to real test. Back ion a minute. Thanks.
580: [15:34:36] * cupcake quit (Ping timeout: 260 seconds)
581: [15:34:46] <samsam> Sure, there are some stuff to improve on your code
582: [15:35:13] <samsam> wmk I use "GridFieldExtensions" module instead
583: [15:35:24] <wmk> of course. I love that GalleryThem
584: [15:35:27] <wmk> e
585: [15:35:38] <samsam> googling it
586: [15:35:56] <wmk> dunno if it works with gfextensions
587: [15:36:11] <wmk> gfextensions sounds ambiguous
588: [15:36:12] <samsam> thats pretty cool
589: [15:36:27] <samsam> lol it is ambiguous, has a lot of features
590: [15:36:54] <alias__> samsam: it works in the CMS. As for template, that would be <% loop $ImageCours %> <img src="$Photo.URL"> $CreditConception $CreditPhoto <% end_loop %>
591: [15:37:16] <samsam> <% loop ImageCours %> works
592: [15:37:19] <wmk> whatever
593: [15:37:20] <samsam> not sure if that $ is necessary
594: [15:37:24] <samsam> rest is alright
595: [15:37:36] <wmk> $Photo.Fill(200,200) outputs img tag of a resampled image
596: [15:37:45] <wmk> see image processing in docs
597: [15:38:21] <alias__> samsam: it returns no images
598: [15:38:54] <samsam> where is your theme file located?
599: [15:39:10] <wmk> you need to flush when you add a new template file
600: [15:39:17] <samsam> oh yes, lol and that
601: [15:39:28] <wmk> otherwise $Me.Debug inside the loop might help
602: [15:39:29] <samsam> append ?flush=all
603: [15:39:42] <wmk> just ?flush, no value needed any more
604: [15:39:53] <wmk> from 3.1 on afaik (or was it 3.2?)
605: [15:40:21] <samsam> just realised I started from 3.2
606: [15:40:26] <alias__> samsam: i must add that ImageCours is into PageCours.ss which is into PageFormation.ss
607: [15:40:31] <wmk> samsam, lucky guy
608: [15:40:44] <samsam> lol, 2.x was disaster?
609: [15:40:52] <alias__> to all: i always flush.... SS 3.4.1
610: [15:40:54] <wmk> well, for 2010 it was cool
611: [15:41:22] <samsam> PageCours.ss is inside themes/<themename>/templates/Includes/PageCours.ss ?
612: [15:41:37] <samsam> or in Layout/PageCours.ss ?
613: [15:41:50] <wmk> samsam, when it's a page it should be in Layout..?
614: [15:42:01] <samsam> Yes indeed, so what is PageFormation.ss?
615: [15:42:40] * wmk thinks we all should develop english first. Others can help better then
616: [15:42:49] <samsam> that would be helpful indeed
617: [15:43:08] <samsam> on the other hand, I was trying to learn french anyway
618: [15:43:33] <alias__> There is no PageCours.ss. I think i might create one.
619: [15:43:46] <alias__> PS this is not French! Its Montreal;!
620: [15:43:50] <samsam> Oh
621: [15:44:01] <wmk> alias__, and the difference is...?
622: [15:44:08] <samsam> Dont ask wmk
623: [15:44:09] <wmk> for us unenlightened
624: [15:44:22] <samsam> ;p
625: [15:44:25] <alias__> <wmk>Girls are more beautiful in Montreal than in Paris
626: [15:44:26] <wmk> some weird dialect?
627: [15:44:44] <alias__> French slang...
628: [15:44:49] <samsam> well after this you owe wmk and me a double date
629: [15:44:51] <wmk> well, grass on the other side is always greener, isn't it?
630: [15:45:09] <samsam> anyway, there should be a Page.ss in your templates folder
631: [15:45:27] <wmk> as it doesn't subclass Page but SiteTree we're in trouble now
632: [15:45:33] <samsam> in the Page.ss there should be a $Layout in the content section (this is where the right template is called for each page type basicaly)
633: [15:45:36] <samsam> oooh yes
634: [15:45:44] <wmk> cause there is no main "SiteTree".ss for general layout
635: [15:45:55] <alias__> PageFormation gets feed for PageCours.php for infos on the course. Then PageCours.php gets our DataObject for all the images of the course.
636: [15:46:14] <wmk> you can of course work around it
637: [15:46:21] <samsam> forget what I said. You're extending from SiteTree, this is an uncommon thing to do for not-so-really-special pagetypes
638: [15:46:48] <wmk> yup. Do you have too much fields on Page directly? Or why do you subclass SiteTree?
639: [15:46:50] <wmk> and not Page?
640: [15:46:55] <alias__> samsam: ok trying to Extends Pages. But it will get into my HomePage.
641: [15:47:23] <samsam> You should create a smart page structure, I'm going to draw you an example
642: [15:48:07] <alias__> samsam: i realize now that i need a PageCours.ss and have all my infos in there?
643: [15:48:43] <samsam> Can you upload a screenshot of your theme structure?
644: [15:50:42] <alias__> samsam: still no images after. Here it is. http://www.farleydw.com/cvm/theme-structure.png
645: [15:53:13] <samsam> There is hacky way to solve your issue, but the real problem might be your site structure
646: [15:53:24] <samsam> Does PageFormation.ss and Page.ss have anything in common?
647: [15:53:30] <samsam> Header / footer?
648: [15:53:43] <alias__> samsam: and PageCours.ss should be in /template or Layout?
649: [15:54:02] <samsam> it depends, is the only thing that's different the content part?
650: [15:54:20] <alias__> samsam: i only use Page.ss for my home page. And they share same header.
651: [15:55:18] <alias__> samsam: teh content of PageCours.ss is all thats need to display infos on the course, i.e.: ImageCours (dataObject) and all other textfields. GO see http://www.farleydw.com/cvm/formation/
652: [15:59:30] <samsam> I'm not very familiar with the templating system, but I think there should be a PageCours.ss somewhere indeed
653: [16:00:10] <alias__> samsam: now the CMS is completely frozen...
654: [16:00:44] <samsam> If I were you, I would rebuild from scratch
655: [16:01:13] <alias__> samsam: this is what i was think. Having PageFormation.ss only?
656: [16:01:33] <samsam> use only one Page.ss, write nothing in Page.php, extend every page from Page. For each PageType, create an .ss file in Layout folder
657: [16:02:10] <samsam> HomePage extends Page { }
658: [16:02:15] <samsam> then HomePage.ss in Layout folder
659: [16:02:31] <samsam> PageFormation extends Page { }
660: [16:02:39] <samsam> PageFormation.ss in Layout folder
661: [16:02:40] <samsam> etc
662: [16:03:13] <alias__> samsam: CMS is back after another dev/build. I can see the Image tab, but template PageFormations.ss is not picking up the DataObject inserted into PageCours.php but its picking up infos created into PageCours.php
663: [16:03:20] <samsam> also take your time to go over at least the first 9 lessons on silverstripe.org/learn/lessons
664: [16:03:57] <alias__> samsam: ok thanks. You ve been very patient. I leave you to your work. Greetings from Montreal!
665: [16:04:13] <samsam> Hope you can figure it out buddy
666: [16:04:17] <samsam> good luck
667: [16:04:38] <alias__> samsam: thanks!
668: [16:04:41] * alias__ quit (Quit: Page closed)
669: [16:07:12] * wmk quit (Quit: Leaving)
670: [16:07:38] * gelignite has joined #silverstripe
671: [16:19:43] * swaiba quit (Remote host closed the connection)
672: [16:21:58] * samsam quit (Quit: Page closed)
673: [16:54:55] * janneklouman-- quit (Ping timeout: 265 seconds)
674: [17:00:33] * agent44 quit (Quit: zzz)
675: [17:03:41] * muskie9 quit (Remote host closed the connection)
676: [17:24:57] * brewjay_ has joined #silverstripe
677: [17:24:57] <ss-helper> brewjay_: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
678: [17:25:34] * brewjay_ quit (Client Quit)
679: [17:33:22] * Zauberfisch quit (*.net *.split)
680: [17:33:22] * Kolin quit (*.net *.split)
681: [17:34:02] * Kolin has joined #silverstripe
682: [17:41:33] * Zauberfisch has joined #silverstripe
683: [18:19:02] * wilson has joined #silverstripe
684: [18:19:15] <wilson> *wilson
685: [18:19:21] * muskie9 has joined #silverstripe
686: [18:19:25] * wilson is now known as Guest92810
687: [18:20:49] <Guest92810> HI to all, is there a way i can reduce the size and options offered of a particular HTMLEditorField in a certain page? To create some kinda SImpleHTMLFIeld (obsolete)? Ive seen this HtmlEditorConfig::get('cms')->removeButtons('tablecontrols', 'blockquote', 'hr'); but it applies to ALL HTMLEDITORS right?
688: [18:31:08] <muskie9> Guest92810 I think there's a way
689: [18:31:24] <muskie9> I was looking earlier for something like that but couldn't find the reference I had
690: [18:35:34] <muskie9> https://gist.github.com/muskie9/4c781198cd0e361240dc
691: [18:35:55] <muskie9> might be able to get the config, update it and apply it on a per HtmlEditorField basis
692: [18:44:46] * BrewJay quit (Ping timeout: 260 seconds)
693: [18:46:25] <Guest92810> muskie9: why is it the SS has doomed SimpleHTMLText? That was convenient! Any easy way to recreate a custom field like this?
694: [18:47:24] <Guest92810> muskie9: i am the guy who was looking for that earlier today. Just can't remember how to have my nickname preserved when login in...
695: [18:52:19] <Guest92810> Is it possible to install 2 SS site on the same server? I have an old installation SS3.0.6 that i want to create a new site using SS3.4.1 without interrupting the old one.
696: [18:52:37] <muskie9> ah, not sure why they dropped that field... I might try rolling out that simple formatting text field in the next couple days... just not time atm
697: [18:53:59] <muskie9> it is possible, need to do some htaccess stuff possibly iirc
698: [18:54:15] <muskie9> we tend to have vhosts setup so things don't collide on the same server
699: [18:54:55] <Guest92810> muskie9: so you are not suggesting installing SS341 into a folder along the original SS306 one?
700: [18:58:16] <muskie9> not in the same directory... you could do a sub directory of the site root, but we generally have something like /path/to/install1 and /path/to/install2
701: [19:00:45] <Guest92810> muskie9: i mean, /root/dev341 wouldn't do it?
702: [19:01:34] * Stomach has joined #silverstripe
703: [19:02:56] <muskie9> it might, depends on how you have your server setup I guess... not very good with server setup
704: [19:03:15] <Guest92810> Ok i am trying....
705: [19:04:14] * UndefinedOffset quit (Quit: Leaving.)
706: [19:05:47] <Guest92810> muskie9:ss341 needs more that PHP5.3.8 right?
707: [19:06:18] <muskie9> I think it's noted in the composer.json file
708: [19:08:55] <Guest92810> muskie9: argh.... the poor hosting environnement permits only ONE DB. I wouldn't use the same DB for both SS sites, am i?
709: [19:09:27] <muskie9> you can do some prefixing if you use an _ss_environment.php file
710: [19:09:53] <muskie9> https://docs.silverstripe.org/en/3.4/getting_started/environment_management/#an-example
711: [19:10:03] * UndefinedOffset has joined #silverstripe
712: [19:12:12] <Guest92810> muskie9: so i could use the same DD as old SS3.0.6 site? But be careful not to use same pages name etc?
713: [19:12:54] <muskie9> I think so, I've never tried though... or it may not matter with the prefixing set since it would be db1_Page and db2_Page
714: [19:13:09] <muskie9> or whatever your prefixes were
715: [19:21:47] * Guest92810 quit (Quit: Page closed)
716: [19:29:47] * janneklouman-- has joined #silverstripe
717: [19:40:10] * UndefinedOffset quit (Quit: Leaving.)
718: [19:41:22] * janneklouman-- quit (Read error: Connection reset by peer)
719: [19:47:19] * janneklouman-- has joined #silverstripe
720: [19:57:43] * UndefinedOffset has joined #silverstripe
721: [20:06:44] <muskie9> here's a brain buster... a model admin managing a single dataobject where only the managed model, url segment and title are being set (as private statics)... and I get an error where the gridfield can't get the modelClassName when I try to edit some of the records... so 2,5,x will render but not 1,3,4,6,etc
722: [20:15:10] * UndefinedOffset quit (Quit: Leaving.)
723: [20:28:32] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
724: [20:32:56] * DanaeNZ has joined #silverstripe
725: [20:36:44] * micmania1 has joined #silverstripe
726: [20:37:44] * DanaeNZ quit (Ping timeout: 265 seconds)
727: [20:37:48] * Dig has joined #silverstripe
728: [20:38:45] * adrexia has joined #silverstripe
729: [21:06:15] * DanaeNZ has joined #silverstripe
730: [21:14:50] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
731: [21:25:44] * DanaeNZ quit (Remote host closed the connection)
732: [21:25:51] * janneklouman-- quit (Read error: Connection reset by peer)
733: [21:26:17] * DanaeNZ has joined #silverstripe
734: [21:26:19] * micmania1 quit (Quit: micmania1)
735: [21:31:01] * DanaeNZ quit (Ping timeout: 256 seconds)
736: [21:36:58] * DanaeNZ has joined #silverstripe
737: [21:37:08] * janneklouman-- has joined #silverstripe
738: [22:00:29] * cheddam has joined #silverstripe
739: [22:08:37] * spronk has joined #silverstripe
740: [22:10:44] * Stomach quit (Quit: zzz)
741: [22:15:13] * Stomach has joined #silverstripe
742: [22:19:06] <DanaeNZ> ok so I found the whole reason the CSV was failing at all
743: [22:19:12] <DanaeNZ> it had commas in some values
744: [22:19:16] <ss23> lol
745: [22:19:17] <ss23> nice
746: [22:19:21] * micmania1 has joined #silverstripe
747: [22:19:24] <spronk> unescaped commas?
748: [22:19:30] <DanaeNZ> and all the CSV processors I was using don't use fgetcsv
749: [22:19:31] <spronk> csv is fucked up
750: [22:19:40] <DanaeNZ> yeah I don't even
751: [22:19:56] <DanaeNZ> but I just wrote a basic bitch fgetcsv iterator and all is well
752: [22:19:56] <spronk> fgetcsv isn't particularly good tbh
753: [22:20:04] <DanaeNZ> haha I'm so over it though
754: [22:20:06] <xyphoid> it's better than a lot of csv handling tho
755: [22:20:09] <spronk> heh
756: [22:20:11] <xyphoid> kind of sad
757: [22:20:11] <spronk> it is..
758: [22:20:26] <spronk> part of the problem comes from the lack of a long-standing official 'standard' for csv
759: [22:20:50] <xyphoid> the number of csv processors that go FIRST FETCH A LINE
760: [22:21:05] <spronk> lol
761: [22:21:05] <xyphoid> ignoring newlines in quoted fields
762: [22:21:06] <xyphoid> arrgh
763: [22:21:07] <spronk> mm
764: [22:22:01] <xyphoid> also shitty systems that spit out CSV without considering escaping and businesses have just got post-its on people's screens saying 'don't put commas in product descriptions or the website will break'
765: [22:22:05] <xyphoid> arrgh again
766: [22:22:51] <spronk> ughh
767: [22:22:51] <spronk> yeah
768: [22:22:54] * spronk looks at you, eTap
769: [22:23:17] <spronk> coincidentally, this is also why fgetcsv isn't very good
770: [22:24:04] <xyphoid> what's wrong with it?
771: [22:24:22] <spronk> well, in 5.x, it treats every line has having the same number of columns as the first
772: [22:24:45] <spronk> so you can't use it to detect structural issues with a badly encoded file
773: [22:25:15] <DanaeNZ> spronk: I'm ok with that, I just want to make sure that commas don't trip it up and I'm happy ha
774: [22:25:50] <xyphoid> i don't really get what you mean - you can fgetcsv in a loop on a file with different csv line widths okay
775: [22:26:08] * cheddam quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
776: [22:26:32] <spronk> xyphoid you can, for some definitions of file
777: [22:26:33] * janneklouman-- quit (Read error: Connection reset by peer)
778: [22:26:58] * cheddam has joined #silverstripe
779: [22:27:52] <xyphoid> my usual fgetcsv wrapper will scream and complain if you do have a file like that tho since it is for CSVs with headers
780: [22:28:22] <xyphoid> (god i hate CSVs without headers and keeping track of WELL COLUMN 13 IS THE SKU)
781: [22:28:33] <spronk> ughh
782: [22:28:34] <spronk> yeah
783: [22:28:37] <spronk> what's worse though
784: [22:28:39] <spronk> is csvs with headers like
785: [22:28:45] <spronk> x.col_13
786: [22:33:11] <xyphoid> i ran into one that was behaving weird in prod and it turned out that sometimes we got handed duplicate header names
787: [22:33:24] <spronk> yuuck
788: [22:33:54] <xyphoid> and of course this kind of job you never get handed an actual spec for csv formats, it's 'hey here's one sample file, divine what the spec is from that'
789: [22:34:11] <xyphoid> argh i'm ranting, it must be wednesday
790: [22:37:48] * janneklouman-- has joined #silverstripe
791: [22:47:19] * micmania1 quit (Quit: micmania1)
792: [22:51:54] * micmania1 has joined #silverstripe
793: [22:54:30] * spronk quit (Quit: I may need a longer sleep timer...)
794: [22:57:47] * spronk has joined #silverstripe
795: [23:00:01] * ss-helper quit (Remote host closed the connection)
796: [23:00:18] * ss-helper has joined #silverstripe
797: [23:23:27] * lukef has joined #silverstripe
798: [23:28:16] * lukef quit (Ping timeout: 260 seconds)
799: [23:29:29] * Azure has joined #silverstripe
800: [23:37:11] * BPower has joined #silverstripe
801: [23:37:54] <BPower> What's the standard method of allowing CMS options for my theme?
802: [23:38:26] <BPower> or is it just creating a SS module...?
803: [23:38:40] <BPower> Hi FrozenFire :) It's been a while
804: [23:56:44] * janneklouman-- quit (Read error: Connection reset by peer)

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