#silverstripe IRC Log

IRC log for 1 December 2015

All timestamps are in UTC.

1: [00:17:51] * zlinux has joined #silverstripe
2: [00:24:44] * Colin[pi] has left #silverstripe
3: [00:28:56] * hailwood quit (Remote host closed the connection)
4: [00:59:12] <eolant> Does anyone using https://github.com/XploreNet/bootstripe ? How can I enable search with the custom search form?
5: [01:08:23] * BrewNaked quit (Remote host closed the connection)
6: [01:09:26] * mikenz has joined #silverstripe
7: [01:13:47] <mikenz> Hi, just wondering if anyone has any magic tricks to have the unit tests run really quick? I want to run them as part of our regular build process?
8: [01:15:50] * DanaeNZ quit (Remote host closed the connection)
9: [01:16:26] * DanaeNZ has joined #silverstripe
10: [01:16:59] * DanaeNZ quit (Remote host closed the connection)
11: [01:17:15] * DanaeNZ has joined #silverstripe
12: [01:24:47] * DanaeNZ sips coffee
13: [01:39:00] * hailwood has joined #silverstripe
14: [01:39:16] <hailwood> Hey folks, what module do people use for securing files?
15: [01:56:56] * joelpittet has joined #silverstripe
16: [02:36:21] * Alboes quit (Remote host closed the connection)
17: [02:42:06] <nontgor> mikenz: Are you using mysql or sqlite?
18: [02:45:01] <nontgor> mikenz: http://www.sspaste.com/paste/show/565d094a7b730 - the :memory flag is crucial re speed
19: [02:45:09] <nontgor> add that to mysite/_config.php
20: [02:46:03] <nontgor> hailwood: https://github.com/silverstripe-labs/silverstripe-secureassets seems currently active, I've used the module that this fork is from before a couple of years back
21: [02:46:08] * Azure|dc has joined #silverstripe
22: [02:46:42] * Azure quit (Ping timeout: 260 seconds)
23: [02:47:08] <hailwood> nontgor, Hmm, Yeah that's what I've grabbed and it works mostly, except for the search results which causes it to show the files in the results anyway.
24: [02:47:58] <nontgor> hailwood: That sounds like a bug :(
25: [02:48:24] <hailwood> nontgor, Possibly, but looking in the source code it seems like the fix for it was intentionally taken out
26: [02:48:40] <nontgor> oh...
27: [02:48:48] <hailwood> nontgor, https://github.com/silverstripe-labs/silverstripe-secureassets/blob/master/code/SecureFileExtension.php#L92
28: [02:49:33] <hailwood> nontgor, Then use the branch switcher to change branch to the only other one, and you'll see that the fix is in place there (but that branch is way out of date)
29: [02:52:09] <nontgor> hailwood: Removed by this commit it seems https://github.com/silverstripe-labs/silverstripe-secureassets/commit/dec6931349a11183bbcc9aa72604fad12c93dc74
30: [02:54:52] * spronk quit (Quit: I may need a longer sleep timer...)
31: [02:55:10] <hailwood> nontgor, Yeah, seems intentional right?
32: [02:55:55] <nontgor> y
33: [02:57:16] * BrewNaked has joined #silverstripe
34: [02:58:41] * spronk has joined #silverstripe
35: [03:01:10] * mobiusnz has joined #silverstripe
36: [03:01:27] * MichaelHabib1 has joined #silverstripe
37: [03:01:48] * BrewNaked quit (Ping timeout: 250 seconds)
38: [03:02:06] * MichaelHabib quit (Ping timeout: 260 seconds)
39: [03:02:07] * MichaelHabib1 is now known as MichaelHabib
40: [03:20:30] * r_hector has joined #silverstripe
41: [03:44:11] * MichaelHabib1 has joined #silverstripe
42: [03:44:16] * MichaelHabib quit (Ping timeout: 250 seconds)
43: [03:44:17] * MichaelHabib1 is now known as MichaelHabib
44: [03:53:49] <eolant> Hi, does anyone is using bootstripe?
45: [04:07:12] * hailwood quit (Remote host closed the connection)
46: [04:33:42] * Tanger has joined #silverstripe
47: [04:34:23] * DanaeNZ quit (Remote host closed the connection)
48: [04:34:58] * DanaeNZ has joined #silverstripe
49: [04:39:19] * DanaeNZ quit (Ping timeout: 245 seconds)
50: [04:45:48] <nontgor> is there any way in a function to make config changes and then call likes of $this->get($url); such that the config changes persist?
51: [04:46:13] <nontgor> I am trying to change a port number of a third party service in order to simulate that service being down
52: [04:46:26] * BrewNaked has joined #silverstripe
53: [04:50:34] * BrewNaked quit (Ping timeout: 250 seconds)
54: [04:55:20] * joelpittet quit (Remote host closed the connection)
55: [05:03:55] * joelpittet has joined #silverstripe
56: [05:06:10] * Stomach quit (Ping timeout: 250 seconds)
57: [05:18:22] * zlinux quit (Ping timeout: 260 seconds)
58: [05:21:53] <Tanger> That painful feeling when you have to manually change the BaseURL of a wordpress site in the database to start redeveloping it *cringe*
59: [05:24:12] <Tanger> nontgor: Not if you mean updating the YAML files. Using Config::update() will let you update the value, but will not persist through flushes, I believe
60: [05:24:53] <nontgor> Tanger: Thanks. I've gone down the path of adding an extra parameter
61: [05:26:43] * spronk quit (Quit: I may need a longer sleep timer...)
62: [05:40:40] * Liquide quit ()
63: [05:48:48] * spronk has joined #silverstripe
64: [05:54:55] * joelpittet quit (Remote host closed the connection)
65: [06:20:43] * joelpittet has joined #silverstripe
66: [06:34:27] * MichaelHabib quit (Quit: MichaelHabib)
67: [06:35:08] * BrewNaked has joined #silverstripe
68: [06:39:19] * BrewNaked quit (Ping timeout: 245 seconds)
69: [06:57:16] * joelpittet quit (Read error: Connection reset by peer)
70: [06:57:20] * joelpitt_ has joined #silverstripe
71: [06:58:43] * wmk has joined #silverstripe
72: [07:03:30] * Mike123 has joined #silverstripe
73: [07:08:55] <mikenz> thanks nontgor! I'll give it a go.
74: [07:13:31] * zlinux has joined #silverstripe
75: [07:22:41] * spronk quit (Quit: I may need a longer sleep timer...)
76: [07:28:37] <mikenz> nontgor: That was the secret sauce that I needed! Framework tests gone from 2613 seconds with mysql to 324 seconds :-)
77: [07:29:48] <wmk> mikenz, sqlite magic?
78: [07:30:53] * joelpitt_ quit (Remote host closed the connection)
79: [07:31:42] * joelpittet has joined #silverstripe
80: [07:31:58] <mikenz> running the tests with sqlite and with memory path
81: [07:36:58] * spronk has joined #silverstripe
82: [07:38:01] <wmk> mikenz, yup, that boosts tests...
83: [07:42:24] <Mike123> Morning
84: [07:53:40] * arnhoe has joined #silverstripe
85: [08:09:33] * Stomach has joined #silverstripe
86: [08:10:30] * Stomach quit (Read error: Connection reset by peer)
87: [08:10:49] * Stomach has joined #silverstripe
88: [08:12:27] * DanaeNZ has joined #silverstripe
89: [08:17:06] * DanaeNZ quit (Ping timeout: 260 seconds)
90: [08:24:14] * BrewNaked has joined #silverstripe
91: [08:28:29] * BrewNaked quit (Ping timeout: 245 seconds)
92: [08:30:12] * Stomach quit (Quit: zzz)
93: [08:33:42] * Stomach has joined #silverstripe
94: [08:36:33] * UncleCheese has joined #silverstripe
95: [08:47:47] * MichaelHabib has joined #silverstripe
96: [08:48:15] * spronk quit (Quit: I may need a longer sleep timer...)
97: [08:50:48] * joelpittet quit ()
98: [08:53:41] * cupcake has joined #silverstripe
99: [08:53:49] <cupcake> morning 0/
100: [08:54:02] <cupcake> has anybody used the search and replace plugin for tinymce?
101: [08:55:24] * zlinux quit (Ping timeout: 250 seconds)
102: [08:56:30] * Stomach quit (Quit: zzz)
103: [09:02:56] * MichaelHabib1 has joined #silverstripe
104: [09:02:57] * MichaelHabib quit (Read error: Connection reset by peer)
105: [09:02:58] * MichaelHabib1 is now known as MichaelHabib
106: [09:03:55] * kinglozzer has joined #silverstripe
107: [09:05:51] * Mike123 quit (Ping timeout: 252 seconds)
108: [09:08:24] * Mike123 has joined #silverstripe
109: [09:11:29] * spronk has joined #silverstripe
110: [09:16:01] * adityahh has joined #silverstripe
111: [09:18:00] <adityahh> How can i upload my ss 3.2 website to a web server
112: [09:20:11] <MichaelHabib> hi adityahh, do you use composer ?
113: [09:22:46] <adityahh> yes i use
114: [09:28:27] * slievr has joined #silverstripe
115: [09:37:00] * Werner_2_ has joined #silverstripe
116: [09:37:00] * wmk quit (Read error: Connection reset by peer)
117: [09:39:48] <cupcake> has anybody used the search and replace plugin for tinymce?
118: [09:41:03] * adityahh quit (Ping timeout: 252 seconds)
119: [09:43:01] * swaiba has joined #silverstripe
120: [09:49:53] <MichaelHabib> cupcake: no never used it :(
121: [09:55:01] <MichaelHabib> Any advise on how to filter results based on many_many relations ?
122: [09:55:17] * wmk has joined #silverstripe
123: [09:55:59] * Werner_2_ quit (Read error: Connection reset by peer)
124: [09:57:00] * spronk quit (Remote host closed the connection)
125: [10:02:29] * Tanger quit (Remote host closed the connection)
126: [10:06:27] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
127: [10:09:31] <kinglozzer> MichaelHabib: What are you having trouble with?
128: [10:09:32] <kinglozzer> Got an example?
129: [10:12:58] * BrewNaked has joined #silverstripe
130: [10:17:18] * BrewNaked quit (Ping timeout: 250 seconds)
131: [10:25:13] <MichaelHabib> kinglozzer: HI, I have Page many_many ObjA & I need to get one ObjA that has a relation to the current page.
132: [10:26:57] <kinglozzer> MichaelHabib: $this->ObjectAs()->first() ?
133: [10:27:08] <kinglozzer> Where 'ObjectAs' is the relation name
134: [10:27:59] <kinglozzer> If you don't have access to $this, you can do stuff like ObjA::get()->filter('ObjectBs.ID', $id); where 'ObjectBs' is the relation name
135: [10:32:49] <MichaelHabib> kinglozzer: thanks, that worked
136: [10:33:29] * wmk quit (Ping timeout: 245 seconds)
137: [10:33:51] <MichaelHabib> but I think I have another problem . Page many_many Obj , when I access the Obj in ModelAdmin & link to a page, that link doesnt show on the Page.ObjS Tab as if it's one sided link !
138: [10:35:08] <kinglozzer> MichaelHabib: Hmm, not sure
139: [10:35:23] <kinglozzer> Do you have both many_many and belongs_many_many set up on the other side of the relation?
140: [10:37:26] <MichaelHabib> Was ust looking at that now .. forgot if I should be using belongs_many_many on one side of the relation
141: [10:42:22] <MichaelHabib> kinglozzer: you did it again. added belong_many_many to my Page & worked like a charm. ty :)
142: [10:43:08] * ec8or quit (Ping timeout: 246 seconds)
143: [10:43:17] <kinglozzer> Cool :)
144: [10:43:27] * aditya has joined #silverstripe
145: [10:45:17] * kinglozzer quit (Read error: Connection reset by peer)
146: [10:45:25] <aditya> How do i upload and run ss 3.2 website on a webserver
147: [10:45:53] * kinglozzer has joined #silverstripe
148: [10:48:54] <MichaelHabib> aditya: hi again. If you use composer on your server try this command
149: [10:49:16] <aditya> ok
150: [10:49:18] <MichaelHabib> composer create-project silverstripe/silverstripe-installer ./
151: [10:49:36] <MichaelHabib> + optional version number at the end such as 3.1 or 3.2.*
152: [10:49:56] <MichaelHabib> aditya: are you new to silverstripe ?
153: [10:50:29] <aditya> no no i have build my site on local server but want to upload on live server
154: [10:51:22] <MichaelHabib> ok, & after that run chmod -Rv 755 ./ to change the permission if you get a white screen or error
155: [10:52:55] <aditya> what should i change to .htaccess or _config.php file
156: [10:54:02] <nontgor> mikenz: Cool. I came across that same problem a while back #sqlite
157: [10:55:41] <MichaelHabib> aditya: for now don't change anything, install with composer & visit domain.com/install.php
158: [10:56:24] <MichaelHabib> aditya: I aslo advise to create silverstripe-cache in the root of your install
159: [10:56:39] <aditya> how?
160: [10:56:54] <MichaelHabib> create silverstripe-cache folder, that's all you need
161: [10:57:07] <aditya> ok, thanks
162: [10:57:08] <MichaelHabib> SS will pick up on it & use it if it's available
163: [10:57:46] <aditya> but, i already startes uploading my local site to my domain server
164: [10:58:22] <MichaelHabib> aditya: if you use composer, you only need to upload the files you change on your local server
165: [11:04:19] <MichaelHabib> I have a has_one relation, but is there an option to provide a Drop Down list & a button to create New Obj & automatically link it co it's parent page (without Grid Field)
166: [11:07:59] * cloph_away is now known as cloph
167: [11:11:48] * Mike123 quit (Ping timeout: 252 seconds)
168: [11:17:51] * aditya quit (Ping timeout: 252 seconds)
169: [11:18:56] * Mike123 has joined #silverstripe
170: [11:26:10] * ec8or has joined #silverstripe
171: [11:27:35] <kinglozzer> MichaelHabib: I think there's a module for that
172: [11:27:54] <kinglozzer> I think it was called "quickaddnew" or something
173: [11:28:11] <kinglozzer> Ah, yeah: https://github.com/sheadawson/silverstripe-quickaddnew
174: [11:31:08] * Embraden_ quit (Ping timeout: 276 seconds)
175: [11:31:45] * Embraden has joined #silverstripe
176: [11:31:45] * Embraden quit (Changing host)
177: [11:31:45] * Embraden has joined #silverstripe
178: [11:31:50] * MarkGuinn has joined #silverstripe
179: [11:34:56] * MichaelHabib1 has joined #silverstripe
180: [11:34:58] * ec8or quit (Ping timeout: 260 seconds)
181: [11:36:50] * MichaelHabib quit (Ping timeout: 260 seconds)
182: [11:36:51] * MichaelHabib1 is now known as MichaelHabib
183: [11:49:48] * DanaeNZ has joined #silverstripe
184: [11:54:22] * DanaeNZ quit (Ping timeout: 250 seconds)
185: [12:01:40] * BrewNaked has joined #silverstripe
186: [12:05:59] * BrewNaked quit (Ping timeout: 245 seconds)
187: [12:08:20] * Embraden quit (Read error: Connection reset by peer)
188: [12:08:40] * Embraden has joined #silverstripe
189: [12:33:57] <MichaelHabib> hi, does SS support php namespace
190: [12:43:33] * guits has joined #silverstripe
191: [12:43:41] * stnvh has joined #silverstripe
192: [12:43:43] <guits> Hi! I am trying to make a map from a datalist
193: [12:43:52] <guits> but it only returns the last row
194: [12:45:58] <MarkGuinn> MichaelHabib - it does support namespacing in it's autoloader and ORM (everywhere really)
195: [12:46:10] <MarkGuinn> Until 4.0 the SilverStripe code itself is not namespaced though
196: [12:46:24] <MarkGuinn> guits - what method are you calling?
197: [12:47:22] * ec8or has joined #silverstripe
198: [12:47:32] <swaiba> guits code?
199: [12:50:19] <MichaelHabib> MarkGuinn: Thanks. I also read somehwere that in SS3.2 modules can be placed in the vendor folder if i'm using the standard composer folder structure for my modules. have you tried it ?
200: [12:51:23] <MarkGuinn> I have not. My understanding is that that was a 4.0 feature but it could be possible in 3.2 as well.
201: [12:52:05] <MarkGuinn> My guess is that your classes might be picked up (assuming you're loading up composer's autoloader)
202: [12:52:17] <MarkGuinn> But you configuration would not (i.e. _config/*.yml)
203: [12:52:38] * wmk has joined #silverstripe
204: [12:54:07] <guits> swaiba and MarkGuinn : I use the addon "external-content" to connect to remote database. The "Get" returns arraylists instead of datalist which is not "SS_MAP"
205: [12:54:29] <MichaelHabib> MarkGuinn: oh good point. Will dig around this weekend & find out which version has this feature & see how config is handled
206: [12:54:40] <MichaelHabib> Good Night everyone
207: [12:58:35] <MarkGuinn> Good night!
208: [12:59:26] * MichaelHabib quit (Ping timeout: 260 seconds)
209: [13:01:04] <guits> this seems to be my problem: https://github.com/silverstripe/silverstripe-framework/issues/1593
210: [13:01:08] <guits> any wokaround?
211: [13:20:47] * UndefinedOffset has joined #silverstripe
212: [13:25:32] * SH__ has joined #silverstripe
213: [13:25:42] <SH__> Hey, how can I change the text that popups in the "Link existing" button, on a GridField?
214: [13:31:30] * Mike123 quit (Ping timeout: 252 seconds)
215: [13:33:26] * Mike123 has joined #silverstripe
216: [13:47:27] * guits quit (Ping timeout: 252 seconds)
217: [13:50:33] * BrewNaked has joined #silverstripe
218: [13:54:50] * BrewNaked quit (Ping timeout: 250 seconds)
219: [13:56:23] * wmk quit (Quit: nice to meet you ;))
220: [13:56:56] <SH__> Refering to my previous question, this post answers it (how to change the Link Existing dropdown in a gridfield) http://www.silverstripe.org/community/forums/general-questions/show/20477
221: [14:04:35] * muskie9 has joined #silverstripe
222: [14:06:46] * elgabbu has joined #silverstripe
223: [14:07:48] * SH__ quit (Ping timeout: 252 seconds)
224: [14:21:43] * wmk has joined #silverstripe
225: [14:22:26] <elgabbu> Hi I have a dataObject which has a field called summary
226: [14:22:41] <elgabbu> i created a function with the same name as the field
227: [14:23:05] <elgabbu> it checks if the field has a value and if it doesn't it outputs something else
228: [14:23:11] <wmk> elgabbu, yup, that might loop if you call $this->Summary inside getSummary()
229: [14:23:41] <elgabbu> http://www.sspaste.com/paste/show/565dad61dbf8c
230: [14:24:23] <wmk> and - works?
231: [14:24:47] <elgabbu> yeah that works fine :) .... the problem is ... if summary is empty and intro has a value ...
232: [14:25:12] <elgabbu> if in the template i do <% if Summary %> do this <% end_if %>
233: [14:25:29] <elgabbu> if summary is always false
234: [14:25:59] <elgabbu> it would seem that inside the if block my function is not invoked
235: [14:26:06] <wmk> <% if $Summary() %> ??
236: [14:26:29] <elgabbu> hmmm didn't think of that let me try
237: [14:27:12] <elgabbu> wmk nope still false
238: [14:27:34] <MarkGuinn> Has anyone else run into problems with PHPUnit returning 'No tests found in class "FunctionalTest".'?
239: [14:27:51] <MarkGuinn> This is just running the test suite for my module (one of the tests does extend FunctionalTest)
240: [14:32:04] <elgabbu> looking at the compiled template file the code inside the if statement is abit differnt
241: [14:32:28] <elgabbu> if ($scope->locally()->hasValue('Summary', null, true)) { $val .= ' '; $val .= $scope->locally()->obj('Summary', null, true)->XML_val('LimitCharactersClosestWord', array('200'), true); $val .= ' '; }
242: [14:32:49] <elgabbu> the if doesn't use the obj function
243: [14:33:03] <elgabbu> but rather it uses the hasValue
244: [14:44:54] * nontgor quit (Ping timeout: 244 seconds)
245: [14:46:31] <kinglozzer> elgabbu: That's expected
246: [14:46:54] <elgabbu> kinglozzer ... why so?
247: [14:47:07] <kinglozzer> elgabbu: That's how the template parser works
248: [14:47:11] <kinglozzer> Internally it still uses ->obj()
249: [14:47:37] <elgabbu> but isn't it inconsistent?
250: [14:48:02] <elgabbu> if($field) is false .... whilst simple outputing $field shows a value
251: [14:49:00] <kinglozzer> elgabbu: What's the value?
252: [14:49:12] <elgabbu> http://www.sspaste.com/paste/show/565dad61dbf8c
253: [14:49:41] <elgabbu> Article dataobject has field Summary ... i created that function such that if summary is empty ... it would return the intro field
254: [14:50:16] <elgabbu> in the template ... if i do <% if Summary %> its false
255: [14:54:03] <kinglozzer> Hmm
256: [14:54:08] <kinglozzer> elgabbu: Which SS version are you using?
257: [14:54:15] <kinglozzer> I know there was some changes around this between 3.1 and 3.2
258: [14:54:49] <kinglozzer> were*
259: [14:55:39] <elgabbu> 3.1.15
260: [14:58:08] <kinglozzer> elgabbu: Looks like DataObject::hasValue() is interfering with it
261: [14:58:15] <kinglozzer> I was looking at ViewableData::hasValue
262: [14:58:44] * nontgor has joined #silverstripe
263: [14:59:04] <kinglozzer> DataObject::hasValue() sees that there is a DB field named 'Summary' and checks whether there's a value, which there isn't, so it returns false
264: [14:59:36] <kinglozzer> So it bypasses obj() like you said ^^
265: [15:00:04] <kinglozzer> I'm not sure why that method even exists tbh... it looks like ViewableData should already take care of that
266: [15:05:47] <elgabbu> mmm but isn't ViewableData hasValue calling obj?
267: [15:06:06] <elgabbu> $result = $cache ? $this->cachedCall($field, $arguments) : $this->obj($field, $arguments, false, false);
268: [15:06:57] <elgabbu> than this part should trigger ... if($methodIsAllowed && $this->hasMethod($fieldName)) { $value = $arguments ? call_user_func_array(array($this, $fieldName), $arguments) : $this->$fieldName();
269: [15:07:32] <kinglozzer> elgabbu: It never hits ViewableData
270: [15:07:37] <kinglozzer> It uses DataObject::hasValue()
271: [15:07:52] <elgabbu> where?
272: [15:08:36] <kinglozzer> $scope->locally() == DataObject I believe
273: [15:08:56] <kinglozzer> https://github.com/silverstripe/silverstripe-framework/blob/3/model/DataObject.php#L4021
274: [15:09:56] <elgabbu> i would double check that because i tempered with the compiled template by doing get_class($scope->locally()) ... and i believe it was SS_Viewer something
275: [15:17:07] <kinglozzer> elgabbu: Just checked - SSViewer_DataPresenter
276: [15:17:23] <kinglozzer> It's just a class that wraps an object though
277: [15:17:46] <kinglozzer> I'm pretty sure your <% if $Summary %> is returning false because of DataObject::hasValue() though
278: [15:20:20] <elgabbu> ic ic
279: [15:26:21] * r_hector quit (Remote host closed the connection)
280: [15:28:22] * Azure has joined #silverstripe
281: [15:31:02] * Azure|dc quit (Ping timeout: 250 seconds)
282: [15:39:48] * BrewNaked has joined #silverstripe
283: [15:44:02] * BrewNaked quit (Ping timeout: 250 seconds)
284: [16:03:51] * Mike123 quit (Ping timeout: 252 seconds)
285: [16:24:15] * BrewNaked has joined #silverstripe
286: [16:24:29] * swaiba quit (Remote host closed the connection)
287: [16:28:03] * jbrungar quit (Ping timeout: 260 seconds)
288: [16:28:39] * jbrungar has joined #silverstripe
289: [16:29:53] * joelpittet has joined #silverstripe
290: [16:35:31] * stnvh quit (Read error: Connection reset by peer)
291: [16:38:50] * cloph is now known as cloph_away
292: [16:46:53] * arnhoe quit ()
293: [16:50:43] * eric__ has joined #silverstripe
294: [16:51:43] <eric__> hi, i have uploaded my ss site to live server but its accessed by adding index.php at the end of url
295: [16:52:03] <eric__> and in admin it shows error parent not found
296: [17:03:48] * slievr quit (Ping timeout: 252 seconds)
297: [17:05:06] * terryapodaca has joined #silverstripe
298: [17:05:27] * eric__ quit (Ping timeout: 252 seconds)
299: [17:11:18] * terryapodaca quit (Quit: Later fellas......I'm out.)
300: [17:11:47] * terryapodaca has joined #silverstripe
301: [17:14:03] * Alboes has joined #silverstripe
302: [17:16:33] <Alboes> i have a moneyfield: when I enter the price with a comma it is saved into de database, but when I enter with a dot the price in the database is 0,00 . This field doesn't change the dot to a comma by itself?
303: [17:17:38] * wmk quit (Ping timeout: 250 seconds)
304: [17:23:37] <terryapodaca> Alboes: why would it? Money has both comma and period
305: [17:24:00] <terryapodaca> $1,000,000.00
306: [17:24:26] <Alboes> yes i know, but as i said if i use a period it is not save. That is the problem
307: [17:25:46] <Alboes> $1,00 is saved, $1.00 is not saved
308: [17:29:23] * kinglozzer quit ()
309: [17:30:08] * arnhoe has joined #silverstripe
310: [17:35:20] * MischaK has joined #silverstripe
311: [17:48:26] * pbnj has joined #silverstripe
312: [17:49:07] <pbnj> has anyone noticed that virtual pages dont work properly in the newest build?
313: [17:52:19] * pbnj quit (Client Quit)
314: [18:00:06] * cloph_away is now known as cloph
315: [18:01:14] * Stomach has joined #silverstripe
316: [18:04:26] * Alboes quit (Remote host closed the connection)
317: [18:05:09] * mobiusnz quit (Quit: Leaving.)
318: [18:23:56] * MichaelHabib has joined #silverstripe
319: [18:24:25] <DimiStripe> Hey guys, I've got 2K links from old site which has to be moved to SS. I would need kind of a manual redirect mapping, so old links would redirect to SS proper pages. Is there any good working module for that ?
320: [18:27:49] * Stomach quit (Quit: zzz)
321: [18:28:59] * muskie9 quit (Quit: My Mac has gone to sleep. ZZZzzz…)
322: [18:39:06] <UndefinedOffset> DimiStripe I've used https://github.com/silverstripe-australia/link-mapping in the past, i also see there is one https://github.com/silverstripe-labs/silverstripe-redirectedurls both seem old and unmaintained
323: [18:41:43] <DimiStripe> UndefinedOffset: Thanks, will look into those
324: [18:43:34] * pbnj has joined #silverstripe
325: [18:44:03] <UndefinedOffset> if it was me i'd probably look closer at the one on ss labs just because it's already supporting 3.0 and it doesn't replace ModelAsController to do the hooking
326: [18:46:38] * Stomach has joined #silverstripe
327: [18:52:25] * gelignite has joined #silverstripe
328: [19:03:01] <cloph> UndefinedOffset: is it worth doing in silverstripe at all? why not do the mappig in the webserver?
329: [19:10:59] * muskie9 has joined #silverstripe
330: [19:13:32] <UndefinedOffset> cloph only thing i could think of is that it would be a bit easier on performance since silverstripe would only try to find the redirect on a 404 it captures but its kinda hard to say
331: [19:14:04] <UndefinedOffset> plus it makes it simple enough that in theory a cms admin could do it
332: [19:21:14] * MarkGuinn quit ()
333: [19:22:25] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
334: [19:32:11] * helenclarko has joined #silverstripe
335: [19:35:41] <helenclarko> Morning!
336: [19:42:15] * eric__ has joined #silverstripe
337: [19:43:18] <eric__> hello, i have uploaded my ss 3 site to web server bu when i select any page with parent::getcmsfields it shows an error that parent class not found
338: [19:52:06] * eric__ quit (Ping timeout: 252 seconds)
339: [20:03:26] * kevinphillips has joined #silverstripe
340: [20:03:44] * Stomach quit (Quit: zzz)
341: [20:05:03] <kevinphillips> Anyone help please. I have a form template and I am trying to call a function in page controller but it doesn’t seem to work, in that I don’t think the form template can see the controller function???
342: [20:07:42] * joelpittet quit (Remote host closed the connection)
343: [20:07:42] <UndefinedOffset> kevinphillips make sure the method you are trying to call from the template is publicly scoped or it won't work, as well make sure the page you are trying to view's controller is or extends the defining class
344: [20:11:28] <kevinphillips> UndefinedOffset: hmmmm yes I have a public function. I have tried putting it both the page controller that extends page controller and the page that extends page but I still doesn’t seem to be in scope
345: [20:12:27] <UndefinedOffset> are you per-chance trying to call the method from inside of a with or loop block?
346: [20:15:38] * BrewNaked quit (Remote host closed the connection)
347: [20:21:14] * Stomach has joined #silverstripe
348: [20:25:23] <kevinphillips> UndefinedOffset: No a form template
349: [20:25:59] <kevinphillips> UndefinedOffset: I’ve tried $Top as well
350: [20:28:46] <UndefinedOffset> kevinphillips ohhhhhhh ok thats very likely the issue, scoping in 3.x is a funny thing. bascially each template is it's own scope. Try using $Controller.YourMethod, that would access the controller the form was bound to allowing you to call your method on the page controller
351: [20:38:25] * Stomach quit (Quit: zzz)
352: [20:38:27] * arnhoe quit ()
353: [20:38:35] <kevinphillips> UndefinedOffset: OK Trying that
354: [20:44:25] * Stomach has joined #silverstripe
355: [20:45:10] * joelpittet has joined #silverstripe
356: [20:57:23] * spronk has joined #silverstripe
357: [20:57:54] * zippy has joined #silverstripe
358: [20:59:22] <zippy> Damn, where is that cheese man
359: [21:00:02] * antmas has joined #silverstripe
360: [21:00:18] <zippy> antmas: o/
361: [21:00:23] <zippy> Stomach: so, those day night test matches eh
362: [21:01:39] <antmas> yoyoyoyo all o/
363: [21:05:01] * cloph is now known as cloph_away
364: [21:05:08] <Stomach> zippy - weird yeah
365: [21:05:29] <helenclarko> anyone imported a mobile phone before?
366: [21:05:31] <zippy> quite interesting thou eh, was always something going on
367: [21:05:59] <helenclarko> Morning antmas o/
368: [21:06:00] <zippy> if only we had another 40 ~ runs in the bank eh
369: [21:06:10] <zippy> but you can say that about a lot of games..
370: [21:08:37] <zippy> what ever happened to that code competition?
371: [21:10:45] * antmas quit (Ping timeout: 252 seconds)
372: [21:13:20] * BrewNaked has joined #silverstripe
373: [21:17:32] <kevinphillips> UndefinedOffset: Unfortunately that method is not working. Is it possible to make a public function globally available from any controller or template?
374: [21:19:45] * DanaeNZ has joined #silverstripe
375: [21:19:48] * antmas has joined #silverstripe
376: [21:20:25] <UndefinedOffset> no, but you could try extending the Form class and putting your method there if it's possible. Probably could be done in a SilverStripe extension if you need it on all of your forms. You could also subclass if it's for a specific form. All depends on what you are doing and where you are trying to access it
377: [21:20:44] <antmas> long shot - but anyone used this? https://github.com/dnadesign/silverstripe-consultations
378: [21:24:56] * UndefinedOffset quit (Quit: Leaving.)
379: [21:32:00] * spronk quit (Quit: I may need a longer sleep timer...)
380: [21:51:54] * DanaeNZ quit (Remote host closed the connection)
381: [21:53:25] * DanaeNZ has joined #silverstripe
382: [21:53:49] <zippy> god damn it
383: [21:55:31] <zippy> argh!
384: [21:55:45] <antmas> arrrghhhh!
385: [21:55:47] <antmas> \o/
386: [21:55:51] <antmas> DanaeNZ: o/
387: [21:56:03] <DanaeNZ> antmas: \o
388: [21:57:09] <zippy> arghahg
389: [21:57:14] * zippy smashes keyboard
390: [21:57:38] * spronk has joined #silverstripe
391: [21:59:15] * joelpittet quit (Remote host closed the connection)
392: [22:00:05] * joelpittet has joined #silverstripe
393: [22:00:22] <zippy> The display-logic used to work so flawlessly, but not it seems to bork on HtmlEditor fields and UploadFields
394: [22:00:38] <zippy> even wrapped in the DisplayLogicWrapper
395: [22:00:55] <zippy> I can see it sets the display-logic classes to the element holder, but it doesn't do anything with those ones
396: [22:01:10] <zippy> it works fine on text fields and some checkboxess, but it just wont hide toggle those forms
397: [22:01:20] <zippy> wonder if it's because there is some other JS magic fuckery going on there
398: [22:04:18] <zippy> class="CompositeField displaylogicwrapper display-logic display-logic-hidden display-logic-display nolabel "
399: [22:04:25] <zippy> so it's binding to it... just not triggering
400: [22:07:33] <zippy> hm, it's not adding in the data-display-logic-masters and data-display-logic-eval
401: [22:08:58] * hailwood has joined #silverstripe
402: [22:09:09] <hailwood> Hey folks
403: [22:11:09] <antmas> hailwood: o/
404: [22:16:33] * DanaeNZ quit (Remote host closed the connection)
405: [22:19:34] <zippy> hm. It's like the DisplayLogicWrapper_holder.ss is not being used..
406: [22:20:08] <zippy> but CompositeField is
407: [22:23:00] <antmas> woah Zuckerberg
408: [22:24:04] <zippy> m?
409: [22:24:39] <antmas> giving 99% of facebook away
410: [22:24:45] * DanaeNZ has joined #silverstripe
411: [22:24:46] <antmas> to his own charity though :P
412: [22:25:33] <antmas> wait
413: [22:25:36] <antmas> no he isn't
414: [22:25:42] <antmas> stupid clickbait headlines
415: [22:27:07] * Colin[pi] has joined #silverstripe
416: [22:27:29] <antmas> Colin[pi]: o/
417: [22:27:38] <Colin[pi]> heyhey antant o/
418: [22:28:04] <antmas> Zuckerberg said he had told the company that he would be selling or gifting up to US$1 billion (NZ$1.5 billion) of his stock for each of the next three years. At current market prices, his shares in the company are now worth roughly US$45 billion (NZ$67.4 billion).
419: [22:28:14] <antmas> that makes no sense
420: [22:28:32] <antmas> is he giving away all of his shares? (67b)
421: [22:28:41] <antmas> or 4.5b over 3 years?
422: [22:28:48] <Colin[pi]> lol finance
423: [22:30:43] <zippy> 4.5b over 3 years
424: [22:32:00] <antmas> but in his letter he says differently
425: [22:32:06] <zippy> fuck I give up, patch the core
426: [22:32:20] <antmas> he says he will 'give away 99% of his shares over his LIFE time'
427: [22:32:35] <antmas> WHAT IS HE DOING OMG
428: [22:32:51] <Colin[pi]> ¯\_(ツ)_/¯
429: [22:33:15] <zippy> he's happy, already has a bunch of money, has shit loads of contacts so he could start whatever he wants.... why not :)
430: [22:33:19] <zippy> should give some to me through
431: [22:33:22] <zippy> *though
432: [22:33:30] <hailwood> Anyone here good with display logic? https://gist.github.com/hailwood/2938d0d446f3ffec1ef4
433: [22:33:50] <antmas> zippy: I'm not disagreeing with him, it's just the news articles are not clearly saying what he's doing
434: [22:35:17] <zippy> hailwood: jesus christ, just be playing with display-logic for the past hour
435: [22:35:37] <zippy> and I don't want to talk about it any more, scared from that
436: [22:35:47] <hailwood> zippy, It's pretty good, I just cannot work out the groups :/
437: [22:36:59] <zippy> yea it is good, just been fighting it soo much lately
438: [22:37:52] <zippy> hailwood: looks like you just need 3 things
439: [22:38:01] <zippy> ss23: topic version is out of date
440: [22:38:39] <zippy> hailwood: $fields->dataFieldByName('NZResidentIndividual')->displayIf('ApplicationType')->isEqualTo('Individual');
441: [22:38:52] <zippy> hailwood: $fields->dataFieldByName('NZResidentJoint')->displayIf('ApplicationType')->isEqualTo('Joint');
442: [22:39:01] <hailwood> yup got those two
443: [22:39:21] <zippy> Then the error will be
444: [22:41:37] <zippy> I think you might need to just fake the first DisplayIf I wonder, then do two groups
445: [22:42:26] <zippy> $fields->dataFieldByName('ErorField')->displayIf('DoesntExist')->isEqualTo('Foo')>orIf()-group()-> ... do two if checks here then ->end()->orIf()->group() ... do the other two ... ->end()
446: [22:43:05] <Colin[pi]> ^ that hurts my brain
447: [22:43:14] <zippy> that is a prickyl one eh
448: [22:45:46] <zippy> actually
449: [22:46:43] <zippy> why not just $fields->dataFieldByName('ErorField')->displayIf('NZResidentIndividual')->isEqualTo('No')->orIf("NZResidentJoint ")->equals("No")->end()
450: [22:46:58] <zippy> the only issue is if they go through and get no on one, and then they click back on 'nothing' checklist'
451: [22:47:11] <zippy> but, eh
452: [22:47:20] <hailwood> zippy, because if the user selects Individual then selects No, then changes to Joint, and selects yes, then you'll still have the error displayed
453: [22:47:25] <hailwood> and I have to account for that lol
454: [22:47:28] * zlinux has joined #silverstripe
455: [22:47:44] * Phlunk3 has joined #silverstripe
456: [22:47:55] <zippy> damn, I had written it out fully with both checks
457: [22:47:58] <zippy> but alas, it's time for me to go
458: [22:48:22] <antmas> zippy: where you off to?
459: [22:48:22] <hailwood> Just noting there isn't actually a "nothing" option, that's just representative of the initial state of radio buttons
460: [22:48:39] <zippy> antmas: get kid pre-skool
461: [22:49:12] <zippy> bbl
462: [22:56:08] * DanaeNZ quit (Remote host closed the connection)
463: [22:56:18] * antmas_ has joined #silverstripe
464: [22:58:40] <eolant> Hi, does anyone using bootstripe? (no I'm not tired to ask this question)
465: [22:59:06] * antmas quit (Ping timeout: 252 seconds)
466: [23:03:25] * antmas_ is now known as antmas
467: [23:08:59] <hailwood> eolant, define bootstripe
468: [23:09:04] <hailwood> ;)
469: [23:09:31] <hailwood> Assuming you're talking about the theme yeah?
470: [23:09:41] <spronk> whttp://i.imgur.com/xhzThih.gif
471: [23:09:57] <antmas> spronk: lol saw that
472: [23:11:19] <Colin[pi]> lol the cup of coffee
473: [23:11:55] <eolant> hailwood: yeah the one that is using gulp
474: [23:12:36] <hailwood> eolant, Whats your question
475: [23:13:11] <eolant> hailwood: How can I enable the search form on it?
476: [23:14:57] <antmas> the same way you normally would?
477: [23:15:19] <antmas> assuming it's a theme, you just need to include the search form and ensure the theme styles it
478: [23:15:44] <hailwood> eolant, Which version of the theme have you pulled in? We've recently amde a few updates to the theme so there are different templates depending on which search form style you want
479: [23:18:41] <eolant> hailwood: I think I have the latest one. Do I have to install search addon for the form to work? It seems I also have to create separate page because it sends me to /Search/SearchForm
480: [23:20:00] * mikenz quit (Ping timeout: 252 seconds)
481: [23:23:56] <antmas> anyone ever come across this before? https://gathercontent.com/how-it-works
482: [23:30:16] <Colin[pi]> antmas: so like... it's like a CMS for the CMS?
483: [23:30:45] <Colin[pi]> what? no SS logo on the CMS and publishing platforms diagram
484: [23:30:48] <Colin[pi]> INSTAFAIL
485: [23:37:40] * Colin[pi] quit (Ping timeout: 250 seconds)
486: [23:40:58] * Stomach quit (Quit: zzz)
487: [23:48:35] <hailwood> eolant, So you'll need FulltextSearchable::enable(); in your _config.php
488: [23:49:10] <hailwood> Then include either SearchFormInline or SearchFormBlock depending on the style of form you wants
489: [23:49:40] <hailwood> Yes you need to create a separate page for the search (a standard Page will do)
490: [23:50:21] <hailwood> note that by default bootstripe includes SearchFormInline in the Nav.ss

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