#silverstripe IRC Log

IRC log for 1 May 2013

All timestamps are in UTC.

1: [00:35:00] * simon_w quit (Quit: Leaving)
2: [00:36:00] <unsignedint> terryapodaca: have narrowed it down to the <fieldset> right inside your "form#SearchForm_SearchForm". If you display:none that fieldset, the overflow issue appears. If you display:none "div#Search" the overflow issue remains
3: [00:37:00] <unsignedint> s/appears/disappears
4: [00:38:00] * UncleCheese has joined #silverstripe
5: [00:39:00] <unsignedint> terryapodaca: issue can be fixed by setting overflow:hidden on your "form#SearchForm_SearchForm"
6: [00:40:00] <terryapodaca> and thanks
7: [00:40:00] <terryapodaca> unsignedint: let me give that a try
8: [00:41:00] * DesignerX has joined #silverstripe
9: [00:41:00] <unsignedint> no problem, let me know how you get on
10: [00:42:00] <terryapodaca> unsignedint: that's perfect! how in the world did you even find that?
11: [00:42:00] <terryapodaca> FrozenFire: can you check both FF and Chrome on Linux?
12: [00:43:00] * simon_w has joined #silverstripe
13: [00:44:00] <unsignedint> terryapodaca: well I started setting display:none on all the elements and observing when the overflow issue appeared/disappeared to narrow it down to a group of elements. Once I found out the group (the search form) I just set overflow:hidden on the group and the problem went away
14: [00:44:00] <unsignedint> (firebug is my friend)
15: [00:44:00] <terryapodaca> pure awesomeness!
16: [00:45:00] <terryapodaca> i owe you some beers if I am ever in your area
17: [00:45:00] <unsignedint> haha sure :) im in napier
18: [00:49:00] <irogue> in that case i don't think you're gonna get those beers :P
19: [00:49:00] <terryapodaca> you never know...recently divorced so now I can travel where I want to go, and NZ is one of those places.
20: [00:50:00] <DesignerX> hi guys , when should a developer move siyes to a VPS or Deticated server ? at how many page views per day ?
21: [00:50:00] <DesignerX> move sites *
22: [00:50:00] <terryapodaca> I owe lots of you guys some beers for all the help over the last 3-5 years!
23: [00:51:00] <terryapodaca> especially with SS3+
24: [00:51:00] <irogue> yes, i will most definitely say that
25: [00:51:00] <terryapodaca> everyone will say from the beginning or always use a dedicated server
26: [00:51:00] <irogue> unless of course it's just a little blog or something
27: [00:52:00] <simon_w> DesignerX, start on a VPS. Is so much easier to then scale.
28: [00:52:00] <simon_w> Every site should!
29: [00:52:00] <unsignedint> yep most definitely
30: [00:52:00] <DesignerX> sounds like a website with 2500 pages & good customer base should start on a VPS ?
31: [00:52:00] <unsignedint> DesignerX: I would do it when the shared hosting is too slow, depending on the site that could be at 100 hits a day or 30,000
32: [00:53:00] <terryapodaca> http://thefray.stricklandapps.com/ development, very slow site
33: [00:53:00] <terryapodaca> DesignerX I'll give you a good example so pay attention to load times of this site...
34: [00:53:00] <unsignedint> or dedicated server
35: [00:53:00] <terryapodaca> development on a hosted, prod on a Dedicated
36: [00:53:00] <unsignedint> simon_w: My shared hosting allows SSH access and provides modern PHP, so its not too much different from a VPS
37: [00:54:00] <terryapodaca> http://www.thefray817.com/ production site and is much much faster and both sites are pretty small and static
38: [00:54:00] <terryapodaca> static as in not much changes
39: [00:55:00] <DesignerX> look great .. right now doing research .. I already have VPS, but looking for more info to see if I am going to early with the VPS
40: [00:55:00] <simon_w> unsignedint, so did mine. I was only on it because I couldn't afford a VPS.
41: [00:55:00] <simon_w> and it's still a lot different from a VPS
42: [00:56:00] <DesignerX> UncleCheese: $10 a month ? with Cpanel ?
43: [00:56:00] <unsignedint> simon_w: who was your shared host?
44: [00:56:00] <unsignedint> simon_w: fair enough. VPS's are pretty cheap if you dont need a NZ-based one though, my seedbox is only $10 US/month (512mb ram, 2TB bandwidth, 200GB diskspace)
45: [00:57:00] <unsignedint> DesignerX: $10 for a VPS. Its a linux box with ssh access, no panel required
46: [00:57:00] <DesignerX> simon_w: true, this is my next step, more command line & Git
47: [00:57:00] <DesignerX> I mean unsignedint -<
48: [00:57:00] <simon_w> DesignerX, you really should learn something other than cpanel
49: [00:57:00] <unsignedint> simon_w: ahh. im using bluehost, only complaint is theyre slow
50: [00:57:00] <UncleCheese> hmm?
51: [00:57:00] <DesignerX> wrong person ..
52: [00:57:00] <simon_w> unsignedint, z-host, resold through mesh|net
53: [00:58:00] <priithansen> with VPS one needs to maintain theyr own webserver software too?
54: [00:59:00] <simon_w> priithansen, depends on the host, but that's really really easy
55: [00:59:00] <unsignedint> *if specified
56: [00:59:00] <unsignedint> DesignerX: makes deploying far better :) my deployment scripts essentially SSH into the box, do a git checkout or pull, sync the database with my local one of specified and run /dev/build
57: [01:00:00] <unsignedint> priithansen: "apt-get install apache2" if you have a debian-based distro on your VPS. theres your webserver
58: [01:00:00] <UncleCheese> does $url_handlers go in _config in 3.1?
59: [01:00:00] <simon_w> UncleCheese, private array on the controller
60: [01:00:00] <priithansen> simon_w: some sort of ready made distros for that?
61: [01:00:00] <UncleCheese> ok, so there are some static vars that will stick around
62: [01:01:00] <simon_w> priithansen, any of them? Especially debian ones
63: [01:01:00] <simon_w> UncleCheese, well, you could do it in your _config if you really want to
64: [01:01:00] <UncleCheese> and all the ORM vars will go in the _config now, too
65: [01:02:00] <simon_w> UncleCheese, just because they can doesn't mean they should
66: [01:02:00] <priithansen> Hm I'll stick with http://www.webfaction.com/
67: [01:03:00] <UncleCheese> what concerns you about it? just the security risk of storing that stuff in text?
68: [01:03:00] <UncleCheese> oh, ok.. i heard on here that they were going to start promoting that
69: [01:03:00] <UncleCheese> and it struck me as odd
70: [01:04:00] <simon_w> You're defining the model in the config system, not the model
71: [01:05:00] * popeshoe quit (Ping timeout: 256 seconds)
72: [01:05:00] <UncleCheese> yeah, true.. although other ORMs have set the precedent. Doctrine and Propel both have a shema.yml or something of that nature
73: [01:06:00] <UncleCheese> the thing i don't like about it is when you're working in the code, you don't know what properties you have available without referring to another file
74: [01:09:00] <unsignedint> ^ thats the joys of working in a dynamically typed language
75: [01:13:00] <simon_w> Oh, you'll have that problem in any language with the fields defined separately from where you're working
76: [01:30:00] * priithansen quit (Quit: priithansen)
77: [01:34:00] * Pyromanik has joined #silverstripe
78: [01:35:00] * terryapodaca has left #silverstripe
79: [01:53:00] * popeshoe has joined #silverstripe
80: [02:06:00] * Emil_Blume1 has joined #silverstripe
81: [02:07:00] * Emil_Blume quit (Ping timeout: 264 seconds)
82: [02:46:00] * Emil_Blume1 quit (Quit: Leaving.)
83: [03:13:00] * gelignite quit (Quit: http://bit.ly/nkczDT)
84: [03:18:00] * simon__w has joined #silverstripe
85: [03:20:00] * simon_w quit (Ping timeout: 248 seconds)
86: [03:31:00] * mobiusnz quit (Quit: Leaving.)
87: [03:45:00] * cloph_away has joined #silverstripe
88: [03:46:00] * cloph quit (Ping timeout: 260 seconds)
89: [03:56:00] * SightUnseen has left #silverstripe
90: [03:56:00] * SightUnseen has joined #silverstripe
91: [04:04:00] * mobiusnz has joined #silverstripe
92: [04:06:00] * willr_ quit (Quit: willr_)
93: [04:11:00] * maknz quit (Read error: Connection reset by peer)
94: [04:16:00] * UncleCheese quit (Quit: UncleCheese)
95: [04:17:00] * mobiusnz quit (Quit: Leaving.)
96: [04:39:00] * mobiusnz has joined #silverstripe
97: [04:40:00] <Pyromanik> that feeling when you realise your server is slugging, and you manage to service apache2 restart before it's brought to it's knees by some spambot running it OOM
98: [04:41:00] <Pyromanik> _b
99: [04:43:00] <FrozenFire> Monitoring ;)
100: [04:44:00] <spronk> lul
101: [05:01:00] * Pyromanik quit (Quit: leaving)
102: [05:01:00] <Pyromanik> FrozenFire: managed server.
103: [05:04:00] * willr has joined #silverstripe
104: [05:07:00] * nickmolhoek quit (Quit: nickmolhoek)
105: [05:19:00] * simon_w|air has joined #silverstripe
106: [05:35:00] * mobiusnz quit (Quit: Leaving.)
107: [05:40:00] * cb_ has joined #silverstripe
108: [05:42:00] <cb_> hey everyone, i'm building a site using silverstripe framework only, and having problems resolving views. I built a Controller (HomePage, extends Controller), i figured all i needed to do was add a Homepage.ss file to templates/Layout and it would resolve. does the controller need _Controller on the end?
109: [05:43:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/6778421
110: [05:43:00] <cb_> i also mapped homepage to the Homepage controller in the routes.yml file
111: [05:43:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/bef2905bfdfc...a5dd2434c0a7
112: [05:43:00] * travis-ci has joined #silverstripe
113: [05:43:00] <travis-ci> [travis-ci] silverstripe/sapphire#2115 (3.0 - a5dd243 : Will Rossiter): The build passed.
114: [05:43:00] * travis-ci has left #silverstripe
115: [05:44:00] <simon_w|air> cb_, you need a base-level template too, and then going to /homepage should work
116: [05:45:00] <cb_> sorry, Homepage extends Page which extends Controller. there is a Page.ss outside Layouts, which should be used if no HomePage was found right?
117: [05:46:00] <cb_> yes
118: [05:46:00] <simon_w|air> So you made a Page class that extends Controller?
119: [05:47:00] <simon_w|air> So what happens when you go to /homepage?
120: [05:48:00] <cb_> i keep getting the default view for Controller, thats in the framework folder
121: [05:49:00] <simon_w|air> and where are your templates?
122: [05:51:00] <cb_> ooohhhh, i changed the SSViewer theme, but didnt rename the folder..
123: [05:53:00] * eikonos quit (Ping timeout: 245 seconds)
124: [05:53:00] <cb_> yup. that was it. thanks for talking me through this :)
125: [05:54:00] * eikonos has joined #silverstripe
126: [05:54:00] * cb_ quit (Quit: Page closed)
127: [05:54:00] * eikonos has joined #silverstripe
128: [05:54:00] * eikonos quit (Changing host)
129: [05:56:00] * howardgrigg quit (Ping timeout: 256 seconds)
130: [05:57:00] * simon__w quit (Read error: Connection reset by peer)
131: [05:57:00] * simon__w has joined #silverstripe
132: [05:57:00] <DesignerX> hi guys, anyone has example of where the framework is used alone without the CMS, & how would the pages/content/objects be managed ? wanna see what else we can do with SS other then the websites & CMS I know
133: [05:58:00] <simon_w|air> DesignerX, the SS3 framework comes with ModelAdmin, so you can still use that as a simple interface for managing content. Otherwise, you need to make your own controllers and routes
134: [05:59:00] <DesignerX> so I can still go /admin on my domain to manage the objects using gridfield ?
135: [06:00:00] <simon_w|air> https://app.pocketrent.com/ is a 2.4 site with no CMS at all (demo login is demo@pocketrent.com and demo)
136: [06:00:00] <simon_w|air> Yes
137: [06:01:00] <simon_w|air> Though, if you're all doing is using DataObjects instead of pages, why not just go for the CMS which has the controller stack all set up already?
138: [06:01:00] * howardgrigg has joined #silverstripe
139: [06:03:00] <DesignerX> simon_w|air: this is just someresearch I am doing, wanan see how can the framework work without the CMS. CMS being a module I wanted to see what options I have with the framework
140: [06:04:00] <DesignerX> but yeh, for pages.. keeping the CMS is a good idea
141: [06:06:00] <simon_w|air> Hmm, maybe I should update my blog posts to be 3+ based
142: [06:06:00] * lx-berlin_ has joined #silverstripe
143: [06:07:00] <willr> and http://findrealestate.co.nz/.
144: [06:07:00] <willr> DesignerX I built justsold.co.nz just using the framework
145: [06:07:00] <simon_w|air> I'm sensing a theme here...
146: [06:08:00] <willr> ha well I had to eat my own dogfood
147: [06:08:00] <willr> in the 2nd case, the content is actually managed via a YAML file.. just for kicks
148: [06:08:00] <simon_w|air> Work doesn't pay me enough for me to do that
149: [06:09:00] <willr> need more startups on your plate simon_w? Got another branch of justsold.co.nz that needs backend dev
150: [06:09:00] <DesignerX> YAML, I think this sounds better the writing php functions/tasks that create pages for me ? (I will need to research yaml!)
151: [06:10:00] <simon_w|air> DesignerX, if you're going to be using the framework, it'll help if you stop thinking of pages as content things
152: [06:11:00] <simon_w|air> willr, barely got the time to work on my fun side projects :(
153: [06:11:00] <simon_w|air> The content comes from something else, like a third party API or user submissions
154: [06:12:00] <willr> calling your gf a project isn't very nice
155: [06:13:00] <simon_w|air> Hahaha
156: [06:13:00] <simon_w|air> She's told me we need to set up a Canberra office :p
157: [06:15:00] <DesignerX> question : can I create objects using yaml in SS ?
158: [06:16:00] <simon_w|air> Well, that's how the tests get mock objects
159: [06:17:00] <DesignerX> studying *
160: [06:17:00] * thejhnz quit (Read error: Connection reset by peer)
161: [06:17:00] <DesignerX> so stuying how tests are done I should be able to get objects created & writting the DB ?
162: [06:20:00] * Extro has joined #silverstripe
163: [06:22:00] <lx-berlin_> Hi . I have some questions about SS 3.1
164: [06:22:00] <lx-berlin_> 2.) Is there a working restful server modul for 3.1 ?
165: [06:22:00] <lx-berlin_> 1.) When will the final version be ready ?
166: [06:23:00] <lx-berlin_> 3.) Can i use this restfull server when i install the 3.1 framework without the cms.
167: [06:23:00] <lx-berlin_> 4) can i have /assets on a seperate NFS server ?
168: [06:23:00] <lx-berlin_> thats all :)
169: [06:24:00] * willr quit (Quit: willr)
170: [06:26:00] <lx-berlin_> nothing ?
171: [06:27:00] <Extro> yay time to theme my design :3
172: [06:27:00] <DesignerX> woow.. I know that name
173: [06:27:00] <DesignerX> lol
174: [06:27:00] <Extro> o.o
175: [06:28:00] <DesignerX> Extro: Nice .. you starting a theme from scratch or using something you found online ?
176: [06:28:00] <DesignerX> lx-berlin_: hi.. I wish I could help but I have no idea what restful server is .. :(
177: [06:29:00] <Extro> pmed you what im theming :p
178: [06:29:00] <lx-berlin_> a server that handles your rest requests
179: [06:30:00] <lx-berlin_> DesignerX: http://vimeo.com/17785736 (you should check this out when you have some time)
180: [06:31:00] * lx-berlin_ pushed the wrong key
181: [06:31:00] * lx-berlin_ has joined #silverstripe
182: [06:31:00] * lx-berlin_ has left #silverstripe
183: [06:37:00] <simon_w|air> lx-berlin_, when it's down, maybe? Check the master branch of the module, yes, if you mount it to the right path
184: [06:41:00] <lx-berlin_> what means "when it's down" ? And do you mean this module : https://github.com/silverstripe/silverstripe-restfulserver/ ?
185: [06:42:00] <simon_w|air> When it's ready to be labelled as stable and yes
186: [06:42:00] <lx-berlin_> Requirements
187: [06:42:00] <lx-berlin_> SilverStripe 3.0 or newer (so i guess this means also working with 3.1)
188: [06:43:00] <lx-berlin_> and do you think this is an alternative: https://github.com/silverstripe-labs/restassured
189: [06:43:00] <simon_w|air> Maybe. 3.1 isn't entirely backwards compatible
190: [06:45:00] <simon_w|air> No idea. Ask Hamish
191: [06:45:00] <lx-berlin_> ok . thanks
192: [06:46:00] <travis-ci> [travis-ci] silverstripe/sapphire#2115 (3.0 - a5dd243 : Will Rossiter): The build passed.
193: [06:46:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/bef2905bfdfc...a5dd2434c0a7
194: [06:46:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/6778421
195: [06:46:00] * travis-ci has joined #silverstripe
196: [06:46:00] * travis-ci has left #silverstripe
197: [06:47:00] <simon_w|air> yes
198: [06:47:00] <lx-berlin_> ah, one last question :) "yes" in your answer was for using the restfull server without having the cms installed ?
199: [06:47:00] <lx-berlin_> great , thanks
200: [06:48:00] <lx-berlin_> because my idea was to use ext.js instead of the ss cms
201: [06:49:00] <lx-berlin_> has anyone ever combined those two (maybe with SS3.1) ?
202: [06:50:00] * kerosene has joined #silverstripe
203: [06:53:00] <lx-berlin_> i do :)
204: [06:53:00] <lx-berlin_> thats why i need the restfull server on the backend. Or do i understand this wrong ?
205: [06:53:00] * SightUnseen has joined #silverstripe
206: [06:53:00] <simon_w|air> You know ext.js is just a javascript library akin to jQuery/jQuery UI, not some content management system right?
207: [06:54:00] * SightUnseen has left #silverstripe
208: [06:54:00] <simon_w|air> ext.js isn't a drop-in editing interface
209: [06:54:00] <simon_w|air> You still need to basically build a CMS
210: [06:54:00] <lx-berlin_> but for our project, we need to build a very custom backend. No need to add pages. But managing invoices for example
211: [06:56:00] <lx-berlin_> i think i will give this a try. Lets see what i come up with :)
212: [06:58:00] <lx-berlin_> and also for me modeladmin is kind of broken since quite a while. Because you can use filters and paging in modeladmin (for its grid) . But when you edit a record, all your filters and pagings getr reset and you have to filter again. So that is really annoying in modeladmin
213: [06:59:00] <lx-berlin_> i talk about the 3.0 branch. I dont know if this was fixed in 3.1
214: [07:05:00] * howardgrigg quit (Remote host closed the connection)
215: [07:05:00] * thejhnz has joined #silverstripe
216: [07:06:00] * Extro quit (Ping timeout: 258 seconds)
217: [07:14:00] * wmk has joined #silverstripe
218: [07:16:00] * travis-ci has left #silverstripe
219: [07:16:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/6779211
220: [07:16:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/284245c3deee...131e21d777e3
221: [07:16:00] <travis-ci> [travis-ci] silverstripe/sapphire#2116 (3.1 - 131e21d : Will Rossiter): The build passed.
222: [07:16:00] * travis-ci has joined #silverstripe
223: [07:37:00] <thejhnz> how do you do a else_if ?
224: [07:41:00] <thejhnz> nvm
225: [07:44:00] * Werner_2_ has joined #silverstripe
226: [07:44:00] * wmk quit (Read error: Connection reset by peer)
227: [08:03:00] * kinglozzer has joined #silverstripe
228: [08:05:00] * willmorgan has joined #silverstripe
229: [08:09:00] * kerosene quit (Quit: Lost terminal)
230: [08:10:00] * waveydave has joined #silverstripe
231: [08:16:00] * lx-berlin_ has left #silverstripe
232: [08:22:00] * ARNHOE has joined #silverstripe
233: [08:28:00] * Werner_2_ quit (Ping timeout: 256 seconds)
234: [08:30:00] <willmorgan> FrozenFire did you end up sorting out that session thing? Curious.
235: [08:50:00] * Shrike_Finland quit (Ping timeout: 252 seconds)
236: [09:00:00] * priithansen has joined #silverstripe
237: [09:05:00] * wmk has joined #silverstripe
238: [09:08:00] <thejhnz> sure
239: [09:08:00] <wmk> dbfields?
240: [09:08:00] <thejhnz> anyone have a link to all of the 'Text', 'int' etc you can use
241: [09:09:00] <wmk> http://doc.silverstripe.org/framework/en/topics/data-types
242: [09:09:00] <thejhnz> could i please have the link where i can see a list of what i can use
243: [09:09:00] <thejhnz> i have no idea what they are called
244: [09:10:00] <wmk> hth
245: [09:10:00] <wmk> your welcome ;)
246: [09:10:00] <thejhnz> what would be the best to store a url ?
247: [09:10:00] <thejhnz> thanking you
248: [09:11:00] <thejhnz> is there anything like the html editor link thing ?
249: [09:11:00] <wmk> as an url shouldn't be longer than 255 chars i guess it should be fine
250: [09:11:00] <wmk> varchar
251: [09:12:00] <wmk> HTMLText
252: [09:12:00] <thejhnz> i know but just the link http://screencloud.net/v/8Btt
253: [09:12:00] <wmk> htmlfield
254: [09:12:00] <thejhnz> like that
255: [09:13:00] <wmk> looks like the field that inserts an <a> tag into htmleditor
256: [09:13:00] <thejhnz> yea :\
257: [09:13:00] <wmk> so you have different options: relation to page on site, external url etc...
258: [09:14:00] <thejhnz> i just put that
259: [09:14:00] <thejhnz> mm
260: [09:14:00] <wmk> this would be a bit difficult to store in a single db field
261: [09:14:00] <thejhnz> and made it varchar
262: [09:14:00] <thejhnz> [sitetree_link,id=2]
263: [09:15:00] <wmk> yup, but has to be parsed to retrieve a correct link
264: [09:15:00] <wmk> should work
265: [09:29:00] * SightUnseen has joined #silverstripe
266: [09:29:00] * SightUnseen quit (Client Quit)
267: [09:30:00] * SightUnseen has joined #silverstripe
268: [09:30:00] * SightUnseen has joined #silverstripe
269: [09:30:00] * SightUnseen quit (Client Quit)
270: [09:31:00] * SightUnseen quit (Client Quit)
271: [09:38:00] * zfmf has joined #silverstripe
272: [10:06:00] <thejhnz> if i want to link the logo to go back to the main page, what would i use ?
273: [10:07:00] <thejhnz> thanking you :)
274: [10:07:00] <simon_w|air> <a href="$BaseHref">
275: [10:08:00] * cloph_away is now known as cloph
276: [10:10:00] * UncleCheese has joined #silverstripe
277: [10:26:00] <thejhnz> whats this mean ?
278: [10:26:00] <thejhnz> Failed to load resource: the server responded with a status of 500 (Notice at line 173 of /home/inversc/public_html/silverstripe/framework/dev/Deprecation.php)
279: [10:27:00] <thejhnz> dw
280: [10:29:00] <thejhnz> hmm
281: [10:30:00] <thejhnz> ive broken it now lol
282: [10:30:00] <thejhnz> how can i rebuild ?
283: [10:31:00] <Zauberfisch|idle> willmorgan you creating a oauth provider for silverstripe?
284: [10:32:00] <thejhnz> how can i remove that class now
285: [10:32:00] <thejhnz> i made a class with deprecated code
286: [10:33:00] <willmorgan> Zauberfisch|idle: how did you know?
287: [10:33:00] <Zauberfisch|idle> 2 hours ago
288: [10:33:00] <Zauberfisch|idle> willmorgan created repository silverstripe-opauth
289: [10:33:00] <willmorgan> ha!
290: [10:33:00] <willmorgan> yeah
291: [10:33:00] <Zauberfisch|idle> willmorgan you should check with simon_w, he did some work with oauth as well
292: [10:34:00] <willmorgan> so all i'm writing is a wrapper, really
293: [10:34:00] <willmorgan> but it's cool - i'm using opauth
294: [10:34:00] <willmorgan> i'm actually having a lot of fun with it
295: [10:41:00] * lx-bln has joined #silverstripe
296: [10:44:00] * lx-bln quit (Remote host closed the connection)
297: [11:12:00] * ajshort has joined #silverstripe
298: [11:27:00] <thejhnz> uhh
299: [11:27:00] <thejhnz> Fatal error: Class 'MollomServer' not found in /home/chiletax/public_html/mysite/_config.php on line 31
300: [11:32:00] <thejhnz> why isnt it working :o
301: [11:43:00] * ajshort quit (Quit: ChatZilla 0.9.90-rdmsoft [XULRunner 18.0.2/20130201065344])
302: [11:44:00] * ARNHOE_ has joined #silverstripe
303: [11:46:00] * osterlaus has joined #silverstripe
304: [11:48:00] * ARNHOE quit (Ping timeout: 245 seconds)
305: [11:55:00] * ARNHOE has joined #silverstripe
306: [11:55:00] * ARNHOE_ quit (Ping timeout: 276 seconds)
307: [11:56:00] * ARNHOE_ has joined #silverstripe
308: [11:59:00] * ARNHOE__ has joined #silverstripe
309: [11:59:00] * ARNHOE quit (Ping timeout: 240 seconds)
310: [12:01:00] <ss23> Did class HomePage extends SiteTree instead of Page... damn that took mer a while to figure out wtf was going on >.<
311: [12:02:00] * ARNHOE_ quit (Ping timeout: 245 seconds)
312: [12:10:00] * UndefinedOffset has joined #silverstripe
313: [12:10:00] * ARNHOE__ quit (Ping timeout: 252 seconds)
314: [12:17:00] * ARNHOE has joined #silverstripe
315: [12:18:00] * ARNHOE quit (Remote host closed the connection)
316: [12:29:00] <willmorgan> thejhnz: still having trouble?
317: [12:30:00] <willmorgan> if so, have you checked that you have Mollom installed? and are you, by any chance, upgrading from 2.4?
318: [12:40:00] <thejhnz> never mind, i gave up lol
319: [12:47:00] * lx-berlin_ has joined #silverstripe
320: [12:50:00] <wmk> hi lx-berlin_
321: [12:51:00] <lx-berlin_> oh hy
322: [12:51:00] <lx-berlin_> hi
323: [12:51:00] <lx-berlin_> :)
324: [12:51:00] <lx-berlin_> i am sorry that i didnt get back to you
325: [12:52:00] <lx-berlin_> we are still negotiating with the client
326: [12:53:00] <lx-berlin_> really annoying situation at the moment
327: [12:53:00] <lx-berlin_> i still don't if we will work for them or not
328: [12:54:00] <lx-berlin_> any news about switching maps to V3 api ?
329: [12:55:00] * wmk quit (Ping timeout: 258 seconds)
330: [12:56:00] <lx-berlin_> hmm...
331: [13:02:00] * Werner_2_ has joined #silverstripe
332: [13:04:00] * Werner_2_ quit (Client Quit)
333: [13:06:00] * wmk has joined #silverstripe
334: [13:06:00] <wmk> re
335: [13:07:00] <lx-berlin_> did you get my response ?
336: [13:10:00] * Shrike_Finland has joined #silverstripe
337: [13:10:00] * lx-berlin_ is now known as lx-berlin
338: [13:13:00] <wmk> no
339: [13:13:00] <wmk> had a network problem just this moment, lx-berlin
340: [13:20:00] * UncleCheese quit (Quit: UncleCheese)
341: [13:27:00] * henkpoley has joined #silverstripe
342: [13:28:00] * henkpoley quit (Remote host closed the connection)
343: [13:33:00] * Werner_2_ has joined #silverstripe
344: [13:35:00] * wmk quit (Ping timeout: 245 seconds)
345: [13:41:00] * ARNHOE has joined #silverstripe
346: [13:44:00] * osterlaus has left #silverstripe
347: [13:47:00] * Werner_2_ is now known as wmk
348: [13:51:00] * NobrainerWeb has joined #silverstripe
349: [13:54:00] <NobrainerWeb> Hi my Page class has a has_many Sections (DO) and i would like to be able to change the PageID on the DO Section. Changing the PageID from 1 to 2 should move the Section object from page with ID 1 to page with ID 2.
350: [13:54:00] * ajshort has joined #silverstripe
351: [13:54:00] <NobrainerWeb> But if i add a field PageID and just change the value and save, the value just reverts
352: [13:56:00] * ajshort quit (Client Quit)
353: [13:57:00] * NobrainerWeb quit (Quit: NobrainerWeb)
354: [14:06:00] * Werner_2_ has joined #silverstripe
355: [14:08:00] * wmk quit (Ping timeout: 256 seconds)
356: [14:13:00] * OxFF1 quit (Client Quit)
357: [14:13:00] * OxFF1 has joined #silverstripe
358: [14:19:00] * spronk quit (Ping timeout: 258 seconds)
359: [14:20:00] * lx-berlin quit (Ping timeout: 264 seconds)
360: [14:20:00] * spronk2 quit (Ping timeout: 256 seconds)
361: [14:22:00] * spronk2 has joined #silverstripe
362: [14:22:00] * ARNHOE quit (Remote host closed the connection)
363: [14:43:00] <ss23> So I have a HomePage, which has_many images. I want to have a new tab where you can add new images. I need something to make this work, like, I can make a new tab with getCMSFields and addFieldToTab, but I need like... something to manage a list of images? Is there something for me already? (Model admin kind of does it, right? Does this mean I want 'gridfield' docs to do it?)
364: [14:46:00] <DesignerX> HomePage has_many image
365: [14:46:00] <DesignerX> the manage them with GF
366: [14:47:00] <ss23> DesignerX: Yeah, or a link to some GF docs etc. I'm not new to PHP, just to Silverstripe, so dunno what I should be using
367: [14:47:00] * Werner_2_ is now known as wmk
368: [14:47:00] <DesignerX> ss23: do you need sample code ?
369: [14:48:00] <ss23> Would prefer not to use extra modules if possible
370: [14:48:00] <DesignerX> or that .. i havnt used that bulk-editing module..
371: [14:48:00] <wmk> and maybe sortablegridfield
372: [14:48:00] <DesignerX> kk .. I have something nearly ready one min
373: [14:48:00] <wmk> ss23, use a gridfield with colymba/gridfield-gallery-theme and colymba/gridfield-bulk-editing-tools
374: [14:49:00] <wmk> DesignerX, bulkeditingtools for bulk uploading.
375: [14:49:00] <wmk> working really fine
376: [14:49:00] <DesignerX> gallery theme ? do u have URL ?
377: [14:49:00] <DesignerX> I use basic page has_many image , its boring to add many images :(
378: [14:49:00] <wmk> ss23, gallerytheme is cool, like old ImageDataObjectManager
379: [14:50:00] <DesignerX> I should say "not yet"
380: [14:50:00] <wmk> DesignerX, do you use composer?
381: [14:50:00] <DesignerX> nope
382: [14:50:00] <ss23> Still, would rather just have a new site wide tab with ModelAdmin for each page and hack it up to work than use a module
383: [14:50:00] <wmk> it's not that difficult, just try the first time ;)
384: [14:51:00] <wmk> ss23, it's not a complete module with much functionality (like old imagegallerymodule), it's just a gridfield extension for better working.
385: [14:52:00] <DesignerX> ss23: http://www.sspaste.com/paste/show/51812c21701c3
386: [14:53:00] <ss23> DesignerX: Sweet as, looks mega simple :D
387: [14:53:00] <wmk> DesignerX, https://github.com/colymba/GridFieldBulkEditingTools, https://github.com/colymba/GridFieldGalleryTheme
388: [14:53:00] <wmk> DesignerX, with bulkeditingtools you also can easily set the folder your images are uploaded to
389: [14:54:00] <ss23> urgh wat ;_;
390: [14:54:00] <DesignerX> yep
391: [14:55:00] <ss23> This SiteConfig thing is like... extended by every page I take it?
392: [14:55:00] <DesignerX> wmk: I love to have a look but dont have much time, was busy with other work.. but sure to test them as soon as I get a project that require this kind of functionality :D
393: [14:55:00] <ss23> I have some stuff in SiteConfig and it looks like I used the same name both times
394: [14:55:00] <ss23> Actually, this is weird
395: [14:55:00] <ss23> urgh
396: [14:55:00] <ss23> my bad
397: [14:56:00] <ss23> It's already displaying two items in there
398: [14:56:00] <ss23> https://gist.github.com/ss23/5495755 So thats my code I'm using, but uh
399: [14:56:00] <ss23> waoh, okay, two issues
400: [14:57:00] <ss23> It's display two images that aren't related to teh current page at all, but rather are b eing used for some SiteConfig stuff?
401: [14:58:00] <DesignerX> oh, I forgot
402: [14:58:00] <ss23> SEcond is that it's like... not really how I want it ;_;. I want a user to be able to just add an image, like they do for ModelAdmin stuff. Any way to get that?
403: [14:58:00] <DesignerX> its best done like this : HomePage has_many MyImage , MyImage extends DataObject{.... has_one Image }
404: [14:59:00] <ss23> Cool, I can do that
405: [14:59:00] <DesignerX> kk
406: [14:59:00] <DesignerX> then the MyImage object can have just the Image with one upload field or you can have more fields like text or setting per image/slider :D
407: [15:02:00] <ss23> Much better (though the creation before addition is a little messy, but still nicer than before)
408: [15:02:00] <kinglozzer> ss23: Don't use a has_many
409: [15:02:00] <kinglozzer> Use a many_many relationship
410: [15:03:00] <ss23> HomePage many_many SliderImage?
411: [15:03:00] <DesignerX> yep , or that .. depending how you need it
412: [15:03:00] <ss23> Well there will only ever be one HomePage in this case, but I get the idea
413: [15:03:00] <DesignerX> I use has_many , so MyImage has_one Page , Page has_many MyImage
414: [15:04:00] * PigeonFriend has joined #silverstripe
415: [15:04:00] <DesignerX> again, depensing on the case, but yeh. many_many opens up more options for later :D
416: [15:04:00] <ss23> And it'll only ever be used once anyway
417: [15:04:00] <kinglozzer> ss23: Yeah it should be okay in theory, but there are a few bugs with it anyway - stick to many_many to be safe - it doesn't cause any issues
418: [15:04:00] <ss23> kinglozzer: Well, it'll only ever be used once for this case
419: [15:04:00] <ss23> wait, uh
420: [15:04:00] <kinglozzer> DesignerX: What if you have more that one page? An image can never be used twice
421: [15:04:00] <ss23> But yeah, this doesn't change anything in UI, kinglozzer
422: [15:05:00] <ss23> So it's not really a big issue
423: [15:05:00] <wmk> anyone knows if Martimiz (Balbuss Design) is around here sometimes?
424: [15:05:00] <ss23> mmk
425: [15:05:00] <ss23> But uh, like
426: [15:05:00] <ss23> But you can have many different SliderImage that share the same Image
427: [15:05:00] <ss23> has_many SliderImage, and SliderImage has_one Image
428: [15:06:00] <DesignerX> ss23: unless you want to use the same MyImage object on other pages, in some cases MyImage object haws more data then just an image .. its come back to what u need ..
429: [15:06:00] <ss23> Uh so...
430: [15:06:00] <kinglozzer> ss23: If you have an extension of image, instead of 'Image' directly then it should be fine to use has_many :)
431: [15:06:00] <kinglozzer> I thought you were using Image
432: [15:06:00] <ss23> Yeah
433: [15:07:00] <kinglozzer> ss23: Yep, that is a major pain in the a**. Try this: https://github.com/colymba/GridFieldBulkEditingTools
434: [15:07:00] * PigeonFriend quit (Client Quit)
435: [15:07:00] <ss23> No quick fix for the "create image before adding image" I take it?
436: [15:07:00] <ss23> rather
437: [15:07:00] <DesignerX> kinglozzer: he used what I use, MyImage extends DO{ has_one image } :D
438: [15:07:00] <ss23> Having to create a SLiderImage before adding the actaul image
439: [15:08:00] * ss23 scrunches up his face
440: [15:08:00] <ss23> DON'T WANNA USE THIRD PARTY
441: [15:08:00] <ss23> I'll deal with it
442: [15:09:00] <ss23> Yeah yeah, I know (well, kind of)
443: [15:09:00] <DesignerX> ss23: its safe to use them.. its not like other CMS where everything is piled up in the core . These kind of small modules/plugins are needed
444: [15:10:00] <ss23> I went through and audited all of the official modules for sqli
445: [15:10:00] <ss23> going down to the HQ soon to participate in my first Silverstripe hackfest!
446: [15:10:00] <DesignerX> if you ever used other CMS, they arely have this code included anyways, just here you have more control to include/not include them :D
447: [15:10:00] <ss23> Turns out, I wouldn't wanna ever be using the official moduels without auditing them myself :P
448: [15:10:00] <ss23> But ya, I get the ecosystem
449: [15:11:00] <DesignerX> :D well, you said you know PHP, so I will leave this to you.. I only know SS ;D a bit
450: [15:11:00] <ss23> :D
451: [15:11:00] <ss23> Speakingof
452: [15:11:00] <ss23> simon_w|air: add hackfest dates to topic pl0x
453: [15:11:00] <DesignerX> GL
454: [15:12:00] <ss23> I don't know anything about SS tbh :P
455: [15:12:00] <DesignerX> someone got a new nickname :D
456: [15:12:00] <Zauberfisch|idle> kinglozzer no, we just have been awfully busy
457: [15:12:00] <DesignerX> I wish i was that exp in php
458: [15:12:00] <ss23> Not mcuh, anyway
459: [15:12:00] <ss23> You've been really helpful though, DesignerX
460: [15:12:00] <kinglozzer> Zauberfisch|idle: Has SilverScoop been cancelled? :(
461: [15:13:00] <Zauberfisch|idle> we usually run it every 2nd week
462: [15:13:00] <Zauberfisch|idle> but we are to busy at the moment
463: [15:13:00] <DesignerX> we feed you knowledg .. that should be enough
464: [15:13:00] <wmk> ss23, if you use bulkimageupload you can just put images to the grid and the items are created afterwards
465: [15:13:00] * ss23 eats a smoked Zauberfisch :D
466: [15:13:00] <Zauberfisch|idle> wmk the silverstripe podcast that howard grigg, unclecheese and I run
467: [15:13:00] <ss23> Now after all this Silverstrping, time to get some FOOD
468: [15:13:00] <wmk> silverscoop?
469: [15:14:00] <wmk> Zauberfisch|idle, aaah, heard of it
470: [15:14:00] <ss23> XD
471: [15:14:00] * Zauberfisch|idle slaps ss23 around a bit with a large trout
472: [15:15:00] <kinglozzer> Zauberfisch|idle Ah okay cool :)
473: [15:16:00] * Werner_2_ has joined #silverstripe
474: [15:16:00] * irogue quit ()
475: [15:20:00] <kinglozzer> Here's one for you. Page $many_many Forms. Want to be able to sort the forms per-page, so on Page A, form 1 would appear before form 2, but on Page B, form 2 would be first. Is this something for manymanyextrafields?
476: [15:20:00] * wmk quit (Ping timeout: 264 seconds)
477: [15:20:00] * Werner_2_ is now known as wmk
478: [15:21:00] <zfmf> i have this, $form->Fields()->push(ListboxField::create('Attributes')->setTitle(_t('Handy.ATTRIBUTES','Eigenschaften'))->setSource(Attribute::get()->map('ID','Name')->toArray())->setSize(10)->addExtraClass('duallist')); when i add ->setMultiple(true) im getting an error missing argument 1 for ViewableData::getField() anyone an idea what the problem is ? i want to set the multiple attribute to the listbox
479: [15:21:00] * lx-berlin has joined #silverstripe
480: [15:22:00] * philbenoit has joined #silverstripe
481: [15:22:00] <philbenoit> is anyone active on here at the moment?
482: [15:25:00] <wmk> philbenoit, depends ;)
483: [15:26:00] * philbenoit quit (Ping timeout: 245 seconds)
484: [15:27:00] * wazza has joined #silverstripe
485: [15:28:00] <ss23> :<
486: [15:28:00] <ss23> Zauberfisch|idle: FINE, I got mcdonalds instead
487: [15:29:00] <Zauberfisch|idle> kinglozzer as a matter of fact, there is actually already a module for this
488: [15:29:00] <Zauberfisch|idle> given you use gridfield
489: [15:30:00] <wmk> Zauberfisch|idle, does gridfield work in frontend without problems?
490: [15:30:00] <Zauberfisch|idle> you can use the sort module, it can save the sort order into a many_many_extraField
491: [15:30:00] <Zauberfisch|idle> and you can Drag&Drop the rows in gridfield
492: [15:31:00] <Zauberfisch|idle> no idea how it works with public permissions
493: [15:31:00] <wmk> of course after login
494: [15:31:00] <Zauberfisch|idle> wmk I use it in frontend, but its a login only frontend
495: [15:32:00] <Zauberfisch|idle> yeah, you saw the white booking tool I posted a screenshot of?
496: [15:32:00] <kinglozzer> Zauberfisch|idle: Nice, thanks. I still can't decide how best to do it - forms as dataobjects is an unknown for me, each form will need different fields etc.
497: [15:32:00] <Zauberfisch|idle> that is gridfield
498: [15:33:00] <Zauberfisch|idle> docs: https://github.com/ajshort/silverstripe-gridfieldextensions/blob/master/docs/en/index.md#orderable-rows
499: [15:33:00] <wmk> Zauberfisch|idle, yup, saw the screenshot. cool stuff
500: [15:33:00] <kinglozzer> Zauberfisch|idle: Yeah I will use that one, I'm on 3.1 anyway and will be using some of the other tools in there.
501: [15:33:00] <Zauberfisch|idle> kinglozzer there are 2 modules for sorting, I would recommend using the one of ajshort
502: [15:33:00] <Zauberfisch|idle> https://github.com/ajshort/silverstripe-gridfieldextensions
503: [15:35:00] <kinglozzer> Thing is, every page will have between one and 6 forms depending on which ones are ticked. Not sure if I should just have a "ShowFirstForm", "ShowSecondForm" boolean fields etc or do each form as a Dataobject with a many_many relationship :/
504: [15:36:00] <Zauberfisch|idle> kinglozzer I would do it this way: Page -> many_many -> DataObject -> that dataobject has the code for the form in it
505: [15:37:00] <Zauberfisch|idle> and in template you then do: <% loop myDataObjects %>$Form<% end_loop %>
506: [15:37:00] <Zauberfisch|idle> that should print the forms
507: [15:37:00] * lx-berlin quit (Ping timeout: 240 seconds)
508: [15:37:00] <kinglozzer> Zauberfisch|idle: Yeah that's how I'd like to - but each form will have a different "mail to" address and different fields/validation
509: [15:37:00] <wazza> in ss3 admin I'd like to increase the items per page for the file chooser that pops up when making a 'from Files' selection. I believe using setItemsPerPage() will help, but I'm not sure where to put the code for this...any tips would be really appreciated
510: [15:37:00] <Zauberfisch|idle> its a little bit more tricky to get the form action to do what it is suppose to do
511: [15:37:00] <Zauberfisch|idle> printing it is easy
512: [15:38:00] <Zauberfisch|idle> wazza familiar with extensions?
513: [15:39:00] <kinglozzer> Zauberfisch|idle: The Form() method would have to load different fields for each form though, and different validators etc :/
514: [15:39:00] <Zauberfisch|idle> kinglozzer I don't see the problem
515: [15:40:00] <kinglozzer> Zauberfisch|idle: Form() in this case would return a Form object? Every form has different fields, so how would Form() know which fields to return?
516: [15:40:00] <Zauberfisch|idle> depending on the dataobject I'd say
517: [15:40:00] <Zauberfisch|idle> how many forms do you need?
518: [15:41:00] <kinglozzer> I think 6 or 7
519: [15:41:00] <Zauberfisch|idle> actually
520: [15:41:00] <Zauberfisch|idle> what I would do is:
521: [15:41:00] <Zauberfisch|idle> create 6 or 7 classes
522: [15:43:00] <kinglozzer> Yeah that's what I was thinking of doing, but then I didn't know how to generate the tickboxes for enabling the forms
523: [15:43:00] <wazza> Zauberfisch: getting familiar with extensions, yes. how would you suggest I do this?
524: [15:46:00] <kinglozzer> Zauberfisch|idle: Unless each of my form classes had a static function for getting its Form object, then I'd <% loop %> in the template and my Form() method would call the static function
525: [15:49:00] <r3v3rb> helloooo
526: [15:49:00] * r3v3rb has joined #silverstripe
527: [15:50:00] * Werner_2_ has joined #silverstripe
528: [15:50:00] <r3v3rb> anyone know why on 2.4.10 I get an Array to String conversion from this line of Database.php : 396 $this->alterationMessage("Index $table.$index: created as $spec","created");
529: [15:51:00] <r3v3rb> I added a new field to a class and now it errors, remove the field and its fine
530: [15:51:00] * wmk quit (Ping timeout: 252 seconds)
531: [15:52:00] <r3v3rb> hey Zauberfisch|idle - how goes it?
532: [15:52:00] <Zauberfisch|idle> kinglozzer I found it easier to actually write the code than to explain the idea
533: [15:52:00] <Zauberfisch|idle> http://paste2.org/GPme6EOp
534: [15:54:00] <kinglozzer> Zauberfisch|idle: Ahh I see now, overload the Form() method each time. Great idea, thanks. Do you think there will be any issues with the controller and handling the form actions?
535: [15:55:00] <Zauberfisch|idle> wazza create an extension and add it to HTMLEditorField
536: [15:57:00] <r3v3rb> seems wierd that adding a 'HTMLText' field would cause an 'Array to String' error no?
537: [15:57:00] <Zauberfisch|idle> hey r3v3rb
538: [15:58:00] <r3v3rb> Zauberfisch|idle: :D
539: [15:58:00] * Werner_2_ is now known as wmk
540: [15:59:00] <Zauberfisch|idle> wazza and then implement "function updateMediaForm($form) { /* do something with $form */ }"
541: [15:59:00] <kinglozzer> wazza: Just glanced at the HtmlEditorField class, I think you'll need to add your extension to HtmlEditorField_Toolbar. I did something that edits the same form: https://github.com/kinglozzer/htmleditoriframe
542: [15:59:00] <Zauberfisch|idle> ah, you are right
543: [16:00:00] <Zauberfisch|idle> its not HTMLEditorField, its the toolbar
544: [16:01:00] <wazza> great, thanks both
545: [16:02:00] <kinglozzer> wazza: Complete guess, but I'd try $form->Fields()->fieldByName("Files")->getConfig()->getComponentByType('GridFieldPaginator')->setItemsPerPage(100);
546: [16:03:00] <kinglozzer> I think it'll be something along those lines
547: [16:06:00] <r3v3rb> kinglozzer: thanks
548: [16:06:00] <r3v3rb> hmm
549: [16:06:00] <r3v3rb> ok, wierdness, adding: 'DetailContent' => 'HTMLText' to $db dev/build crashes with Array to String...
550: [16:06:00] <kinglozzer> r3v3rb: I had that the other day on a 2.4 site I inherited, not a clue what caused it/how to fix it though. I don't think that was the actual error, I think it was just a bug in the error handling classes
551: [16:07:00] <kinglozzer> r3v3rb: Look at the line of code that's giving you the error, if it's in an error class of some sort then it's probably not the actual error. If you can't get past it, hack the core to see the *actual* error then put everything back :D
552: [16:07:00] <r3v3rb> maybe a restart and purge will help
553: [16:08:00] <r3v3rb> bbl, time to restart everything
554: [16:08:00] <r3v3rb> :D I'll try that kinglozzer
555: [16:08:00] * r3v3rb quit (Quit: r3v3rb)
556: [16:17:00] * kinglozzer quit (Remote host closed the connection)
557: [16:21:00] <wazza> kinglozzer & zauberfisch: just checking as I wasn't particularly detailed in my question...I'm getting to the file chooser from an UploadField and clicking on the 'From Files' button. Is this actually the same popover as the one you get to from the 'Insert media' button on the HtmlEditor?
558: [16:35:00] * wmk quit (Quit: nice to meet you ;))
559: [16:43:00] * DesignerX quit (Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/)
560: [16:44:00] * koentjuh1 has joined #silverstripe
561: [16:47:00] * waveydave has left #silverstripe
562: [16:49:00] * koentjuh1 quit (Ping timeout: 245 seconds)
563: [16:50:00] <wazza> zaberfisch: I have to admit I'm a bit lost on this. It should, surely, be something that's easy to configure... Given it's not can I pay for your, or someone else's, time to help me with this?! All I want is to have a simple, usable way to select existing files to be used in a _many UploadField.
564: [16:51:00] <wazza> Zauberfisch, sorry for typo on your username :-)
565: [16:54:00] <Zauberfisch|idle> wazza try just typing "Zau" and then hitting TAB
566: [16:54:00] <Zauberfisch|idle> it will auto complete my name
567: [16:55:00] <Zauberfisch|idle> and if you spell the whole Zauberfisch|idle name, I will get a beep
568: [16:56:00] <Zauberfisch|idle> but what you could do is subclass UploadField
569: [16:56:00] <Zauberfisch|idle> seems there is no way to do that for a uploadfield
570: [16:56:00] <Zauberfisch|idle> wazza hmmm
571: [16:57:00] <Zauberfisch|idle> and do:
572: [16:58:00] * PigeonFriend has joined #silverstripe
573: [16:59:00] <Zauberfisch|idle> wazza thats basicly the whole class
574: [16:59:00] <Zauberfisch|idle> class MyUploadField extends UploadField { protected function getListField($folderID) { $return = parent::getListField($folderID); $return->FieldList()->Last()->getConfig()->getComponentByType('GridFieldPaginator')->setItemsPerPage(100); return $return; } }
575: [16:59:00] <Zauberfisch|idle> should work right away
576: [16:59:00] <Zauberfisch|idle> gotta go now, cya later
577: [17:01:00] <wazza> Zauberfisch|idle: you have a link i can buy you a beer on? :-)
578: [17:01:00] <wazza> thank you so much!
579: [17:04:00] * Zauberfisch|idle quit (Ping timeout: 246 seconds)
580: [17:06:00] * wazza quit (Quit: Page closed)
581: [17:09:00] * Extro has joined #silverstripe
582: [17:10:00] <willmorgan> For anyone who's interested in social login stuff: https://github.com/BetterBrief/silverstripe-opauth
583: [17:10:00] * thejhnz quit (Ping timeout: 256 seconds)
584: [17:11:00] * glados_ has joined #silverstripe
585: [17:11:00] <glados_> hi!
586: [17:12:00] <glados_> I am trying to start working with Silverstripe, though I have a problem on the install on the Friendly URLS
587: [17:12:00] <glados_> mod_rewrite is enabled, and I set AllowOverride None in my virtualhost setup on the directory
588: [17:12:00] <glados_> what can I try to make it work?
589: [17:14:00] <willmorgan> glados_: the reason why it won't work is because you have AllowOverride None instead of All
590: [17:15:00] <FrozenFire> Anyone have an existing solution for stripping .asp from all URLs? Client has a lot of .asp links that would work if it were stripped and permanently redirected.
591: [17:15:00] <willmorgan> if you have it set to None, then .htaccess files are discarded as nothing is allowed to be overridden :-)
592: [17:16:00] <glados_> willmorgen, thank you very much
593: [17:16:00] <glados_> I really need to proper learn what is says
594: [17:18:00] <glados_> works all perfectly now
595: [17:18:00] <glados_> :)
596: [17:19:00] <willmorgan> time to leave the building
597: [17:19:00] <willmorgan> right
598: [17:20:00] * Zauberfisch|idle has joined #silverstripe
599: [17:24:00] * willmorgan quit (Ping timeout: 264 seconds)
600: [17:35:00] * PigeonFriend quit ()
601: [17:41:00] * SightUnseen has joined #silverstripe
602: [17:42:00] * SightUnseen has left #silverstripe
603: [17:52:00] * pippy quit (*.net *.split)
604: [17:52:00] * pippy_ has joined #silverstripe
605: [17:52:00] * ooystein has joined #silverstripe
606: [17:52:00] * ooystein_ quit (*.net *.split)
607: [18:29:00] <FrozenFire> Heh. Ended up with something similar, though a bit different
608: [18:29:00] <FrozenFire> http://www.sspaste.com/paste/show/51815f13233c4
609: [18:29:00] <simon_w|air> FrozenFire, RewriteRule ^(.*)\.asp$ /$1 [R=301,L] ?
610: [18:30:00] * r3v3rb has joined #silverstripe
611: [18:31:00] <r3v3rb> hello again
612: [18:31:00] <r3v3rb> so the error from earlier is still plaguing me??? :(
613: [18:32:00] <ss23> Whats the right syntax for a SelectionGroup? Like, what do you pass in as the array? Just some strings or like... what?
614: [18:32:00] <r3v3rb> new class -> $db = array ( 'DetailContent' => 'HTMLText' ); results in Database.php error on line 396 $this->alterationMessage("Index $table.$index: created as $spec","created");
615: [18:33:00] <r3v3rb> remove the $db field and its fine but obviously doesn't create a table for the class
616: [18:34:00] <simon_w|air> r3v3rb, so what's the error?
617: [18:35:00] <simon_w|air> Or upgrade to 3. That works too
618: [18:35:00] <r3v3rb> sorry
619: [18:35:00] <r3v3rb> simon_w|air: ^^
620: [18:35:00] <r3v3rb> String to Array
621: [18:35:00] <simon_w|air> So ignore it
622: [18:35:00] <r3v3rb> 3 = not for this tight ass client :D
623: [18:35:00] <r3v3rb> who doesn't want to pay for anything
624: [18:36:00] <FrozenFire> So why are you working for them? :P
625: [18:36:00] <FrozenFire> You're spending time troubleshooting this issue, out of your own pocket presumably.
626: [18:36:00] <FrozenFire> What they mean is that they want you to pocket the cost
627: [18:37:00] <simon_w|air> ss23, 'Key[//Optional Title]' => $field
628: [18:39:00] <ss23> ty simon_w|air
629: [18:39:00] <ss23> I think I need to sleep. You know you're tired when you can't figure out syntax errors
630: [18:40:00] <r3v3rb> FrozenFire: sort of, they required a new 'module' for their site which they drove the cost down to - not worth doing - but I feel obliged to complete the task and make their site 'complete' for them
631: [18:42:00] <FrozenFire> Is it in the spec?
632: [18:42:00] <r3v3rb> nope, added extra - just as the site was due to go live
633: [18:43:00] <r3v3rb> and hence they are being funny about payment :\ grrrr
634: [18:43:00] <FrozenFire> "Fuck you, pay me."
635: [18:43:00] <r3v3rb> once the site is done, it's the last thing I do for them
636: [18:44:00] <FrozenFire> Meh. Difficult clients are not worth going the extra mile for.
637: [18:44:00] <r3v3rb> nope, but they know alot of people in the area I work predominantly...
638: [18:44:00] <r3v3rb> due to their incompetence in doing stuff themselves the site has taken a year from the initial meeting to this stage
639: [18:44:00] * SMaction has joined #silverstripe
640: [18:45:00] <r3v3rb> so I don't want them bad-mouthing me and I know that the MD would, he's ??? a special kind of person
641: [18:47:00] <ss23> [User Error] collateDataFields() I noticed that a field called 'ContactType' appears twice.
642: [18:47:00] <ss23> great, now this mother fucking Silverstripe is getting all back-chatty
643: [18:47:00] <ss23> "oh bro I just noticed that you're a noob!"
644: [18:47:00] <r3v3rb> lmao
645: [18:47:00] <ss23> fml
646: [18:48:00] <r3v3rb> sheesh, why won't MAMP override the goddamn htaccess error reporting directive to off
647: [18:49:00] * wmk has joined #silverstripe
648: [18:53:00] <SMaction> I am trying to setup a development environment locally for a silverstripe 2.4.5 site. I am using Xammp and I thought I had everything set correctly but .... when I try to access the site I get a whole bunch of errors starting with this one Declaration of SiteConfig::getCMSFields() should be compatible with DataObject::getCMSFields($params = NULL). I have searched both Google and the
649: [18:53:00] <SMaction> Silverstripe site and I have not seen anything that appears to help me.
650: [18:55:00] <wmk> SMaction, can you paste more information somewhere? e.g. http://www.sspaste.com/
651: [18:56:00] <SMaction> wmk: what details do you want pasted? I will put them on pastebin
652: [18:56:00] * glados_ quit (Quit: Page closed)
653: [18:57:00] <wmk> at least the error and some code
654: [18:57:00] <FrozenFire> SMaction, 2.4.5 with what version of PHP?
655: [18:58:00] <simon_w|air> Shrike_Finland, upgrade to a later version of SS, or downgrade to PHP 5.3
656: [18:59:00] <simon_w|air> Bah, SMaction ^
657: [19:02:00] <r3v3rb> so error_reporting(E_ALL ^ E_NOTICE); makes no bloody difference in php.ini in MAMP on OSX
658: [19:02:00] <r3v3rb> restarted MAMP still get the NOTICE error
659: [19:02:00] <simon_w|air> r3v3rb, well, invalid syntax to start with
660: [19:02:00] <simon_w|air> and SS sets its own error level
661: [19:02:00] <r3v3rb> hehe
662: [19:02:00] <r3v3rb> where can I turn that off then?
663: [19:02:00] <FrozenFire> The framework core overrides error_reporting as the very first thing it does.
664: [19:03:00] <r3v3rb> pooop
665: [19:03:00] <FrozenFire> :P
666: [19:03:00] * lx-berlin_ has joined #silverstripe
667: [19:03:00] <FrozenFire> https://github.com/silverstripe/sapphire/blob/3.0/core/Core.php#L44
668: [19:03:00] <r3v3rb> how rude
669: [19:03:00] <simon_w|air> r3v3rb, first, just fix the error is a much better idea, second, switch to live mode
670: [19:03:00] <r3v3rb> simon_w|air: the error doesn't exist
671: [19:03:00] <FrozenFire> Obviously it does.
672: [19:03:00] <r3v3rb> its a php5.4 thingaymajig
673: [19:03:00] <r3v3rb> FrozenFire: :\
674: [19:04:00] <r3v3rb> afaik
675: [19:04:00] <r3v3rb> obviously there is an error in the core database.php that php5.4.10 doesn't like
676: [19:04:00] <simon_w|air> Wait until I'm at work and I'll get you the fix :p
677: [19:05:00] <wmk> anyone knows if translatable is compatible with 3.1?
678: [19:05:00] <FrozenFire> Meh. 5.4 is pretty thoroughly BC to 5.3
679: [19:05:00] <FrozenFire> wmk, Yes
680: [19:05:00] <simon_w|air> FrozenFire, Array to string error everywhere!
681: [19:05:00] <FrozenFire> https://github.com/silverstripe/silverstripe-translatable
682: [19:05:00] <wmk> i just installed it, ran dev/build but sitetree doesn't seem to have the extension
683: [19:05:00] <simon_w|air> wmk, did you add the extension to SiteTree?
684: [19:05:00] <FrozenFire> Did you flush?
685: [19:05:00] <r3v3rb> e*
686: [19:05:00] <r3v3rb> simon_w|air: you sir are a gentlman
687: [19:06:00] <FrozenFire> https://github.com/silverstripe/silverstripe-translatable/blob/master/docs/en/index.md
688: [19:06:00] <FrozenFire> You also have to add it to SiteTree, yes.
689: [19:06:00] <FrozenFire> SiteTree is part of the CMS module
690: [19:06:00] <FrozenFire> So having Translatable coupled to the CMS would be silly
691: [19:06:00] <FrozenFire> All of this being another way of saying "RTFM"
692: [19:07:00] <wmk> simon__w, isn't it added automatically? i see the extensions in translatable/_config/extensions.yml
693: [19:07:00] <wmk> and i see the locale field in db... weird
694: [19:08:00] <simon_w|air> off to work time
695: [19:08:00] <wmk> had an error where another module checked the dependency
696: [19:08:00] <wmk> ok, it IS installed...
697: [19:14:00] <r3v3rb> FrozenFire: what did you mean BC to 5.3?
698: [19:15:00] <wmk> it was a 3.0 / 3.1 change that threw the error...
699: [19:18:00] * nhorstme_ has joined #silverstripe
700: [19:18:00] <SMaction> wmk and FrozenFire: http://pastebin.com/Q6z1vsLy
701: [19:19:00] <FrozenFire> r3v3rb, Most all code that works in 5.3 should work the same in 5.4
702: [19:19:00] <wmk> SMaction, as simon__w said: try either latest Silverstripe 2.4 or downgrade to php 5.3
703: [19:20:00] <FrozenFire> Compat issues, that is
704: [19:20:00] <FrozenFire> Which is a fairly huge difference
705: [19:20:00] <SMaction> just saw that. Thanks
706: [19:20:00] <FrozenFire> SMaction, Yeah, you're very likely encountering 5.4 compat
707: [19:20:00] <FrozenFire> SS 2.4.5 was probably written in the context of PHP 5.2x
708: [19:21:00] <wmk> SMaction, maybe it's just an errorreporting issue
709: [19:22:00] <r3v3rb> FrozenFire: apart from Array to String fundamentally changing between 5.3 and 5.4 yes
710: [19:22:00] <wmk> is 5.4 really that faster than 5.3?
711: [19:22:00] <wmk> SMaction, see e.g. http://stackoverflow.com/questions/9983286/disabling-strict-standards-in-php-5-4
712: [19:23:00] <nhorstme_> Hi all, I've been looking through the docs for info on adding a style to the WYSIWYG styles dropdown and haven't been very successful. I thought it was as simple as adding the style to the typography.css assuming the editor.css file is setup.
713: [19:40:00] <r3v3rb> ok, here we go again - if I have a HTMLText field and want to alter it in the controller I should use $this->HTMLTextField correct or do I need to go deeper to get the content for manipulation?
714: [19:42:00] <r3v3rb> :)
715: [19:42:00] <r3v3rb> put me on /i
716: [19:49:00] * nhorstmeier has joined #silverstripe
717: [19:49:00] * nhorstme_ quit (Ping timeout: 264 seconds)
718: [19:55:00] * wmk quit (Ping timeout: 256 seconds)
719: [19:57:00] * nhorstmeier quit (Ping timeout: 264 seconds)
720: [20:07:00] <FrozenFire> It's only when you get a casted field that you get something different back, but you shouldn't ever encounter that
721: [20:07:00] <FrozenFire> r3v3rb, Yes, you can just get the field.
722: [20:07:00] <FrozenFire> Not outside of templates, that is.
723: [20:11:00] <r3v3rb> FrozenFire: yep figured out all by myself :) but left irc question hanging sorry
724: [20:12:00] <r3v3rb> can I override the default addRules directive to get /ID/OtherID/AnotherID
725: [20:12:00] * UndefinedOffset quit (Quit: Leaving.)
726: [20:13:00] * lx-berlin_ has left #silverstripe
727: [20:16:00] * zfmf has left #silverstripe
728: [20:18:00] <simon__w> r3v3rb, static $url_handlers = array('$ID/$OtherID/$AnotherID' => 'handleAction')
729: [20:20:00] * mobiusnz has joined #silverstripe
730: [20:32:00] <r3v3rb> simon__w: thank you
731: [20:32:00] <r3v3rb> thats perfect
732: [20:32:00] <r3v3rb> and saves messing with config
733: [20:32:00] * simon__w is now known as simon_w
734: [20:33:00] <simon_w> r3v3rb, also, change line 396 of Database.php to:
735: [20:33:00] <simon_w> $spec_msg=DB::getConn()->convertIndexSpec($spec);
736: [20:33:00] <simon_w> $this->alterationMessage("Index $table.$index: created as $spec_msg","created");
737: [20:36:00] * wmk has joined #silverstripe
738: [20:36:00] <r3v3rb> ;) simon_w cheers thats fixed the spurious 5.4 error
739: [20:37:00] * Pyromanik has joined #silverstripe
740: [20:37:00] <r3v3rb> what's the explanation behind the code ?
741: [20:37:00] <r3v3rb> whats the convertIndexSpec do out of interest
742: [20:38:00] <simon_w> Make the spec array readable
743: [20:40:00] * nickmolhoek has joined #silverstripe
744: [20:40:00] * nickmolhoek quit (Read error: Connection reset by peer)
745: [20:40:00] * nickmolhoek has joined #silverstripe
746: [20:51:00] <simon_w> Quick show of interest, who would like a SS3 version of http://simon.geek.nz/cms-less-silverstripe-install/ and http://simon.geek.nz/no-cms/?
747: [20:56:00] <Pyromanik> umm
748: [20:56:00] <Pyromanik> k?
749: [20:57:00] <r3v3rb> simon_w: I have been using SS3 without CMS for my last project
750: [20:58:00] <r3v3rb> worked out well, and client is very happy
751: [20:58:00] <r3v3rb> although the CMS was still there due to reporting not being fully detached at the time of starting :(
752: [20:58:00] <Pyromanik> should me much easier simon_w, no?
753: [20:58:00] <simon_w> Pyromanik, it's pretty much exactly the same
754: [20:59:00] <simon_w> r3v3rb, delete framework/admin
755: [20:59:00] <simon_w> It leaves SecurityAdmin (for members) and ModelAdmin
756: [20:59:00] <r3v3rb> simon_w: didn't the reporting module get detached from the CMS in 3.1?
757: [20:59:00] <Pyromanik> so leaving out cms module doesn't actually remove /admin's interface?
758: [20:59:00] <simon_w> It's just easier to delete the cms bits
759: [20:59:00] <simon_w> Pyromanik, yup
760: [20:59:00] <Pyromanik> simon_w: really?
761: [20:59:00] <r3v3rb> the site itself used none of it and was run using only bespoke routing to controllers
762: [21:00:00] <Pyromanik> simon_w: so your posts there are about removing /admin all together?
763: [21:00:00] <r3v3rb> will it happen
764: [21:00:00] <r3v3rb> when
765: [21:00:00] <r3v3rb> pants...
766: [21:00:00] * irogue has joined #silverstripe
767: [21:00:00] <simon_w> r3v3rb, nope
768: [21:00:00] <r3v3rb> simon_w: I needed that for the reporting, just didn't require Sitetree etc
769: [21:00:00] * pippy_ is now known as pippy
770: [21:01:00] <simon_w> Pyromanik, well, it's about building a SS site without using the standard page metaphor
771: [21:01:00] <r3v3rb> ;) I get it
772: [21:01:00] <simon_w> r3v3rb, when someone does it
773: [21:01:00] <simon_w> You would expect so
774: [21:01:00] <Pyromanik> make a controller, make a template, ???, profit?
775: [21:01:00] <Pyromanik> simon_w: but... that should be pretty straightforward no?
776: [21:02:00] <Pyromanik> but...
777: [21:02:00] <simon_w> People.
778: [21:03:00] <r3v3rb> well, i'm for a SS3 without CMS but that has Admin/Reporting built in to the core Framework still
779: [21:04:00] <simon_w> There's no way ReportAdmin's going into framework :p
780: [21:05:00] <r3v3rb> ok, well standalone then
781: [21:05:00] <simon_w> And it's rather easy to make something similar (probably even easier than using SS_Report) outside of /admin
782: [21:09:00] * r3v3rb quit (Quit: r3v3rb)
783: [21:09:00] <r3v3rb> bbl, stuff to do
784: [21:18:00] <Pyromanik> simon_w: yeh, seems pretty straight forward really. I assume an ss3 update would mostly be about new config style.
785: [21:19:00] <simon_w> Yeah, and then send it to Brooke so other people can find it
786: [21:22:00] * wmk quit (Ping timeout: 272 seconds)
787: [21:29:00] <simon_w> Mmm, I like my patch that lets me specify an action with a director rule
788: [21:29:00] <irogue> mmmmmm
789: [21:32:00] <Pyromanik> you should commit said patch.
790: [21:33:00] <Pyromanik> commit/push/pullrequest
791: [21:35:00] * SMaction quit ()
792: [21:36:00] * simon_w|ipad has joined #silverstripe
793: [21:37:00] <simon_w|ipad> Pyromanik: I should update it for SS3 first :p
794: [21:38:00] * simon_w quit (Ping timeout: 245 seconds)
795: [21:41:00] * willr has joined #silverstripe
796: [21:42:00] * simon_w has joined #silverstripe
797: [21:43:00] * simon_w|ipad has left #silverstripe
798: [22:40:00] * mrzero quit (Ping timeout: 245 seconds)
799: [22:44:00] * Zauberfisch|idle quit (Ping timeout: 246 seconds)
800: [22:46:00] <FrozenFire> That's beyond annoying.
801: [22:46:00] * FrozenFire mutters obscenities
802: [22:46:00] <FrozenFire> Since when is ScheduledTask deprecated?
803: [22:47:00] <FrozenFire> Wrong
804: [22:47:00] <simon_w> Since you should just use a BuildTask
805: [22:48:00] <FrozenFire> Not sure why it needed to be deprecated
806: [22:48:00] <FrozenFire> :P
807: [22:48:00] <FrozenFire> CliController
808: [22:48:00] <FrozenFire> Still
809: [22:48:00] <FrozenFire> Finding that shit at every turn, nowadays.
810: [22:48:00] <FrozenFire> "Whoops. Rewrite your code because we decided to do it differently this version"
811: [22:48:00] * Zauberfisch|idle has joined #silverstripe
812: [22:49:00] <simon_w> It's like you don't even read the upgrading docs
813: [22:51:00] <FrozenFire> The only difference between versions is the addition of a deprecation notice, sfaik
814: [22:51:00] <FrozenFire> Is there no way to have made ScheduledTask BC?
815: [22:51:00] <FrozenFire> The answer is, yes, it could've been
816: [22:51:00] <FrozenFire> And is, really.
817: [22:52:00] <FrozenFire> Hence my bawwwing
818: [22:52:00] <simon_w> Yup
819: [22:53:00] <FrozenFire> Unjustified deprecation
820: [22:55:00] <simon_w> https://github.com/silverstripe/sapphire/pull/1195
821: [22:55:00] <simon_w> Nope
822: [22:56:00] <FrozenFire> Yes. And there's a more reasonable upgrade route to be had, there, instead of immediate deprecation.
823: [22:57:00] <FrozenFire> Make it a set of config fields.
824: [22:57:00] <FrozenFire> With daily, weekly, monthly, yearly tasks all being loaded into arrays in the config
825: [22:58:00] <FrozenFire> :P
826: [22:58:00] <simon_w> And then deprecate the current usage, and have you bitch
827: [22:58:00] <FrozenFire> Then if you want to change hardcoded ones, you can simply move it between the configs.
828: [22:58:00] <FrozenFire> I'm going to bitch no matter what. The question is whether you're going to make me justified in bitching.
829: [22:58:00] <simon_w> Oh, I already know you're not
830: [22:59:00] <FrozenFire> I don't use interval-specific tasks like DailyTask
831: [22:59:00] <Pyromanik> other way around iirc
832: [22:59:00] <FrozenFire> That being said, ScheduledTask shouldn't have been deprecated, I don't think.
833: [22:59:00] <FrozenFire> I use ScheduledTask
834: [23:00:00] <Pyromanik> o.0
835: [23:00:00] <FrozenFire> Nothing else.
836: [23:00:00] <FrozenFire> It's CliController or BuildTask
837: [23:00:00] <Pyromanik> well, a sibling class then
838: [23:00:00] <FrozenFire> Everything that's called as a cronjob is now CliController
839: [23:00:00] <FrozenFire> CliController
840: [23:00:00] <FrozenFire> Nope
841: [23:00:00] <Pyromanik> in that case there's another class above it which is for scheduling
842: [23:00:00] <FrozenFire> I just found that out during project launch.
843: [23:00:00] <FrozenFire> ScheduledTask is most definitely deprecated.
844: [23:00:00] <Pyromanik> the defined interval tasks are deprecated
845: [23:01:00] <FrozenFire> Maybe I want to do an onAfterInit on all ScheduledTasks
846: [23:01:00] <Pyromanik> right
847: [23:01:00] <Pyromanik> well
848: [23:01:00] <Pyromanik> meh?
849: [23:01:00] <simon_w> No one's stopping you doing that
850: [23:01:00] <FrozenFire> ScheduledTask is gone.
851: [23:01:00] <Pyromanik> scheduled class was basically empty iirc?
852: [23:01:00] <simon_w> Was empty
853: [23:01:00] <simon_w> completely
854: [23:01:00] <Pyromanik> yeh
855: [23:01:00] <Pyromanik> so exactly IS a clicontroller
856: [23:01:00] <FrozenFire> Doesn't really matter. Ancestry is also useful for grouping things, and doing shit like extending a common parent.
857: [23:01:00] <Pyromanik> diy?
858: [23:02:00] <FrozenFire> Now I need to throw that shit on every CliController that's going to possibly be called
859: [23:03:00] * FrozenFire needs to do things. Just pretend like I've continued bitching about it
860: [23:13:00] * irogue quit (Read error: Connection reset by peer)
861: [23:14:00] * irogue has joined #silverstripe
862: [23:18:00] <Pyromanik> not a hard task FrozenFire :P
863: [23:19:00] <simon_w> (ss23, it doesn't go in the topic)
864: [23:19:00] <simon_w> Pyromanik, you going to be coming up for the hackathon?
865: [23:27:00] <Pyromanik> hahahaha
866: [23:27:00] <Pyromanik> simon_w: umm
867: [23:27:00] <simon_w> Do it!
868: [23:27:00] <Pyromanik> I had 60c in my bank yesterday, so chances are looking slim at the moment, but I'm hopeful
869: [23:27:00] <simon_w> We can laugh at ss23 in person :D
870: [23:27:00] <Pyromanik> brilliance
871: [23:27:00] <Pyromanik> I'll do it!
872: [23:28:00] <Pyromanik> ob1e!
873: [23:28:00] <Pyromanik> right
874: [23:28:00] <simon_w> silly hand, off by one
875: [23:28:00] <Pyromanik> what date again?
876: [23:28:00] <Pyromanik> 28th?
877: [23:28:00] <simon_w> 36th
878: [23:28:00] <Pyromanik> err, 25th?
879: [23:28:00] <simon_w> 25th
880: [23:29:00] <Pyromanik> ++handpos :<
881: [23:32:00] * spronk has joined #silverstripe
882: [23:37:00] <Pyromanik> now it seems to do what 2.4 did and give me <img src="assets/" alt="" />
883: [23:37:00] <Pyromanik> (in templates)
884: [23:37:00] <Pyromanik> I'm sure it did work at some point
885: [23:37:00] <Pyromanik> simon_w: why does ss3 not null on $Image->exists() == false?
886: [23:39:00] <simon_w> Is this inside an <% if $Image %>?
887: [23:40:00] <simon_w> And probably because you're returning an empty Image object, instead of no object
888: [23:41:00] <Pyromanik> but yeah, chaining makes sense
889: [23:41:00] <Pyromanik> oic
890: [23:41:00] <Pyromanik> yeah nah it's not in an if image
891: [23:41:00] <Pyromanik> I know to do taht
892: [23:42:00] <Pyromanik> usually does for relations, no?
893: [23:42:00] <simon_w> In an if, yes
894: [23:42:00] <Pyromanik> but doesn't template do an ->exists() check on it?
895: [23:48:00] * spronk has left #silverstripe
896: [23:49:00] * spronk has joined #silverstripe

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