#silverstripe IRC Log

IRC log for 18 April 2016

All timestamps are in UTC.

1: [00:02:50] * Admonish has joined #silverstripe
2: [00:21:35] * MichalKleiner has joined #silverstripe
3: [00:46:03] <robbiea> hey SS staff in the room - any idea of a rough release date for 4.0?
4: [00:56:05] * robbiea quit (Remote host closed the connection)
5: [01:01:06] * naveed has joined #silverstripe
6: [01:01:32] <naveed> hey all experts! can I get a quick help on this issue explained here http://www.silverstripe.org/community/forums/data-model-questions/show/111876
7: [01:06:06] * robbiea has joined #silverstripe
8: [01:13:07] * BrewNaked has joined #silverstripe
9: [01:16:14] * Tanger has joined #silverstripe
10: [01:18:00] * BrewNaked quit (Ping timeout: 276 seconds)
11: [01:21:45] * adrexia has joined #silverstripe
12: [01:27:56] * mahfuz has joined #silverstripe
13: [01:37:16] <Admonish> Does anyone know how to hide model tabs (in a modelAdmin) based on certain logic?
14: [01:38:07] <Admonish> Soemthing like if (logic) { show tabs}else{hide tabs}
15: [01:39:59] <Admonish> Is there a way to set the $managed_models in an if statement?
16: [01:44:02] <adrexia> yep :)
17: [01:44:15] <adrexia> look at getE ditFields
18: [01:44:41] <adrexia> And just remove the tab by name or something I suppose
19: [01:46:21] <adrexia> Though, come to think of it, perhaps the top tabs are done differently to normal? I can't remember if I've done this before...
20: [01:50:36] <Admonish> The top ones are handled by the modelAdmin itself. But perhaps I can still hide the tabs through getEditForm
21: [01:53:27] * UncleCheese has joined #silverstripe
22: [01:56:29] * Stomach quit (Quit: zzz)
23: [02:05:44] * micmania1 has joined #silverstripe
24: [02:17:30] * spronk quit (Quit: I may need a longer sleep timer...)
25: [02:23:11] * Stomach has joined #silverstripe
26: [02:28:02] * spronk has joined #silverstripe
27: [02:38:31] <Admonish> naveed Please check the SS forums as I have just posted on your thread
28: [02:45:44] <Admonish> naveed also, please feel free to ask any questions you have on the IRC as well. It may take a bit to get an answer but it will in most cases get answered eventually
29: [02:59:39] * spronk quit (Quit: I may need a longer sleep timer...)
30: [03:01:30] * Hailwood quit (Quit: Leaving)
31: [03:02:10] * BrewNaked has joined #silverstripe
32: [03:06:47] * BrewNaked quit (Ping timeout: 244 seconds)
33: [03:09:09] * Stomach quit (Quit: zzz)
34: [03:10:30] * Stomach has joined #silverstripe
35: [03:13:16] * spronk has joined #silverstripe
36: [03:16:41] <naveed> Admonish: Thank you very much for your reply. I have already tried your point raised but in both situations it didn't work for me only the index() action is working fine.
37: [03:18:14] <Admonish> naveed Im sorry I couldnt be more of a help. Unfortunitly controller actions is one of the areas I have not ventured into.
38: [03:19:04] <Admonish> naveed Did you watch the video on controller actions that I posted a link to?
39: [03:23:34] <naveed> Admonish: I am starting to look at the video as documentation is not much helpful for me.... :(
40: [03:25:55] <Admonish> naveed The video series in the lessons section of the SS website is one of the best sources of information on SS. That and the dreaded API Docs.
41: [03:26:20] <Admonish> naveed In my opinion any way :D
42: [03:26:51] <naveed> Admonish: I got the point from the video i.e. whenever you create a new action in the controller then you have to use ?flush=1 query string parameter and then my code is working now :)
43: [03:28:21] <Admonish> naveed Glad to hear it !
44: [03:28:55] <Admonish> naveed Also if you didn't know you usually want to do a dev build after editing your config.yml file
45: [03:29:06] <Admonish> naveed or after you install a module
46: [03:29:53] <Admonish> naveed To do that you just go to *yourdomain*/dev/build/ (or even *yourdomain*/dev/build?flush=1 to be safe)
47: [03:31:43] <Admonish> naveed Oh and I almost forgot, you have to triggger a dev build after editing your model $db array. Otherwise your database will not be updated with the new fields
48: [03:32:45] <naveed> Admonish: Actually I am an experienced Symfony developer and I understand the MVC structure strongly.... Therefore, just need a hint to do a task :p
49: [03:33:42] <naveed> Yes, I have successfully created the model class therefore, know about these things.... Anyways, thank you very much for your time and help... will find you soon over here for my next issue :p
50: [03:34:02] <Admonish> naveed np, glad to help
51: [03:34:27] <naveed> Admonish: Thanks for today's help
52: [03:34:37] <Admonish> naveed Could you also post your solution on the forums
53: [03:34:55] <Admonish> naveed Happy to help :D
54: [03:35:30] <naveed> Yes, I am doing that once, I will get the solution.... don't worry I will try to explain in a better way to the new upcomming users....
55: [03:36:16] <Admonish> naveed Awesome
56: [03:42:28] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
57: [03:42:34] * micmania1 quit (Quit: micmania1)
58: [03:51:40] <Admonish> How does one filter data based on a many_many relationship
59: [03:52:21] <Admonish> Do I have to do a join? or does silverstripe handle this?
60: [03:53:18] <robbiea> Can I prioritise DataExtensions? I'd like extension X to run before Y
61: [03:53:49] <Admonish> That is a very good question ;)
62: [03:56:49] <robbiea> Asked here (http://area51.stackexchange.com/proposals/96450/silverstripe/96607#96607) - I agree - it is a good question!
63: [03:56:59] <Admonish> lol I know
64: [03:57:00] <robbiea> Looks like I said that a few weeks ago too - haha
65: [03:57:04] <Admonish> I read it
66: [03:57:28] <Admonish> I was hoping you would see that
67: [03:57:30] <Admonish> lol
68: [03:58:01] <robbiea> I think I'm OK for now, I'm assuming my X is loaded before Y because it's going alphabetically....?
69: [03:58:13] <naveed> Admonish: When I use the name for my action i.e. create() then I am getting the following error i.e. Cannot make static method Object::create() non static in class GalleryController in
70: [03:58:46] <naveed> Can I assume that I can't use the customized actions in the url i.e. http://localhost/mysite/create
71: [03:59:05] <naveed> *http://localhost/mysite/gallery/create
72: [03:59:30] <robbiea> create() would be a reserved method name as it's used by SS
73: [03:59:52] <Admonish> naveed I wish I new more about controller actions. I don't think my advice would help on this one.
74: [04:00:47] <Admonish> robbiea I thought that might be the case but I didn't want to say it incase I was mistaken
75: [04:00:50] <Admonish> rob
76: [04:00:53] <naveed> robbiea: got it but what if the client/SEO expert asks to create the url i.e. http://localhost/mysite/gallery/create for creating gallery images which means I can't create it in SS
77: [04:00:58] <Admonish> robbiea so thanks for clearing that up
78: [04:01:59] <naveed> robbiea: thanks for your answer but what would be the answer in that case? :(
79: [04:02:20] <robbiea> Use something else - e.g. "new"
80: [04:02:27] <Admonish> naveed it sounds like your trying to create an API am I right?
81: [04:03:01] <Admonish> naveed scratch that...I just thought it through
82: [04:03:05] <Admonish> XD
83: [04:03:29] <naveed> Not right now as I am learning SS but in my recent experience I have to use this convention in lot of the projects :p
84: [04:04:23] <robbiea> naveed: if you look at the CMS module, the action to create a new page is "add"
85: [04:04:32] <robbiea> might be worth following that policy
86: [04:05:19] <naveed> robbiea: Yes, you are right but it is pretty confusing in the Opensource world that you have to learn different conventions for each framework :(
87: [04:05:47] <naveed> new is the PHP keywork so when I am using it as an action then I am getting syntax error :(
88: [04:05:49] <Admonish> naveed If you have to have create you can technically use apache's Alias directive
89: [04:06:26] <Admonish> but im not sure how that would effect the SEO side of things
90: [04:07:02] <naveed> hmm.. that's annoying as I worked on a big client project where they constantly asked to keep on changing the urls and in that case SS is not very helpful
91: [04:08:09] <Admonish> I think most frameworks and CMS systems have reserved methods
92: [04:08:36] <robbiea> What do admin URLs have to do with SEO?
93: [04:08:38] <Admonish> It just so happens that SS methods conflict with your conventions on that one
94: [04:09:14] <Admonish> I think he's talking about frontend
95: [04:09:30] <Admonish> controller actions for the frontend
96: [04:09:39] <naveed> robbiea: I am thinking on different terms, whatif I don't want to use the SS CMS and then create an pictures upload functionality from the front end to the users
97: [04:09:53] <robbiea> gotcha
98: [04:10:12] <Admonish> righto
99: [04:10:16] <robbiea> your problem is that Controller inherits at the last level from Object, which defines create() as a static method
100: [04:10:20] <naveed> Admonish: yes you are right... I am talking about frontend routing controlls
101: [04:11:46] <robbiea> naveed: you might be able to just use create anyway, as long as you define it as a static method. If I were you I'd use a different action name, but it *might* work: https://eval.in/555006
102: [04:11:47] <naveed> robbiea: Yes you are right.... So, I am learning the limitations of the framework as well....first as it will help you to select the framework for the project requirements
103: [04:14:47] <naveed> robbie: Yes, I can override it but then I can't sent the response back while accessing from the url....? Your example is using in other context.. thanks for your help.....I am accepting the SS limitations and is moving forward
104: [04:14:52] <naveed> :)
105: [04:17:03] <robbiea> what do you mean? you should still be able to typehint SS_HTTPRequest if you need it, otherwise you can access the request via $this->getRequest()
106: [04:17:11] <robbiea> similarly with $this->getResponse()
107: [04:21:27] * novaweb has joined #silverstripe
108: [04:21:49] <novaweb> Hey Stripers!
109: [04:22:01] <novaweb> Quick one, just tapping in to do an update.
110: [04:23:49] <novaweb> Have a DataObject utilising getTitle elsewhere in the codebase. getTitle is set to $this->code; now trying to declare getFullTitle and I am getting the value set in getTitle instead of what exists in the database declared by $db ( 'Title' )
111: [04:24:30] <novaweb> how to traverse through to $db values?
112: [04:26:37] * spronk quit (Quit: I may need a longer sleep timer...)
113: [04:26:47] <novaweb> getField
114: [04:26:48] <novaweb> thank you
115: [04:26:51] <novaweb> myself
116: [04:26:57] <novaweb> for reading DataObject.php
117: [04:26:59] <novaweb> ^^
118: [04:30:08] * robbiea quit (Remote host closed the connection)
119: [04:33:56] * robbiea has joined #silverstripe
120: [04:43:10] * micmania1 has joined #silverstripe
121: [04:48:23] <vitaly_> Is it easy to build a system with SilverStripe which will have user specific files with secure urls to access them so no other users can download them?
122: [04:51:07] * BrewNaked has joined #silverstripe
123: [04:51:43] <ss23> vitaly_: there's a module for that, so it's easy if you use the module :)
124: [04:52:00] <ss23> Doing it yourself is possible, and some would say easy, but lots of people make mistakes, which can mean you think it's secure, but it's not
125: [04:52:28] <vitaly_> ss23: Can you please give me the name of the module? :)
126: [04:52:35] <ss23> secureassets, iirc
127: [04:52:47] <vitaly_> ss23: cheers
128: [04:52:51] <vitaly_> will check it
129: [04:53:28] * novaweb quit (Remote host closed the connection)
130: [04:55:39] * BrewNaked quit (Ping timeout: 250 seconds)
131: [05:06:42] * mahfuz quit (Ping timeout: 250 seconds)
132: [05:07:08] * naveed quit (Ping timeout: 250 seconds)
133: [05:11:15] * robbiea quit (Ping timeout: 250 seconds)
134: [05:11:34] <Admonish> How do you add a new tab to a modelAdmin? is it possible through getEditForm()
135: [05:13:42] <Admonish> I got this error when I tried to create a new tab with findOrMakeTab('MyItems','My Items');
136: [05:13:53] <Admonish> [User Error] FieldList::addFieldToTab() Tried to add a tab to object 'FieldList' - 'MyItems' didn't exist.
137: [05:14:39] <Admonish> From what I understand, findOrMakeTab is supposed to make the tab if its not found........soooo
138: [05:19:28] * Admonish quit (Ping timeout: 265 seconds)
139: [05:23:31] <Tanger> Is there an extension point or overrideable method that only gets called once on record creation? I’m trying to add items by default to a many_many relationship and publish them. requiredefultRecords only gets called on build and populatedefaults gets called too often. __construct seems to fail when just navigating around the site tree as well
140: [05:24:42] <micmania1> Tanger: afraid not. You can hook into onBeforeWrite and check if $this->record[‘ID’] has a value greater than 0.
141: [05:32:36] <Tanger> micmania1: Thanks, will give that a shot
142: [05:46:06] * wmk has joined #silverstripe
143: [05:48:04] <EasyCo> Hey team, has anyone attempted to allow Silverstripe to work off a different model & controller depending on the theme being used?
144: [05:51:43] * micmania1 quit (Quit: micmania1)
145: [05:54:05] * Admonish has joined #silverstripe
146: [05:54:17] <Admonish> Hopefully I didn't miss the answer to my question
147: [05:54:21] <Admonish> I had to go eat
148: [05:55:10] <EasyCo> Doesn't look like it
149: [05:55:25] <Admonish> ahh ok
150: [05:55:30] <Admonish> Thanks :S
151: [05:55:33] <Admonish> lol
152: [06:12:53] <wmk> EasyCo, normally it's vice versa
153: [06:13:20] <wmk> EasyCo, what do you want to acchieve?
154: [06:35:45] * Qgosh has joined #silverstripe
155: [06:36:39] <Qgosh> hey guys, i have a kiosk that is comprised of a handful of components that all need to be tracked and managed, i initially modelled this as the kiosk having 1 of each component type, with a specialization (i.e. modem, screen, etc)
156: [06:36:57] <Qgosh> but the problem i found with that was there was no convenient navigation between the parts, so i think i did that wrong
157: [06:37:10] <Qgosh> now i'm thinking each component type has one kiosk
158: [06:37:32] <Qgosh> not sure if i'm about to just fuck up in the same but opposite way
159: [06:37:51] <Qgosh> ideally we will be able to capture all the weird edge cases and specializations each component gets over time
160: [06:38:04] <Qgosh> and also move some of the more expensive parts between kiosks during their life span
161: [06:38:50] <Qgosh> i guess i'm not sure what the best wya to model this is, i was thinking maybe just a gridfield that you add n items of type component to, and can then move them with the relationship editor to other kioks
162: [06:44:00] <Tanger> Admonish: Try using Tab::create(‘TabName’), then $fields->insertBefore or $fields->insertAfter
163: [06:45:35] <Admonish> Thanks for the suggestion
164: [06:45:38] <Admonish> I will try it out
165: [06:47:59] <Admonish> Tanger Would I insert the tab after another tab?
166: [06:48:20] <Admonish> I mean can insertBefore or insertAfter do that?
167: [06:48:32] <Tanger> Admonish: Yeah, insert it before or after your original tab that exists
168: [06:48:40] <Admonish> ok
169: [06:48:58] <Tanger> Admonish: Also, if you add another managed model for your modeladmin, it automatically creates another tab
170: [06:49:05] <Tanger> Depends on what you want on the other tab
171: [06:50:07] <Admonish> Yeah i wanted a tab not managed by a separate model
172: [06:50:11] <Tanger> Qgosh: Look up polymorphic lists in SilverStripe
173: [06:50:46] <Tanger> Qgosh: It might help you keep an iteratable list with a few common functions
174: [06:50:54] <Tanger> *polymorphic functions
175: [06:54:51] * Stomach quit (Quit: zzz)
176: [06:54:52] <Qgosh> the logic is almost identical for all the components as far as service history and site related details go
177: [06:55:14] <Qgosh> but there are then the odd bit of decoration, like a sim card imi or some brightness requirement for the lcd etc
178: [06:55:50] <Qgosh> and not all of the kiosks have the same components, so my initial approach was silly anyway i think
179: [06:56:10] <Qgosh> never heard of polymorphic functions, i'm mostly focused on trying to make something people wont find a hassle to use
180: [06:58:14] <Tanger> Qgosh: Polymorphic objects all descend from a common ancestor and share a set of functions that each one has to have
181: [06:58:33] <Tanger> For example, every type of component could have a “checkDetails” method
182: [06:58:40] <Tanger> And then each type could have it’s own implementation
183: [06:59:09] <Tanger> So if you called that on different types of kiosks, they would each execute their own logic
184: [06:59:48] <Tanger> *different types of components
185: [07:00:01] <Tanger> I *think* this is what you want, but I’m not 100% sure.
186: [07:01:49] <Admonish> $myItemsTab = Tab::create('MyItems');
187: [07:01:53] <Admonish> $fields->insertBefore('StoreItem',$myItemsTab);
188: [07:01:55] <Admonish> $myItemsTab = Tab::create('MyItems');
189: [07:01:58] <Admonish> $fields->insertBefore('StoreItem',$myItemsTab);
190: [07:02:03] <Admonish> woops
191: [07:02:09] <Admonish> I hate IRC pasting
192: [07:02:12] <Admonish> any way
193: [07:02:13] <Firesphere> Hello folks
194: [07:02:28] <Firesphere> Admonish: Preferably use something like http://sspaste.com
195: [07:02:35] <Firesphere> when you want to paste some code.
196: [07:02:57] <Admonish> Tanger I tried the aboce code but nothing showed up
197: [07:03:32] <Admonish> Firesphere I usually do use sspaste or a gist, however this code sample was rather small so I thought it should be ok
198: [07:03:41] <Tanger> Admonish: What is that tab listing?
199: [07:04:08] <Admonish> All my tabs show up accept for the MYItems tab
200: [07:04:56] <Admonish> Do you have to put fields into a tab before it will show up?
201: [07:06:28] <Tanger> Admonish: Not sure, couldn’t hurt to bang a dummy literal field onto it
202: [07:09:01] <Tanger> Also, what data are you displaying on that tab?
203: [07:09:14] <Tanger> Your new one?
204: [07:09:43] <Admonish> I am basically having two tabs display data from the same model but filtered completely different
205: [07:10:05] <Admonish> Just found out what the issue is
206: [07:10:35] <Admonish> I guess the guess I had the name of the gridfield rather then the name of the tab
207: [07:10:53] <Admonish> when I added dummy literal field it displays right above the grid
208: [07:11:23] <Admonish> How would one retrieve the tab name
209: [07:11:24] <Admonish> ?
210: [07:12:56] <Admonish> I had just assumed that the tab name would be the same as the modelName but I guess thats what the grid is named
211: [07:13:24] <wmk> any testing experts around? any possibiltiy to publish fixtures automatically?
212: [07:14:37] <Tanger> Admonish: Hmmm, yeah, it seems it grabs the gridfield instead of the tab
213: [07:19:39] * arnhoe has joined #silverstripe
214: [07:25:30] * guci0 has joined #silverstripe
215: [07:25:31] <guci0> Hi there!
216: [07:29:55] * Admonish quit (Quit: Has left the building)
217: [07:34:51] * elgabbu quit (Quit: Page closed)
218: [07:35:20] * elgabbu has joined #silverstripe
219: [07:45:41] <wmk> guci0, ☺/
220: [07:49:14] * marvanni has joined #silverstripe
221: [07:53:47] * marvanni quit (Ping timeout: 260 seconds)
222: [07:54:46] <guci0> wmk: 😀
223: [07:55:02] <wmk> oh... xchat has problems with unicodes?
224: [08:01:01] * marvanni has joined #silverstripe
225: [08:02:51] * Teddy__ quit (Ping timeout: 250 seconds)
226: [08:05:55] * slievr__ has joined #silverstripe
227: [08:08:27] <guci0> that's was a test :)
228: [08:16:30] * elgabbu quit (Ping timeout: 250 seconds)
229: [08:17:38] <wmk> guci0, smiley is also in ascii, you don't need an emoji for that
230: [08:28:42] * BrewNaked has joined #silverstripe
231: [08:33:28] * BrewNaked quit (Ping timeout: 264 seconds)
232: [08:48:44] * agent44 has joined #silverstripe
233: [08:54:18] * agent44 quit (Ping timeout: 276 seconds)
234: [09:01:44] * agent44 has joined #silverstripe
235: [09:01:51] * Pyromanik has joined #silverstripe
236: [09:01:56] <Pyromanik> Happy birthday ss23
237: [09:01:59] <Pyromanik> :>
238: [09:21:08] <marvanni> should is be possible to run install.php from cli?
239: [09:21:13] <marvanni> or sake install.php
240: [09:25:35] * MrG has joined #silverstripe
241: [09:25:59] * MrG is now known as Guest31397
242: [09:27:17] <Guest31397> How can I login as someone else on a site if I am admin and don´t know the password of a user (userswitcher addon is not a good option as the site has several 100 members)
243: [09:31:09] * Tanger quit (Quit: Tanger)
244: [09:31:31] <Pyromanik> marvanni, I don't think so, no.
245: [09:31:48] <Pyromanik> although, depends on how you mean 'should'
246: [09:31:59] <Pyromanik> if you mean 'can I' then I don't think so, no.
247: [09:32:12] <Pyromanik> if you mean 'I think you should be able to' then I'm undecided.
248: [09:32:20] <marvanni> I ment like ‘Out of the box’
249: [09:32:28] <Pyromanik> yeah but now, or in the future?
250: [09:32:30] <marvanni> with a q and a console or something
251: [09:32:35] <marvanni> now
252: [09:32:43] <Pyromanik> nup.
253: [09:32:50] <Pyromanik> no point.
254: [09:32:55] <Pyromanik> anyway.
255: [09:33:13] * rareearth has joined #silverstripe
256: [09:33:35] <Pyromanik> just sake dev/build after echo -e "<?php my config stuff;" > _ss_environment.php
257: [09:34:31] <marvanni> hm
258: [09:34:34] <rareearth> Hi Need help about uploading my site logo, instead of jsut showing the site name
259: [09:34:50] <marvanni> Im working at this
260: [09:34:52] <marvanni> https://github.com/axyr/silverstripe-console
261: [09:34:56] <Pyromanik> rareearth, tehre is no logo
262: [09:35:05] <Pyromanik> you make your own templates. It's not wordpress.
263: [09:35:13] <marvanni> And im looking for a way to use this modue without any need to leaving the command line
264: [09:35:23] <Pyromanik> unless you mean in the admin, in which case you can use CSS to alter it
265: [09:35:29] <rareearth> yes I have a logo, but how do I upload lt.
266: [09:35:37] <Pyromanik> I don't understand rareearth
267: [09:35:46] <Pyromanik> are you a site developer or a site owner?
268: [09:36:20] <rareearth> do i have to add some script somewhere for my site logo to show
269: [09:36:40] <rareearth> I am developing my site, but I am not a programmer
270: [09:37:08] <Pyromanik> Well, that must be a good challenge for you :) You can find ways to do this with the documentation and tutorials
271: [09:37:16] <Pyromanik> docs.silverstripe.org
272: [09:37:28] <rareearth> ok, will try
273: [09:37:39] <Pyromanik> there is a tutorials section, it is very worthwhile and I think you'll get a lot out of it since you're not a programmer by trade.
274: [09:38:03] <rareearth> sure, thanks I will look it up
275: [09:38:47] * rareearth quit (Quit: Page closed)
276: [09:42:05] <marvanni> aaannnddd he moved to wordpress ;)
277: [09:42:19] * Embraden has joined #silverstripe
278: [09:42:56] <Pyromanik> keke marvanni
279: [09:45:19] <marvanni> what is better : a executatble in webroot or a cli only accessible controller?
280: [09:46:08] <marvanni> sort of executable …
281: [09:46:20] <Pyromanik> idk, sounds more like a question for ss23
282: [09:47:40] <Pyromanik> I think I'd go for CLI only controller
283: [09:47:42] <Pyromanik> but...
284: [09:47:44] * Pyromanik shrugs
285: [09:48:08] <Pyromanik> if I had an executable... well I guess it'd be ok if it wasn't ... permissions and stuff
286: [09:48:21] <Pyromanik> but then you get discrepencies with files/assets it makes vs what webserver can read.
287: [09:48:22] <Pyromanik> et .
288: [09:48:25] <Pyromanik> etc*
289: [09:50:24] <marvanni> it should be protected with htaccess or web.config. and it eliminates the need to use sake in root or in usr/bin
290: [09:50:46] <Pyromanik> mm, I guess.
291: [09:50:57] <Pyromanik> I dunno when it comes to security around that sorta thing.
292: [09:51:20] <Pyromanik> anyway, g'nite
293: [09:51:25] * Pyromanik quit (Quit: Leaving)
294: [10:17:42] * BrewNaked has joined #silverstripe
295: [10:21:37] <gamma> If I'm running Silverstripe 3.1.12, should I upgrade to 3.1.18 before considering upgrading to 3.3.1, or should I just go straight to 3.3.1?
296: [10:22:19] * BrewNaked quit (Ping timeout: 250 seconds)
297: [10:22:26] <marvanni> 12 => 18 is a minor update. I think you can skip it
298: [10:22:33] <gamma> Grand.
299: [10:22:41] <marvanni> always backup though…
300: [10:22:57] <gamma> That's the plan.
301: [10:23:36] <marvanni> from 3.1 to 3.3 is quit a leap . expect a lot of depcration notices and the need to set visibilty of properties and methods
302: [10:24:23] <marvanni> are you using a IDE that spots @deprecated tags?
303: [10:28:50] <wmk> gamma, if you have your app tested they should spot a lot for you ;)
304: [10:47:41] <kinglozzer> Hmm, designer has done page titles like "About [our company]" where the bit in square brackets is a different colour
305: [10:48:18] <kinglozzer> Usually I just add an extension to StringField and replace [ and ] or something... does anyone have any other approach?
306: [10:48:57] <kinglozzer> I don't really know what else you could do... I guess a single line HTMLEditorField with just a format dropdown would be ideal :P
307: [10:52:54] <wmk> kinglozzer, it won't...
308: [10:54:18] <wmk> what module could i take as boilerplate for using an external login service?
309: [10:54:20] <cloph_away> Guest31397: if you wan to do evil stuff, go to database, copy that user's hash/salt info and replace with yours, then login as that user, then change back credentials in db. - but you should think really hard about it...
310: [10:55:21] <marvanni> kinglozzer I would add a second ‘ColorizedTitle’ fields
311: [10:55:44] <marvanni> so they can leave it out if the want
312: [10:55:45] <marvanni> i hate those designers. but yeah, it happens
313: [10:56:07] <marvanni> you could add a dropdown with predefined colors or a color picker to it
314: [10:59:44] <kinglozzer> marvanni: Well the colour is always the same and defined in the theme, so they don't need to change that (which is a relief!)
315: [10:59:57] <kinglozzer> I'm wondering if I can do it with a markdown editor or something
316: [11:00:02] <wmk> kinglozzer, extension to StringField and call the magic method in the template
317: [11:00:49] <wmk> didn't i do an extension to replace (tm) with the appropirate tag..?
318: [11:01:04] <marvanni> or allow a seperator like *** and explode the title in getTitle() and apply the spans to it
319: [11:02:28] <kinglozzer> wmk: Yeah that's the way I've done it in the past, I just don't think it's that great for the CMS user :/
320: [11:02:49] <kinglozzer> Never mind, I'll just add a clear description to the field. A problem for another day :)
321: [11:02:55] <wmk> ;)
322: [11:04:49] * ss23_ has joined #silverstripe
323: [11:06:08] * ss23 quit (Ping timeout: 260 seconds)
324: [11:07:33] * Audlex quit (Remote host closed the connection)
325: [11:07:54] * Audlex has joined #silverstripe
326: [11:10:48] * EasyCo quit (Ping timeout: 276 seconds)
327: [11:11:09] * Audlex quit (Remote host closed the connection)
328: [11:11:57] * Audlex has joined #silverstripe
329: [11:18:42] * EasyCo has joined #silverstripe
330: [11:32:16] * agent44 quit (Ping timeout: 264 seconds)
331: [11:32:37] * agent44 has joined #silverstripe
332: [11:56:25] * DimiStripe quit (Ping timeout: 250 seconds)
333: [12:06:33] * BrewNaked has joined #silverstripe
334: [12:10:48] * BrewNaked quit (Ping timeout: 246 seconds)
335: [12:24:32] * DimiStripe has joined #silverstripe
336: [12:31:56] * agent44 quit (Quit: zzz)
337: [12:36:49] * agent44 has joined #silverstripe
338: [12:40:54] * UndefinedOffset has joined #silverstripe
339: [12:43:23] <marvanni> anyone an idea how to catch a file not found error?
340: [12:53:19] * EasyCo quit (Quit: Connection closed for inactivity)
341: [12:54:59] <cloph_away> add a error page of type 404 to your site?
342: [12:58:17] <kinglozzer> marvanni: onBeforeHttpError404() in an extension applied to the controller?
343: [12:58:31] <kinglozzer> If you mean in /assets/, then you'll need some .htaccess magic
344: [12:59:57] <kinglozzer> Or maybe not... not sure
345: [13:04:23] <marvanni> I needed to catch a file not found php error
346: [13:04:44] <marvanni> but I fixed it by checking the is_file() from manifest
347: [13:06:02] <marvanni> I;m not finished, but I really think this is gonna be very nice :
348: [13:06:03] <marvanni> https://github.com/axyr/silverstripe-console
349: [13:18:10] <wmk> console sounds like php-shell...?
350: [13:19:37] <marvanni> more like how laravel has done it
351: [13:19:51] <wmk> why not "supersake"...?
352: [13:19:59] <wmk> as you mention it in the readme
353: [13:20:01] <marvanni> with generators, maintenance commands etc
354: [13:20:17] <wmk> something like that anselm shell commands?
355: [13:20:18] <marvanni> I have not made a finan decission on the name
356: [13:21:21] <marvanni> but console is generic enough to change the ‘access file’ that runs the commands after wards
357: [13:21:45] <wmk> supersake sounds like "give a litle bit of your love to me"
358: [13:21:50] <marvanni> even the developer can decide to use $php silverbullet do:command
359: [13:22:01] <marvanni> or super sateh
360: [13:22:18] <wmk> well, i love sake to be a shell script. no $php to call it
361: [13:22:40] <marvanni> im nog really happy with name either, but there is already the build in command sake
362: [13:23:07] <marvanni> true
363: [13:23:40] <marvanni> $ sake console my:command works also if sake is installed
364: [13:24:21] <marvanni> but i want to have the module works out of the box, without to many actions after composer require
365: [13:24:55] <marvanni> but im afraid that is not gonna work
366: [13:26:07] <marvanni> maybe just use ss (silver stripe / super sake) as a entry script
367: [13:26:18] <marvanni> ss console is pretty easy typing
368: [13:39:29] <wmk> well... ss isn't the best name for germans i guess
369: [13:42:49] <kinglozzer> wmk: We had a client complain once because we used an email address that started 'ss@' :P
370: [13:48:30] <marvanni> yeas I had that i the Netherlands as wel
371: [13:55:17] * BrewNaked has joined #silverstripe
372: [13:59:39] * BrewNaked quit (Ping timeout: 246 seconds)
373: [14:12:57] * muskie9 has joined #silverstripe
374: [14:18:46] * qlex has joined #silverstripe
375: [14:18:58] * qlex says hi
376: [14:19:11] <qlex> i'm having problems exporting userform module entries into csv
377: [14:20:39] <qlex> did anyone use this feature? its more handy than exporting submittedformfield as this table breaks into several rows - one entry to that form
378: [14:46:47] * BrewNaked has joined #silverstripe
379: [15:01:54] * agent44 quit (Quit: zzz)
380: [15:02:51] * qlex has left #silverstripe
381: [15:04:54] * agent44 has joined #silverstripe
382: [15:13:44] * arnhoe quit (Ping timeout: 244 seconds)
383: [15:46:06] * the_sandman has joined #silverstripe
384: [15:47:35] * the_sandman quit (Client Quit)
385: [15:48:16] <marvanni> $php supersake down : put website into maintenance mode
386: [15:49:00] <wmk> neat.
387: [16:00:14] * UndefinedOffset quit (Quit: Leaving.)
388: [16:19:51] * UndefinedOffset has joined #silverstripe
389: [16:42:11] * travis-ci has joined #silverstripe
390: [16:42:11] <travis-ci> dhensby/silverstripe-framework#699 (3.1 - 50c4c38 : Daniel Hensby): The build has errored.
391: [16:42:12] <travis-ci> Change view : https://github.com/dhensby/silverstripe-framework/compare/863b737717d3...50c4c387ae26
392: [16:42:12] <travis-ci> Build details : https://travis-ci.org/dhensby/silverstripe-framework/builds/123957901
393: [16:42:12] * travis-ci has left #silverstripe
394: [16:42:36] * wmk quit (Ping timeout: 244 seconds)
395: [16:44:40] * krofek__ quit (Quit: Leaving)
396: [16:46:09] * marvanni quit (Quit: marvanni)
397: [17:30:38] * marvanni has joined #silverstripe
398: [17:31:31] * Liquide has joined #silverstripe
399: [17:42:49] * ss23_ is now known as ss23
400: [17:52:28] <marvanni> If eomeone can say something usefull about this…. :
401: [17:52:29] <marvanni> https://github.com/axyr/silverstripe-console/issues/11
402: [17:52:31] <marvanni> s
403: [17:54:03] * gelignite has joined #silverstripe
404: [17:57:04] * agent44 quit (Quit: zzz)
405: [18:16:03] * x4j5 has joined #silverstripe
406: [18:38:57] * wmk has joined #silverstripe
407: [18:43:24] * wmk quit (Ping timeout: 260 seconds)
408: [18:47:52] * slievr__ quit (Ping timeout: 264 seconds)
409: [19:12:15] * BrewNaked quit (Remote host closed the connection)
410: [19:37:04] * x4j5 quit (Ping timeout: 240 seconds)
411: [19:41:21] * Stomach has joined #silverstripe
412: [19:45:29] * Pyromanik has joined #silverstripe
413: [19:46:32] <Pyromanik> have good day ss23 ?
414: [19:46:46] <ss23> Same as usual :P
415: [19:46:53] <ss23> Forgot it was my birthday till someone said happy birthday
416: [19:46:54] <Pyromanik> was burfdey?
417: [19:46:56] <Pyromanik> lulz
418: [19:47:01] <Pyromanik> get my message?
419: [19:47:37] <ss23> On IRC? yeah
420: [19:47:40] <Pyromanik> I remembered locksport last night, then I came home to read it was on the 6th, lulz.
421: [19:47:44] <Pyromanik> yeh, cool :>
422: [19:47:53] <ss23> haha, yeah, locksport is like first week of the month
423: [19:48:29] <Pyromanik> ah cool
424: [19:48:56] <Pyromanik> how is unemployment treating you?
425: [19:49:07] <Pyromanik> run out of things to bake yet? xD
426: [19:49:11] <ss23> heh
427: [19:49:12] <ss23> Yes!
428: [19:49:17] <ss23> I can bake bread faster than eat it :(
429: [19:49:20] <Pyromanik> done cake?
430: [19:49:25] <ss23> Naw
431: [19:49:26] <ss23> cbf making cake
432: [19:49:28] <Pyromanik> biscuits?
433: [19:49:34] <ss23> biscuits and cake aren't even that delicious
434: [19:49:37] <ss23> I'd rather eat bread
435: [19:49:40] <Pyromanik> truth.
436: [19:49:57] <Pyromanik> make that sourdough stuff the germans love
437: [19:49:59] <Pyromanik> is good
438: [19:50:07] <ss23> mmm
439: [19:50:14] <ss23> friend has a starter that's been going for a year or so
440: [19:50:19] <ss23> Should grab it at some potin
441: [19:50:37] <Pyromanik> starter?
442: [19:50:47] <ss23> a sourdough starter
443: [19:50:51] <ss23> wild yeast n shit man
444: [19:51:01] <Pyromanik> ah yeh
445: [19:51:04] <Pyromanik> sounds pretty hardcore
446: [19:51:09] <ss23> yeah :D
447: [19:51:18] <Pyromanik> true #thugloaf
448: [19:51:25] <Pyromanik> as you put it :P
449: [19:51:33] <ss23> XD
450: [19:52:23] <Pyromanik> I've discovered a new pet hate
451: [19:52:29] <Pyromanik> Capitals
452: [19:52:29] <ss23> Oh?
453: [19:52:34] <Pyromanik> at the beginning of a directory name.
454: [19:52:38] <Pyromanik> On unix.
455: [19:52:41] <ss23> heh
456: [19:52:43] <Pyromanik> *nix.
457: [19:52:46] <ss23> I don't often use them either
458: [19:52:54] <ss23> /Etc/Mysql/
459: [19:52:54] <ss23> :D
460: [19:53:06] <Pyromanik> cd sites <error> *FUCK!* cd Sites/fuckyouuuuuuuuuuu
461: [19:53:36] <Pyromanik> I might become a true keyboard warrior
462: [19:53:54] <Pyromanik> wander the wasteland with my weapon of choice strapped to my back.
463: [19:54:09] <Pyromanik> nothing but my inutition and wits to survive.
464: [19:55:03] <Pyromanik> if I could whitehat I could use cool catchphrases like "Slicing through setups, one shitty crypto at a time!"
465: [19:55:14] <Pyromanik> but I can't :(
466: [19:57:32] <Pyromanik> anyway, times ta gan
467: [19:57:37] <Pyromanik> glhf
468: [19:57:47] <Pyromanik> sleeping, or whatever the fuck it is you're about to do
469: [19:57:49] <Pyromanik> xD
470: [19:57:54] * Pyromanik quit (Quit: Leaving)
471: [20:18:09] * qlex has joined #silverstripe
472: [20:18:13] * qlex says hi
473: [20:18:27] <qlex> did anyone of you stumble upon the guys behind http://themestripe.com/ ?
474: [20:18:53] <qlex> i wanted to quickly replace current ss-powered page and was thinking about using one of those themes, but they dont respond ?
475: [20:29:49] * UndefinedOffset quit (Quit: Leaving.)
476: [20:32:56] * robbiea has joined #silverstripe
477: [20:50:00] <marvanni> $php supersake security:createmember some@emailaddress.com
478: [21:01:07] * BrewNaked has joined #silverstripe
479: [21:02:39] * robbiea quit (Remote host closed the connection)
480: [21:05:35] * BrewNaked quit (Ping timeout: 244 seconds)
481: [21:15:23] * robbiea has joined #silverstripe
482: [21:21:58] * micmania1 has joined #silverstripe
483: [21:28:09] * phorloop has joined #silverstripe
484: [21:36:06] * marvanni quit (Quit: marvanni)
485: [21:41:15] * robbiea quit (Remote host closed the connection)
486: [21:43:42] * robbiea has joined #silverstripe
487: [21:44:46] * qlex has left #silverstripe
488: [21:54:39] * UncleCheese has joined #silverstripe
489: [21:57:56] * BrewNaked has joined #silverstripe
490: [22:04:53] * Stomach quit (Ping timeout: 276 seconds)
491: [22:07:46] * Stomach has joined #silverstripe
492: [22:08:14] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
493: [22:11:30] * micmania1 quit (Quit: micmania1)
494: [22:15:35] * EasyCo has joined #silverstripe
495: [22:21:01] * micmania1 has joined #silverstripe
496: [22:53:28] * spronk has joined #silverstripe
497: [22:54:52] * novaweb has joined #silverstripe
498: [23:08:01] * Colin[pi] has joined #silverstripe
499: [23:08:05] <Colin[pi]> what
500: [23:13:32] * novaweb quit (Remote host closed the connection)
501: [23:13:37] * Colin[pi] quit (Read error: Connection reset by peer)
502: [23:24:15] * Stomach quit (Quit: zzz)
503: [23:27:05] * phorloop_ has joined #silverstripe
504: [23:29:57] * phorloop quit (Ping timeout: 240 seconds)
505: [23:30:34] * muskie9 quit (Quit: My Mac has gone to sleep. ZZZzzz…)
506: [23:38:00] * DimiStripe quit (Ping timeout: 244 seconds)

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