#silverstripe IRC Log

IRC log for 1 February 2013

All timestamps are in UTC.

1: [00:00:00] <Marvanni> when I create a new has_one ChildDO
2: [00:00:00] <Marvanni> in a GridFieldConfig_RelationEditor Field in ModelAdmin
3: [00:02:00] <simon_w> It's not set until after the first write
4: [00:03:00] <FrozenFire> I need to, for instance, get a form from a CartItem that allows you to update/remove that item
5: [00:03:00] <FrozenFire> Trying to think about that that'd work.
6: [00:03:00] <FrozenFire> Is it feasible to have DataObjects as Form providers?
7: [00:04:00] <FrozenFire> Why?
8: [00:04:00] * Puneeth has joined #silverstripe
9: [00:04:00] * mirrors quit (Quit: Page closed)
10: [00:04:00] <simon_w> FrozenFire, if you can pass in a controller and method on that controller that returns the form
11: [00:04:00] <Marvanni> hmz... I need to set default values for a ChildDO from the ParentDO, any ideas?
12: [00:04:00] <FrozenFire> Marvanni, Use getters.
13: [00:05:00] <FrozenFire> simon_w, Yeah, that's what I'm trying to avoid.
14: [00:05:00] <FrozenFire> E.g. public function getSomeField() { return $this->getField("SomeField")?:$this->Parent()->SomeField; }
15: [00:05:00] <Marvanni> how?
16: [00:06:00] <FrozenFire> Marvanni, Yes.
17: [00:06:00] <FrozenFire> So maybe something like CartItemController?
18: [00:06:00] <simon_w> FrozenFire, you need a RequestHandler to process the form. DataObject isn't one
19: [00:06:00] <Marvanni> But The Parent is not there yet when creating a new Child....
20: [00:06:00] <FrozenFire> Putting an arseload of form providers on my CartPage_Controller
21: [00:07:00] <simon_w> Yeah, and then something like $ID!/$Action for its url_handler with your Link() method sticking the ID of the current request in
22: [00:07:00] <Puneeth> hello!!!
23: [00:07:00] <Puneeth> i got a problem with blog widget
24: [00:08:00] <Puneeth> its kinda disabled.. its says "click here to add widget" but, its not clickable..
25: [00:08:00] <Puneeth> has anyone facing this issue?
26: [00:09:00] <simon_w> can you take a screenshot and link it to us?
27: [00:12:00] <FrozenFire> If I have CartItem_CatalogItem which extends CartItem, and do CartItem::get()->byID(), will it get a descendent?
28: [00:12:00] <Puneeth> yep.. will send in soon
29: [00:12:00] <FrozenFire> I have a feeling I've encountered that before...
30: [00:13:00] <Puneeth> here u go. http://i.imgur.com/GoqHh6m.png?1?5733
31: [00:14:00] <simon_w> FrozenFire, yup
32: [00:15:00] * MrGuits quit (Read error: Connection reset by peer)
33: [00:15:00] <Puneeth> if u see the image, the blog archive, blog management are suppose to be links
34: [00:15:00] * MrGuits has joined #silverstripe
35: [00:16:00] * joha has joined #silverstripe
36: [00:25:00] * MrGuits quit (Read error: Connection reset by peer)
37: [00:25:00] * MrGuits has joined #silverstripe
38: [00:25:00] * SMaction quit ()
39: [00:26:00] <joha> hey just a quick question, is it possible to make sure the source of the TreeMultiselectField is from array not from database?
40: [00:27:00] <joha> i can see the "Overrides TreeDropdownField::__construct() (CAVEAT: for search to work properly $labelField must be a database field, or you need to setSearchFunction.) " on the doc page
41: [00:27:00] * catcher quit (Quit: Leaving)
42: [00:38:00] <Pyromanik> Puneeth: your blog folder is named wrong
43: [00:38:00] <Pyromanik> rename it from whatever it is to "blog"
44: [00:40:00] <Pyromanik> that's true
45: [00:40:00] * willr_ has joined #silverstripe
46: [00:40:00] <Pyromanik> maybe he doesn't have widgets installed?
47: [00:40:00] <Pyromanik> mmm yeah
48: [00:40:00] <simon_w> Isn't it the widgets folder now?
49: [00:41:00] <Pyromanik> Puneeth: another warning: RSSWidget is severely broken.
50: [00:41:00] <Pyromanik> don't use it.
51: [00:41:00] <Pyromanik> Either way the styles are missing, and I'm assuming they're hard linked.
52: [00:41:00] <Pyromanik> so it's likely that the folder is named wrong, so that stops the JS from loading too.
53: [00:41:00] <Pyromanik> RSSSubscribeWidget is fine though.
54: [00:45:00] * instabil2 has joined #silverstripe
55: [00:45:00] * instabil quit (Read error: Connection reset by peer)
56: [00:47:00] * Keksters has joined #silverstripe
57: [00:47:00] * joha quit (Ping timeout: 245 seconds)
58: [00:53:00] * instabil2 quit (Read error: Connection reset by peer)
59: [00:54:00] * instabil has joined #silverstripe
60: [00:54:00] * joha has joined #silverstripe
61: [00:55:00] * howardgrigg quit (Remote host closed the connection)
62: [00:56:00] <Puneeth> @Pyromanik thanks
63: [00:56:00] <Puneeth> i have the widgets installed
64: [00:56:00] <Puneeth> blog folder is silverstripe-blog
65: [00:57:00] <FrozenFire> Thought about overriding __call, but that's tricky in of itself
66: [00:57:00] <FrozenFire> Just need to forward the action calls
67: [00:57:00] <FrozenFire> simon_w, Any insight into how to forward form action calls to the object? I successfully have the form provider actions working...
68: [01:01:00] <Pyromanik> Puneeth: yeh, blog should be "blog" and widgets should be "widgets"
69: [01:01:00] <Pyromanik> (folder names)
70: [01:01:00] <Pyromanik> FrozenFire: just call the method from an accessor in the controller?
71: [01:02:00] <FrozenFire> Since the form calls the action on the controller
72: [01:02:00] <FrozenFire> But that isn't called for form actions
73: [01:02:00] <FrozenFire> Well, I overload handleAction for the form providers
74: [01:03:00] <Pyromanik> hashmap
75: [01:03:00] <Pyromanik> modify FormAction to parse a string of 'Class::method' instead of just 'method' ?
76: [01:03:00] <Pyromanik> or better, an array
77: [01:03:00] <Pyromanik> a tuple
78: [01:03:00] <Pyromanik> or smoething like that
79: [01:03:00] <Pyromanik> ooh
80: [01:04:00] <Pyromanik> then you could have a form calling multiple actions from the 1 submit
81: [01:04:00] <Pyromanik> spaghetti ALL the things!
82: [01:09:00] <simon_w> FrozenFire, when grabbing the form, loop through the actions, calling $this->addWrapperMethod($name, 'someMethod'); and then function someMethod($name, $data, $form, $request) { return $this->object->$name($data, $form, $request); }
83: [01:09:00] <simon_w> That could work
84: [01:13:00] <Puneeth> @pyromanik
85: [01:14:00] <Pyromanik> then ?flush=all
86: [01:14:00] <Puneeth> @pyromanik renaming the widgets folder to "widgets" and blog folder to "blog" doesnt seem to work
87: [01:14:00] <Pyromanik> Puneeth: dev/build
88: [01:14:00] <Puneeth> the widgets tab doesnt appear on the blog page (admin)
89: [01:15:00] <simon_w> FrozenFire, bane if the method should be the first argument
90: [01:15:00] <Puneeth> yep.. it builds..
91: [01:15:00] <Puneeth> blog holder**
92: [01:15:00] <FrozenFire> simon_w, Trick with that is, it doesn't pass through what the method name is
93: [01:15:00] <Pyromanik> it's not for building, it's for refreshing the manifests
94: [01:15:00] <FrozenFire> So it's not possible to map
95: [01:16:00] <simon_w> *name
96: [01:16:00] <FrozenFire> Ah. The caller is confusing. :P
97: [01:16:00] <simon_w> is how the relationship getters work
98: [01:16:00] * instabil2 has joined #silverstripe
99: [01:17:00] <Pyromanik> Puneeth: did you flush?
100: [01:19:00] * instabil quit (Read error: Connection reset by peer)
101: [01:20:00] <Puneeth> yep.. i did flush
102: [01:20:00] <FrozenFire> Hrmm, this is getting more confusing by the minute
103: [01:21:00] <Pyromanik> hmm
104: [01:21:00] <Pyromanik> dunno man, should just work.
105: [01:23:00] <Puneeth> hmm.. thanks.. will play around with it
106: [01:23:00] * normann quit (Quit: normann)
107: [01:23:00] <FrozenFire> Well... I'm so confused now.
108: [01:24:00] <FrozenFire> It still calls the default
109: [01:24:00] <FrozenFire> public static $url_handlers = array( '$ID/$Action' => 'handleAction' );
110: [01:24:00] <Pyromanik> Puneeth: I recommend making sure that your modules are up to date
111: [01:25:00] <Pyromanik> and or your SS version
112: [01:26:00] <Puneeth> v3
113: [01:27:00] <Pyromanik> should be fine
114: [01:27:00] <Pyromanik> cool
115: [01:27:00] <Pyromanik> and presumably your modules from github
116: [01:28:00] <Puneeth> yes, i downloaded from github.
117: [01:30:00] <Pyromanik> no
118: [01:30:00] <Pyromanik> flush after build
119: [01:30:00] <Pyromanik> do not flush on build
120: [01:30:00] <Puneeth> build/?flush=all creates the blog and widget tables
121: [01:30:00] <Pyromanik> sounds like you didn't flush
122: [01:30:00] <Puneeth> when the folder name was "silverstripe-widget", i could at least see the widget tab
123: [01:31:00] <Puneeth> ok.. ill try that
124: [01:33:00] <Puneeth> nop. didnt work
125: [01:35:00] <Puneeth> i think i found the problem.. thats from my side..
126: [01:36:00] <Puneeth> will let u know if that resolved.
127: [01:37:00] * catcher has joined #silverstripe
128: [01:38:00] <Puneeth> sweet!!! got it :)
129: [01:38:00] <Puneeth> thanks Pyromanik
130: [01:41:00] * liam has joined #silverstripe
131: [01:44:00] <Pyromanik> Puneeth: what was it, out of interest?
132: [01:46:00] <Puneeth> my bad.. i had another BlogHolder.php and ss file that caused the problem
133: [01:46:00] <catcher> Hey guys, I've got a live site running 2.4 puking on me, PHP Warning: Director::protocolAndHost() lacks sufficient information - HTTP_HOST not set. in Director.php line 388
134: [01:46:00] <Puneeth> :|
135: [01:46:00] <catcher> It happened out of nowhere, so I don't suspect SS, but I'd certainly appreciate a hand getting it back online.
136: [01:47:00] <Puneeth> [Warning] require_once(../../silverstripe-blog/code/Zend/Date.php): failed to open stream: No such file or directory
137: [01:47:00] <Puneeth> lol.. now that is resolved, here is another problem.
138: [01:48:00] <Puneeth> this happens when i open the blog webpage
139: [01:48:00] <liam> is there a way of taking two un-related objects and rendering them with a single template?
140: [01:49:00] <catcher> liam, yes, but you'll have to create your own ArrayList of ArrayDatas
141: [01:49:00] <Pyromanik> Puneeth: on what line of what file?
142: [01:49:00] <Pyromanik> catcher: no idea sorry
143: [01:50:00] <catcher> fml
144: [01:50:00] <Puneeth> Line 240 in C:\inetpub\wwwroot\NSGNZ\blog\code\BlogTree.php
145: [01:50:00] <Pyromanik> perhaps the host updated the server on you
146: [01:50:00] <catcher> simon_w, you here?
147: [01:50:00] <Puneeth> however, im not using a BlogTree page type.. im just having a BlogHolder and a BlogEntry in it
148: [01:50:00] <Pyromanik> catcher: shared hosting?
149: [01:50:00] <Pyromanik> Puneeth: that's standard setup
150: [01:51:00] <Pyromanik> but BlogHolder inherits from BlogTree
151: [01:52:00] <simon_w> catcher, bitch to your host. Especially if they've just switched you to something like FastCGI without setting up the environment properly
152: [01:52:00] <Puneeth> okay.
153: [01:52:00] <Pyromanik> you might need to update again
154: [01:52:00] <Pyromanik> https://github.com/silverstripe/silverstripe-blog/blob/master/code/BlogTree.php#L240
155: [01:52:00] <Pyromanik> Puneeth: umm
156: [01:53:00] <Pyromanik> as I thought
157: [01:53:00] <Pyromanik> mm
158: [01:53:00] <Puneeth> ok.. ill just update the entire file
159: [01:57:00] * howardgrigg has joined #silverstripe
160: [01:58:00] <simon_w> no
161: [01:58:00] <catcher> simon_w, internal host, with no changes to the box, though I suspect some related network issues.
162: [01:58:00] * howardgrigg quit (Remote host closed the connection)
163: [01:58:00] <catcher> simon_w, you think DNS issues cause something like that?
164: [01:59:00] <catcher> so weird, I haven't touched the box in weeks.
165: [02:03:00] * willr_ quit (Quit: willr_)
166: [02:04:00] <Puneeth> All works well.. expect when I want just last months entities, i get this error.
167: [02:04:00] <Puneeth> Pyromanik :
168: [02:04:00] <Puneeth> [User Error] Uncaught Zend_Date_Exception: invalid date (1 MONTH) operand, timestamp expected GET /NSGNZ/blog/ Line 2139 in C:\inetpub\wwwroot\NSGNZ\framework\thirdparty\Zend\Date.php
169: [02:05:00] <Puneeth> If i choose to see all the entries, then no probs..
170: [02:14:00] * pex__ has left #silverstripe
171: [02:18:00] <Pyromanik> most of the blog code base is out of date
172: [02:18:00] <Pyromanik> I've not used the archive function
173: [02:18:00] <Pyromanik> heh, interesting
174: [02:18:00] <Pyromanik> Puneeth: It might be a bug
175: [02:19:00] <Pyromanik> (was it you who said they were using 3.0.2?)
176: [02:19:00] <Pyromanik> try updating SS to 3.0.3
177: [02:19:00] <Pyromanik> although I just tried it on my latest work, seems to function fine for me
178: [02:23:00] <Puneeth> ok.. nop. i didnt mention anything about the version
179: [02:27:00] * liam quit (Quit: liam)
180: [02:30:00] * liam has joined #silverstripe
181: [02:33:00] * UncleCheese has joined #silverstripe
182: [02:33:00] <Marvanni> i now have a small start with the GridFieldInlineEditing http://sspaste.com/paste/show/510b295a5f102
183: [02:34:00] <Marvanni> but ofr each row the same $record is used?
184: [02:49:00] <Marvanni> hm does the i18nTextCollectorTask in ss 3 realy need PHPUnit?
185: [02:51:00] * liam quit (Quit: liam)
186: [02:54:00] <Keksters> So because jQuery is already within the CMS I don't need to reference it again when calling a plugin into a page?
187: [02:54:00] <Keksters> I just need some quick reassurance here:
188: [02:57:00] * liam has joined #silverstripe
189: [02:59:00] * catcher quit (Ping timeout: 248 seconds)
190: [02:59:00] <Pyromanik> Keksters: depends whether or not by 'page' you mean back end editing it or viewing it on the front end
191: [03:00:00] <Pyromanik> CMS, no. Front end, <% require javascript(framework/thirdparty/jquery/jquery.min.js) %>
192: [03:00:00] <Pyromanik> or, Requirements::javascript('framework/thirdparty/jquery/jquery.min.js');
193: [03:03:00] <Keksters> Okay cool.
194: [03:04:00] <priithansen> Marvanni: there is a patch in github for the text collector to work without phpunit
195: [03:05:00] <Pyromanik> (nfi)
196: [03:05:00] <Pyromanik> I don't even unit
197: [03:05:00] <Keksters> Bro do you even lift?
198: [03:06:00] <Pyromanik> BROOOOOOOOOOO
199: [03:06:00] <Pyromanik> http://i.imgur.com/nRJQY.jpg
200: [03:06:00] <Keksters> Oh birdswitharms.
201: [03:06:00] <Pyromanik> starecrow
202: [03:06:00] <ss23> yolo
203: [03:06:00] <ss23> You only lift once.
204: [03:06:00] <Pyromanik> lifts hard
205: [03:06:00] <Keksters> animalswithoutnecks is my favourite.
206: [03:07:00] <Pyromanik> Keksters inadvertantly sets off a channel where dyel is more than a meme
207: [03:07:00] <ss23> Rolling on floor lifting
208: [03:07:00] <ss23> rofl
209: [03:07:00] <Pyromanik> http://i.imgur.com/qWKKK.jpg
210: [03:08:00] <Pyromanik> it's a whole thing.
211: [03:08:00] <irogue> is it vodka o'clock yet?
212: [03:08:00] <Pyromanik> Zero lifting going on over there.
213: [03:08:00] <Pyromanik> still no WDCNZ news
214: [03:08:00] <Pyromanik> GODAMMIT
215: [03:08:00] <Keksters> It's not the worst thing I've set a channel off in a tangent about.
216: [03:09:00] <Marvanni> hm even if I set restrictToModules it still parses all the folder...
217: [03:09:00] <Keksters> Mmm. A mule would be great right now
218: [03:09:00] <simon_w> No
219: [03:09:00] <Pyromanik> Marvanni: what?
220: [03:10:00] <Pyromanik> LIFTS!
221: [03:10:00] <irogue> one with vodka instead of beer :P
222: [03:10:00] <Pyromanik> j4y
223: [03:10:00] <Pyromanik> irogue: what, one where MC Hammer lifts beer?
224: [03:10:00] <irogue> need a modified version of http://isitbeeroclockyet.silverstripe.com/new/
225: [03:10:00] <Pyromanik> maybe
226: [03:10:00] <Pyromanik> or whatever it is
227: [03:10:00] <Pyromanik> _Manifest_exclude
228: [03:10:00] * Pyromanik shrugs
229: [03:10:00] <Marvanni> i18nTextCollector::run($restrictToModules = null)
230: [03:11:00] <Marvanni> will first loop over all folders including framework and then unsets them
231: [03:11:00] <Pyromanik> we
232: [03:11:00] <Marvanni> like i was used in 22 2.4 for lang php files
233: [03:11:00] <Pyromanik> Marvanni: no idea what you're doing sorry
234: [03:11:00] <Pyromanik> irogue: hahaha, beer o'clock is early?
235: [03:11:00] <Marvanni> generating yml lang files
236: [03:11:00] <Pyromanik> j4u
237: [03:11:00] <Keksters> I have the feeling it's always beer o'clock
238: [03:12:00] <Pyromanik> how that works sorry
239: [03:12:00] <Pyromanik> I don't know
240: [03:15:00] * Keksters quit (Ping timeout: 245 seconds)
241: [03:15:00] * Shrike_Finland quit (Ping timeout: 252 seconds)
242: [03:15:00] * Shrike_Finland1 has joined #silverstripe
243: [03:20:00] * Puneeth quit (Ping timeout: 245 seconds)
244: [03:27:00] <irogue> boss just got beer out of the fridge
245: [03:27:00] <irogue> therefore beer o'clock has officially started
246: [03:36:00] * UncleCheese quit (Quit: UncleCheese)
247: [03:49:00] * priithansen quit (Quit: priithansen)
248: [03:58:00] <liam> any ideas how to create a php datetime object by combining silverstripe date and time objects?
249: [03:58:00] <simon_w> new DateTime($this->Date . ' ' . $this->Time)
250: [03:58:00] <Pyromanik> irogue: boss bought beer around on a tray
251: [03:59:00] <Pyromanik> 45 secs
252: [03:59:00] <Pyromanik> close enough
253: [03:59:00] <Pyromanik> lol
254: [03:59:00] <Pyromanik> GG
255: [03:59:00] <Pyromanik> have good weekends
256: [03:59:00] * Pyromanik has left #silverstripe
257: [03:59:00] <simon_w> Try to get through the sevens idiots time!
258: [03:59:00] <Pyromanik> unsure if that means it's ok to leave desk yet :<
259: [03:59:00] <Pyromanik> lol
260: [03:59:00] <simon_w> Beer fridge is right next to my desk
261: [04:05:00] * DigNZ quit (Quit: DigNZ)
262: [04:06:00] * nickmolhoek quit (Quit: nickmolhoek)
263: [04:09:00] * DigNZ has joined #silverstripe
264: [04:10:00] * gelignite quit (Quit: http://bit.ly/nkczDT)
265: [04:10:00] * DigNZ quit (Client Quit)
266: [04:12:00] * DigNZ quit (Client Quit)
267: [04:12:00] * DigNZ has joined #silverstripe
268: [04:15:00] * mirrors has joined #silverstripe
269: [04:17:00] <mirrors> Hey everyone I am having trouble using the GridFieldSortableRows component. It works fine when sorting class A that extends DataObject...however it doesnt work with class B and C that extend class A because one of the functions look for the class B and C tables to be in the database
270: [04:17:00] <mirrors> but silverstripe store classes A B and C all in the A table
271: [04:19:00] <mirrors> i hope that makes senese
272: [04:19:00] * hubertusanton quit (Ping timeout: 276 seconds)
273: [04:20:00] * hubertusanton has joined #silverstripe
274: [04:34:00] * joha quit (Quit: Page closed)
275: [04:36:00] <liam> what is the best way to subtract hours off a datetime and then save the result into a date field and time field?
276: [04:42:00] * instabil has joined #silverstripe
277: [04:43:00] * instabil2 quit (Ping timeout: 248 seconds)
278: [04:44:00] * cloph_away has joined #silverstripe
279: [04:46:00] * cloph_away1 quit (Ping timeout: 255 seconds)
280: [04:49:00] * simon_w|air has joined #silverstripe
281: [04:51:00] * liam quit (Quit: liam)
282: [04:56:00] * liam has joined #silverstripe
283: [04:57:00] * congii quit (Ping timeout: 245 seconds)
284: [05:07:00] * liam quit (Quit: liam)
285: [05:17:00] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
286: [05:29:00] * Error404NotFound has joined #silverstripe
287: [05:38:00] * mirrors quit (Quit: Page closed)
288: [05:54:00] * liam has joined #silverstripe
289: [06:06:00] * dendeffe has joined #silverstripe
290: [06:38:00] * liam quit (Read error: Connection reset by peer)
291: [06:40:00] * dendeffe quit (Quit: dendeffe)
292: [06:55:00] * Unlearned has joined #silverstripe
293: [07:05:00] * simon_w|air quit (Quit: Leaving)
294: [07:09:00] * simon_w|air has joined #silverstripe
295: [07:46:00] * Shrike_Finland1 quit (Quit: Leaving.)
296: [07:58:00] * dendeffe has joined #silverstripe
297: [08:16:00] * zfmf has joined #silverstripe
298: [08:22:00] * howardgrigg has joined #silverstripe
299: [08:34:00] * howardgrigg has joined #silverstripe
300: [08:34:00] * howardgrigg quit (Remote host closed the connection)
301: [08:38:00] * howardgrigg quit (Remote host closed the connection)
302: [08:39:00] * howardgrigg has joined #silverstripe
303: [08:54:00] * chillu has joined #silverstripe
304: [09:05:00] * CHIex|2 has joined #silverstripe
305: [09:05:00] * lx-berlin has joined #silverstripe
306: [09:05:00] * CHIex has joined #silverstripe
307: [09:21:00] * ARNHOFF has joined #silverstripe
308: [09:33:00] * travis-ci has joined #silverstripe
309: [09:33:00] * travis-ci has left #silverstripe
310: [09:33:00] <travis-ci> [travis-ci] silverstripe/sapphire#1302 (3.0 - b381e99 : Ingo Schommer): The build passed.
311: [09:33:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/d77e06d58516...b381e9933d3b
312: [09:33:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4513920
313: [09:48:00] * liam has joined #silverstripe
314: [09:49:00] <liam> anyone here used twilio with SS?
315: [09:55:00] <g4b0> hi all
316: [09:55:00] * g4b0 has joined #silverstripe
317: [09:55:00] <g4b0> git problem :(
318: [09:56:00] <g4b0> now if I try "git rebase upstream/3.1"
319: [09:56:00] <g4b0> I did a "git rebase upstream/master on 3.1 branch"
320: [09:56:00] <g4b0> I get a lot of conflicts
321: [09:57:00] <g4b0> how can I restore a cms 3.1 branch?
322: [10:05:00] * webguest has joined #silverstripe
323: [10:05:00] <webguest> http://paste2.org/p/2816786
324: [10:05:00] <webguest> in a form function i would like to merge the form $data with a dataobject (siteconfig) so i can use the siteconfig variables in my template
325: [10:06:00] <webguest> so i guess im not doing it correctly
326: [10:06:00] <webguest> my merge works, but im not getting any data in my template now..
327: [10:06:00] <g4b0> sorry :)
328: [10:06:00] <g4b0> git reflog show 3.1 --date=local
329: [10:06:00] <g4b0> git reset --hard 3.1@{1}
330: [10:06:00] <g4b0> and then
331: [10:06:00] <g4b0> git reflog show 3.1 --date=local
332: [10:06:00] <g4b0> I solved with a
333: [10:10:00] * funkygibbon quit (*.net *.split)
334: [10:10:00] * robert_ quit (*.net *.split)
335: [10:11:00] <webguest> Or how can i use <% if SiteConfig.Address %>$SiteConfig.Address<% end_if %> in my email template? Do i need to populate this variable into my template?
336: [10:11:00] * funkygibbon has joined #silverstripe
337: [10:12:00] <howardgrigg> I can't remember but I have a feeling it has to be just a keyed array
338: [10:12:00] <howardgrigg> webguest: is the $email-populateTemplate function expecting a dataobjectset or just a simple array?
339: [10:12:00] * kinglozzer has joined #silverstripe
340: [10:13:00] * robert_ has joined #silverstripe
341: [10:13:00] <howardgrigg> you could do something like $data['address'] == $config->Address;
342: [10:14:00] <howardgrigg> then just pass data into the template
343: [10:15:00] <webguest> howardgrigg: please see ttp://paste2.org/p/2816786
344: [10:16:00] <webguest> http://paste2.org/p/2816786
345: [10:16:00] <howardgrigg> yea that was what I was talking about
346: [10:21:00] <howardgrigg> C10ne: yup you need the module
347: [10:21:00] * C10ne has joined #silverstripe
348: [10:21:00] <C10ne> Hey ppl, I thought that SS3 has included mobile detection... Am I wrong, do I have to use a module for that?
349: [10:21:00] <howardgrigg> webguest: see http://paste2.org/p/2816803
350: [10:21:00] <webguest> ok great, ill add
351: [10:21:00] <webguest> moment
352: [10:22:00] <C10ne> OK, thanks howardgrigg :)
353: [10:22:00] <howardgrigg> the default theme is now responsive
354: [10:23:00] <C10ne> And also remove a lot of stuff for faster loading
355: [10:23:00] <howardgrigg> yea sounds good :)
356: [10:23:00] <C10ne> I know that, but I want to add a different menu for mobile devices, not just convert the original one
357: [10:24:00] <howardgrigg> C10ne: this is what you want https://github.com/silverstripe/silverstripe-mobile
358: [10:26:00] <webguest> you can better make a responsive website
359: [10:26:00] <webguest> see my website, www.robvaneckdesign.nl for an idea on responsive design
360: [10:26:00] <C10ne> yeah, looking at that one, but I also have a nice php script I will use, it's much lighter, and I don't need all the features from that module (will keep the same theme, just load/unload features based on device)
361: [10:27:00] <lx-berlin> you can also build a site with a mobile version without any module. check on your mobile device : www.secowarwick.com
362: [10:27:00] <howardgrigg> night guys :)
363: [10:28:00] * howardgrigg quit (Remote host closed the connection)
364: [10:28:00] <lx-berlin> looks nice. did you design it?
365: [10:28:00] <webguest> lx-berlin, me? yes i designed it, also see my work
366: [10:28:00] <lx-berlin> bye
367: [10:29:00] <lx-berlin> it looks a little bit like our design for our next website :) now we have to change our design :)
368: [10:29:00] <C10ne> nice one webguest
369: [10:29:00] <webguest> haha :D i always try to do something new
370: [10:29:00] <webguest> this website is also responsive, a lot of work went into css
371: [10:30:00] <lx-berlin> really nice work
372: [10:30:00] <lx-berlin> ok
373: [10:30:00] <webguest> so i have 1 plug-in for all devices
374: [10:30:00] <webguest> using a swiper that allows touch, drag and drop, arrow keys, scroll
375: [10:34:00] <lx-berlin> why dont they see the existing joboffers in the grid ? what else needs to be done?
376: [10:34:00] <webguest> got another cool responsive website done next week
377: [10:34:00] <lx-berlin> i never needed to add cms users with limited rights. Now we client ask for 2 admins that can only access some of the modeladmins. So i created a new group in the cms "Jobauthors" that have the permission to Access to 'Company' section. When they login they can only see this part of the cms (which is good). But the grid is empty for them ?!
378: [10:37:00] <lx-berlin> hmm, such an administrator can add a job in modeladmin. The message "Saved Job #11" appears. But then again he cannot see it in the grid
379: [10:37:00] * liam quit (Quit: liam)
380: [10:39:00] <lx-berlin> When i login as an administrator with full rights, i can see that the jobs have successfully been added. So i guess its just a problem for the other admin of missing rights to view items
381: [10:41:00] <lx-berlin> yep :)
382: [10:41:00] <kinglozzer> You need to set up your canView, canEdit etc methods for your DataObject
383: [10:41:00] <kinglozzer> lx-berlin
384: [10:42:00] <kinglozzer> Those are what I always use
385: [10:42:00] <kinglozzer> Default permissions for DataObject are admin only
386: [10:42:00] <lx-berlin> ah
387: [10:42:00] <kinglozzer> lx-berlin: http://pastie.org/6008110
388: [10:42:00] <lx-berlin> so in function canView() { } i have to check in which group the logged in admin is ?
389: [10:43:00] <lx-berlin> ah, thanks. I will test it
390: [10:44:00] <salami2> Hello
391: [10:44:00] * salami2 has joined #silverstripe
392: [10:46:00] <salami2> I want a checkbox in a gridfield to deactivate/activate elements, i found nothing yet in google, has anyone a hint?
393: [10:48:00] <g4b0> If a extend a DataObject with a DataExtension that define some $summary_fields
394: [10:49:00] <g4b0> but the only populated colums are the ones from the DataExtension
395: [10:49:00] <g4b0> when displaying the gridfield I have all columns ($summary_fields from DO and from DE)
396: [10:50:00] <g4b0> If I edit the DO everything is ok
397: [10:50:00] <g4b0> the other are void
398: [10:50:00] <g4b0> how can I solve it?
399: [10:57:00] * liam has joined #silverstripe
400: [10:58:00] <kinglozzer> g4b0: My guess is you probably need to create some functions in your DE for getting the values. If your column is called 'Date', you'll need to create a function called Date() or perhaps getDate() - I can't remember which - that returns the date how you'd like it to be displayed
401: [10:59:00] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
402: [11:03:00] <g4b0> kinglozzer: my problem is the opposite! DE values are displayed, but Do values aren't.
403: [11:03:00] <g4b0> DO colums are displayed, but they're void!!
404: [11:04:00] * simon_w|air quit (Quit: This computer has gone to sleep)
405: [11:05:00] <kinglozzer> http://api.silverstripe.org/3.0/framework/model/DataExtension.html#methodupdateSummaryFields
406: [11:05:00] <kinglozzer> g4b0: You should be using updateSummaryFields()
407: [11:06:00] <g4b0> it sounds nice :)
408: [11:06:00] <g4b0> mmm
409: [11:13:00] <g4b0> kinglozzer: it doesn't work :(
410: [11:14:00] <g4b0> now I display the DO column with values, but the DE colums doesn't appaers,,,
411: [11:15:00] <kinglozzer> g4b0: It does work, it's what it's there for! Is one an associative array and one not? They should both be the same type of array
412: [11:17:00] <g4b0> $fields['Published'] = 'Published';
413: [11:17:00] <g4b0> maybe I miss something?
414: [11:17:00] <g4b0> public function updateSummaryFields($fields) {
415: [11:17:00] <g4b0> //var_dump($fields); exit;
416: [11:17:00] <g4b0> $fields['Modified'] = 'Modified';
417: [11:17:00] <g4b0> }
418: [11:17:00] <g4b0> static $summary_fields = array(
419: [11:17:00] <g4b0> 'Denomination' => 'Nome',
420: [11:17:00] <g4b0> );
421: [11:18:00] <kinglozzer> public function updateSummaryFields(&$fields) {
422: [11:18:00] <kinglozzer> Pass $fields by reference :)
423: [11:19:00] <g4b0> it seems ok
424: [11:19:00] <lx-berlin> ok
425: [11:19:00] <g4b0> now it works :)
426: [11:19:00] <lx-berlin> in php
427: [11:19:00] <lx-berlin> isnt that deprecated ?
428: [11:19:00] <kinglozzer> Not that I'm aware of
429: [11:20:00] <lx-berlin> i guess you have notices disabled in your php.ini :)
430: [11:20:00] <g4b0> maybe I have to call parent:: updateSummaryFields ?
431: [11:20:00] <g4b0> Also me I was thinking that it's deprecated...
432: [11:20:00] <kinglozzer> lx-berlin: Ah, yes it is http://php.net/manual/en/language.references.pass.php
433: [11:21:00] <kinglozzer> g4b0: Nope, you'll have to pass it by reference until it's removed from SS core
434: [11:21:00] <g4b0> no, I haven't
435: [11:22:00] <g4b0> that is a function definition
436: [11:22:00] <kinglozzer> Actually, it isn't fully deprecated
437: [11:22:00] <kinglozzer> ^^
438: [11:22:00] <kinglozzer> Just not when you call it
439: [11:22:00] <kinglozzer> You can still use the & when you define a function
440: [11:22:00] <g4b0> There is no reference sign on a function call - only on function definitions.
441: [11:22:00] <g4b0> :)
442: [11:22:00] <kinglozzer> So you're fine to use it g4b0
443: [11:22:00] <kinglozzer> Yep :)
444: [11:23:00] <g4b0> so it's not deprecated, lx-berlin :)
445: [11:23:00] <lx-berlin> i have to say that was only half knowledge from me (as usual) :)
446: [11:23:00] <kinglozzer> No problem
447: [11:23:00] <g4b0> thanks a lot kinglozzer
448: [11:24:00] <lx-berlin> kinglozzer: i added now: public function canView($member=null) {
449: [11:24:00] <g4b0> what extraStatics() is for?
450: [11:24:00] <g4b0> just for talking
451: [11:24:00] <lx-berlin> seems to work fine.
452: [11:24:00] <lx-berlin> }
453: [11:24:00] <lx-berlin> return Permission::check('CMS_ACCESS_CompanyAdmin');
454: [11:26:00] <lx-berlin> but i added an extension (https://github.com/lx-berlin/silverstripe-flags) to the grid. It adds 2 flags as gridactions. these flags are still missing for the admin with restricted permissions. Now i have to find out how to shows these extra actions for this admin
455: [11:29:00] <lx-berlin> thanks again
456: [11:29:00] <lx-berlin> ah, i just added public function canView($member=null) { return true; } etc. to the module itself
457: [11:30:00] <kinglozzer> No problem :P
458: [11:31:00] <lx-berlin> kinglozzer: i am just wondering why i can define limited rights for admins, only with clicking in the cms. But its not working out of the box. I have to make changes in the code.
459: [11:31:00] <kinglozzer> g4b0: I think it's deprecated
460: [11:32:00] <kinglozzer> Well, it's included in 3.0.3, but it warns you it'll be deprecated in 3.1
461: [11:32:00] <kinglozzer> If you look at the DataExtension class, get_extra_config() has a deprecation message for it in 3.1
462: [11:32:00] * g4b0 lunch time
463: [11:32:00] <g4b0> ok, but there's no mention into the code
464: [11:33:00] <kinglozzer> lx-berlin: It does seem strange to me that DataObjects are admin only by default. There was talk of changing it, but it opens up huge security holes if people update to a new framework version without checking their permissions
465: [11:34:00] <kinglozzer> Suddenly all DataObjects would be accessible by everyone when that might not be intended
466: [11:36:00] <lx-berlin> what i mean is: i added a new group in the cms. I assigned the right "access CompanyAdmin" to this group. I added a admin to this group. When the new admin logs in (and i have no specific rights defined in php) he can access only this part of the cms. He CAN add new Jobs. But he cannot see them
467: [11:36:00] * PigeonFriend has joined #silverstripe
468: [11:36:00] <lx-berlin> i dont think that this makes much sense
469: [11:37:00] <PigeonFriend> Hi guys, I'm looking at using the ListboxField in the CMS, however it only allows you to select items that already exist in the DB. Before I go and extend it to allow users to add their own, does this feature exist alreay?
470: [11:38:00] <lx-berlin> I dont even know what the ListboxField is :)
471: [11:42:00] <Unlearned> I just did /dev/build?flush=all and now my admin page seems to be broken. It looks like a mix of my front page
472: [11:42:00] * dendeffe quit (Quit: dendeffe)
473: [11:42:00] <Unlearned> hey everyone
474: [11:42:00] <Unlearned> build was successful
475: [11:43:00] * liam has left #silverstripe
476: [11:44:00] <kinglozzer> PigeonFriend: Not that I'm aware of. It's an extension of DropdownField which always has a fixed source. You can create a DataObject e.g. MenuItem then set that as the source using ->setSource(). They could then add new 'MenuItems' in the CMS ?
477: [11:44:00] <lx-berlin> maybe its loading now some css that was intended for the website ? i would take a look at the network tab in firebug which css files get loaded in the cms
478: [11:44:00] <Unlearned> found the problem. I included static $extensions = array(
479: [11:44:00] <Unlearned> 'Translatable'
480: [11:44:00] <Unlearned> );
481: [11:44:00] <Unlearned> in one page heh
482: [11:45:00] <Unlearned> sorry for accidental spam
483: [11:45:00] * Unlearned has joined #silverstripe
484: [11:45:00] <PigeonFriend> kinglozzer: ok, I did something similar for 2.4 (https://github.com/dhensby/silverstripe-quickaddfield) so I think I'll extend ListboxField to allow someone to add a new value
485: [11:45:00] * Unlearned has left #silverstripe
486: [11:46:00] <kinglozzer> PigeonFriend: Cool, would be a nice extension :)
487: [11:47:00] <kinglozzer> PigeonFriend: https://github.com/sheadawson/silverstripe-quickaddnew
488: [11:47:00] <kinglozzer> Is that what you're looking for?
489: [11:49:00] * dendeffe has joined #silverstripe
490: [11:50:00] <PigeonFriend> cheers
491: [11:50:00] <PigeonFriend> not as clean as I'd have done it, but that's basically it :)
492: [11:50:00] <PigeonFriend> kinglozzer: nice
493: [11:51:00] <kinglozzer> I think one of the SS team did something similar as well, called tagfield or something
494: [11:51:00] <kinglozzer> For adding tags to things
495: [11:51:00] <lx-berlin> kinglozzer: one last word about these permissions: because one modeladmin can manage more than 1 dataobject, the cms should offer a checkbox to give persmission for each of these tabs. Now i only can enable/disable "Access to Company section". Although the company section consists of 6-7 modeladmins
496: [11:52:00] <lx-berlin> i think i will write a ticket for this as an improvement :)
497: [11:52:00] <kinglozzer> lx-berlin: Agreed it should be in the CMS as a tickbox, I have a temporary solution though. Hold on
498: [11:53:00] <kinglozzer> So in my example, anyone can access 'Supplier' but 'Area', 'InstallerService' & 'SupplierService' are admin only
499: [11:53:00] <kinglozzer> lx-berlin: http://pastie.org/6009100 That does it for me
500: [11:53:00] <kinglozzer> Yeah I mean I agree there should be one for each model
501: [11:53:00] <lx-berlin> there is a tickbox , but just for the entire "Company section"
502: [11:54:00] <Unlearned> I have set locale to non english and enabled Translatable extension, but all my content is selected as English. Where did I fail ?
503: [11:54:00] <lx-berlin> i see, you are setting the permissions in a parent class of modeladmin
504: [11:55:00] * CHIex|2 quit (Ping timeout: 246 seconds)
505: [11:55:00] * CHIex quit (Ping timeout: 246 seconds)
506: [11:55:00] <lx-berlin> thanks. i will use it next time. Because now i just finished adding the same permissions to each class :)
507: [12:00:00] <lx-berlin> oh, i just noticed giving an admin not the right to delete a record, is not very clever. If he added something wrong he can not delete it. It would be nice if you could give an admin only the right to delete those records that he has added
508: [12:01:00] * priithansen has joined #silverstripe
509: [12:02:00] * dendeffe quit (Quit: dendeffe)
510: [12:05:00] <PigeonFriend> kinglozzer: cheers, looked at tag field, almost what i need there! but not production ready it seems :(
511: [12:06:00] <kinglozzer> Ah that's a shame
512: [12:10:00] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
513: [12:12:00] * Shrike_Finland has joined #silverstripe
514: [12:17:00] <C10ne> Anybody using https://github.com/bluehousegroup/silverstripe-contact-form?
515: [12:28:00] <webguest> question: how do i create a virtual page of a page that im linking? http://paste2.org/p/2816989 - I have two sections in my is: A and B. On section A i have added all my employee's. On section B i want to link them on the page ProTeam. This all works, but when you click on an Employee, the user gets redirected to section A. Because im using $Link... how do i create a virtual page on section B so the user still remains on secti
516: [12:29:00] <webguest> it should be dynamically generated
517: [12:31:00] <kinglozzer> webguest: Not entirely sure, as I don't know what your problem is from a glance. Try either $Top.Link or perhaps <% with %> tags (look them up on SS docs website)
518: [12:31:00] * kinglozzer lunch time
519: [12:32:00] <webguest> kinglozzer, ill send you a link wait
520: [12:33:00] <webguest> see private chat
521: [12:42:00] * gelignite has joined #silverstripe
522: [12:47:00] * Error404NotFound has joined #silverstripe
523: [12:47:00] * Error404NotFound quit (Max SendQ exceeded)
524: [12:48:00] * dendeffe has joined #silverstripe
525: [12:48:00] * Error404NotFound has joined #silverstripe
526: [13:12:00] * UndefinedOffset has joined #silverstripe
527: [13:24:00] <Koba> Hello everyone
528: [13:24:00] * Koba has joined #silverstripe
529: [13:48:00] * UncleCheese has joined #silverstripe
530: [13:52:00] * UncleCheese_ has joined #silverstripe
531: [13:53:00] * UncleCheese quit (Ping timeout: 245 seconds)
532: [13:55:00] * UncleCheese has joined #silverstripe
533: [13:56:00] * UncleCheese_ quit (Ping timeout: 245 seconds)
534: [13:58:00] * UncleCheese_ has joined #silverstripe
535: [13:59:00] * UncleCheese quit (Ping timeout: 245 seconds)
536: [14:02:00] * UncleCheese has joined #silverstripe
537: [14:03:00] * UncleCheese_ quit (Ping timeout: 245 seconds)
538: [14:05:00] * UncleCheese_ has joined #silverstripe
539: [14:06:00] * UncleCheese quit (Ping timeout: 245 seconds)
540: [14:09:00] * UncleCheese has joined #silverstripe
541: [14:10:00] * UncleCheese_ quit (Ping timeout: 245 seconds)
542: [14:12:00] * UncleCheese_ has joined #silverstripe
543: [14:13:00] * UncleCheese quit (Ping timeout: 245 seconds)
544: [14:16:00] * UncleCheese has joined #silverstripe
545: [14:16:00] * UncleCheese_ quit (Ping timeout: 245 seconds)
546: [14:19:00] * UncleCheese_ has joined #silverstripe
547: [14:20:00] * UncleCheese quit (Ping timeout: 245 seconds)
548: [14:23:00] * UncleCheese_ quit (Ping timeout: 245 seconds)
549: [14:24:00] * UncleCheese has joined #silverstripe
550: [14:27:00] * perverse`w quit (Read error: Connection reset by peer)
551: [14:27:00] * g4b0 quit (Quit: Sto andando via)
552: [14:27:00] * UncleCheese_ has joined #silverstripe
553: [14:28:00] * g4b0 has joined #silverstripe
554: [14:28:00] * UncleCheese quit (Ping timeout: 245 seconds)
555: [14:28:00] * Emil_Blume has joined #silverstripe
556: [14:29:00] * Koba quit (Ping timeout: 245 seconds)
557: [14:31:00] * UncleCheese has joined #silverstripe
558: [14:32:00] * UncleCheese_ quit (Ping timeout: 245 seconds)
559: [14:34:00] * UncleCheese_ has joined #silverstripe
560: [14:35:00] * UncleCheese quit (Ping timeout: 245 seconds)
561: [14:37:00] * UncleCheese has joined #silverstripe
562: [14:38:00] * UncleCheese_ quit (Ping timeout: 245 seconds)
563: [14:41:00] * UncleCheese_ has joined #silverstripe
564: [14:42:00] * UncleCheese quit (Ping timeout: 245 seconds)
565: [14:44:00] * UncleCheese has joined #silverstripe
566: [14:45:00] * UncleCheese_ quit (Ping timeout: 245 seconds)
567: [14:47:00] * UncleCheese_ has joined #silverstripe
568: [14:48:00] * UncleCheese quit (Ping timeout: 245 seconds)
569: [14:51:00] * UncleCheese has joined #silverstripe
570: [14:51:00] * Shrike_Finland quit (Quit: Leaving.)
571: [14:52:00] * UncleCheese_ quit (Ping timeout: 245 seconds)
572: [14:54:00] * UncleCheese_ has joined #silverstripe
573: [14:55:00] * UncleCheese quit (Ping timeout: 245 seconds)
574: [14:58:00] * UncleCheese_ quit (Ping timeout: 245 seconds)
575: [14:58:00] * UncleCheese has joined #silverstripe
576: [14:59:00] * ARNHOFF quit (Quit: ( www.nnscript.com :: NoNameScript 4.22 :: www.esnation.com ))
577: [15:01:00] * UncleCheese_ has joined #silverstripe
578: [15:02:00] * UncleCheese quit (Ping timeout: 245 seconds)
579: [15:04:00] * UncleCheese has joined #silverstripe
580: [15:05:00] * UncleCheese_ quit (Ping timeout: 245 seconds)
581: [15:07:00] * UncleCheese_ has joined #silverstripe
582: [15:08:00] * UncleCheese quit (Ping timeout: 245 seconds)
583: [15:11:00] * UncleCheese has joined #silverstripe
584: [15:12:00] * Nivery has joined #silverstripe
585: [15:12:00] * UncleCheese_ quit (Ping timeout: 245 seconds)
586: [15:14:00] * UncleCheese_ has joined #silverstripe
587: [15:15:00] * UncleCheese quit (Ping timeout: 245 seconds)
588: [15:17:00] * catcher has joined #silverstripe
589: [15:18:00] * UncleCheese has joined #silverstripe
590: [15:18:00] * UncleCheese_ quit (Ping timeout: 245 seconds)
591: [15:21:00] * UncleCheese_ has joined #silverstripe
592: [15:22:00] * UncleCheese quit (Ping timeout: 245 seconds)
593: [15:25:00] * UncleCheese_ quit (Ping timeout: 245 seconds)
594: [15:25:00] * catcher quit (Quit: Leaving)
595: [15:26:00] * catcher has joined #silverstripe
596: [15:28:00] * UncleCheese has joined #silverstripe
597: [15:34:00] * salami2 quit (Quit: AndroIRC - Android IRC Client ( http://www.androirc.com ))
598: [15:38:00] * gruja has joined #silverstripe
599: [15:42:00] <gruja> because of more than 200 nested calls
600: [15:42:00] <gruja> I'm Nikola. I'm using SilverStripe 3.0.3 and I have a problem using textcollector for collecting and generating .yml files. In previous versions of SS I had no problems using this functionality nad it was very easy to use. But now when I run task collector it will not generate .yml files and throws an error
601: [15:42:00] <gruja> hello everyone,
602: [15:43:00] <gruja> even when I try to add manually translation in .yml files it will not use them at all
603: [15:43:00] <gruja> is this some bug with the new version of SilverStripe?
604: [15:44:00] * MrGuits quit (Quit: Leaving)
605: [15:44:00] * Unlearned quit (Quit: Going offline, see ya! (www.adiirc.com))
606: [15:51:00] <onre> can i somehow copy all pages to another language in ss 3.0 with translatable?
607: [15:52:00] <onre> the client has hundreds of pages and sub-pages and it'd be nice to copy the english-language version to some other language to be used as a template
608: [15:52:00] <onre> i mean, a template for the translation work, not a silverstripe template
609: [15:52:00] * Shrike_Finland has joined #silverstripe
610: [16:11:00] * congii has joined #silverstripe
611: [16:14:00] <congii> hi, i would like to ask if someone have implemented sending email with pdf attachment with SS3
612: [16:19:00] * dendeffe quit (Quit: dendeffe)
613: [16:21:00] <congii> i have already search for solution.. i have used native php mail and it works.. but how about built-in SS3 email function? i tried the instruction in the SS docs but its not working....
614: [16:25:00] * congii has left #silverstripe
615: [16:26:00] * congii has joined #silverstripe
616: [16:28:00] * UncleCheese quit (Quit: UncleCheese)
617: [16:28:00] * congio has joined #silverstripe
618: [16:30:00] * congii quit (Ping timeout: 245 seconds)
619: [16:30:00] * congio quit (Quit: AndroIRC - Android IRC Client ( http://www.androirc.com ))
620: [16:34:00] * COngII has joined #silverstripe
621: [16:35:00] * COngII quit (Client Quit)
622: [16:36:00] * COngII has joined #silverstripe
623: [16:45:00] <kinglozzer> congii / C0ngII / COngII: http://api.silverstripe.org/3.0/framework/email/Email.html#methodattachFile
624: [16:47:00] <COngII> But even without attachment using the guide here http://doc.silverstripe.org/framework/en/topics/email its not sending
625: [16:48:00] * gruja quit (Ping timeout: 245 seconds)
626: [16:48:00] <COngII> Thanks for the response.
627: [16:49:00] <COngII> But with old plain php mail() its sending the email
628: [16:50:00] * COngII quit (Quit: AndroIRC - Android IRC Client ( http://www.androirc.com ))
629: [16:51:00] * COngII has joined #silverstripe
630: [16:53:00] <kinglozzer> "Your PHP configuration needs to include the SMTP module for sending emails."
631: [16:58:00] * COngII quit (Quit: AndroIRC - Android IRC Client ( http://www.androirc.com ))
632: [16:58:00] * COngII has joined #silverstripe
633: [17:01:00] * Shrike_Finland quit (Quit: Leaving.)
634: [17:03:00] * g4b0 quit (Remote host closed the connection)
635: [17:08:00] * kinglozzer quit (Remote host closed the connection)
636: [17:17:00] <FrozenFire> COngII, https://github.com/xeraa/silverstripe-smtp
637: [17:17:00] <FrozenFire> I use that module for every project, for doing real SMTP email
638: [17:23:00] * zfmf has left #silverstripe
639: [17:28:00] * instabil quit (Read error: Connection reset by peer)
640: [17:29:00] <COngII> Thanks. I'll give it a try
641: [17:31:00] <COngII> It's for 2.4.x ? I'm running SS3
642: [17:32:00] * instabil has joined #silverstripe
643: [17:32:00] <priithansen> the ss mail function did not send mails with default MAMP install for me but works on the real host where the site is deployed.
644: [17:34:00] <FrozenFire> Nothing has changed as far as email since 2.4, so far as I'm aware.
645: [17:34:00] <FrozenFire> COngII, It does work fine on SS3
646: [17:35:00] <COngII> Thanks. I'll try that out when i get home.
647: [17:37:00] * COngII quit (Quit: AndroIRC - Android IRC Client ( http://www.androirc.com ))
648: [17:48:00] * Nivery quit (Quit: Nivery)
649: [17:50:00] * Nivery has joined #silverstripe
650: [18:30:00] <FrozenFire> HTML5-only CMS, that is.
651: [18:30:00] <FrozenFire> Because I have an idea that would make the CMS drastically more sensible.
652: [18:30:00] <FrozenFire> So, when is SS going HTML5-only?
653: [18:34:00] <lx-berlin> hi all, i just found www.bountysource.com . Maybe this can also help the SS community to get fixes/new features for ss modules
654: [18:35:00] * Nivery quit (Quit: Nivery)
655: [18:38:00] <FrozenFire> lx-berlin, That's pretty interesting.
656: [18:38:00] <FrozenFire> Only issue I foresee is that SS uses its own issue tracking system
657: [18:39:00] <FrozenFire> So it can't assign bounties to issues via GitHub
658: [18:40:00] <FrozenFire> Though, I do think that SS should move to GitHub issue tracking
659: [18:46:00] * gelignite quit (Ping timeout: 252 seconds)
660: [18:47:00] <FrozenFire> Was going to write a tool to sync those issues to GitHub
661: [18:47:00] * Emil_Blume quit (Quit: Leaving.)
662: [18:47:00] <FrozenFire> Hrmm, bugger, the open.silverstripe.org trac RSS feeds are a bit broken
663: [19:00:00] * Bollig|DesignCty has joined #silverstripe
664: [19:01:00] * SightUnseen has joined #silverstripe
665: [19:01:00] * SightUnseen has left #silverstripe
666: [19:05:00] * Marvanni_ has joined #silverstripe
667: [19:07:00] * webguest quit (Ping timeout: 245 seconds)
668: [19:11:00] * Marvanni_ quit (Quit: Marvanni_)
669: [19:12:00] * Nivery has joined #silverstripe
670: [19:17:00] <catcher> Anyone know why only sortable gridfield module is only working for the Administrators group?
671: [19:18:00] <catcher> Ah, nm
672: [19:21:00] * gelignite has joined #silverstripe
673: [19:26:00] * dendeffe has joined #silverstripe
674: [19:27:00] <FrozenFire> catcher, DataObject::can*
675: [19:27:00] <lx-berlin> sorry FrozenFire, i had a long phone call
676: [19:27:00] * FrozenFire hates when he gets to a state of checks and balances in an ecommerce system where the cart magically deletes itself when I change an item
677: [19:27:00] <FrozenFire> :P
678: [19:27:00] <lx-berlin> but some modules have their issues on github. so at least for modules it might be usefull
679: [19:28:00] <FrozenFire> Badly.
680: [19:28:00] <FrozenFire> If for no other reason than that open.silverstripe.org sucks
681: [19:28:00] <FrozenFire> Yeah. I think the way to go is definitely moving SS's issue tracking to GitHub
682: [19:29:00] <FrozenFire> It's just that it's outdated
683: [19:29:00] <lx-berlin> ok
684: [19:29:00] <FrozenFire> And really, when you're doing all development on GitHub, there's little reason not to use their issue tracking
685: [19:29:00] <lx-berlin> i dont like this "trac" tool very much
686: [19:29:00] <FrozenFire> Well, Trac itself is fine
687: [19:30:00] <lx-berlin> but i guess they were already using trac before they moved all repos to github
688: [19:30:00] <lx-berlin> yep
689: [19:31:00] <FrozenFire> Naturally
690: [19:31:00] <FrozenFire> I believe Trac is from the Subversion days
691: [19:32:00] <lx-berlin> offtopic: it feels a little bit complicated to start the compass preprocessor just because you need to change one width in a css file
692: [19:34:00] * ayushchd has joined #silverstripe
693: [19:37:00] <ayushchd> I am new to SilverStripe, and I would like to start contributing
694: [19:38:00] <ayushchd> I have read through the coding conventions and I have installed the composer package
695: [19:39:00] <FrozenFire> Forgive me, but I think "new to SilverStripe" and "contributing" are a bit antithetical.
696: [19:40:00] <lx-berlin> maybe he/she is a very talented programmer ?!
697: [19:42:00] <FrozenFire> If that's the case, then godspeed.
698: [19:43:00] <FrozenFire> I just know that even I'm daunted by contributing, and I know SS fairly deeply.
699: [19:43:00] <lx-berlin> do you have a question , ayushchd ?
700: [19:44:00] <FrozenFire> Depends on what way you want to contribute in.
701: [19:44:00] <ayushchd> yes, I would like to know the preferred way to start with
702: [19:45:00] <lx-berlin> http://doc.silverstripe.org/framework/en/trunk/misc/contributing/
703: [19:46:00] <lx-berlin> http://doc.silverstripe.org/framework/en/trunk/misc/contributing/code
704: [19:46:00] <FrozenFire> Well, you can take a look at open.silverstripe.org for bugs
705: [19:46:00] <ayushchd> I would like to initially fix small bugs, that would get me used to the system?
706: [19:47:00] * lx-berlin has left #silverstripe
707: [19:47:00] <lx-berlin> bye all
708: [19:49:00] <ayushchd> Another suggestion that I would want is - Should I just clone the Framework repo initially?
709: [19:49:00] <ayushchd> thanks for the link @FrozenFire
710: [19:49:00] * simon_w|air has joined #silverstripe
711: [19:50:00] <ayushchd> I see it has the most number of "easy" marked ticket
712: [19:56:00] <FrozenFire> Because framework changes can break the CMS, and vice versa.
713: [19:56:00] <FrozenFire> I typically clone silverstripe-installer and set it up as a testing environment, so I can run both framework and CMS tests when I make a change
714: [19:57:00] * dendeffe quit (Quit: dendeffe)
715: [19:58:00] <FrozenFire> That will set everything up for you
716: [19:58:00] <FrozenFire> What is perhaps best to do is composer create-project --keep-vcs --prefer-source silverstripe/installer <directory> <version>
717: [19:59:00] <ayushchd> Thanks!
718: [19:59:00] <ayushchd> Is there a workflow of how tickets are to be accepted and worked on?
719: [19:59:00] <ayushchd> I cannot just accept every ticket right?
720: [20:01:00] <FrozenFire> Find a ticket you want to fix. Create a feature branch (git branch bug-some-bug-description) and check it out. Make your changes. Push that branch into a fork on Github. Create a PR against the respective repo/branch. Link to your PR in the ticket.
721: [20:01:00] <FrozenFire> Keep in mind that you need to follow the code and commit conventions in the links lx-berlin provided.
722: [20:02:00] <FrozenFire> Such as squashing bugfixes into a single, descriptive commit.
723: [20:03:00] <ayushchd> Yes, I will keep that in mind. Once I start working on a fix, should I "accept" it on trac?
724: [20:03:00] * slith has joined #silverstripe
725: [20:03:00] <ayushchd> Or should I only accept it after I have managed to fix the bug?
726: [20:04:00] <FrozenFire> I'm going to push for bugs to be moved to GitHub issues, but for now it's on Trac.
727: [20:04:00] <FrozenFire> So far as I am aware, only people on the SS team can edit bugs (such as assigning)
728: [20:05:00] <ayushchd> Should I clone the latest stable version?
729: [20:05:00] <ayushchd> or dev-master?
730: [20:05:00] <ayushchd> Thanks a lot
731: [20:05:00] <FrozenFire> If you're creating a feature, then branch that feature branch from master
732: [20:05:00] <FrozenFire> It depends on what you're fixing.
733: [20:06:00] <FrozenFire> If you're fixing a bug which only applies to a specific minor version (e.g. 3.0 or 3.1), then branch that
734: [20:06:00] <FrozenFire> If you're fixing a bug that applies to all of SS3, then branch from master
735: [20:07:00] <FrozenFire> If a fix exists in a later version, and can be applied to an earlier version fairly easily, then keep bugging simon_w until he cries and merges it.
736: [20:08:00] <FrozenFire> simon_w, GitHub issues are much better than a broken Trac system that everyone ignores out of hand.
737: [20:08:00] <FrozenFire> :P
738: [20:08:00] <ayushchd> Cool. Thanks. I just saw that most of the issues under the "easy" tag were opened 2 years ago
739: [20:08:00] <simon_w|air> Anyone with a trac account can edit bugs, and github issues are far too pathetic to use
740: [20:09:00] <FrozenFire> Yap. Yap. Yap.
741: [20:09:00] <FrozenFire> ayushchd, Yeah, because Trac is left to rot, unfortunately.
742: [20:09:00] <simon_w|air> FrozenFire, GitHub issues lack scale :p
743: [20:09:00] * lx-berlin has joined #silverstripe
744: [20:09:00] <FrozenFire> simon_w, Trac tickets lack visibility and give-a-shits.
745: [20:09:00] <simon_w|air> Nope
746: [20:09:00] <FrozenFire> Yap
747: [20:09:00] <simon_w|air> Nope
748: [20:09:00] <FrozenFire> Yap.
749: [20:09:00] <simon_w|air> Nope
750: [20:09:00] * simon_w|air can win this
751: [20:10:00] <FrozenFire> I have five siblings.
752: [20:10:00] <FrozenFire> I can win this.
753: [20:10:00] <simon_w|air> I have power
754: [20:10:00] * FrozenFire has joined #silverstripe
755: [20:10:00] <FrozenFire> Dick :P
756: [20:10:00] <simon_w|air> :D
757: [20:12:00] <simon_w|air> Also, a decent chunk of the pull requests are fixing trac tickets
758: [20:13:00] <FrozenFire> With absolutely no direct relation between them, unless someone bothers to post a link in comments.
759: [20:14:00] <FrozenFire> But requires GitHub issues to relate the bounties to.
760: [20:14:00] <FrozenFire> Also, this conversation came about *originally* in relation to https://www.bountysource.com/
761: [20:14:00] <FrozenFire> Which would be a good way to spur bugfixes.
762: [20:14:00] <simon_w|air> Yes, yes, I know GitHub likes being a silo and doing everything its own way
763: [20:15:00] <FrozenFire> Wouldn't necessarily say its own way.
764: [20:16:00] <FrozenFire> And Trac's issue tracking is not exactly great on its own.
765: [20:16:00] <FrozenFire> You're already using GitHub for 90% of what Trac is supposed to handle
766: [20:21:00] * lx-berlin has left #silverstripe
767: [20:22:00] <ayushchd> Thanks FrozenFire, I'll try and set myself up. Currently cloning 3.1.x .. Looking forward to making some valuable contributions here
768: [20:28:00] * Marvanni_ has joined #silverstripe
769: [20:35:00] * ayushchd quit (Quit: Page closed)
770: [20:37:00] * FrozenFire quit (Read error: Connection reset by peer)
771: [20:37:00] <Marvanni_> does anyone knows if I have to add an extra header or code the the Event Calendars ics file to let iphone/ipad open the link correctly?
772: [20:37:00] <Marvanni_> its just just displaying the content in de the browser. It does works fine on a mac..
773: [20:38:00] * FrozenFire has joined #silverstripe
774: [20:38:00] * FrozenFire quit (Changing host)
775: [20:38:00] * FrozenFire has joined #silverstripe
776: [20:50:00] * liam has joined #silverstripe
777: [20:58:00] * Shrike_Finland has joined #silverstripe
778: [21:01:00] * UndefinedOffset quit (Read error: Connection reset by peer)
779: [21:01:00] * r3v3rb has joined #silverstripe
780: [21:23:00] <FrozenFire> Got some weird shit going on with ModelAdmin
781: [21:23:00] * UncleCheese quit (Client Quit)
782: [21:23:00] <FrozenFire> Infinite (or really deep) recursion
783: [21:23:00] <FrozenFire> That sure is interesting...
784: [21:23:00] * UncleCheese has joined #silverstripe
785: [21:31:00] * nickmolhoek quit (Remote host closed the connection)
786: [21:31:00] * nickmolhoek has joined #silverstripe
787: [21:31:00] * nickmolhoek has joined #silverstripe
788: [21:38:00] * nickmolhoek quit (Quit: nickmolhoek)
789: [21:40:00] <FrozenFire> Anyone know whether the location of your ConfigureFromEnv.php include in your _config.php is important, beyond of course being after the project and database selection config?
790: [21:40:00] <FrozenFire> That is, could I put it smack-dab at the end of the file, and not have a problem?
791: [21:43:00] <simon_w|air> yeah, that'll be fine
792: [21:44:00] <FrozenFire> I'm planning to have this as my standard layout: http://www.sspaste.com/paste/show/510c374adea9d
793: [21:51:00] * Marvanni_ quit (Quit: Marvanni_)
794: [21:54:00] * liam quit (Quit: liam)
795: [21:58:00] * liam has joined #silverstripe
796: [22:07:00] * Marvanni_ has joined #silverstripe
797: [22:21:00] * Marvanni quit ()
798: [22:24:00] * slith has left #silverstripe
799: [22:27:00] * Marvanni_ quit (Quit: Marvanni_)
800: [22:37:00] * r3v3rb quit (Quit: r3v3rb)
801: [22:42:00] * Nivery quit (Quit: Nivery)
802: [22:43:00] * Marvanni has joined #silverstripe
803: [22:52:00] * lewellyn has left #silverstripe
804: [23:18:00] * Pyromanik__ has joined #silverstripe
805: [23:20:00] <Pyromanik__> Ladies and Gentlemen, I am here to idle.
806: [23:20:00] <Pyromanik__> yes
807: [23:20:00] <catcher> /dev/build?isDev=1 failed (memory exhausted), but setting dev mode in _config.php followed by /dev/build was fine. Expected?
808: [23:21:00] <catcher> bad news for live sites, no?
809: [23:21:00] <Pyromanik__> just gotta use config command
810: [23:21:00] <Pyromanik__> ?isDev=1 is severely broken in all 3.x
811: [23:21:00] <Pyromanik__> well, not sure about 3.1, but all 3.0.x
812: [23:21:00] <catcher> wow, okay
813: [23:21:00] <catcher> log in, dev mode, /dev/build, live mode?
814: [23:23:00] <Pyromanik__> and just comment it out
815: [23:23:00] <Pyromanik__> d
816: [23:23:00] <Pyromanik__> you could probably just emulate it with if(isset($_GET['isDev']) && $_GET['isDev'] == 1)Director::set_environment_type('dev');
817: [23:23:00] <Pyromanik__> when no longer neede
818: [23:24:00] <Pyromanik__> that way joe visitor won't see dev stuff, and you can still devy stuff without needing whole site in dev mode allatime
819: [23:24:00] <Pyromanik__> although probably pick another var than isDev, otherwise you'll exhaust memory again
820: [23:26:00] <Pyromanik__> unfortunately putting it in config means you can't check permissions. Otherwise it could be a more permanent solution.
821: [23:29:00] <catcher> yeah, true.
822: [23:29:00] <simon_w|air> catcher, log in, /dev/build, done
823: [23:30:00] <catcher> simon_w|air, thought I tried that, but perhaps I'm mistaken.
824: [23:32:00] * liam quit (Quit: liam)
825: [23:39:00] * catcher quit (Quit: Leaving)
826: [23:46:00] * Marvanni has left #silverstripe

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