#silverstripe IRC Log

IRC log for 31 March 2016

All timestamps are in UTC.

1: [00:04:35] * spekulatius2 has joined #silverstripe
2: [00:04:43] * spekulatius2 quit (Client Quit)
3: [00:12:50] * micmania1 has joined #silverstripe
4: [00:13:41] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
5: [00:17:15] * Stomach quit (Quit: zzz)
6: [00:17:41] * BrewNaked quit (Remote host closed the connection)
7: [00:19:31] * spronk has joined #silverstripe
8: [00:20:30] * UncleCheese has joined #silverstripe
9: [00:23:36] * Phlunk3 quit (Quit: Leaving)
10: [00:40:26] <micmania1> Admonish: GridField accepts any type of SS_List, but the SS_List must contain DataObject’s (or classes that implement the same methods).
11: [00:40:43] <micmania1> GridField is internally running $arrayData->canDelete() which of course doesn’t exist.
12: [00:42:22] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
13: [00:45:23] * Stomach has joined #silverstripe
14: [00:58:07] <DanaeNZ> omg where did onBeforeHTTPError404 hook go
15: [00:58:25] <DanaeNZ> redirectedurls relies on it
16: [00:59:59] <MichalKleiner> heya, long time no see :)
17: [01:00:08] <MichalKleiner> how's everyone?
18: [01:01:58] * Tanger has joined #silverstripe
19: [01:07:11] <Stomach> hey MichalKleiner
20: [01:07:20] <Stomach> battling with silverstripe platform
21: [01:07:23] <Stomach> it wont deploy my code
22: [01:07:29] <Stomach> SSpak doesnt work with PDO
23: [01:07:30] <Stomach> etc
24: [01:07:31] <Stomach> gah.
25: [01:07:41] <MichalKleiner> oh my... I'm working on cwp site now :-D
26: [01:07:49] <MichalKleiner> have you done much cwp?
27: [01:08:00] <xyphoid> haha we are having fun trying to deploy to ss platform too
28: [01:08:07] <micmania1> Stomach: is someone from ops helping?
29: [01:08:20] <Stomach> micmania1 not yet, trying one more time then going to give a ring
30: [01:09:04] <micmania1> Stomach: give me a shout when you’re deploying - i can take a look for you.
31: [01:10:17] <DanaeNZ> the very first deployment usually doesn't go through cos the RSA fingerprint needs to be approved iirc
32: [01:10:37] <Stomach> code is on platform tooooo
33: [01:10:39] <Stomach> :P
34: [01:20:34] <MichalKleiner> I don't like how much stuff is in the cwp basepage.. and not sure whether to override it in my page or create a new basepage and just take what I need..
35: [01:32:23] <charles-ritchie> I agree the BasePage is overkill and I have never had a situation where any of the provided functionality provides what I need out of the box.
36: [01:35:03] * micmania1 quit (Quit: micmania1)
37: [01:37:47] * micmania1 has joined #silverstripe
38: [01:49:42] * DanaeNZ quit (Remote host closed the connection)
39: [01:58:46] <Admonish> Hey guys, I got my api grid to work out ok. I just removed the edit and delete functionality (I didn't need it any way) and it worked great. Hwever now Im trying to use the GridFieldConfig_RecordViewer config so that I can have a read only view of the apis items. However I get "the method 'canview' does not exist on 'ArrayData'" which is to be expected as the returned json from the API doesn't have any 'canview' method. What im wondering is how one g
40: [02:00:06] <micmania1> Admonish: you can’t use ArrayData with record viewer. You could extend it and add the canView method to return true?
41: [02:00:31] * wakes has joined #silverstripe
42: [02:00:31] <ss-helper> wakes: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
43: [02:02:23] <Admonish> micmania1 Thanks for the quick reply. I will definitely try that out.
44: [02:03:28] * hailwood quit (Ping timeout: 264 seconds)
45: [02:03:50] <wakes> hi guys, I have a possibly interesting one, I have a CWP based CMS interface with a mandatory TagField, when I save the form with selected tags all good, when I save form again and someone has cleared the tag field then tag field saveInto method calls setByIDList with the new empty list which goes off and removes (deletes) existing relationship records. However this all happens before the write call which calls validate in the p
46: [02:04:04] <wakes> So, validation fails but only after the relationships have been deleted
47: [02:04:08] <Admonish> micmania1 Do you happen to know what normally triggers if it canview normally? In other words how does SS know if it can be viewed or not normally
48: [02:05:03] <micmania1> Admonish: the permissions are set in the CMS security section usually (for pages), but other DataObject’s can implemenet the canView method and apply their own logic.
49: [02:05:13] <micmania1> search for silverstripe permissions
50: [02:05:56] * DanaeNZ has joined #silverstripe
51: [02:06:33] * BrewNaked has joined #silverstripe
52: [02:06:54] <Admonish> Oh yes, now I recall. I have used that same functionality in on of my modelAdmins I believe
53: [02:07:07] <Admonish> one*
54: [02:08:17] <charles-ritchie> wakes: just having a look now, there should be some way to get in before this happens
55: [02:10:51] * BrewNaked quit (Ping timeout: 244 seconds)
56: [02:12:29] <charles-ritchie> wakes: What about subclassing tagfield and implementing validation?
57: [02:13:03] <MichalKleiner> charles-ritchie: so you usually don't use the basepage and start straight from sitetree?
58: [02:15:05] <charles-ritchie> If I need absolutely none of the functionality in BasePage, I most definitely just extends SiteTree. No need to have unneeded cruft. But I would be sure there is no functionality that I don't realize I am using.
59: [02:15:23] <charles-ritchie> *extend
60: [02:15:50] * hailwood has joined #silverstripe
61: [02:15:58] <MichalKleiner> yeah.. for me it's like 30% useful with some overwrites, the rest is unneeded..
62: [02:17:49] <MichalKleiner> I don't want to have to override/remove everything I don't need and also I don't want to lose some functionality in future if the recipe changes.. both bad choices :-D
63: [02:18:49] <Admonish> micmania1 So i see there is a DataExtension for DataObjects, but is there a special extension class for ArrayData? Or would I just use plain old "Extension" class
64: [02:19:07] <charles-ritchie> Just go with the BasePage if unsure. Left chance of bizarre regression in the future.
65: [02:19:14] <charles-ritchie> 8less
66: [02:19:16] <charles-ritchie> *less
67: [02:19:17] <micmania1> Admonish: subclassing it with PHP it probably best
68: [02:19:20] <MichalKleiner> yeah, probably..
69: [02:20:42] <wakes> charles: cooll, thanks for quick response, sounds like a good option, I'll have a look, also am looking at adding a required fields in the getEditForm perhaps as have the rules defined on the model elsewhere
70: [02:21:06] <micmania1> MichalKleiner: oh, sorry. I was talking to Admonish :D
71: [02:21:10] <Admonish> micmania1 so then would it matter at all, if I placed the php subclass directly in my ModalAdmin (which is where Im doing my edits for the api grid)
72: [02:21:22] <charles-ritchie> All good matey, I figured as much
73: [02:22:24] <micmania1> Admonish: SS_List([ CustomDataList( array[] ) ])
74: [02:22:36] <micmania1> CustomArrayData*
75: [02:23:01] <micmania1> CustomArrayData extends ArrayData
76: [02:24:37] <Admonish> micmania1 Weird I can't find it in the api docs. Can you send my the link to that information please
77: [02:25:24] <micmania1> Admonish: there’s no info. I’m saying instead of using ArrayData to store your api response data, you should subclass ArrayData with CustomArrayData and add your canView() method there.
78: [02:28:05] <Admonish> micmania1 ahh ok sorry about that. Misunderstood you. Now im primarily a frontedn dev and silverstripe is still fairly used to me. So how would I include the subclass into silverstripe so that I could use the CustomArrayData subclass any where I could use the normal ArrayData
79: [02:28:22] <Admonish> micmania1 P.S. Sorry for taking up so much of your time
80: [02:28:38] <Admonish> micmania1 You have been a real help btw
81: [02:28:40] <micmania1> Admonish: it depends how you’re getting the data from the api. Can you post your code somewhere?
82: [02:29:20] <Admonish> Sure thing. Fill make a github gist and send you the link
83: [02:29:30] <Admonish> i'll*
84: [02:36:01] <Admonish> micm
85: [02:36:10] <Admonish> micmania1 Here you go: https://gist.github.com/mooror/e52d8b8cc2c6a7f72e1d90ec573ddea1
86: [02:39:57] <Admonish> It looks sorta ugly atm but I will be creating my own API GridField component once I get everything sorted out.
87: [02:41:43] * micmania1 quit (Quit: micmania1)
88: [02:47:30] * micmania1 has joined #silverstripe
89: [02:49:42] <micmania1> Admonish: https://gist.github.com/micmania1/af968fc2bc68edbd615c4bb4021032a3#file-gistfile1-txt-L26
90: [02:49:54] <micmania1> you’ll still need to create the CustomArrayData class and canView()
91: [02:53:59] <Admonish> micmania1 In that file or in a seprate file?
92: [02:54:09] <micmania1> In its own file
93: [03:30:59] * veb_ has joined #silverstripe
94: [03:32:57] * veb quit (Ping timeout: 246 seconds)
95: [03:33:07] * veb_ is now known as veb
96: [03:36:48] * nontgor has joined #silverstripe
97: [03:55:24] * BrewNaked has joined #silverstripe
98: [03:59:52] * BrewNaked quit (Ping timeout: 264 seconds)
99: [04:09:07] * Admonish quit (Ping timeout: 244 seconds)
100: [04:16:58] * hailwood quit (Remote host closed the connection)
101: [04:23:16] * micmania1 quit (Quit: micmania1)
102: [04:25:09] * spronk quit (Quit: I may need a longer sleep timer...)
103: [04:47:39] * Admonish has joined #silverstripe
104: [05:02:38] <Admonish> Does anyone know how one might change the actual html of GridField rows?
105: [05:04:17] <Admonish> Im wanting to create a custom version of the GridField that will allow users to open the detials view by just clicking on the item
106: [05:39:03] <nontgor> not sure :(
107: [05:44:23] * BrewNaked has joined #silverstripe
108: [05:48:33] * BrewNaked quit (Ping timeout: 246 seconds)
109: [05:52:15] * Stomach quit (Ping timeout: 276 seconds)
110: [05:57:28] * wmk has joined #silverstripe
111: [05:59:45] * Admonish quit (Quit: ThrashIRC v2.9 sic populo comunicated)
112: [06:01:37] * agilix_ has joined #silverstripe
113: [06:02:12] * marvanni has joined #silverstripe
114: [06:07:35] * Mike123 has joined #silverstripe
115: [06:17:13] * mobiusnz has joined #silverstripe
116: [06:23:13] * UncleCheese has joined #silverstripe
117: [06:23:25] * marvanni quit (Quit: marvanni)
118: [06:34:07] * joelpittet has joined #silverstripe
119: [06:36:15] * Eliseth has joined #silverstripe
120: [06:46:04] * DanaeNZ quit (Quit: TIME TO FEED)
121: [06:56:33] <agilix_> Good morning
122: [06:56:50] <agilix_> I have a 'RelationsLinkPage' => 'SiteTree', item, but how can I reach the link to the page in the template?
123: [06:58:48] <agilix_> Got it ^^
124: [07:00:21] * Stomach has joined #silverstripe
125: [07:05:47] * arnhoe has joined #silverstripe
126: [07:07:45] <swaiba> Good morning agilix_
127: [07:13:49] * guci0 has joined #silverstripe
128: [07:13:50] <guci0> Hello World!
129: [07:27:38] * Stomach quit (Quit: zzz)
130: [07:33:13] * BrewNaked has joined #silverstripe
131: [07:37:20] * BrewNaked quit (Ping timeout: 244 seconds)
132: [07:40:52] <wmk> Hello guci0
133: [07:42:58] * joelpittet quit (Remote host closed the connection)
134: [07:47:47] * marvanni has joined #silverstripe
135: [07:57:46] * slievr has joined #silverstripe
136: [08:14:49] <marvanni> Should this not refresh the config cache? sake dev/build "flush=all"
137: [08:15:04] <wmk> sake dev/build flush=all
138: [08:15:18] <wmk> i normally don't use "" for the param
139: [08:15:34] <wmk> if it takes longer than before the cache is flushed
140: [08:15:36] <marvanni> still its missing the correct config value
141: [08:15:48] <wmk> but sometimes you have to delete the whole cache dir
142: [08:16:15] <wmk> well, is the config value set properly? or overwritten afterwards?
143: [08:16:18] <marvanni> yeah that makes testing a breeze
144: [08:16:23] <marvanni> no
145: [08:16:38] <marvanni> @config private static
146: [08:17:01] <wmk> @config...?
147: [08:17:02] <marvanni> changed the array values of that property. no other places where the config setting is changed
148: [08:17:23] <marvanni> as a docblock
149: [08:17:28] <wmk> well, you can try a ?flush in browser
150: [08:17:43] <marvanni> nah, browser and cli have different caches
151: [08:18:19] * ss23face has joined #silverstripe
152: [08:18:20] <ss-helper> ss23face: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
153: [08:18:32] <wmk> marvanni, sure. but cli has cache for each user
154: [08:19:01] <wmk> delete the cache folder...
155: [08:19:31] <marvanni> to run tests from command line, should not have the need to clear manifest or cache thru the browser
156: [08:19:43] <wmk> aaaah
157: [08:19:46] <wmk> you run tests!
158: [08:19:56] <marvanni> yes
159: [08:20:21] <wmk> well, THAT's another cache afaik.
160: [08:20:36] <marvanni> ofcourse :)
161: [08:20:42] <wmk> i had probs with that when adding a new DO and after dev/build it didn'T work
162: [08:20:43] <wmk> http://www.silverstrip.es/blog/logicexception-getitempath-returned-null-for-classname/
163: [08:20:52] <wmk> e.g. phpunit path/to/MyTest.php '' db=sqlite3 flush=1 will help
164: [08:21:07] <marvanni> I really want to TDD, but SIlverstirepes makes it way to hard comparing to Laravel
165: [08:21:35] <wmk> marvanni, well... i don't know laravel, but when you have your first setup it's fine
166: [08:22:30] <marvanni> yes, but to come to the point where you have your first setup
167: [08:22:44] * ss23face quit (Ping timeout: 250 seconds)
168: [08:22:52] <marvanni> and stil for each install there seems to be another quirk
169: [08:23:19] <ss23> o.O
170: [08:23:21] <ss23> ss23face
171: [08:23:22] <wmk> for each install... i use Zauberfisch 's great vagrant VM with xdebug preinstalled, just have to add sqlite and it runs
172: [08:24:11] <guci0> wmk: nice page :) btw hi!
173: [08:24:37] <wmk> guci0, 10x
174: [08:25:10] * GioVdK has joined #silverstripe
175: [08:25:41] * jules0x has joined #silverstripe
176: [08:26:31] * jules0x quit (Client Quit)
177: [08:26:51] <wmk> this win10 bash sounds nice. maybe no need for vagrant then any more? apache or nginx, php, xdebug, mailcatcher globally seems also nice
178: [08:27:02] * jules0x has joined #silverstripe
179: [08:27:14] <wmk> as vagrant / virtual box shared folder is a bit slow on windows
180: [08:28:00] <jules0x> I'm trying to return an image in a gridfield. The image is not related... its just a file in a mysite folder. It's to indicate whether my dataObject (in the gridfield) is published or not
181: [08:28:03] <jules0x> how can i?
182: [08:28:23] <jules0x> ie
183: [08:28:38] <jules0x> public static $summary_fields = array( 'publishedcheck'
184: [08:28:41] <guci0> Some time ago I said – "no" for Windows and all M$ and Android too :)
185: [08:28:52] <marvanni> see how the blog module did it
186: [08:29:09] <marvanni> they have a published flag in the grid field
187: [08:29:16] <jules0x> public function publishedcheck() {return '<img src="../images/yes.png">'}
188: [08:29:24] <jules0x> ok thanks
189: [08:29:28] <jules0x> ill check it out
190: [08:29:34] <wmk> jules0x, i wrote a patch for catalogpage with this some time ago
191: [08:29:43] <marvanni> you might use a path from webroot
192: [08:29:51] <marvanni> mysite/images/img.png
193: [08:29:56] <marvanni> instead of ../
194: [08:30:15] <ss-helper> Announcing SilverStripe related blog: www.silverstrip.es - https://groups.google.com/d/msg/silverstripe-dev/fFfFM5PVUEs/0n9qub44KAAJ
195: [08:30:26] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
196: [08:30:32] <wmk> jules0x, just an image or also an action to publish that item?
197: [08:30:38] <jules0x> no it treats it as a string
198: [08:30:54] <jules0x> yeah I just want to show a tick when my child dataobject is published, a cross when not
199: [08:31:23] <wmk> you can use e.g. https://github.com/Little-Giant/silverstripe-catalogmanager/blob/master/code/Actions/GridfieldPagePublishAction.php
200: [08:31:46] <wmk> which is an action to even publish your item
201: [08:32:43] <jules0x> I don't want to publish. This is just an indicator... ie. on a page with 10 objects, I want to look at the gridfield and know immediatly which ones are publish status and which ones are just draf
202: [08:32:55] <jules0x> I want to display an image to indicate that
203: [08:33:01] <marvanni> you need to set casting for the method
204: [08:33:02] <wmk> so in a summaryfield?
205: [08:33:07] <jules0x> yes
206: [08:33:13] <wmk> yup, casting should work
207: [08:33:14] <jules0x> currently i return 'yes' or 'no'
208: [08:33:35] <marvanni> private static $casting = array(
209: [08:33:35] <marvanni> 'MyCustomMethod' => 'HTMLText'
210: [08:33:36] <marvanni> );
211: [08:35:17] <guci0> wmk: no RSS for articles but for comments are :) It's yours page?
212: [08:38:19] <jules0x> I must be doing something wrong :(
213: [08:38:31] <jules0x> public static $summary_fields = array('publishedCheck');
214: [08:38:40] <jules0x> private static $casting = array('publishedCheck' => 'HTMLText');
215: [08:38:55] <jules0x> public function publishedCheck() {return '<img src="../Images/cross.png/>';}
216: [08:39:05] <jules0x> but it displays it as text :S
217: [08:39:23] <marvanni> you did the dev/build flush thingy right?
218: [08:39:59] <jules0x> yep, and included the " that I missed above
219: [08:40:55] <jules0x> also tried replacing .. with mysite
220: [08:41:38] * TRB143 quit (Remote host closed the connection)
221: [08:41:46] * TRB143 has joined #silverstripe
222: [08:43:16] * MichalKleiner quit (Ping timeout: 252 seconds)
223: [08:46:53] * jackoconnor has joined #silverstripe
224: [08:49:57] <wmk> guci0, hmm, yes
225: [08:50:03] <wmk> good point
226: [08:50:46] <wmk> jules0x, http://www.silverstrip.es/blog/rss/ works...
227: [08:52:01] <jules0x> the blog module u mean?
228: [08:55:22] <jules0x> I looked at the implementation for how blog shows the icons and its overly complicated for my scenario... I'll live with text indicator for now... might look back into it tomoorow
229: [08:56:08] <wmk> jules0x, did you try casting your method?
230: [08:56:21] <jules0x> yeah it didnt work
231: [08:56:27] <wmk> weird
232: [08:56:35] <jules0x> I seem to recall having htmltext as a summary field before and it showing raw html
233: [08:56:57] <jules0x> I usually use htmltext summary fields like $field.BigSummary or something... which is raw anyway
234: [08:57:24] * neomang quit (Ping timeout: 250 seconds)
235: [08:57:43] <wmk> jules0x, lerni did svg in backend with some fancy hack, see http://www.silverstrip.es/blog/svg-in-the-silverstripe-backend/
236: [08:58:06] <wmk> $obj= HTMLText::create(); $obj->setValue('<img ...>'); return $obj;
237: [08:59:37] <jules0x> yeah just confirmed an HTMLText field will show its raw html when used as a summary field
238: [08:59:46] <jules0x> made a new one to test
239: [08:59:59] <wmk> jules0x, when you add casting to config you have to flush
240: [09:00:10] <jules0x> casting doesnt matter in that case
241: [09:00:19] <jules0x> I literally added a test HTMLText field
242: [09:00:33] <jules0x> and then added it to summary fields and it showed <p> and <h2> tags
243: [09:00:37] <jules0x> in the gridfield
244: [09:00:54] <jules0x> that'll be the reason casting isn't having the effect I want
245: [09:01:00] <wmk> hmm...
246: [09:01:27] <jules0x> ironically I have another summary field which is an image
247: [09:01:54] <jules0x> that one is a related image though... so just used 'Thumbnail' => 'Image' in my summary fields and hey presto
248: [09:02:07] <wmk> yup, it's an Image DO
249: [09:02:51] <wmk> guci0, fixed, added a link to the rss feed at the bottom of the blog summary page
250: [09:16:52] <guci0> :)))))
251: [09:18:19] * Azure|dc has joined #silverstripe
252: [09:20:41] * Azure quit (Ping timeout: 244 seconds)
253: [09:21:13] * brasileric has joined #silverstripe
254: [09:22:00] * BrewNaked has joined #silverstripe
255: [09:25:34] * wakes quit (Ping timeout: 250 seconds)
256: [09:26:06] <marvanni> does anyone know how to to something like this :
257: [09:26:07] <marvanni> php -r "echo sys_get_temp_dir();" | cd
258: [09:26:21] * BrewNaked quit (Ping timeout: 244 seconds)
259: [09:27:19] * agent44 has joined #silverstripe
260: [09:27:24] * agent44 quit (Client Quit)
261: [09:29:46] * agent44 has joined #silverstripe
262: [09:33:09] * Tanger quit (Quit: Tanger)
263: [09:34:46] * Azure|dc quit (Remote host closed the connection)
264: [09:41:10] * jules0x quit (Ping timeout: 250 seconds)
265: [09:45:38] * Hailwood_ has joined #silverstripe
266: [10:08:28] <wmk> argh... any lumberjack expert around?
267: [10:09:22] * mobiusnz has left #silverstripe
268: [10:35:01] <marvanni> the logforwarder or the sitetree organiser?
269: [10:37:55] * Azure has joined #silverstripe
270: [11:10:54] * BrewNaked has joined #silverstripe
271: [11:15:28] * BrewNaked quit (Ping timeout: 264 seconds)
272: [11:24:33] * wmk quit (Ping timeout: 246 seconds)
273: [11:34:30] * marvanni quit (Ping timeout: 244 seconds)
274: [11:34:39] * swaiba quit (Remote host closed the connection)
275: [11:41:08] * slievr quit (Ping timeout: 268 seconds)
276: [11:49:09] * slievr has joined #silverstripe
277: [11:55:46] * Hailwood_ quit (Remote host closed the connection)
278: [12:08:30] * agilix_ quit (Ping timeout: 250 seconds)
279: [12:10:40] * jackoconnor quit (Quit: jackoconnor)
280: [12:23:45] * UndefinedOffset has joined #silverstripe
281: [12:45:45] * Audlex has joined #silverstripe
282: [12:59:54] * BrewNaked has joined #silverstripe
283: [13:00:26] * jackoconnor has joined #silverstripe
284: [13:04:15] * jackoconnor has left #silverstripe
285: [13:04:18] * BrewNaked quit (Ping timeout: 246 seconds)
286: [13:28:11] * muskie9 has joined #silverstripe
287: [13:31:22] * nontgor quit (Remote host closed the connection)
288: [13:32:26] * marvanni has joined #silverstripe
289: [13:44:03] * x4j5 has joined #silverstripe
290: [13:44:52] <timotheus-booth> silverstripe ftw https://ptpb.pw/onu2 .. or not!?
291: [13:48:09] <muskie9> timotheus-booth wouldn't <% require themedCSS('yourFileName') %> work for the <link> stylesheets you're calling?
292: [13:48:26] <muskie9> since you're calling $ThemeDir anyway
293: [13:48:46] <timotheus-booth> yea it would.. and it does.. but hey thats realy not the issue
294: [13:49:41] <timotheus-booth> just everything about it is entirely stupid...
295: [13:49:44] <muskie9> I'm not sure how the css stuff works, but for inline js in the template, SS finds the first instance and puts the requirements either directly before or after... so could be similar
296: [13:51:07] <timotheus-booth> the idea of css is cascading... i.e when SS decides to rearrange things it messes up your cascade..
297: [13:54:47] <muskie9> true, this is we pretty much always put requirements in the controller...
298: [13:55:09] <muskie9> only time we put stuff in the layout/template is if we're publishing a module with styling for the Simple theme
299: [13:55:15] <timotheus-booth> yea making shit unneccesarily complicated
300: [13:55:48] <timotheus-booth> and stampeeding over any web standards like css while there at it
301: [13:57:57] <muskie9> I know 4.x is still being built, might be worth bringing up on SS's uservoice https://silverstripe.uservoice.com/forums/251266-new-features or the dev mailing list https://groups.google.com/forum/#!forum/silverstripe-dev
302: [13:58:00] <timotheus-booth> there is seriously NO logical reason for ever just reordering things like that....
303: [13:59:37] <timotheus-booth> uh i dont have the time nor the patience.. its crap and i only see it getting worse as they reinvent more of the wheel... im sure its great for some things... like giving web developers extra hours.. but useability-wise it is severely lacking
304: [14:01:49] <muskie9> I think it's something that could be improved upon... the core team is receptive to things that raise the framework up when it comes to web standards
305: [14:02:02] * Mike123 quit (Ping timeout: 250 seconds)
306: [14:02:05] <timotheus-booth> working this this im very glad i use tikiwiki on my site..
307: [14:12:13] * agent44 quit (Ping timeout: 268 seconds)
308: [14:25:23] * agent44 has joined #silverstripe
309: [14:45:39] * Mike123 has joined #silverstripe
310: [14:48:29] * arnhoe quit ()
311: [14:48:40] * BrewNaked has joined #silverstripe
312: [14:53:03] * BrewNaked quit (Ping timeout: 240 seconds)
313: [14:53:28] <Zauberfisch> marvanni: you could use $()
314: [14:53:37] <Zauberfisch> marvanni: cd $(php -r "echo sys_get_temp_dir();")
315: [14:53:57] <marvanni> Ah nice :) thanks!
316: [14:54:09] <Zauberfisch> or if you need to use pipe, then you probably have to use xargs or something
317: [14:55:12] <marvanni> this will do. I read that piping in cd is not possible, but this works
318: [14:56:27] * adrexia has joined #silverstripe
319: [14:56:48] <Zauberfisch> in theory this should also work:
320: [14:56:57] <Zauberfisch> php -r "echo sys_get_temp_dir();" | xargs -n 1 cd
321: [14:57:01] <Zauberfisch> though it doesn't for me
322: [14:57:57] <Mike123> guys, i have Holder 'Services' and item 'Service' , now my url is /Services/service how can i make so that it would be without holder segment ? full url example i need http://project.local/service
323: [15:06:08] <Zauberfisch> Mike123: depends on what your holder and items are
324: [15:06:18] <Zauberfisch> Mike123: are those pages?
325: [15:06:33] <Zauberfisch> or is the holder a controller?
326: [15:08:46] * Mike123 quit (Ping timeout: 250 seconds)
327: [15:18:06] * Eliseth quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
328: [15:37:55] * lucinderella has joined #silverstripe
329: [15:37:55] * agent44 quit (Read error: Connection reset by peer)
330: [15:37:55] * lucinderella is now known as agent44
331: [15:43:56] * brasileric quit (Remote host closed the connection)
332: [15:45:19] <ss-helper> How to use a second database in Silverstripe - http://stackoverflow.com/questions/36337812/how-to-use-a-second-database-in-silverstripe
333: [15:55:42] <agent44> Hi all, I would like to in the CMS link to an anchor on another page of my site, I have done this using the CMS GUI by linking to another website and manually updating it, but Silverstripe seems to be updating my link and making it invalid. Can anyone help me with this please?
334: [15:56:16] * Mike123 has joined #silverstripe
335: [16:06:01] <Mike123> Zauberfisch, Holder is a Page with Page controller and item's are DO's
336: [16:09:57] * MichalKleiner has joined #silverstripe
337: [16:16:00] * BrewNaked has joined #silverstripe
338: [16:22:24] * gamma has joined #silverstripe
339: [16:22:53] <gamma> Hey, is there a specific upgrade path to follow for going from a very old version (say 3.1.12) to the most recent stable version?
340: [16:23:22] <ss23> Not more than "just do it"
341: [16:23:34] <ss23> It's not very hard to go from 3.1 to latest
342: [16:23:42] <ss23> Only problem you run into is modules don't always work right away, but not too bad these days
343: [16:25:58] <gamma> That's grand. There are a few external modules that we need to look into because we're not 100% sure how recent their versions are - We've recently... "inherited" the support for this system, and they seem to have removed most of the references to version numbers. It looks like one or two of the modules haven't been updated in a while as well, so I think there will possibly be a lot of hoping that
344: [16:26:00] <gamma> things work when it comes to it.
345: [16:30:25] <ss-helper> Re: Announcing SilverStripe related blog: www.silverstrip.es - https://groups.google.com/d/msg/silverstripe-dev/fFfFM5PVUEs/ohDoMp1SKAAJ
346: [16:30:54] * x4j5 quit (Ping timeout: 248 seconds)
347: [16:35:54] * slievr quit (Ping timeout: 268 seconds)
348: [16:43:16] <Zauberfisch> Mike123: custom urls in silverstripe are potentially painful
349: [16:43:27] <Zauberfisch> Mike123: especially with nested Pages
350: [16:43:54] <Zauberfisch> but possible non the less
351: [16:44:41] <Mike123> Zauberfisch, where should i look ? i'm confused a bit...
352: [16:45:33] <Zauberfisch> though depending on your experience with silverstripe routing you might want to consider to just live with it
353: [16:47:04] <Mike123> theres no way to add some url handlers to page class etc ?
354: [16:47:22] <Zauberfisch> as I said, it's possible
355: [16:47:44] <Zauberfisch> just going to be painful :)
356: [16:48:09] <Zauberfisch> but given that you know what url handlers are, you might have a shot ;)
357: [16:48:21] <Mike123> ok so can u explain a bit , where should i look , what should i change
358: [16:48:39] * muskie9 quit (Ping timeout: 260 seconds)
359: [16:49:49] * GioVdK quit (Ping timeout: 260 seconds)
360: [16:53:24] <Mike123> Zauberfish, should i extend ContentController ?
361: [16:54:57] * gelignite has joined #silverstripe
362: [16:56:10] <Mike123> the handleAction ?
363: [16:58:02] <Zauberfisch> Mike123: didn't you say your holder is a Page/Page_Controller?
364: [16:58:15] <Mike123> well yes
365: [16:58:27] <Zauberfisch> Page_Controller is just a subclass of controller with a lot of extra functionality
366: [16:58:42] <Zauberfisch> so, no, don't create a new controller, you already have one
367: [16:59:07] <Mike123> ok
368: [16:59:08] <Zauberfisch> unless you are talking nested controllers, but I presume not, so let's forget that for a moment
369: [16:59:23] <Mike123> yep, lets forget it for now
370: [17:00:01] <Zauberfisch> best case scenario would be to use an url handler, but I think that won't work in your case, because the url handler for nexted SiteTree will match first
371: [17:00:33] <Zauberfisch> so you probably have to overwrite handleAction or perhaps even handleRequest depending on the scenario
372: [17:00:56] <Zauberfisch> or, let me ask this first: will the holder page have other pages as children?
373: [17:03:51] <Mike123> no pages as children, just DO's that i rendernow with template
374: [17:04:06] <Mike123> it's the same as DataObjectAsPage module
375: [17:04:17] <Mike123> well the funcionality is the same
376: [17:05:03] <Mike123> but my website will have lots of other pages and stuff
377: [17:05:57] <terryapodaca> what's the SS 2.4 syntax in the config file to stop SS from rewriting hash (#) links?
378: [17:06:13] <Mike123> i give url segment of DO to url, from segment i get DO and render it
379: [17:06:19] <Mike123> well from Slug
380: [17:06:48] <Zauberfisch> Mike123: ok, if you don't have sub pages, that makes it a whole lot easier
381: [17:07:15] <Mike123> Thank you for telling me this :D
382: [17:09:51] <Zauberfisch> Mike123: you probably want to overwrite handleRequest() instead of handleAction() actually
383: [17:10:01] <Zauberfisch> because the finding of the child page is done in handleRequest()
384: [17:10:12] <Zauberfisch> see ContentController->handleRequest()
385: [17:10:48] <Mike123> ok, thank you :) i will take a look, but can u explain in theory what i should do ? just theory
386: [17:11:21] * vanny has joined #silverstripe
387: [17:11:34] <vanny> hey all
388: [17:11:37] <Zauberfisch> see what happens in handleRequest() of ContentController
389: [17:12:05] <Zauberfisch> there they take the action and check if the action exists, if not, they search for a page that has that URLSegment
390: [17:13:37] <Mike123> great! thanks
391: [17:14:40] <vanny> i just did a new installation of 3.3.1 and for the default homepage is it showing the directory listing? anyone come across that before (also have the horrible index.php) in all the urls
392: [17:15:11] <Zauberfisch> vanny: sounds like url rewrite doesn't work
393: [17:15:29] <Zauberfisch> using apache? probably mod_rewrite not installed/active
394: [17:15:51] <Zauberfisch> using that microsoft thingy, there is a url rewrite plugin you need to install
395: [17:16:01] <vanny> im on a apache server
396: [17:16:25] <Mike123> Zauberfisch, i should rewrite handleRequest() in my holder ? no the page_controller ?
397: [17:16:41] <Zauberfisch> in your holder, yes
398: [17:16:55] <Mike123> hmm ok
399: [17:17:56] <Mike123> but if i will call project.com/my-service , from where it will know to use my holder ?
400: [17:20:49] <Zauberfisch> wait a second
401: [17:20:50] <Zauberfisch> what are the urls you want?
402: [17:20:50] <Zauberfisch> is the holder page the home page?
403: [17:20:54] * krofek_ has joined #silverstripe
404: [17:21:18] * agent44 quit (Quit: zzz)
405: [17:22:09] <terryapodaca> ok, I need a little help here: http://www.4wayinvestments.com/search if you click the Filter and then click on one of the Filter Options, which is a <a href="#"> it sends me to the home page instead of opening the actual Filter Options
406: [17:22:24] <terryapodaca> I have SSViewer::setOption('rewriteHashlinks', false); in the config file
407: [17:22:35] * UndefinedOffset quit (Quit: Leaving.)
408: [17:22:36] <terryapodaca> and yes, this is a 2.4.13 site
409: [17:22:42] <terryapodaca> and I can't upgrade it
410: [17:23:55] <Mike123> Zauberfish, lets say i have project.com/holder/service, i need project.com/service , so it looks like a root page of the website
411: [17:24:19] <Zauberfisch> oh, guess I missunderstood earlier
412: [17:24:25] <Zauberfisch> do you have any pages at all then?
413: [17:24:27] * krofek__ quit (Ping timeout: 260 seconds)
414: [17:24:30] <Zauberfisch> or just your data objects?
415: [17:25:15] <Mike123> i have lots of other holders and pages on the sitetree, but only one holder i need to make like i told to
416: [17:31:50] <Mike123> so for example i can have simple page: project.com/some-page , or other holder/item like : project.com/otherHolder/item, but only one specific holder class should look like : project.com/some-item , without holder
417: [17:32:04] * UndefinedOffset has joined #silverstripe
418: [17:33:52] <Mike123> that's why i told you about changing page_controller :D
419: [17:39:24] <Mike123> as far as i understand.. i need to grab the action where Controller check is there a page with the given url segment, check if there's a page, if no, then check if there's my Item with this segment, and render it
420: [17:46:13] * Stomach has joined #silverstripe
421: [17:46:25] * Stomach quit (Client Quit)
422: [17:47:31] * Stomach has joined #silverstripe
423: [17:48:25] * Stomach quit (Read error: Connection reset by peer)
424: [17:49:07] * Stomach has joined #silverstripe
425: [17:54:10] <vanny> ok, so where should I start looking to fix my directory listing showing on home page, all the other pages in the site are working fine
426: [17:54:25] <vanny> just if I go to root it shows directory
427: [17:56:40] * Stomach quit (Quit: zzz)
428: [18:05:17] * muskie9 has joined #silverstripe
429: [18:07:00] <vanny> muskie!!!
430: [18:08:00] <muskie9> vanny o/
431: [18:08:29] <vanny> how goes it mate!
432: [18:08:56] <muskie9> not bad, wet out, but I'll take that over snow any day
433: [18:11:46] <vanny> miserable here, but 80F so cant complain to much
434: [18:11:57] <muskie9> good beer weather
435: [18:16:30] <vanny> good driving my convertible weather
436: [18:16:37] <muskie9> that too lol
437: [18:17:23] <vanny> i hate online support techs, that know nothing
438: [18:18:10] <muskie9> that's never fun
439: [18:18:47] <vanny> my site is pulling directory listing for the home page
440: [18:19:00] * UndefinedOffset quit (Quit: Leaving.)
441: [18:19:44] * UndefinedOffset has joined #silverstripe
442: [18:19:44] <vanny> here answer was install your theme
443: [18:19:49] <vanny> her*
444: [18:25:15] <vanny> looks like I had to force index.php in my .htacess and now it loads.
445: [18:30:13] <muskie9> that's weird
446: [18:33:01] <vanny> very, but working enough to preview to client
447: [18:49:56] * Azure quit (Remote host closed the connection)
448: [18:59:20] * Stomach has joined #silverstripe
449: [19:24:08] * Phlunk3 has joined #silverstripe
450: [19:28:31] * MichalKleiner quit (Remote host closed the connection)
451: [19:30:23] <ss-helper> ReflectionClass doesn't exist in PHP 5.3 - Sapphire Crashing - http://stackoverflow.com/questions/20706496/reflectionclass-doesnt-exist-in-php-5-3-sapphire-crashing
452: [19:43:34] * UncleCheese has joined #silverstripe
453: [19:54:22] * BrewNaked quit ()
454: [19:57:16] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
455: [19:57:27] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
456: [19:58:11] * Mike123 quit (Quit: Page closed)
457: [20:16:59] * micmania1 has joined #silverstripe
458: [20:20:00] * Stomach quit (Ping timeout: 276 seconds)
459: [20:21:47] * Stomach has joined #silverstripe
460: [20:45:24] <ss-helper> SilverStripe best practice regarding pagetypes - http://stackoverflow.com/questions/36343329/silverstripe-best-practice-regarding-pagetypes
461: [20:49:28] * MichalKleiner has joined #silverstripe
462: [20:49:48] * terryapodaca quit (Quit: Leaving.)
463: [20:50:02] * Admonish has joined #silverstripe
464: [20:52:46] <Admonish> Hey there yall, I was wondering if anyone knows what Gridfield component actually displays the rows? I need to change the row html structure for a Custom GridField.
465: [20:58:37] * MichalKl_ has joined #silverstripe
466: [21:00:30] <ss-helper> Browser support for 4.0: Netscape Navigator - https://groups.google.com/d/msg/silverstripe-dev/P5wiPxiRYVI/CuP5TmVhKAAJ
467: [21:01:53] * marvanni quit (Quit: marvanni)
468: [21:02:02] * MichalKleiner quit (Ping timeout: 260 seconds)
469: [21:02:54] * micmania1 quit (Ping timeout: 276 seconds)
470: [21:09:18] * charles-ritchie quit (Ping timeout: 250 seconds)
471: [21:14:54] * UndefinedOffset quit (Quit: Leaving.)
472: [21:19:24] * muskie9 has joined #silverstripe
473: [21:20:41] <muskie9> anyone try the opauth module by better brief with 3.3.1 yet?
474: [21:22:32] * Azure has joined #silverstripe
475: [21:24:14] <Admonish> muskie9 I personally have not used it with 3.3.1
476: [21:24:36] <Admonish> Lol I had to say something
477: [21:24:42] <Admonish> To quite in here
478: [21:24:50] <muskie9> looking to implement it... I'll end up using it anyways, just wondering if there were any noticeable issues
479: [21:25:02] <muskie9> and yes, it's been quiet most days lately
480: [21:25:13] * Hailwood has joined #silverstripe
481: [21:25:26] * micmania1 has joined #silverstripe
482: [21:25:54] <muskie9> I suppose it is the end of the day here, and people sort of just starting there (us to nz)
483: [21:26:43] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
484: [21:26:49] * vanny makes noise to wake everyone up
485: [21:27:09] * muskie9 opens a couple beers, starts to get rowdie
486: [21:27:35] <micmania1> internet is back!
487: [21:27:51] <Admonish> Lol over here ( Central North America) its 3:30pm
488: [21:27:53] <vanny> yes please, well maybe a angry orchard, im a poor beer drinker
489: [21:27:54] <muskie9> micmania1 planned outage or random
490: [21:28:07] <micmania1> muskie9: random. ISP had issues
491: [21:28:19] <muskie9> micmania1 hate that
492: [21:28:25] <muskie9> vanny Summer Shandy
493: [21:28:42] <Hailwood> Hey Folks, anyone here familiar with the advancedworkflow module?
494: [21:28:48] <vanny> We do have a commercial margarita machine though ;)
495: [21:29:01] <vanny> nothing like 4 gallons of margarita for a weekend party
496: [21:29:02] <muskie9> vanny is that in your office?!!!!!
497: [21:29:15] <vanny> My wifes office :)
498: [21:29:21] <muskie9> nice!
499: [21:29:44] <vanny> it does make it home quite often.
500: [21:31:36] * muskie9 loves margaritas... or maybe the tequila
501: [21:31:51] * Azure quit (Remote host closed the connection)
502: [21:32:06] <vanny> i cant stand tequila, but a good frozen margarita
503: [21:32:41] <muskie9> I get silly on tequila
504: [21:33:03] * Azure has joined #silverstripe
505: [21:33:40] <Hailwood> I once sculled 1.5L of tequila - Not recommended.
506: [21:33:51] * Azure quit (Remote host closed the connection)
507: [21:34:09] <muskie9> Hailwood I'm not that brave
508: [21:34:26] <vanny> oh my, that is crazy
509: [21:34:33] * Azure has joined #silverstripe
510: [21:34:41] * Azure quit (Remote host closed the connection)
511: [21:34:48] <muskie9> speaking of crazy https://www.youtube.com/watch?v=lT67w4_Uqz4
512: [21:34:55] <muskie9> not recomended ^
513: [21:34:56] <vanny> being in texas we have good tequila, back in oz a place we when to had 1800 as there topshelf, my wife cried
514: [21:34:58] <Hailwood> I was at a rovers (scouts 18-24) party, My (now-ex) told them I can't get drunk so I was challenged to do it.
515: [21:35:13] * Azure has joined #silverstripe
516: [21:35:20] * Azure quit (Remote host closed the connection)
517: [21:35:52] <Hailwood> I think I passed out within a minute of stopping heh
518: [21:36:11] <muskie9> Hailwood don't ever let anyone tell you you can't ;P
519: [21:36:11] * Azure has joined #silverstripe
520: [21:36:17] <muskie9> I'm the same way
521: [21:36:19] * Azure quit (Remote host closed the connection)
522: [21:36:37] <muskie9> them: "don't get drunk or drink to much"; me: "uh huh..."
523: [21:37:03] <Hailwood> Well technically I wasn't drunk - I skipped that stage - I was simply unconscious ;)
524: [21:37:30] <muskie9> straight to blackout lol
525: [21:37:55] * Admonish quit (Quit: ThrashIRC v2.9 sic populo comunicated)
526: [21:37:57] <vanny> we have a huge liquor and wine collection, we hardly drink it. I dont know where some of it even came from
527: [21:38:14] * Azure has joined #silverstripe
528: [21:38:58] <Hailwood> That was when I could drink however, Now I'm drunk off two beers aha
529: [21:39:05] * Azure quit (Remote host closed the connection)
530: [21:40:04] <vanny> drunk, happy and cheap, is better then sobber, broke, and angry (but hey I can drink a case without getting drunk), give me A anytime
531: [21:40:23] * Azure has joined #silverstripe
532: [21:40:31] * Azure quit (Remote host closed the connection)
533: [21:41:05] <Hailwood> Oh I can knock back the spirits & wine without getting drunk (high metabolism), it's just beer which takes longer to process that hits me hard.
534: [21:41:26] <muskie9> I've maintained my tolerance since I graduated from college... took ~4 to get it to where it was, a shame to waste it lol
535: [22:00:25] <ss-helper> How to block access to a set of url patterns by IP? - http://stackoverflow.com/questions/36344535/how-to-block-access-to-a-set-of-url-patterns-by-ip
536: [22:02:00] <muskie9> Hailwood https://github.com/prij/silverstripe-iprestrictedpage
537: [22:02:05] <vanny> If you come to houston, there is a mexican place, and there margaritas have about 5 shots in them, 6 if you add a flavour
538: [22:03:03] <muskie9> vanny that's my kind of margarita
539: [22:03:17] <muskie9> Hailwood is this for admin or pages
540: [22:03:32] <vanny> I use to go there 2 times a week, i got up to being able to drink 4 of them in one night
541: [22:03:39] <vanny> now 2 puts me on my but
542: [22:14:51] * Stomach quit (Quit: zzz)
543: [22:15:39] * Stomach has joined #silverstripe
544: [22:40:56] <Hailwood> muskie9, It's for admin - See https://github.com/silverstripe/silverstripe-framework/pull/5242 for some context on the question
545: [22:43:19] * Stomach quit (Quit: zzz)
546: [22:45:47] <muskie9> ah, I see.. that make sense now... not sure the links I posted on SO will help then
547: [22:46:35] * Stomach has joined #silverstripe
548: [22:51:39] <Hailwood> Yeah, they're still helpful for a subset of cases though, so might as well have them there
549: [22:53:14] * spronk has joined #silverstripe
550: [22:54:06] <muskie9> I hadn't thought of the IPv6 stuff, we had a client ask about IP restriction within the last couple months... might have to revisit that now that IPv6 has been mentioned
551: [23:00:01] * ss-helper quit (Remote host closed the connection)
552: [23:00:18] * ss-helper has joined #silverstripe
553: [23:15:02] <ss-helper> Re: Announcing SilverStripe related blog: www.silverstrip.es - https://groups.google.com/d/msg/silverstripe-dev/fFfFM5PVUEs/InJplp1oKAAJ
554: [23:32:12] * Stomach quit (Quit: zzz)
555: [23:41:24] * UncleCheese has joined #silverstripe

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