#silverstripe IRC Log

IRC log for 17 April 2013

All timestamps are in UTC.

1: [00:03:00] <nimeso> Not that important but... function updateSummaryFields(Fieldset &$fields) { in a DataObjectDecorator.... can I 'remove' fields?
2: [00:04:00] <simon_w> yes
3: [00:04:00] * DanielFarbox has joined #silverstripe
4: [00:05:00] <nimeso> Simon. was that for me :)
5: [00:05:00] <nimeso> Do you get any work done? lol
6: [00:05:00] <simon_w> yes
7: [00:05:00] <DanielFarbox> Hi all, does anyone have any idea how to deal with this: Warning: require_once(/Users/sminnee/Sites/ss3/cms/_config.php) [function.require-once]: failed to open stream: No such file or directory in /home/sitename/public_html/preview/framework/core/manifest/ConfigManifest.php on line 103
8: [00:05:00] <nimeso> Thanks man... will keep trying
9: [00:06:00] <simon_w> DanielFarbox, did you just delete the cms folder?
10: [00:06:00] <simon_w> Tried flushing?
11: [00:09:00] <DanielFarbox> I'm an... I thought I... Well excuses aside I flushed and it is working. I really thought I... oh well. Thanks Simon.
12: [00:12:00] * T8 has joined #silverstripe
13: [00:12:00] <nimeso> is unset($fields["FieldName"]); good enough for updateSummaryFields?
14: [00:12:00] <T8> Hello!
15: [00:13:00] <simon_w> nimeso, No. $fields->removeByName
16: [00:13:00] <nimeso> it works so I'll say yes :)
17: [00:13:00] <nimeso> That faild
18: [00:13:00] <simon_w> Unless you're actually passed an array and the type signature you used is wrong
19: [00:13:00] <simon_w> Which you are
20: [00:14:00] <simon_w> so you should have function updateSummaryFields(array &$fields)
21: [00:14:00] <simon_w> (and unset's correct)
22: [00:15:00] <T8> I am angry.
23: [00:16:00] * Bollig|DesignCty has joined #silverstripe
24: [00:17:00] <T8> I have a ManyMany relationship, DataobjectA many_many > DataobjectB, DataobjectB belongs_many_many > DataobjectA. $ListA = DataList::create('DataobjectA') Looping ListA selecting a single object and accessing its relations to DataobjectB fails. Why?
25: [00:17:00] * DanielFarbox quit (Quit: Page closed)
26: [00:18:00] <simon_w> And should it?
27: [00:18:00] <T8> shows now result
28: [00:18:00] <simon_w> Fails how?
29: [00:19:00] <T8> no*
30: [00:19:00] <T8> but when i access the data object $O = DataObject::create('DataobjectA')->first() and call its relationship to DataobjectB it shows the results...
31: [00:19:00] <T8> Yes.
32: [00:19:00] <simon_w> So, the first has some but some of the others don't?
33: [00:20:00] * SightUnseen1 has joined #silverstripe
34: [00:20:00] <nicolaas> simon_w: I am saving it like this: Decimal(64, 0).... that has its limits, but the limits are pretty high
35: [00:20:00] <T8> I am trying to accomplish the same thing many times so I use a foreach loop but for some reason when I loop the list I get no results but when I query one record I get a perfect result set.
36: [00:20:00] <T8> No all of them have results if I query individually but when in a loop I get a blank result.
37: [00:20:00] * clodeindustrie quit (Quit: Textual IRC Client: www.textualapp.com)
38: [00:22:00] <T8> Blank page. I have error reporting on and I am in 'dev' mode
39: [00:22:00] <simon_w> T8, by blank result, do you mean a white page of nothingness, or just nothing is outputted from this single method?
40: [00:22:00] <simon_w> Is display_errors On?
41: [00:23:00] <T8> sure.
42: [00:23:00] <T8> I am just trying to Debug::show() the object in the loop at this point, and I get a blank screen.
43: [00:23:00] <T8> yes.
44: [00:23:00] <simon_w> Can you pastie your code?
45: [00:24:00] <T8> $List = DataList::create('DataObjectA'); foreach ($List as $Value) { Debug::show($Value->DataObjectB()); }
46: [00:25:00] <T8> Debug::show($List->first()->DataObjectB()); works, the loop doesnt
47: [00:25:00] * SightUnseen1 has left #silverstripe
48: [00:32:00] <simon_w> Well, that exact code is fine
49: [00:34:00] <T8> Yeah...
50: [00:35:00] <T8> So I just got the sql from the looped object and put it into phpmyadmin and it throws and error. debugging it now. This is the strangest thing ive come across using silverstripe yet.
51: [00:43:00] * nicolaas quit (Quit: ChatZilla 0.9.90 [Firefox 20.0/20130329030352])
52: [00:44:00] * SightUnseen has joined #silverstripe
53: [00:45:00] * SightUnseen quit (Client Quit)
54: [01:05:00] * joelpittet quit (Read error: Connection reset by peer)
55: [01:05:00] * joelpitt_ has joined #silverstripe
56: [01:09:00] * LoveDuckie quit (Ping timeout: 245 seconds)
57: [01:19:00] * T8 quit (Ping timeout: 245 seconds)
58: [01:40:00] * robert_ has joined #silverstripe
59: [01:51:00] <EasyCo> Does the File db have any version tracking? In other words, can I safely delete a File row if I I know that File isn't being used and no longer exists?
60: [01:56:00] <simon_w> No, yes
61: [01:56:00] <simon_w> Those two questions aren't related at all :p
62: [01:57:00] <EasyCo> I love throwing a few non sequiturs out there every once in a while
63: [02:08:00] * robert_ has left #silverstripe
64: [02:14:00] <spronk> UGH
65: [02:14:00] <spronk> seriously
66: [02:14:00] <spronk> get rid of tinymce
67: [02:18:00] <simon_w> And use what?
68: [02:19:00] <irogue> will make for more uniform content etc
69: [02:19:00] <irogue> i'm about to replace all of my tinymce boxes in the backend with markdown editors, but that only works since everyone who'll be editing is at least remotely technically minded :P
70: [02:19:00] <spronk> aaaaaaaanything
71: [02:19:00] <spronk> tiny is so fucking buggy
72: [02:20:00] <spronk> yeah..
73: [02:24:00] * mobiusnz1 quit (Ping timeout: 252 seconds)
74: [02:25:00] <spronk> hmm
75: [02:25:00] <spronk> have we considered building one?
76: [02:25:00] <Bollig|DesignCty> If there were a better, license-compatible alternative to tiny, we'd be using it...
77: [02:26:00] <spronk> that's not necessarily true
78: [02:26:00] <lewellyn> if it were easy, there wouldn't be so many crappy ones out there.
79: [02:27:00] <lewellyn> mooeditable is potentially a viable alternative, though.
80: [02:27:00] * mobiusnz has joined #silverstripe
81: [02:33:00] <Bollig|DesignCty> there have been SO MANY discussions on this guys :)
82: [02:33:00] <Bollig|DesignCty> No way the core team will build one, they want to focus on the cms, not piddly things like the editor.
83: [02:34:00] <Bollig|DesignCty> We can technically now replace Tiny with something else for editing, but I don't think anyone's actually written code for that yet??? shows you how popular the idea really is :)
84: [02:35:00] <Bollig|DesignCty> To package it with SS would mean the license would have to be compatible, but someone can always make a drop in module
85: [02:35:00] <irogue> yeah
86: [02:35:00] <irogue> cos its one of those things where everyone has their own opinion
87: [02:35:00] <Bollig|DesignCty> Plus then we get into annoying areas like how we integrate image uploading etc within the CMS interface...
88: [02:35:00] <irogue> it should really be modular
89: [02:36:00] <Bollig|DesignCty> It gets more complicated than we'd like :)
90: [02:40:00] <irogue> chch people: any idea if there are any unbundled (non-Chorus) DSL networks around Bishopdale?
91: [02:47:00] * nimeso quit (Ping timeout: 245 seconds)
92: [02:57:00] * mobiusnz quit (Ping timeout: 246 seconds)
93: [03:00:00] <simon_w> By the looks of things, mooeditable is way too underpowered to be able to actually replace the things that tinyMCE has kinda made required
94: [03:00:00] <simon_w> (paste from word is rather important, sadly)
95: [03:03:00] * cloph_away has joined #silverstripe
96: [03:04:00] * cloph quit (Ping timeout: 264 seconds)
97: [03:05:00] <spronk> to be brutally honest, and I've harped on about this before, I still feel that WYSIWYG editor is the wrong approach
98: [03:06:00] <spronk> and they're just as shit with any editor
99: [03:06:00] <spronk> the non-basic-formatting tools in tiny are epically shit - i.e. anything involving any kind of layout
100: [03:12:00] * SightUnseen has joined #silverstripe
101: [03:14:00] * SightUnseen has left #silverstripe
102: [03:26:00] * nickmolhoek quit (Ping timeout: 257 seconds)
103: [03:30:00] * nickmolhoek quit (Remote host closed the connection)
104: [03:30:00] * nickmolhoek has joined #silverstripe
105: [03:37:00] * willr__ has joined #silverstripe
106: [03:37:00] * willr__ has joined #silverstripe
107: [03:37:00] * willr__ quit (Changing host)
108: [03:38:00] * willr__ quit (Client Quit)
109: [03:40:00] * nickmolhoek has joined #silverstripe
110: [03:40:00] * nickmolhoek quit (Remote host closed the connection)
111: [03:57:00] * nickmolhoek quit (Remote host closed the connection)
112: [03:57:00] * nickmolhoek has joined #silverstripe
113: [03:57:00] <lewellyn> spronk: and it's hard to just tell it to apply a class if you're not clueful. it'd be nice if it had a class selector dropdown.
114: [03:57:00] * nickmolhoek has joined #silverstripe
115: [03:58:00] <simon_w> You mean, like that class selector drop down it has?
116: [04:00:00] <EasyCo> :/
117: [04:01:00] * cloph_away1 has joined #silverstripe
118: [04:02:00] * cloph_away quit (Ping timeout: 264 seconds)
119: [04:03:00] * mobiusnz has joined #silverstripe
120: [04:07:00] <lewellyn> simon_w: it didn't "work" right when i was trying to show someone how to use it. i am not looking at the cms interface right now to be able to remember the details.
121: [04:07:00] <simon_w> You select text, you pick class from dropdown
122: [04:08:00] <lewellyn> yeah. it "didn't work" at the time.
123: [04:08:00] <lewellyn> iirc the dropdown was empty
124: [04:10:00] <spronk> half the time it doesn't apply it propertly anyway
125: [04:11:00] <spronk> because tiny would fuck up any changes i made in its own HTML editor
126: [04:11:00] * willr_ quit (Quit: willr_)
127: [04:11:00] <spronk> i gave up and manually edited the database
128: [04:20:00] <irogue> yeah, that part is the most frustrating
129: [04:21:00] <EasyCo> Finally, got everything working properly. Cheers simon_w
130: [04:22:00] <simon_w> Oh, the most frustrating is people bitching about it and then not doing anything
131: [04:23:00] <EasyCo> http://www.catster.com/files/original.jpg
132: [04:26:00] <simon_w> But I should waste my time reading you bitching about it?
133: [04:26:00] <spronk> simon_w: i'm not going to waste my time even attempting to understand tinymce's code
134: [04:27:00] <EasyCo> Meeeowww
135: [04:36:00] <lewellyn> i even offered a potential replacement if someone found motivation :)
136: [04:36:00] <lewellyn> simon_w: i'm not bitching, really. as i said, "if it were easy, there wouldn't be so many crappy ones out there".
137: [04:37:00] <spronk> well, realistically that's your choice
138: [04:37:00] <simon_w> spronkso I can stop offering support in here? Sweet!
139: [04:37:00] <lewellyn> i'm pretty indifferent on tinymce. it's pretty much the best out of a pile of crap.
140: [04:37:00] <spronk> simon_w: don't read it :P
141: [04:37:00] <simon_w> lewellyn, oh, I'm aware that you're not
142: [04:38:00] <spronk> i've been working on the basis of a way to get around tinymce, but /me doesn't have anywhere near enough time to get anywhere on it
143: [04:43:00] <clodeindustrie> If I was ti extend LeftAndMain for some reason
144: [04:43:00] * clodeindustrie has joined #silverstripe
145: [04:43:00] <clodeindustrie> ehy
146: [04:43:00] <clodeindustrie> hey
147: [04:43:00] <clodeindustrie> do I need to do anything for my admin section to pick it up?
148: [04:52:00] <Pyromanik> can I ArrayData::create(array('forTemplate'=>'DirectRenderThis')) ?
149: [04:52:00] <Pyromanik> and then just $accessvar?
150: [04:53:00] <Pyromanik> or must I $accessvar.forTemplate
151: [04:55:00] <Pyromanik> nope :< must var.derp
152: [05:01:00] * clodeindustrie quit (Quit: Textual IRC Client: www.textualapp.com)
153: [05:04:00] * nickmolhoek quit (Quit: nickmolhoek)
154: [05:10:00] * Pyromanik quit (Quit: leaving)
155: [05:13:00] * Shrike_Finland has joined #silverstripe
156: [05:54:00] * dendeffe has joined #silverstripe
157: [06:19:00] * jerga has joined #silverstripe
158: [06:19:00] * jerga has left #silverstripe
159: [06:31:00] * mobiusnz quit (Quit: Leaving.)
160: [06:33:00] * ARNHOE has joined #silverstripe
161: [06:47:00] * zfmf has joined #silverstripe
162: [06:50:00] * spronk has left #silverstripe
163: [06:50:00] * spronk has joined #silverstripe
164: [06:50:00] * spronk has left #silverstripe
165: [06:50:00] * spronk has joined #silverstripe
166: [06:53:00] * Zauberfisch has joined #silverstripe
167: [06:59:00] * SightUnseen has joined #silverstripe
168: [06:59:00] * EasyCo quit (Quit: EasyCo)
169: [07:00:00] * SightUnseen has left #silverstripe
170: [07:03:00] * g4b0 has joined #silverstripe
171: [07:05:00] * Zauberfisch quit (Ping timeout: 245 seconds)
172: [07:05:00] <g4b0> hi all
173: [07:10:00] * qlex says hi
174: [07:10:00] * qlex has joined #silverstripe
175: [07:10:00] <qlex> im trying to test advancedworkflow with ss3.0.5 (last stable?). am i right by saying that this module is suited only for 3.1 and not 3.0.x ??
176: [07:11:00] <qlex> if yes, can i deploy 3.1 (or 3.1beta2) to a site that's ghoing to production on upcomfing monday ?
177: [07:20:00] * ajshort has joined #silverstripe
178: [07:24:00] * ajshort quit (Client Quit)
179: [07:29:00] * Motoservo quit (Quit: Motoservo)
180: [07:31:00] * Liquide quit ()
181: [07:32:00] * ARNHOE_ has joined #silverstripe
182: [07:33:00] * Motoservo has joined #silverstripe
183: [07:36:00] * ARNHOE quit (Ping timeout: 272 seconds)
184: [07:37:00] * qlex quit (Ping timeout: 272 seconds)
185: [07:41:00] * osterlaus has joined #silverstripe
186: [07:44:00] * qlex has joined #silverstripe
187: [07:45:00] * chillu has joined #silverstripe
188: [08:00:00] * Shrike_Finland quit (Read error: Connection reset by peer)
189: [08:01:00] <svandragt> hello
190: [08:02:00] <osterlaus> hi
191: [08:06:00] <elgrodo> qlex: There are some differences with 3.05 and 3.1 with regards to API and behaviour (in particular DataList being immutable)
192: [08:06:00] * Shrike_Finland has joined #silverstripe
193: [08:07:00] <qlex> elgrodo: i know, advancedworkflow module seems to work only with 3.1 but im wondiner if i can upgrade to 3.1 or 3.1beta2 for production website
194: [08:08:00] <elgrodo> 3.1beta2 seems reasonably stable though, I am using it on http://www.tripodtravel.co.nz wthout too much grief
195: [08:08:00] <elgrodo> so bear that possibility in mind
196: [08:08:00] <elgrodo> qlex: You might fnd that other modules don't work. A number of my personal ones needed fixups
197: [08:09:00] <elgrodo> personal site though, so it breaks not critical
198: [08:10:00] <elgrodo> there are also 35 open issues on github for the module
199: [08:10:00] <elgrodo> https://github.com/silverstripe-australia/advancedworkflow/issues
200: [08:11:00] <qlex> yes, im a bit afraid that production environment for a public website shouldnt be using it yet
201: [08:11:00] <simon_w|air> qlex, looking at the read me, the module is for post b2 3.1
202: [08:11:00] <qlex> i might try to convince my client to wait a little and we would introduce that
203: [08:13:00] <elgrodo> there is a 2.1 tag in the git repo also
204: [08:13:00] <elgrodo> qlex: http://www.silverstripe.org/advanced-workflow-module/ suggests that version 2.1 works with SS 3.0
205: [08:16:00] * elgrodo notices that the css class 'hide' is only pulled in on a refresh of the browser, not when navigating between grid field tabs
206: [08:18:00] * priithansen has joined #silverstripe
207: [08:18:00] * popeshoe has joined #silverstripe
208: [08:21:00] * qlex1 has joined #silverstripe
209: [08:24:00] * qlex quit (Ping timeout: 272 seconds)
210: [08:26:00] <qlex1> elgrodo: thanx. trying 2.1 now
211: [08:28:00] * ajshort has joined #silverstripe
212: [08:30:00] * travis-ci has left #silverstripe
213: [08:30:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/6408160
214: [08:30:00] <simon_w|air> qlex1, get the actual error
215: [08:30:00] <qlex1> elgrodo: nope, same error, I think its only for 3.1 ss, when doing dev/build im getting "server error" and website displays without css at all
216: [08:30:00] * travis-ci has joined #silverstripe
217: [08:30:00] <travis-ci> [travis-ci] silverstripe/sapphire#2010 (3.1 - a7574f0 : Ingo Schommer): The build passed.
218: [08:30:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/67ce9e08cc7c...a7574f0450a0
219: [08:31:00] * waveydave has joined #silverstripe
220: [08:31:00] * kinglozzer has joined #silverstripe
221: [08:39:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/a7574f0450a0...2523dfbe9526
222: [08:39:00] * travis-ci has left #silverstripe
223: [08:39:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/6408295
224: [08:39:00] * travis-ci has joined #silverstripe
225: [08:39:00] <travis-ci> [travis-ci] silverstripe/sapphire#2011 (3.1 - 2523dfb : Ingo Schommer): The build passed.
226: [08:49:00] * LoveDuckie has joined #silverstripe
227: [09:08:00] <k2h> hey
228: [09:08:00] * k2h has joined #silverstripe
229: [09:08:00] <elgrodo> qlex1: Just briefly tried 2.1.0 branch on a clean install of 3.0.5, doesn't break for me
230: [09:09:00] <k2h> i can't login into example ecommerce site You can log-in as follows: shop@silverstripe-ecommerce.com / test123.
231: [09:09:00] <k2h> what is the password from this site?
232: [09:10:00] <k2h> http://www.silverstripe-ecommerce.com/Security/login
233: [09:13:00] <elgrodo> though it is mid to late evening now nz time
234: [09:13:00] <elgrodo> k2h: It's doesn't work for me either, contact them
235: [09:14:00] * ajshort quit (Quit: ChatZilla 0.9.90-rdmsoft [XULRunner 18.0.2/20130201065344])
236: [09:20:00] <g4b0> I've got a problem with CMS javascript/css
237: [09:22:00] <g4b0> I'm using this http://pastebin.com/2DBZjcAq
238: [09:23:00] <g4b0> for adding custom actions through updateCMSActions
239: [09:23:00] <g4b0> The same code
240: [09:23:00] <g4b0> and it works well with SiteTree elements
241: [09:24:00] <g4b0> works well for DataObject managed through GridField
242: [09:24:00] <g4b0> but the buttons does not have data-icon
243: [09:24:00] <g4b0> and the rotating wheel when submitting.
244: [09:24:00] <g4b0> How can I solve?
245: [09:30:00] <g4b0> http://pastebin.com/8wAYAaeD
246: [09:30:00] <g4b0> The main difference is that for DO and <input> tag is created, while for SiteTree elements a <button> tag is created:
247: [09:46:00] * osterlaus quit (Quit: Leaving.)
248: [10:32:00] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
249: [10:34:00] * svandragt1 has joined #silverstripe
250: [10:34:00] * svandragt quit (Read error: Connection reset by peer)
251: [10:36:00] * dendeffe quit (Quit: dendeffe)
252: [10:44:00] * dendeffe has joined #silverstripe
253: [10:44:00] * FrozenFire quit (Ping timeout: 258 seconds)
254: [10:44:00] * FrozenFire has joined #silverstripe
255: [11:08:00] <k2h> http://www.silverstripe-ecommerce.com - lack of documentation
256: [11:09:00] <k2h> how to create basic shop layout?
257: [11:12:00] * dendeffe quit (Quit: dendeffe)
258: [11:16:00] * k2h quit (Ping timeout: 264 seconds)
259: [11:16:00] * LoveDuckie quit ()
260: [11:27:00] <kinglozzer> g4b0: It'll likely be one of the requirements that's added by the CMS module that transforms the tag to a button. First place I'd look would be https://github.com/silverstripe/silverstripe-cms/blob/3.0/code/controllers/CMSMain.php#L62
261: [11:47:00] * ARNHOE_ quit (Remote host closed the connection)
262: [11:56:00] * k2h has joined #silverstripe
263: [11:56:00] * k2h has joined #silverstripe
264: [11:56:00] * k2h quit (Changing host)
265: [12:00:00] * dendeffe has joined #silverstripe
266: [12:04:00] <qlex1> trying to install ss3.0.5 on biggest polish isp
267: [12:05:00] <qlex1> its using php.5.3.1 and already stumbled on first problem
268: [12:05:00] <qlex1> i can only get to install screen, when i add servername.pl/install.php but also cant install
269: [12:05:00] <qlex1> Fatal error: Class 'SS_ConfigManifest' not found in /framework/core/Core.php on line 289
270: [12:05:00] <qlex1> when typing in the address of the ss installation, im getting:
271: [12:08:00] * ARNHOE has joined #silverstripe
272: [12:08:00] * UndefinedOffset has joined #silverstripe
273: [12:10:00] <g4b0> thanks a lot kinglozzer
274: [12:14:00] * joelpittet has joined #silverstripe
275: [12:16:00] * Zauberfisch has joined #silverstripe
276: [12:17:00] * joelpitt_ quit (Ping timeout: 264 seconds)
277: [12:21:00] * dendeffe quit (Quit: dendeffe)
278: [12:21:00] <qlex1> could magic_quotes_gpc option being set to 1 by ISP be causing this Fatal Error I mentioned above (Fatal error: Class 'SS_ConfigManifest' not found in /framework/core/Core.php on line 289) or not likely ?
279: [12:31:00] * dendeffe has joined #silverstripe
280: [12:44:00] <UndefinedOffset> qlex1 possible, though i'd make sure that the file exists should be framework/core/manifest/ConfigManifest.php
281: [12:46:00] <qlex1> it exists
282: [12:47:00] <qlex1> UndefinedOffset: check http://serwer1348075.home.pl/
283: [12:47:00] <qlex1> this is the dev server and it displays an error when im trying to fresh install ss
284: [12:47:00] <qlex1> uploaded the files again
285: [12:49:00] <UndefinedOffset> man i wish 3.x debug_manifest worked :( would be nice to see what SS'es manifest looks like
286: [12:50:00] <qlex1> Method: find() Override $base before $paths declaration.
287: [12:50:00] <qlex1> Set $base = '../'
288: [12:50:00] <qlex1> but i dont understand where
289: [12:50:00] <qlex1> http://www.silverstripe.org/installing-silverstripe/show/20339
290: [12:50:00] <qlex1> this does seem to say similar problem
291: [12:50:00] <qlex1> and last reply mentiones: Class: SS_FileFinder
292: [12:52:00] <UndefinedOffset> hmm i wonder if setting magic_quotes_gpc to 0 in eather htaccess or _config.php would help, that would atleast eliminate that
293: [12:54:00] <qlex1> well, yes, we added php.ini in the root ofthat ss and this warning is not showing up anymore
294: [12:54:00] <qlex1> i need to manually add /install.php to get to installation screen which (after providing all necesary details and no warnings/errors) fails too
295: [12:56:00] <qlex1> what about that suggestion mentioned in that thread? http://www.silverstripe.org/installing-silverstripe/show/20339
296: [12:56:00] <UndefinedOffset> hmm seems like SS isn't able to find the file system path to itself :S which is odd...
297: [12:57:00] <qlex1> i might try and add this, but dont really know where
298: [13:00:00] <UndefinedOffset> though i wouldn't recommend it too much, it will work yes. but if that class gets used for anything else well it could have undesired effects potentially
299: [13:00:00] <UndefinedOffset> framework/filesystem/FileFinder.php
300: [13:02:00] <UndefinedOffset> you maybe able to define a constant in index.php (if your using that) called BASE_PATH and set it to the full path to the root of the site (i think its supposed to be the root) >_>
301: [13:03:00] <UndefinedOffset> my guess is framework/core/Core.php (line 133-140) is resulting in that constant being set to empty for some reason
302: [13:03:00] <UndefinedOffset> which doesn't make much sense, but its just a guess :)
303: [13:09:00] * waveydave has left #silverstripe
304: [13:09:00] * waveydave has joined #silverstripe
305: [13:12:00] <qlex1> hmm, that way of adding anything to FileFinder.php seems wrong idea to me too
306: [13:12:00] <qlex1> should i be asking anything to ISP ? im on the line with them
307: [13:13:00] <qlex1> but for this client, i need to use that hosting, which is actually ok
308: [13:13:00] <qlex1> ss3.0.5 worked right out of the box on different (smaller) hosting company server
309: [13:13:00] <qlex1> php 5.3.1 is shown on phpinfo - is this enough? maybe this should be using 5.4 ??
310: [13:20:00] <UndefinedOffset> one sec i double check the docs
311: [13:20:00] <UndefinedOffset> ah that maybe the issue, i think 5.3.3 is the min for 3.0
312: [13:20:00] <UndefinedOffset> http://doc.silverstripe.org/framework/en/installation/server-requirements 5.3.2+
313: [13:20:00] <UndefinedOffset> 5.4 "should" work as well but not sure (haven't tried)
314: [13:20:00] <qlex1> ok, im running 5.3.21
315: [13:20:00] <qlex1> which according to requirements for silverstripe should suffice
316: [13:20:00] <qlex1> requirement says 5.3.2+
317: [13:20:00] <UndefinedOffset> yep but if their server is saying 5.3.1 that maybe an issue, not sure though :)
318: [13:20:00] <qlex1> no sorry, their server is sainy 5.3.21
319: [13:20:00] <lewellyn> 3.0.x works with 5.5 afaict :)
320: [13:20:00] <qlex1> so it should be ok
321: [13:20:00] <qlex1> lewellyn: does ss 3.0.5 work with php 5.3.21 ?
322: [13:20:00] <lewellyn> i wouldn't know. i haven't run 5.3 in a couple years now.
323: [13:21:00] <UndefinedOffset> qlex1 yes thats what i have on my local it should be ok
324: [13:21:00] <qlex1> this hosting (biggest in poland) gives me only option to set php to 5.2 or 5.3
325: [13:42:00] * jerga has joined #silverstripe
326: [13:42:00] <jcwacky> Anyone have an example of doing alphabetic pagination in SilverStripe?
327: [13:42:00] * jcwacky has joined #silverstripe
328: [13:45:00] * jerga has joined #silverstripe
329: [13:45:00] * jerga quit (Client Quit)
330: [13:46:00] <qlex1> Warning: Invalid argument supplied for foreach() in /framework/filesystem/FileFinder.php on line 133
331: [13:46:00] <qlex1> ok i noticed one more thing...
332: [13:46:00] <qlex1> when first starting http://serwer1348075.home.pl/ i get three errors:
333: [13:46:00] <qlex1> Warning: scandir() [function.scandir]: Directory name cannot be empty in /framework/filesystem/FileFinder.php on line 133
334: [13:46:00] <qlex1> Fatal error: Class 'SS_ConfigManifest' not found in /framework/core/Core.php on line 289
335: [13:47:00] <qlex1> when refreshing, silverstripe-cache gets created and tmp underneigh where all files go (including classmanifesst)
336: [13:48:00] <qlex1> sometimes instead of silverstripe-cache, i can see tmp and underneight: silverstripe-cache- and then cache
337: [13:48:00] <qlex1> i tried creating this folder manually: silverstripe-cache and give recursively 777 for it
338: [13:48:00] <qlex1> and then, http://serwer1348075.home.pl/ works as such that it gets me to install.php but with new errors:
339: [13:50:00] * jerga quit (Ping timeout: 256 seconds)
340: [13:51:00] <qlex1> no sorry, creating this folder manually and chmodding still gets me to first three lines of errors and then when refreshing, one line of error with Class 'SS_ConfigManifest' not found
341: [13:56:00] * ajshort has joined #silverstripe
342: [14:03:00] <UndefinedOffset> the warnings that came up when you hit install.php something about not being able to write to /tmp? if that's the case then yes you need a silverstripe-cache in the root of the site and set to 777 or owned by the user/group php is using
343: [14:11:00] * ARNHOE quit (Remote host closed the connection)
344: [14:11:00] <qlex1> done that
345: [14:11:00] * ARNHOE has joined #silverstripe
346: [14:12:00] <qlex1> i created silverstripe-cache and chmod'ed to 777 recursively
347: [14:12:00] <qlex1> i dont have ssh access, so i can only use ftp to set it
348: [14:13:00] <UndefinedOffset> only other thing i can think of is to trace back through core.php see why the warning's come up with scandir, see why the directory path is empty
349: [14:14:00] <UndefinedOffset> that'd be were i'd go next
350: [14:16:00] * ARNHOE quit (Ping timeout: 248 seconds)
351: [14:17:00] <qlex1> ok, thanx
352: [14:18:00] <qlex1> i opened a ticket with my ISP, let them check it too
353: [14:18:00] <qlex1> what is scandir ?
354: [14:19:00] <UndefinedOffset> scandir() returns an array of all directorys and files in that the given directory http://ca3.php.net/manual/en/function.scandir.php
355: [14:20:00] <UndefinedOffset> silverstripe uses it in the manifest building process among other areas
356: [14:29:00] <qlex1> suspicious that it happens on this ISP, but not on my opther one, so also hoping this ISP will get back to me with some solutions
357: [14:29:00] <qlex1> ok, i will check in tomorrow and let you know if i found anything
358: [14:39:00] <qlex1> ok, need to run
359: [14:40:00] * qlex1 has left #silverstripe
360: [14:40:00] * qlex1 will be back tomrorow
361: [14:49:00] * ajshort quit (Quit: ChatZilla 0.9.90-rdmsoft [XULRunner 18.0.2/20130201065344])
362: [14:55:00] * ARNHOE has joined #silverstripe
363: [14:58:00] * dendeffe quit (Quit: dendeffe)
364: [15:04:00] * Shrike_Finland quit (Quit: Leaving.)
365: [15:05:00] * dendeffe has joined #silverstripe
366: [15:07:00] * joelpittet quit (Remote host closed the connection)
367: [15:07:00] * ARNHOE_ has joined #silverstripe
368: [15:07:00] <svandragt1> hmm it's not possible to move Files in the tree structure like you can with pages?
369: [15:07:00] * joelpittet has joined #silverstripe
370: [15:11:00] * botton has left #silverstripe
371: [15:11:00] * botton has joined #silverstripe
372: [15:11:00] * k2h has left #silverstripe
373: [15:11:00] * ARNHOE quit (Ping timeout: 272 seconds)
374: [15:11:00] <k2h> bbd nx
375: [15:20:00] * ARNHOE_ quit (Remote host closed the connection)
376: [15:21:00] * ARNHOE has joined #silverstripe
377: [15:26:00] * ARNHOE quit (Ping timeout: 272 seconds)
378: [15:35:00] <svandragt1> has anyone changed the MediaForm (TinyMCE) default upload folder?
379: [15:39:00] * zfmf has left #silverstripe
380: [15:40:00] * dendeffe quit (Quit: dendeffe)
381: [15:50:00] * catcher has joined #silverstripe
382: [15:57:00] * g4b0 quit (Quit: Sto andando via)
383: [16:09:00] <ss23> The contrast of twitter followingder peoples :O
384: [16:09:00] <ss23> I read through my twitterz and see stuff like "I must admit it is kind of strange to see Parliament so courteous and respectful tonight. One could almost get used to it" all through it
385: [16:09:00] <ss23> Then simon_w|air tweeting "Open Twitter. First tweet I see about tonight is someone insulting someone else???s beliefs. Yay, tolerance and all that!"
386: [16:10:00] * kinglozzer quit (Remote host closed the connection)
387: [16:14:00] <catcher> what's the best way to test if a user is logged in from js?
388: [16:15:00] <ss23> Doubt there's something there by default. Could probably extend Page and add a variable that tells you
389: [16:15:00] * gelignite has joined #silverstripe
390: [16:17:00] <ss23> I was thinking init() { requirements::javascript(<script>logged in = $loggedin</script) }
391: [16:17:00] <ss23> but that could work too
392: [16:17:00] <catcher> ss23, and then call a controller action that returns it?
393: [16:18:00] <catcher> kk, ty for the other idea
394: [16:18:00] <ss23> To be honest catcher, I'm not sure what would be best, sorry :<
395: [16:18:00] <catcher> ah, global, gotcha
396: [16:23:00] <catcher> ooh, I can just set a class in my template based on login, so the js can tell based on the markup.
397: [16:30:00] * Zauberfisch quit (Remote host closed the connection)
398: [16:31:00] * oskarholo has joined #silverstripe
399: [16:32:00] * oskarholo quit (Quit: oskarholo)
400: [16:34:00] * bull5h17 has joined #silverstripe
401: [16:34:00] * bull5h17 quit (Client Quit)
402: [16:35:00] * bull5h17 quit (Client Quit)
403: [16:35:00] * bull5h17 has joined #silverstripe
404: [16:36:00] * oskarholo quit (Client Quit)
405: [16:36:00] * oskarholo has joined #silverstripe
406: [16:37:00] * oskarholo has joined #silverstripe
407: [16:43:00] * waveydave has left #silverstripe
408: [16:48:00] * joelpittet quit (Read error: Connection reset by peer)
409: [16:48:00] * joelpittet has joined #silverstripe
410: [16:50:00] * jcwacky quit (Quit: jcwacky)
411: [16:57:00] * joelpittet quit (Remote host closed the connection)
412: [16:58:00] * joelpittet has joined #silverstripe
413: [16:59:00] <joelpittet> Can't seem to get gridfield's "new" form to default the "ParentPage" to the page which is creating it?
414: [17:00:00] <joelpittet> Any good examples on how to use gridfield in a Page has DataObjects?
415: [17:15:00] <FrozenFire> Anyone have a quick trick for getting the current HTTPS-equivalent URL?
416: [17:17:00] <FrozenFire> Aha, Director::forceSSL()
417: [17:32:00] * jerga has joined #silverstripe
418: [17:38:00] * jerga quit (Ping timeout: 256 seconds)
419: [17:40:00] * elgrodo quit (Ping timeout: 246 seconds)
420: [17:54:00] * elgrodo has joined #silverstripe
421: [17:55:00] * Liquide has joined #silverstripe
422: [18:04:00] * qlex says hi again
423: [18:04:00] * qlex has joined #silverstripe
424: [18:06:00] * oskarholo quit (Quit: oskarholo)
425: [18:13:00] <simon_w|air> joelpittet, just remove the field for selecting the parent page, since it gets overridden on save anyway
426: [18:17:00] <joelpittet> simon_w|air: was hesitant to do that
427: [18:17:00] <joelpittet> simon_w|air: sweet thanks
428: [18:23:00] * Nivery has joined #silverstripe
429: [18:25:00] * ARNHOE has joined #silverstripe
430: [18:33:00] * zfmf has joined #silverstripe
431: [18:35:00] <qlex> :( - if you have any ideas, please let me know
432: [18:35:00] * qlex is still struggling with starting the installer of ss3.0.5 on home.pl hosting and getting: Fatal error: Class 'SS_ConfigManifest' not found in /ptap/framework/core/Core.php on line 289 error where /ptap is just a subfolder where he moved the ss files
433: [18:43:00] <qlex> strange that adding /installer.php gets me to installation which also failes (i have to add magic_quotes_gpc = Off to php.ini which i add to root folder)
434: [18:44:00] <qlex> also, when silverstripe-cache or tmp/silverstripe-cache is not created at first, im getting three errors.refresh of site, gets me to that one error on SS_ConfigManifest
435: [19:02:00] <qlex> ok, got somewhere, when (after moving the ss to subfolder and setting this domain to point straight to that subfolder) i deleted the silverstripe-cache and tmp folders and reloaded the page
436: [19:02:00] * ARNHOE quit (Remote host closed the connection)
437: [19:03:00] * dendeffe has joined #silverstripe
438: [19:13:00] * qlex says bye
439: [19:13:00] * qlex has left #silverstripe
440: [19:24:00] <catcher> Is anything needed for DB::query to either init or execute the call?
441: [19:27:00] <simon_w|air> No
442: [19:30:00] <catcher> simon_w|air, DB::query('UPDATE "table" SET "is_hidden"=1 WHERE "field_id" = '.$fieldID);
443: [19:30:00] * mobiusnz has joined #silverstripe
444: [19:31:00] <catcher> it hates me
445: [19:38:00] * terryapodaca has joined #silverstripe
446: [19:39:00] * elgrodo quit (Ping timeout: 264 seconds)
447: [19:41:00] * Nivery quit (Quit: Nivery)
448: [19:41:00] <terryapodaca> I've got a question for those of you that know the inner workings of SS, especially simon_w
449: [19:42:00] <terryapodaca> no other caching other than on that blog post
450: [19:42:00] <terryapodaca> SS2.4 on a shared host with minimal speed enhancements (http://www.silverstripe.org/how-to-improve-website-performance/) is pretty fast, performance wise
451: [19:42:00] <terryapodaca> now: SS3.0+ is super slow on a shared host, out of the box, and I haven't found any performance tips, etc
452: [19:43:00] <terryapodaca> so I moved a site that was on a shared account to a fully dedicated server and it was still kind of slow
453: [19:43:00] * joelpittet quit (Remote host closed the connection)
454: [19:44:00] <terryapodaca> and now SS3.0+ runs fast
455: [19:44:00] <terryapodaca> so I put XCache on my dedicated server
456: [19:45:00] <terryapodaca> is this a known problem or issue?
457: [19:45:00] <terryapodaca> with performance of SS3.0+ without extra resources?
458: [19:47:00] <terryapodaca> fast site: http://www.thefray817.com/
459: [19:47:00] <terryapodaca> examples:
460: [19:47:00] <terryapodaca> slow site: http://thefray.stricklandapps.com/
461: [20:02:00] * elgrodo has joined #silverstripe
462: [20:04:00] <UndefinedOffset> terryapodaca: allot of shared hosts (including dreamhost) don't have XCache or Zend Optimizer available for their cheep plans. on dreamhost you need a vps before you can enable eather for example
463: [20:05:00] <simon_w> terryapodaca, try a current version of 3.1
464: [20:06:00] <UndefinedOffset> but XCache or Zend Optimizer are a good way to help silverstripe's performance. Also shared hosts have a shared resources too so if someone else's site on that server is bogging things down your site suffers too
465: [20:16:00] * UndefinedOffset quit (Quit: Leaving.)
466: [20:26:00] * SightUnseen has joined #silverstripe
467: [20:28:00] * SightUnseen has left #silverstripe
468: [20:30:00] <simon_w> terryapodaca, not current enough
469: [20:30:00] <terryapodaca> simon_w I used 3.1.0 beta2 download
470: [20:31:00] <terryapodaca> for that site (both versions). all my other new sites are on 3.0.5 stable and still pretty slow
471: [20:34:00] <terryapodaca> I'm also not using composer, so I need to just download the latest from github?
472: [20:36:00] <FrozenFire> Yeah, an opcode cache is absolutely a necessity for all modern PHP software
473: [20:36:00] <FrozenFire> The gains are tremendous
474: [20:37:00] <terryapodaca> XCache is awesome on our dedicated server
475: [20:38:00] <FrozenFire> It should also be mentioned, there's practically no reason to ever be using shared hosting nowadays. Unless you have some geographical restrictions going on
476: [20:38:00] <FrozenFire> Rackspace's cloud servers are about $10/month for what is effectively equivalent to any given shared hosting
477: [20:39:00] <terryapodaca> well, we never planned on building so many websites, when we first started we were building web apps (I am/was mainly a ASP.NET/C#/Java developer)
478: [20:39:00] <catcher> Does director look for flat dirs/files when all controller matches fail?
479: [20:40:00] <terryapodaca> so we got the shared host for our earlier sites...we have a good dedicated box now...
480: [20:40:00] <catcher> seems to
481: [20:40:00] <FrozenFire> Meh. I'm also no fan of a single server setup
482: [20:40:00] <FrozenFire> Gets... tricky
483: [20:41:00] <simon_w> Everything should be cloud! Cloud cloud cloud!
484: [20:42:00] <FrozenFire> catcher, That's to do with the rewrite rules, actually
485: [20:42:00] <FrozenFire> That means, don't rewrite anything that matches a file
486: [20:42:00] <FrozenFire> RewriteCond %{REQUEST_FILENAME} !-f
487: [20:43:00] <catcher> ah right
488: [20:43:00] <FrozenFire> simon_w, You are so right.
489: [20:43:00] <FrozenFire> Cloud that shit up
490: [20:44:00] <simon_w> Running joke at work: walk into a meeting, just keep talking "Cloud" and they'll throw you their money
491: [20:46:00] * nickmolhoek has joined #silverstripe
492: [20:46:00] * nickmolhoek quit (Remote host closed the connection)
493: [20:46:00] * nickmolhoek has joined #silverstripe
494: [20:47:00] <FrozenFire> Means you can get off of perpetually-outdated shared hosting platforms.
495: [20:47:00] <FrozenFire> For podunk clients, that's a good thing. :P
496: [20:48:00] <FrozenFire> That being said, I think Rackspace CloudSites is bringing that back as a feature.
497: [20:48:00] <FrozenFire> At 1500% the price! :P
498: [20:48:00] <FrozenFire> :P
499: [20:48:00] <FrozenFire> PaaS
500: [20:56:00] * mobiusnz quit (Quit: Leaving.)
501: [20:58:00] * priithansen quit (Quit: priithansen)
502: [21:05:00] * Zauberfisch has joined #silverstripe
503: [21:06:00] <terryapodaca> I guess i rename sapphire to framework?
504: [21:07:00] <Zauberfisch> terryapodaca as of 3.0 yes
505: [21:07:00] <Zauberfisch> rename it
506: [21:07:00] <FrozenFire> If you reference things out of the framework, you'll need it called framework
507: [21:07:00] <FrozenFire> Eh, not necessarily true.
508: [21:07:00] <Zauberfisch> you can also call it "zauberfisch_is_awesome" if you like that better
509: [21:07:00] <Zauberfisch> but it should not matter
510: [21:07:00] * mobiusnz has joined #silverstripe
511: [21:08:00] <FrozenFire> I have many <% require javascript(framework/thirdparty/jquery/jquery.js) %> in my templates
512: [21:08:00] <FrozenFire> E.g. Javascript
513: [21:08:00] <terryapodaca> like there is for all other 'modules'
514: [21:08:00] <terryapodaca> lol, i only ask because on github there's not a silverstripe-framework
515: [21:09:00] <terryapodaca> but the stable and beta downloads have it named framework, not sapphire
516: [21:09:00] <Zauberfisch> FrozenFire wrong, you can use THIRDPARTY_DIR and JAVASCRIPT_DIR and FRAMEWORK_DIR and so on
517: [21:09:00] <FrozenFire> In templates?
518: [21:09:00] <Zauberfisch> terryapodaca the reason that the github repo is still called sapphire is that it would loose all followers and stars
519: [21:10:00] <terryapodaca> no worries, i just wanted to make sure they were one and the same
520: [21:10:00] <Zauberfisch> FrozenFire no, but I have not used <% require javascript %> in years
521: [21:10:00] <Zauberfisch> but it will happen this summer
522: [21:11:00] <simon_w> combine_files!
523: [21:11:00] <FrozenFire> What do you use, then?
524: [21:12:00] <simon_w> combine_files doesn't work in the template, so you can actually use the constants like you're supposed to
525: [21:12:00] <Zauberfisch> <simon_w> combine_files!
526: [21:12:00] <Zauberfisch> !
527: [21:12:00] <FrozenFire> I'm confused as to how that relates to referencing the path
528: [21:13:00] <terryapodaca> SS needs to put together a document that states how they prefer coding standards
529: [21:13:00] <FrozenFire> Hrmm, that precludes me using the method, because that's mixing templating stuff into controller
530: [21:13:00] <FrozenFire> Because there's no real consistency. :P
531: [21:13:00] <Zauberfisch> FrozenFire and I personally think that the template include way is bad anyway
532: [21:13:00] <Zauberfisch> terryapodaca I absolutely agree
533: [21:13:00] <Zauberfisch> FrozenFire its related in the way that you can't use template syntax
534: [21:13:00] <FrozenFire> terryapodaca, There's a good reason they haven't.
535: [21:13:00] <terryapodaca> what's that?
536: [21:14:00] <FrozenFire> There's a lot of... odd ideas about separation of domains, here.
537: [21:14:00] <FrozenFire> I for one would completely ignore that document.
538: [21:14:00] * zfmf has left #silverstripe
539: [21:15:00] <Zauberfisch> bad
540: [21:15:00] <terryapodaca> see, i need to know what SS says is best
541: [21:15:00] <FrozenFire> Best practice.
542: [21:15:00] <Zauberfisch> :P
543: [21:15:00] <FrozenFire> Good
544: [21:15:00] <terryapodaca> i went away from using the Require in any php file/controller
545: [21:16:00] <simon_w> The ?m=mtime thing is important
546: [21:16:00] <FrozenFire> If SS says putting your presentational dependencies into your controller is best, then you'd do well to ignore them.
547: [21:16:00] <simon_w> terryapodaca, every piece of SS code (admin, fields, the like) uses Requirements::
548: [21:16:00] <terryapodaca> because i use to just do <link rel="stylesheet" href="themes/fresh/css/style.css"> a hard coded kind of thing
549: [21:16:00] <simon_w> and that is really bad
550: [21:16:00] <FrozenFire> Yeah, use <% require themedCSS(...) %>
551: [21:17:00] <simon_w> Yup
552: [21:17:00] <terryapodaca> right, and you (simon_w) told me to use <% require themedCSS(style, null, "screen, projection") %>
553: [21:17:00] <Zauberfisch> FrozenFire terryapodaca just to clear up, simon means that <link> is bad, not that Requirements:: is bad
554: [21:17:00] <terryapodaca> and to also do the same for javascript
555: [21:18:00] <irogue> i don't get the opposition to Requirements:: at all
556: [21:18:00] <simon_w> I use Requirements::, since we combine our javascript and our css needs to go into all our views
557: [21:18:00] <irogue> controller dictates which template to render a document with... so what's the problem with it also dictating what CSS/JS to apply to that document?
558: [21:18:00] <terryapodaca> it would be nice to have a document that has SS best practices
559: [21:19:00] <FrozenFire> The CSS and Javascript requirements can vary quite widely based on which template file is selected.
560: [21:19:00] <irogue> unless the view should somehow choose itself without any input from the controller :P
561: [21:19:00] <terryapodaca> a lot of it is because the default installation tells you to remove it and do it in the template
562: [21:19:00] <simon_w> irogue, FrozenFire needs something to complain about everywhere? :p
563: [21:19:00] <FrozenFire> Not to mention what theme is selected.
564: [21:20:00] <Zauberfisch> what simon_w said, thats a good rule to live by
565: [21:20:00] <FrozenFire> Not to mention what format you're outputting.
566: [21:20:00] <irogue> oh for sure, you don't have to tell me that
567: [21:20:00] <Zauberfisch> in general i think its bad practice to serve multiple style sheets
568: [21:20:00] <FrozenFire> You'll have no argument from me about combining assets.
569: [21:20:00] <simon_w> terryapodaca, a theme should be using <% require %>, as it's generic. Your personal code is fine to use Requirements::, since it's site specific
570: [21:20:00] <FrozenFire> It's a good idea.
571: [21:20:00] <FrozenFire> That's not in question.
572: [21:20:00] <FrozenFire> But defining your requirements for CSS and Javascript should be done in your templating system
573: [21:20:00] <FrozenFire> Not in your controller.
574: [21:20:00] <irogue> my site has three different themes applied to the same controller methods, depending on whether you're loged in and what domain you're viewing it from
575: [21:20:00] <terryapodaca> lol, i guess i stocked a fire
576: [21:21:00] <Zauberfisch> ok, irogue you have an edge case, because in your case you can't cache the style sheet over different pages if they are different domains
577: [21:22:00] <terryapodaca> but in most cases it's best to use the Require in the template
578: [21:22:00] <FrozenFire> Not anything to do with best practices. ;)
579: [21:22:00] <FrozenFire> That's a limitation of SS
580: [21:22:00] <irogue> i *prefer* in-template CSS/JS, but I have to use Requirements:: in controller due to combine_files, but i'm not gonna cry about that
581: [21:22:00] <irogue> FrozenFire: sure, but i don't see why it's such a big deal that it's worth crying over
582: [21:22:00] <terryapodaca> so in general, site specific can use Requirements:: and that's perfectly fine.
583: [21:22:00] <Zauberfisch> in that case I would serve 3 files
584: [21:23:00] <terryapodaca> for themes
585: [21:23:00] <irogue> Zauberfisch: my Page.php checks what theme is being used, and does the relevant combine_files
586: [21:23:00] <Zauberfisch> terryapodaca only for real themes, because themes have no php code
587: [21:23:00] <Zauberfisch> irogue yeah, that sounds like the best soluation
588: [21:23:00] <Zauberfisch> for your case
589: [21:23:00] <Zauberfisch> terryapodaca I would not say its best
590: [21:24:00] <Zauberfisch> thats just really really bad
591: [21:24:00] <irogue> took me long enough to find out how to do the workarounds for 2.4, now i gotta figure them out all over again!
592: [21:24:00] <Zauberfisch> you should ALWAYS use constants for that
593: [21:24:00] <simon_w> Yeah, upgrading PocketRent to 3 is going to be great fun
594: [21:24:00] <irogue> moving to 3 will be a real mission
595: [21:24:00] <irogue> i have a lot of edge cases :-P
596: [21:24:00] <irogue> hence still running 2.4
597: [21:24:00] <Zauberfisch> and anyway, FrozenFire, terryapodaca you should NEVER write out /framework/javascript or similar
598: [21:25:00] <irogue> and by far more difficult, i mean impossible
599: [21:25:00] <Zauberfisch> btw, you should also NEVER do /mysite/javasccript, use project() . '/javascript' for that
600: [21:25:00] <irogue> and i rather suspect trying to do my theme-selection-voodoo in my _config.php will be FAR MORE DIFFICULT in yaml
601: [21:25:00] * azureKnight has joined #silverstripe
602: [21:25:00] <terryapodaca> I also don't ever use combine files because I try and use only one stylesheet anyway
603: [21:25:00] <Zauberfisch> like FRAMEWORK_DIR
604: [21:25:00] <terryapodaca> Zauberfisch: ;yeah, I don't
605: [21:26:00] <irogue> terryapodaca: yeah, in my case it's because i'm bringing in jQuery, Bootstrap's CSS/JS, and my own overrides
606: [21:26:00] <Zauberfisch> same goes for theme folder, never use /themes/simple/javascript, always use $this->ThemeDir() . '/javascript' or $ThemeDir/javascript in template
607: [21:26:00] * FrozenFire quit (Ping timeout: 245 seconds)
608: [21:27:00] <Zauberfisch> ha! FrozenFire down. Requirements:: wins!
609: [21:27:00] <azureKnight> Lol...
610: [21:27:00] <terryapodaca> irogue, makes sense
611: [21:27:00] <Zauberfisch> azureKnight no, you missed it :/
612: [21:27:00] <azureKnight> I came at a good time.
613: [21:28:00] <FrozenFire> And I was in the middle of a good rant.
614: [21:28:00] <azureKnight> What was the debate over?
615: [21:28:00] <terryapodaca> Zauberfisch: I also don't reference mysite, i keep all my outside stuff (jQuery and various other plugins) in the theme
616: [21:28:00] <FrozenFire> Blegh. Internets flaked out
617: [21:28:00] * FrozenFire has joined #silverstripe
618: [21:28:00] <Zauberfisch> it was about Requirements:: VS <% require %>
619: [21:29:00] <Zauberfisch> Theme VS mysite
620: [21:29:00] <Zauberfisch> I say mysite for everything
621: [21:29:00] <Zauberfisch> well, now there is the next point we could have a flame war over
622: [21:29:00] <terryapodaca> i don't put my javascript in the mysite folder, i keep that strictly for php
623: [21:29:00] <FrozenFire> http://pastebin.com/gmVDb8WR There's my rant. :P
624: [21:31:00] <terryapodaca> but if I do reference my theme, I use $ThemeDir
625: [21:31:00] <simon_w> Or DataObject::getComponents/getManyManyComponents/write
626: [21:31:00] <azureKnight> simon_w: I wanted to ask, where might I begin to troubleshoot that unsavedrelationlist data?
627: [21:31:00] <simon_w> In UnsavedRelationList.php
628: [21:32:00] <azureKnight> So, to double-check. It should be able to save those on the initial "Create", correct? SS is not going to make those fields have to be saved after creating the object?
629: [21:34:00] <Zauberfisch> FrozenFire I am heading to bed, but I would love to carry on this debate another day
630: [21:34:00] <azureKnight> I have no idea what I'm doing. But I'll try my best.
631: [21:34:00] <azureKnight> Ok.
632: [21:34:00] <simon_w> Yup
633: [21:35:00] <azureKnight> G'night Zauberfisch
634: [21:35:00] <FrozenFire> Have a good one
635: [21:36:00] * Zauberfisch quit (Remote host closed the connection)
636: [21:37:00] * dendeffe quit (Quit: dendeffe)
637: [21:38:00] <azureKnight> So, I want to double-check that this issue is real, and it's not my own foolish mistake.
638: [21:39:00] <azureKnight> Er, Sorry. Time::get
639: [21:39:00] <azureKnight> CheckboxSetField::create('Services', 'Services', Service::get()->map('ID', 'FullString'))
640: [21:39:00] <azureKnight> That
641: [21:39:00] <azureKnight> CheckboxSetField::create('Times', 'Times', Service::get()->map('ID', 'Title')) should work, yes?
642: [21:39:00] <azureKnight> I'm just gonna stick with services*
643: [21:41:00] <FrozenFire> If you're having UnsavedRelationList issues, it's in the save process.
644: [21:41:00] <FrozenFire> That's at the preceding edge of your problem
645: [21:42:00] <azureKnight> So, that syntax -shouldn't- have any issues, yeah?
646: [21:42:00] <FrozenFire> UnsavedRelationList is a bit half-baked. If you try to do *anything* other than put things into it, it will poo-poo your entire request.
647: [21:42:00] <azureKnight> Lol.
648: [21:42:00] <FrozenFire> Yeah, that syntax should be fine.
649: [21:42:00] <azureKnight> Ok.
650: [21:43:00] <FrozenFire> So just be careful of where you're ever touching an UnsavedRelationList in the context of saving
651: [21:43:00] <azureKnight> Upon hitting create, everything saves, except those. The checkboxfields all go empty, and you'll have to input them again and then hit save.
652: [21:43:00] <FrozenFire> Don't try to sort it, or filter it, or anything.
653: [21:43:00] <azureKnight> Gotcha.
654: [21:44:00] <FrozenFire> That's what happens when you're saving
655: [21:44:00] <FrozenFire> http://api.silverstripe.org/master/source-class-CheckboxSetField.html#181
656: [21:45:00] <azureKnight> Interesting.
657: [22:25:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/6429317
658: [22:25:00] <travis-ci> [travis-ci] silverstripe/sapphire#2021 (3.1 - 93a8e6f : Simon Welsh): The build passed.
659: [22:25:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/4d70daa9e2a9...93a8e6f16e14
660: [22:25:00] * travis-ci has left #silverstripe
661: [22:25:00] * travis-ci has joined #silverstripe
662: [22:31:00] * Jeremy_ has joined #silverstripe
663: [22:31:00] * Jeremy_ is now known as clodeindustrie
664: [22:33:00] * clodeindustrie quit (Client Quit)
665: [22:53:00] * terryapodaca quit (Quit: Leaving.)
666: [22:56:00] * EasyCo has joined #silverstripe
667: [22:59:00] <EasyCo> Guten Morgen!
668: [23:02:00] <FrozenFire> Hvordan har du det?
669: [23:02:00] <FrozenFire> Oh wait, German
670: [23:07:00] <EasyCo> Yep
671: [23:14:00] * catcher quit (Quit: Leaving)
672: [23:16:00] * MichaelinWelling has joined #silverstripe
673: [23:21:00] <MichaelinWelling> Hey, I'm trying to add the Required field into a form, I've already used setAttribute for placeholder but doing it a second time with required doesn't work, can you help?
674: [23:23:00] <MichaelinWelling> I should clarify, required field into all the form items e.g. textfield
675: [23:24:00] <EasyCo> Snippet?
676: [23:25:00] <MichaelinWelling> http://pastebin.com/KqLkYZgf
677: [23:25:00] <MichaelinWelling> though that snippet won't work as I added ->Required in the hope that would do it which it didnt
678: [23:26:00] <MichaelinWelling> So yea its a custom form
679: [23:30:00] * joelpittet has joined #silverstripe
680: [23:38:00] * Bollig|DesignCty has joined #silverstripe
681: [23:41:00] <EasyCo> Out of curiosity, does it work if you remove the setAttribute()?
682: [23:42:00] * MichaelinWelling quit (Ping timeout: 245 seconds)
683: [23:44:00] <FrozenFire> foreach($required->Required as $fieldName) $fields->dataFieldByName($fieldName)->setAttribute("required", true);
684: [23:44:00] <EasyCo> Oh well
685: [23:44:00] <FrozenFire> Oh, whoops
686: [23:44:00] <EasyCo> He's gone...
687: [23:45:00] * MichaelinWelling has joined #silverstripe
688: [23:47:00] * azureKnight quit (Quit: azureKnight)
689: [23:51:00] * chillu quit (Quit: chillu)

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