#silverstripe IRC Log

IRC log for 16 April 2015

All timestamps are in UTC.

1: [00:12:03] <Hailwood> Hmm, I should be able the change the label for the Content field via public static $field_labels = ['Content' => 'Description']; right?
2: [00:19:55] * joelpittet quit (Remote host closed the connection)
3: [00:26:44] <mobiusnz> is it possible to have a has_many_extrafield (as opposed to a many_many_extrafield)?
4: [00:29:38] * Azure has joined #silverstripe
5: [00:36:04] * stnvh quit (Ping timeout: 245 seconds)
6: [00:41:36] <Hailwood> Anyone have an example of using the multi select tree dropdown for categories/
7: [00:45:21] * WandL has joined #silverstripe
8: [00:45:31] <adrexia> hailwood, cwp codebase does that. gimme a sec
9: [00:46:15] <adrexia> https://gitlab.cwp.govt.nz/cwp/cwp/blob/master/code/pagetypes/BasePage.php#L165
10: [00:46:21] <adrexia> there you go
11: [00:46:58] * nikboo quit (Ping timeout: 246 seconds)
12: [00:50:35] <Hailwood> adrexia, Hmm, I tried doing that and it failed spectacularly. Just trying it with checkboxes first to make sure my relations are setup correctly
13: [00:51:29] <adrexia> and your objects use Hierarchy ?
14: [00:52:34] * Sticks has joined #silverstripe
15: [00:53:08] <Hailwood> adrexia, The "Categories" are actually pages of a specific class
16: [00:53:57] <adrexia> Can you use specific classes when using sitetree objects ?
17: [00:54:05] <Hailwood> Ok, fixed my relationships, so it's working now... kind of. It's showing *all* pages. not just the ones of the specific class
18: [00:54:09] <adrexia> I've had issues with that and the manin TreeDropdowenfield
19: [00:54:18] <adrexia> yeah - that ;)
20: [00:54:35] <adrexia> Heirachy belongs to sitetree not to its extensions
21: [00:54:58] <adrexia> hmm
22: [00:55:08] <adrexia> is there a reason why categiories are pages?
23: [00:56:30] <Hailwood> Yeah, the categories are standard top level pages, but we need to classify businesses under (many_many) these top level pages, hence they become categories in that sense
24: [00:57:02] <adrexia> ahh...
25: [00:57:04] <adrexia> hmm
26: [00:57:23] <adrexia> might be easier to classify everything using the taxonomy module
27: [00:57:27] <adrexia> ?
28: [00:58:04] <adrexia> and have a has-one taxonomy on the top level pages that can be used as a filter
29: [00:58:14] <adrexia> has-one taxonomyterm
30: [00:58:19] <adrexia> even
31: [00:59:39] <adrexia> that's what I've done in the past anyway :)
32: [01:00:23] <adrexia> or... maybe use public function setFilterFunction($callback) ?
33: [01:00:30] <adrexia> form Treedropdownfield
34: [01:00:33] <adrexia> *from
35: [01:00:38] <adrexia> to fiulter for your class
36: [01:00:44] * wmk has joined #silverstripe
37: [01:02:33] <Hailwood> Oh, I knew about setSearchFunction, now to look into setFilterFunction
38: [01:03:16] <adrexia> :)
39: [01:04:35] <adrexia> if they are top level, and not too many do you really need a hierarchical selector?
40: [01:05:00] * joelpittet has joined #silverstripe
41: [01:05:23] <adrexia> you couldn't use something like listboxfield?
42: [01:05:28] * spronk2 has joined #silverstripe
43: [01:06:47] <Hailwood> adrexia, Another field type I haven't heard of!
44: [01:07:01] <adrexia> it's my favourite one! :D
45: [01:07:20] <adrexia> it's a multi select field that looks like tags
46: [01:07:47] <adrexia> it is used in the member profile area to add groups to a user if you want an example
47: [01:09:01] * JamieT quit (Ping timeout: 246 seconds)
48: [01:10:36] <Hailwood> Ah this is perfect. Thanks!
49: [01:11:55] <Hailwood> Side note- if you did need to use the TreeMultiselectField then this totally works to filter them - but I believe you're still fetching *all* pages from the database and then looping them.. $categoriesTree->setFilterFunction(function ($node) {return $node->ClassName === 'BusinessCategoryPage';});
50: [01:12:37] * Tanger has joined #silverstripe
51: [01:15:33] <ss-helper> SilverStripe Payment Module: 0.4.2 and 0.3.2 security release - https://groups.google.com/d/msg/silverstripe-announce/qFOFfvWBNe8/GBYNgOacmwgJ
52: [01:20:57] <ss-helper> Re: Multiple Order Emails to User - http://www.silverstripe.org/community/forums/e-commerce-modules/show/19874#post401286
53: [01:30:34] <ss-helper> SilverStripe 3.0.6 Security Release - https://groups.google.com/d/msg/silverstripe-announce/m4vmXYmV0CE/EfSzp3t6mvsJ
54: [01:32:34] * wmk quit (Read error: Connection reset by peer)
55: [01:35:38] * Stomach has joined #silverstripe
56: [01:37:53] * benjhocking quit (Ping timeout: 245 seconds)
57: [01:43:54] * Stomach quit (Quit: zzz)
58: [01:45:43] * benjhocking has joined #silverstripe
59: [02:37:57] * benjhocking quit (Ping timeout: 256 seconds)
60: [02:41:47] * pandabear has joined #silverstripe
61: [02:42:04] <pandabear> Hello, wonder if anyone can help me with an approach to a problem - I’m a novice, to please bear with me :) I’m working on an existing site. One of the page types ModelPage has a has_many relationship to a class, ModelImage, which extends Image. The client has gazillions of these ModelPages and each one has loads of ModelImages, which form a gallery on the website. He now wants to be able to change the re-order the imag
62: [02:42:42] <pandabear> What’s the best way of doing this, without smashing all the existing data and preferably without doing loads of manual SQL which I’m a bit rubbish at. Thanks!
63: [02:44:54] * benjhocking has joined #silverstripe
64: [02:46:11] <ss-helper> Possible bug in SiteTree->canViewStage()? - https://groups.google.com/d/msg/silverstripe-dev/615EhxwCBy8/9yB94PvxgEcJ
65: [02:51:07] * MischaK quit (Ping timeout: 255 seconds)
66: [02:52:38] * Vedran___ quit (Remote host closed the connection)
67: [02:53:26] * Vedran__ has joined #silverstripe
68: [02:57:44] * Vedran__ quit (Ping timeout: 245 seconds)
69: [03:01:13] <ss-helper> Re: Possible bug in SiteTree->canViewStage()? - https://groups.google.com/d/msg/silverstripe-dev/615EhxwCBy8/e19gkZxAMPwJ
70: [03:03:49] * pandabear quit (Ping timeout: 246 seconds)
71: [03:09:28] * pandabear has joined #silverstripe
72: [03:09:45] * Stomach has joined #silverstripe
73: [03:11:54] * Vedran__ has joined #silverstripe
74: [03:14:07] <mobiusnz> anyone here use the silverstrap templates?
75: [03:15:10] * willr has joined #silverstripe
76: [03:16:20] * Vedran__ quit (Ping timeout: 256 seconds)
77: [03:16:53] * Stomach quit (Quit: zzz)
78: [03:23:20] * antmas quit (Quit: Page closed)
79: [03:23:37] * veb has joined #silverstripe
80: [03:29:10] * joelpittet quit (Remote host closed the connection)
81: [03:29:35] * mobiusnz quit (Quit: Leaving.)
82: [03:43:32] * Vedran__ has joined #silverstripe
83: [03:44:16] * Vedran__ quit (Remote host closed the connection)
84: [03:44:32] * Vedran__ has joined #silverstripe
85: [03:47:32] * willr quit (Quit: willr)
86: [03:58:40] * willr has joined #silverstripe
87: [04:02:29] * AdriAn_s has joined #silverstripe
88: [04:03:24] <AdriAn_s> hey guys i am getting the error of "Call to a member function stat() on a non-object" Here is my extension I am using http://pastebin.com/RdWpShGy any ideas
89: [04:04:48] <ss23> Um
90: [04:04:53] <ss23> That code won't cause that error
91: [04:05:02] <ss23> Probably
92: [04:05:06] <ss23> Got a full stack trace?
93: [04:07:28] <AdriAn_s> how do i get that?
94: [04:08:20] <ss23> Um
95: [04:08:21] <ss23> I dunno :O
96: [04:09:33] * travis-ci has joined #silverstripe
97: [04:09:34] <travis-ci> silverstripe/silverstripe-framework#4552 (3.1 - b33a660 : Damian Mooyman): The build passed.
98: [04:09:34] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/da6dbeca5f3c...b33a660604f1
99: [04:09:34] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/58698065
100: [04:09:34] * travis-ci has left #silverstripe
101: [04:12:14] <AdriAn_s> wait sorry try this code http://pastebin.com/FZZXFrrz
102: [04:12:22] <AdriAn_s> i had the wrong function
103: [04:19:19] * joelpittet has joined #silverstripe
104: [04:20:47] <AdriAn_s> any ideas @ss23
105: [04:20:55] <Vedran__> AdriAn_s: im very new to ss but does owner need owner()->
106: [04:20:56] <Vedran__> ?
107: [04:21:52] <AdriAn_s> i dont tihnk so
108: [04:22:02] <AdriAn_s> says this if i add the () Call to undefined method ProductExtension::owner()
109: [04:23:41] <ss23> $this->RElatedProducts() should work okay I think :O
110: [04:23:44] <ss23> not 100%
111: [04:23:45] * mobiusnz has joined #silverstripe
112: [04:23:46] <ss23> I dunno
113: [04:24:26] <Vedran__> AdriAn_s: have you removed the space from line13? 'RelatedProducts',
114: [04:24:52] <Vedran__> I think it needs to be the Key of the many_many
115: [04:25:19] <AdriAn_s> looking around the net it appears a documented issue, maybe with a many_many to itself. if I change $this->owner->RelatedProducts() to say CartPage::get() it works fine
116: [04:26:25] <AdriAn_s> removing teh space on 13 does not fix it
117: [04:26:40] <Vedran__> thanks AdriAn_s
118: [04:27:58] <AdriAn_s> there is a convo here about it by the look sof it between iamss and Zauberfisch ( from line 445) http://logs.simon.geek.nz/index.php?date=2014-04-09
119: [04:28:27] <AdriAn_s> i am wondering if it is a SS bug
120: [04:38:46] <Vedran__> what should folder permissions be of /assets/Uplaods ?
121: [04:42:51] <Vedran__> I am having a issue with file uploads. My file uploads,(including setAllowedExtensions) but I get a forbidden message after the upload. Any ideas?
122: [04:44:42] * Vedran__ quit ()
123: [04:46:40] <Hailwood> So any ideas on what would cause /dev/build says there are no changes to do, but my Model Admin is spitting out [User Error] DataList::create Can't find data classes (classes linked to tables) for Business. Please ensure you run dev/build after creating a new DataObject.
124: [04:54:17] <Colin[pi]> who knows their way around the cms innards here?
125: [04:55:22] * Hailwood quit (Quit: Leaving)
126: [04:57:20] <Colin[pi]> adrexia?
127: [04:57:33] <adrexia> sup?
128: [04:58:31] <Colin[pi]> hey!
129: [04:58:41] <Colin[pi]> do you know how I can style this bitch? http://i.imgur.com/4RDEQ3K.png
130: [04:58:44] <Colin[pi]> (iframe)
131: [04:59:28] <Colin[pi]> src of iframe comes from SecurityAdmin->memberimport()
132: [04:59:39] <Colin[pi]> can I style it without hacking core?
133: [04:59:47] * Vedran__ has joined #silverstripe
134: [05:01:48] <adrexia> Colin[pi], yup I think so
135: [05:01:55] <Colin[pi]> :o
136: [05:01:57] <Colin[pi]> do tell!
137: [05:02:07] * AndrewL quit (Ping timeout: 246 seconds)
138: [05:02:28] <adrexia> the issue would be that it isn't getting your css, right ?
139: [05:02:37] <Colin[pi]> correct
140: [05:02:48] <Colin[pi]> as it's in it's own iframe with own requirements
141: [05:02:57] <adrexia> yep
142: [05:03:12] <adrexia> you can either find a way to alter that or js hack it :P
143: [05:03:20] <Colin[pi]> lammmme
144: [05:03:37] <Colin[pi]> ok I'll do some mucking around with it
145: [05:03:40] <Colin[pi]> thx
146: [05:03:54] <adrexia> I thinkj it should be possible to add to the requirements from config?
147: [05:04:54] * joelpittet quit (Remote host closed the connection)
148: [05:05:48] <adrexia> Colin[pi], does something like this work? MemberImportForm:
149: [05:05:48] <adrexia> extra_requirements_css:
150: [05:05:48] <adrexia> - '/css/custom.css'
151: [05:09:13] * Vedran__ quit ()
152: [05:14:08] <adrexia> public function memberimport() {
153: [05:14:08] <adrexia> Requirements::clear();
154: [05:14:33] <adrexia> hmm, yeah, you might not have much luck there
155: [05:14:51] <adrexia> you could override the template maybe
156: [05:18:52] * Stomach has joined #silverstripe
157: [05:19:58] <adrexia> Colin[pi], yep - override BlankPage.ss to include custom css works. ;)
158: [05:20:07] <adrexia> * overriding
159: [05:25:55] * pandabear quit (Ping timeout: 246 seconds)
160: [05:29:13] * Stomach quit (Quit: zzz)
161: [05:30:11] <Colin[pi]> adrexia: oooh that might just work
162: [05:30:13] <Colin[pi]> lemme see
163: [05:34:42] * Shrike_Finland has joined #silverstripe
164: [05:35:49] <Colin[pi]> adrexia: soo close, the cms is inserting it's css link tags after mine
165: [05:35:58] <Colin[pi]> I could !important ?
166: [05:36:29] <ss-helper> Re: Silversites - http://www.silverstripe.org/community/forums/showcase-questions/show/23136#post401287
167: [05:38:29] <Colin[pi]> adrexia: nm
168: [05:38:31] <Colin[pi]> fixed it
169: [05:38:32] <Colin[pi]> :D
170: [05:38:48] <Colin[pi]> adrexia: you freakin legend
171: [05:41:45] * Vedran__ has joined #silverstripe
172: [05:56:01] * Shrike_Finland quit (Quit: Leaving.)
173: [05:59:48] * Robke has joined #silverstripe
174: [05:59:52] <Robke> howdy
175: [06:04:36] * Shrike_Finland has joined #silverstripe
176: [06:05:05] * Shrike_Finland quit (Client Quit)
177: [06:05:19] * Shrike_Finland has joined #silverstripe
178: [06:06:14] <Colin[pi]> Robke: o/
179: [06:06:51] <Robke> how are things going?
180: [06:07:44] <Robke> how things are going?
181: [06:07:49] <Robke> :D poor english :D
182: [06:09:06] * willr quit (Ping timeout: 244 seconds)
183: [06:12:10] * veb quit (Quit: veb-irc: &)
184: [06:12:22] <Colin[pi]> Robke: not bad! how are things with you?
185: [06:12:28] * wmk has joined #silverstripe
186: [06:12:48] <Robke> still fixing some css issues but in general not so bad ;)
187: [06:12:58] <Robke> quite a good week it is :)
188: [06:13:04] <Robke> till now :D
189: [06:14:18] <Colin[pi]> Robke: lol dem css issues
190: [06:14:23] <Colin[pi]> that's what I'm doing right now as well
191: [06:14:24] <Colin[pi]> :(
192: [06:17:17] * Eliseth has joined #silverstripe
193: [06:19:28] * spronk2 quit (Quit: I may need a longer sleep timer...)
194: [06:20:32] <Vedran__> hi, i am having a issue with uploads. I am not sure what is going on. Files will upload, but after upload I got a 'Forbidden' message and nothing appears in CMS.
195: [06:22:01] <wmk> Vedran__, does your webserver have write access to /assets/ dir?
196: [06:22:07] <Vedran__> yep
197: [06:22:08] <wmk> any other errors logged?
198: [06:22:14] <Vedran__> i am running locally at the moment
199: [06:22:31] <wmk> can you check the response you get after the upload? e.g. in firebug's network tab
200: [06:22:36] <wmk> enable error logging
201: [06:22:55] <wmk> the answer is right to you, you have to get the response / error log
202: [06:23:56] <Vedran__> where can I enable error logging?
203: [06:24:14] <Vedran__> by error logging, do you mean php error loggging or ss?
204: [06:24:21] <Robke> Colin[pi]: dem? the meaning in full words?
205: [06:25:24] <Vedran__> ok
206: [06:25:34] <Vedran__> so its telling me the extension is now allowed
207: [06:25:40] <Vedran__> $logoFiles->getValidator()->setAllowedExtensions(array('svg'));
208: [06:25:47] <Vedran__> is that now how you set allowed extensions?
209: [06:32:05] <Vedran__> which is the correct syntax?
210: [06:32:09] <Vedran__> $logoFiles->getValidator()->setAllowedExtensions(array('svg'));
211: [06:32:09] <Vedran__> $logoFiles->setAllowedExtensions(array('svg'));
212: [06:36:53] <wmk> afaik svg isn't included in general
213: [06:37:40] <wmk> you'll have to add it to File.allowed_extensions via you config.yml
214: [06:37:48] <wmk> !flush Vedran__ (of course)
215: [06:37:48] <ss-helper> Vedran__: Have you flushed? Try doing a ?flush=all and /dev/build then see if it's sorted. Do it twice for good measure ;-)
216: [06:38:01] <Vedran__> done both
217: [06:38:20] <wmk> and svg isn't an image
218: [06:38:21] <Vedran__> tried adding to the yaml
219: [06:38:38] <Vedran__> svg isnt a image?
220: [06:38:57] <wmk> well, for SS Image class you'd need a pixel image, no vector graphic
221: [06:39:09] <Vedran__> hrm...
222: [06:39:11] <wmk> cause i think gd or imagemagick are not working with svg...
223: [06:39:26] <Vedran__> ok, that may be the issue than
224: [06:39:34] <wmk> if lerni comes later you might ask him
225: [06:39:43] <Vedran__> will do
226: [06:39:43] <wmk> he did a site with svg logos
227: [06:39:49] <Vedran__> thanks wmk
228: [06:40:07] * mahfuz quit (Ping timeout: 246 seconds)
229: [06:40:36] <wmk> any routing expert around?
230: [06:41:01] <wmk> i'd like to have an optional param in my route, with fallback to a route without param
231: [06:41:34] <wmk> so both will work:
232: [06:41:54] <wmk> /parent/TOWN/subsite/action
233: [06:41:59] <wmk> /parent/subsite/action
234: [06:42:20] <wmk> and $TOWN is checked to be in an array of given names
235: [06:42:32] <wmk> like $Action is checked if it's a valid action.
236: [06:42:52] * veb has joined #silverstripe
237: [06:44:17] <Vedran__> what are the 'Names' of the default page fields?
238: [06:44:21] <Vedran__> $fields->removeFieldFromTab("Root.Main","Content");
239: [06:44:46] <Vedran__> the page name, url, nav label etc? (how would I find their name)
240: [06:44:51] <wmk> Vedran__, see SiteTree::generateCMSFields()
241: [06:45:09] <wmk> or SiteTree's $db definition
242: [06:48:30] <Vedran__> thanks again :)
243: [06:51:05] <Colin[pi]> Robke: sorry "dem" = "them" )
244: [06:51:06] <Colin[pi]> ;)
245: [06:51:22] <Robke> oh slang language ;) sorry my bad
246: [06:51:23] <Robke> :D
247: [06:54:53] <Vedran__> where does Silverstripe get its 'AllowedExtensions'?
248: [06:54:53] * Mike123 has joined #silverstripe
249: [06:54:57] <Mike123> Hello people :)
250: [06:55:04] <Mike123> have i question
251: [06:55:04] <wmk> !hello Mike123
252: [06:55:07] <Mike123> :)
253: [06:55:14] <wmk> ss-helper, that was lame
254: [06:55:42] <Vedran__> and how can I add to it (i tried the _config/config.yml to no avaial :(
255: [06:56:10] <Eliseth> morning
256: [06:57:04] <Mike123> i have NewsItem where i added $has_one with 'Top' => 'Image' , it will be a top news image, now i want it to get in my template , when i write $Top it gets me all image already in a tag , but i need to resize or cropp it , ant $Top.croppImage() diesnt work :/
257: [06:57:35] <Eliseth> Did you set a size?
258: [06:58:08] <Eliseth> $Top.CroppedImage(640,480)
259: [06:58:21] <Vedran__> Got it! :)
260: [06:58:40] <Mike123> Eliseth, that didnt work :/
261: [06:59:34] <Mike123> wait i will paste it
262: [06:59:40] <Eliseth> <img src="$Top.CroppedImage(640, 480).URL" />
263: [07:00:46] <Eliseth> (Personally I tend to forget the .URL part every now and then)
264: [07:01:03] <wmk> Vedran__, how?
265: [07:01:27] <Vedran__> to upload a svg it needs to be a file field and the extension needs to be allowed via
266: [07:01:34] <Vedran__> config.yml
267: [07:01:38] <Vedran__> File:
268: [07:01:39] <Vedran__> allowed_extensions:
269: [07:01:39] <Vedran__> - svg
270: [07:01:59] <wmk> !paste Mike123
271: [07:01:59] <ss-helper> Mike123: Please paste your code using something like http://kopy.io/ or http://www.sspaste.com/ or https://gist.github.com/ and then paste the link here.
272: [07:02:35] <Mike123> http://codepaste.net/3pm82o
273: [07:02:42] <Eliseth> I've been struggling with SVG's in SilverStripe in the past.
274: [07:03:58] <Mike123> Eliseth : it gives me empty tag <img src="">
275: [07:04:25] <wmk> heh - this codepaste grabs ctrl-t... i don't get a new tab
276: [07:04:37] <wmk> #UIFail
277: [07:05:04] <Eliseth> And without the CroppedImage it works? (src="$Top.URL")
278: [07:05:38] <wmk> Mike123, http://doc.silverstripe.org/en/developer_guides/files/image/#resizing-in-templates
279: [07:05:43] <Mike123> it even doesnt work with this src="$Top.URL" it only shown an image then i just type $Top
280: [07:06:03] <wmk> Mike123, what kind of image? jpg?
281: [07:06:18] <Mike123> i think it is png
282: [07:06:36] * arnhoe has joined #silverstripe
283: [07:06:48] <wmk> Mike123, it's in newsholder, you're inside something like <% loop News %> ??
284: [07:07:08] <wmk> so - you're in the right scope in your template? Can you access other params from the current news item?
285: [07:08:36] * veb quit (Quit: veb-irc: quit)
286: [07:09:13] * Frans_Amsterdam has joined #silverstripe
287: [07:09:19] <Mike123> well i get other content of the news, like title e.t.c
288: [07:10:39] <wmk> Mike123, try $Top.Debug
289: [07:10:46] <wmk> to get some infos about $Top...
290: [07:10:48] <wmk> ehem...
291: [07:10:48] <wmk> wait
292: [07:10:59] <wmk> could it be that $Top is a reserved word?
293: [07:11:08] <Eliseth> I was just thinking that... >.<
294: [07:11:10] <wmk> it means "most top scope"
295: [07:11:14] <Eliseth> Try renaming it to $TopImage
296: [07:11:26] <wmk> Mike123, ^^
297: [07:11:29] <Vedran__> I want to create something that has the following fields: Direction, Title and Image. I feel like extending Pages and then hiding feilds is the wrong way to go around it. What should I extend?
298: [07:11:50] <wmk> Vedran__, is it just a plain DataObject?
299: [07:11:56] <wmk> or do you need any page functionality?
300: [07:13:15] <Vedran__> via CMS how can I add a 'DataObject?
301: [07:13:17] <wmk> Vedran__, http://www.silverstripe.org/learn/lessons/introduction-to-the-orm might be worth a look at
302: [07:13:31] <Vedran__> thats my main concern
303: [07:13:32] <Mike123> ok one sec
304: [07:13:39] <wmk> Vedran__, code first, then add it via cms
305: [07:13:58] <Vedran__> say its a dataobject
306: [07:14:09] <wmk> either the data is related to a single page, then you can make a gridfield on that page, or it's general data, you can manage that in a ModelAdmin
307: [07:14:39] <wmk> but grab a coffee and have a look at the lessions first, you'll see...
308: [07:14:41] <Vedran__> ok it will be related to a page
309: [07:14:50] <Vedran__> thank you :)
310: [07:15:12] <wmk> then define the DataObject, the relation to the page, a field to manage the dataobjects from that page (e.g. gridfield)
311: [07:15:23] <wmk> pretty easy once you got the first working.
312: [07:15:33] <wmk> so try, and if you get stuck...
313: [07:15:36] <wmk> !paste Vedran__
314: [07:15:36] <ss-helper> Vedran__: Please paste your code using something like http://kopy.io/ or http://www.sspaste.com/ or https://gist.github.com/ and then paste the link here.
315: [07:15:44] * wmk loves ss-helper
316: [07:15:52] <Mike123> well its nothing :/ same think doesnt work
317: [07:16:10] * Eliseth thinks wmk has too much time playing with bots... ;)
318: [07:16:11] <wmk> Mike123, after renaminig you have to upload again,
319: [07:16:27] <Eliseth> dev/build?flush=all
320: [07:16:31] <wmk> cause /dev/build doesn't check for renaming
321: [07:16:34] <Mike123> done
322: [07:16:47] <wmk> Eliseth, bot is just helping...
323: [07:17:10] <Eliseth> I'm having startup problems today...
324: [07:17:17] <wmk> coffee?
325: [07:17:24] <Eliseth> ON my 5th cup
326: [07:17:41] <wmk> you also have this warm spanish air in netherlands today?
327: [07:17:59] <Eliseth> We had it y'day, was nice for a change
328: [07:18:06] <Eliseth> Today is a bit colder again
329: [07:18:59] * Shrike_Finland quit (Quit: Leaving.)
330: [07:21:13] <Mike123> okey that work !
331: [07:21:26] <Mike123> Thank you, i gues i should give names like this anymore
332: [07:21:30] <wmk> Mike123, hooray!
333: [07:21:53] <wmk> well, too generic cold be risky...
334: [07:22:09] <wmk> $Top and $Up are generic words in templates
335: [07:23:18] * Guits has joined #silverstripe
336: [07:23:19] <Mike123> Thank you guys :) i will have few question a bit later :) stay on :DD
337: [07:23:47] <Eliseth> :D
338: [07:23:51] <Eliseth> wmk
339: [07:23:54] <Eliseth> German right?
340: [07:28:18] <Mike123> no :) Lithuania
341: [07:29:13] * Shrike_Finland has joined #silverstripe
342: [07:29:49] <ss23> Bah
343: [07:29:56] <ss23> Static Publisher thinks "/home" is a 200
344: [07:30:04] <ss23> It's actually a 301 to "/"
345: [07:30:12] <ss23> Anyone had this or know how to fix?
346: [07:33:00] <wmk> ss23, did you set homepagemap?
347: [07:38:15] <ss23> No, but uh...
348: [07:38:29] <ss23> What I'm hoping is that /home gets published as a 301 to /?
349: [07:38:31] <ss23> Like
350: [07:38:36] <ss23> When I do it in my dev...
351: [07:38:41] <ss23> 0 0.04s 0.0mb 16.0mb /home (HTTP Status: 301)
352: [07:38:41] <ss23> 1 0.07s 6.2mb 22.0mb / (HTTP Status: 200)
353: [07:38:44] <ss23> That's what I'd expect
354: [07:38:57] <ss23> For this site though, it goves "/home (HTTP Status: 200)"
355: [07:39:01] <ss23> but when I access it in CMS it's fine
356: [07:39:36] * WandL quit (Quit: Textual IRC Client: www.textualapp.com)
357: [07:41:55] <wmk> ss23, afaik it just takes /home or whatever you define when you try to access /
358: [07:45:47] * Sticks quit (Quit: Leaving)
359: [07:54:36] <Mike123> i'm back :D i need to make two checkboxes in CMS that will describe in which group is News, but i need to make that administrator could only select one group, is it possible ?
360: [07:54:47] * lerni has joined #silverstripe
361: [07:55:35] <Eliseth> Use selectbox instead of checkbox?
362: [07:56:03] <Mike123> u mean dropdown ?
363: [07:59:10] <Mike123> later i will need to create a filter where user will be able to filter News by group
364: [07:59:16] <lerni> is there a easy was to make dynamic menuenties visible for anybody but protect ehm with a login?
365: [08:00:48] * Vedran___ has joined #silverstripe
366: [08:00:49] * Vedran__ quit (Read error: Connection reset by peer)
367: [08:01:04] * kinglozzer has joined #silverstripe
368: [08:02:02] * Shrike_Finland quit (Quit: Leaving.)
369: [08:05:14] * Vedran___ quit (Ping timeout: 245 seconds)
370: [08:08:59] * CerV has joined #silverstripe
371: [08:09:00] <Mike123> how can i make that 2 checkboxes would be in one grid, in CMS f
372: [08:09:31] <Mike123> i mean i want to make them be in row like...
373: [08:09:37] <CerV> Hi all, is there a known problem with silverstripe loops on internet explorer and not-so-recent firefox builds?
374: [08:10:10] * GioVdK has joined #silverstripe
375: [08:10:11] <Eliseth> Aren't loops serverside?
376: [08:10:18] <CerV> i thought so too
377: [08:10:47] <CerV> though it might be the $ChildrenOF inside the loop
378: [08:10:50] <Eliseth> What does source code show on IE?
379: [08:11:39] <CerV> well, its simply no there, i use the loop to only show a certain entry if a certain page has children(that are visible and searchable)
380: [08:11:51] * swaiba has joined #silverstripe
381: [08:12:42] <ss-helper> silverstripe - file permissions for assets folder - http://stackoverflow.com/questions/16439234/silverstripe-file-permissions-for-assets-folder
382: [08:16:36] <CerV> hmm, this is pretty weird, i get very different results on different browsers, i got an if statement too, that only works right on my most recent firefox stable
383: [08:17:20] <lerni> CerV loged in in one brwoser but not the other one?
384: [08:18:31] <CerV> lerni: indeed i am
385: [08:18:44] <lerni> ;)
386: [08:18:49] <CerV> lerni: how does that change things?
387: [08:19:11] <lerni> well is smth is published or not it can affect things
388: [08:19:26] <lerni> stage vs. live
389: [08:21:11] <CerV> lerni: so would a publish all fix thisß
390: [08:21:42] <wmk> lerni, o/
391: [08:21:50] <ss-helper> Re: Accessing to a custom field in CMS DataObject - http://www.silverstripe.org/community/forums/customising-the-cms/show/101604#post401218
392: [08:21:57] <CerV> lerni: it does indeed, thx, i'll be more careful about this in the future
393: [08:21:58] <lerni> dont know what you're doing but probable
394: [08:22:22] <CerV> lerni: i'm not so sure either ;-)
395: [08:22:39] <swaiba> Morning all
396: [08:22:54] <Eliseth> Morning swaiba
397: [08:23:29] <swaiba> CerV - is it that you are logged in on one, but not on the other - happens all the time to my clients...
398: [08:24:54] <Eliseth> The amount of phone calls I get from clients panicing like this: "Help! I made a blogpost and set it to publish tomorrow but it's already visible on the website!! This is a disaster!!"
399: [08:25:15] <wmk> Eliseth, well...
400: [08:25:23] * nontgor quit (Ping timeout: 245 seconds)
401: [08:25:43] <wmk> !define desaster
402: [08:25:46] * Arcax has joined #silverstripe
403: [08:25:55] <wmk> ss-helper any info?
404: [08:26:04] <swaiba> lol wmk
405: [08:26:15] <Eliseth> lol
406: [08:26:42] <Eliseth> wmk: http://en.wikipedia.org/wiki/Desaster
407: [08:26:47] <Eliseth> ;)
408: [08:26:58] <CerV> lol i can imagine, it is pretty hard to spot for a beginner
409: [08:27:14] <Arcax> Hi
410: [08:27:21] <wmk> Eliseth, oh...
411: [08:27:30] <wmk> so more Lady Di-saster?
412: [08:27:32] <Mike123> i'm using OptionsetField for choosing one of many News group, i have a private static $db = array( "Date" => "Date", "GroupNews" => "Boolean", "OtherNews" => "Boolean" ) how do i insert those booleans to my OptionsetField
413: [08:28:13] <swaiba> Hi Arcax
414: [08:28:43] * gordon has joined #silverstripe
415: [08:28:49] * gordon is now known as nontgor
416: [08:31:03] <swaiba> Mike read the usage from http://api.silverstripe.org/3.0/class-OptionsetField.html and then on OnBeforeWrite update the boolean fields
417: [08:31:28] * FMateo has joined #silverstripe
418: [08:32:41] <lerni> wmk swaiba Eliseth jonom/silverstripe-betternavigator helps a lot to prevent desasters
419: [08:33:33] <swaiba> cheers lerni
420: [08:37:54] * Tanger quit (Quit: sleep())
421: [08:37:58] <Eliseth> Using that, doesn't cure client blindness
422: [08:38:09] <Eliseth> nor stupidity
423: [08:38:57] <wmk> lerni, of course
424: [08:39:36] <wmk> so i have a getter method that returns a datalist
425: [08:39:50] <wmk> how can i ensure the datalist is grabbed imediatly?
426: [08:40:08] <lerni> Eliseth the problem with stupidity is, that I'm some also are :)
427: [08:40:12] * spronk2 has joined #silverstripe
428: [08:40:48] <lerni> ...that I am
429: [08:41:08] <wmk> lerni, well, THAT was a bit stup....
430: [08:41:11] <wmk> *G*
431: [08:42:10] <Eliseth> Nothing wrong with stupidity... I'm stupid as well, been going at this SilverStripe for what, 4 months now? Still don't understand what I'm doing... ^^
432: [08:43:12] <swaiba> wmk - do a foreach and add them to an Arraylist? or do a DB::Query instead
433: [08:43:46] <wmk> the problem is: it's surrounded by Subsite::disable_subsite_filter()
434: [08:44:07] <wmk> and subsitefilter is only disabled in this specific method, not in the template...
435: [08:44:21] <wmk> or any other way to tell the datalist to disable the subsite filter?
436: [08:46:15] <swaiba> wmk - http://api.silverstripe.org/3.1/source-class-DataList.html#950-961 ?
437: [08:46:53] <wmk> swaiba, i don't want to remove elements from the datalist
438: [08:47:00] <wmk> i want to disable the subsitefilter for THIS datalist
439: [08:47:11] <wmk> or convert into an ArrayList...
440: [08:47:37] * r_hector has joined #silverstripe
441: [08:47:45] <swaiba> isn't that what that does? it removes a filter - which would then change the result set
442: [08:48:08] <swaiba> but I'm just curious, pushing to new array list with any manipulations will always work
443: [08:49:03] <wmk> $converted = ArrayList::create($ret->toArray()) looks promising
444: [08:59:45] * jarr0dsz has joined #silverstripe
445: [09:03:22] * mobiusnz quit (Quit: Leaving.)
446: [09:10:23] * Frans_Amsterdam quit (Ping timeout: 245 seconds)
447: [09:10:34] * mobiusnz has joined #silverstripe
448: [09:19:27] * babak has joined #silverstripe
449: [09:25:54] * cupcake has joined #silverstripe
450: [09:26:02] <Arcax> Hi all. I have a little problem that is killing me.
451: [09:26:04] <Arcax> I try save the result of an operation (add up two random number) in a global variable.
452: [09:26:05] <Arcax> All is ok here, but when i want to pick up the data, i obtain other number.
453: [09:26:07] <Arcax> (I try search a pattern with the result, but i don't know what is happening).
454: [09:26:08] <Arcax> Can someone help me out?
455: [09:32:46] <swaiba> Arcax - code pastie?
456: [09:32:50] * Eliseth quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
457: [09:33:01] * BetterBert has joined #silverstripe
458: [09:33:49] <wmk> Arcax, global variable is bad... You can write the result to the current session, or do you need the random number on each page request?
459: [09:35:04] <Arcax> When i go to When I send a form. The numbers generated are by way of catpcha
460: [09:35:45] <Arcax> _config.php
461: [09:35:47] <Arcax>
462: [09:35:48] <Arcax>
463: [09:35:50] <Arcax> // Send form catpcha result
464: [09:35:51] <Arcax> global $catpchaResult;
465: [09:35:53] <Arcax> $catpchaResult = -1;
466: [09:35:55] <Arcax>
467: [09:35:56] <Arcax>
468: [09:35:57] <wmk> !paste Arcax
469: [09:35:58] <ss-helper> Arcax: Please paste your code using something like http://kopy.io/ or http://www.sspaste.com/ or https://gist.github.com/ and then paste the link here.
470: [09:35:58] <Arcax>
471: [09:35:59] <Arcax>
472: [09:36:01] <Arcax> ProductPage.php
473: [09:36:02] <Arcax>
474: [09:36:04] <Arcax>
475: [09:36:05] <Arcax> class ProductPage_Controller extends Page_Controller {
476: [09:36:07] <Arcax>
477: [09:36:08] <Arcax> /* Init variable */
478: [09:36:10] <Arcax> public function initVariable() {
479: [09:36:11] <Arcax>
480: [09:36:13] <Arcax> // Using global variable to save catpcha result
481: [09:36:14] <Arcax> global $catpchaResult;
482: [09:36:16] <Arcax>
483: [09:36:17] <Arcax> // Genere random numbers
484: [09:36:19] <Arcax> $randomNumberOne = rand(0, 100);
485: [09:36:21] <Arcax> $randomNumberTwo = rand(0, 100);
486: [09:36:22] <Arcax>
487: [09:36:23] <Arcax> // Saving result
488: [09:36:25] <Arcax> $catpchaResult = ($randomNumberOne + $randomNumberTwo);
489: [09:36:26] <Arcax>
490: [09:36:28] <Arcax> }
491: [09:36:29] <Arcax>
492: [09:36:30] <swaiba> Arcax woah there cowboy!
493: [09:36:31] <Arcax> public function CreateForm() {
494: [09:36:32] <Arcax> global $catpchaResult;
495: [09:36:34] <Arcax>
496: [09:36:35] <Arcax> $this->initVariable();
497: [09:36:37] <Arcax>
498: [09:36:38] <Arcax> $form = Form::create(
499: [09:36:40] <Arcax> $this,
500: [09:36:41] <swaiba> ss-helper Arcax: Please paste your code using something like http://kopy.io/ or http://www.sspaste.com/ or https://gist.github.com/ and then paste the link here.
501: [09:36:41] <Arcax> __FUNCTION__,
502: [09:36:43] <Arcax> FieldList::create(
503: [09:36:44] <Arcax> TextField::create('Name',''),
504: [09:36:46] <Arcax> TextField::create('Surname',''),
505: [09:36:47] <Arcax> EmailField::create('Email',''),
506: [09:36:49] <Arcax> TextField::create('Address',''),
507: [09:36:49] <swaiba> STOP!!!!!! for the love of god
508: [09:36:51] <Arcax> TextField::create('Phone',''),
509: [09:36:52] <Arcax> TextField::create('Subject',''),
510: [09:36:53] <Arcax> TextareaField::create('Message',''),
511: [09:36:55] <Arcax> TextField::create('Captcha','')
512: [09:36:57] <Arcax> ),
513: [09:36:58] <Arcax> FieldList::create(
514: [09:37:00] <Arcax> FormAction::create('handleForm','Send Form')
515: [09:37:01] <Arcax> ->setUseButtonTag(true)
516: [09:37:02] <Arcax> ->addExtraClass('btn btn-default-color btn-lg')
517: [09:37:04] <Arcax> ),
518: [09:37:05] <Arcax> RequiredFields::create('Name','Email','Phone', 'Message')
519: [09:37:07] <Arcax> )->addExtraClass('form-style');
520: [09:37:09] <Arcax>
521: [09:37:10] <Arcax> foreach($form->Fields() as $field) {
522: [09:37:11] <Arcax> $field->addExtraClass('form-control')
523: [09:37:13] <Arcax> ->setAttribute('placeholder', $field->getName().'*');
524: [09:37:15] <Arcax>
525: [09:37:16] <Arcax> if($field->getName() == 'Captcha'){ $field->setAttribute('placeholder', 'Result: '.$catpchaResult); }
526: [09:37:18] <Arcax> }
527: [09:37:19] <Arcax>
528: [09:37:21] <Arcax> $data = Session::get("FormData.{$form->getName()}.data");
529: [09:37:22] <Arcax>
530: [09:37:24] <Arcax> return $data ? $form->loadDataFrom($data) : $form;
531: [09:37:25] <Arcax> }
532: [09:37:27] <Arcax>
533: [09:37:28] <Arcax> public function handleForm($data, $form) {
534: [09:37:30] <Arcax> global $catpchaResult;
535: [09:37:31] <Arcax>
536: [09:37:33] <Arcax> Session::set("FormData.{$form->getName()}.data", $data);
537: [09:37:34] <Arcax>
538: [09:37:36] <Arcax> $commentForm = MyForm::create();
539: [09:37:37] <Arcax> $commentForm->ProductPageID = $this->ID;
540: [09:37:39] <Arcax> $form->saveInto($commentForm);
541: [09:37:40] <Arcax> $commentForm->write();
542: [09:37:41] <Arcax>
543: [09:37:43] <Arcax> echo 'Inserted number: ' . $commentForm->Captcha; // Correct number
544: [09:37:45] <Arcax> echo 'Result ' . $catpchaResult; // Different number saved
545: [09:37:46] <Arcax>
546: [09:37:48] <Arcax> Session::clear("FormData.{$form->getName()}.data");
547: [09:37:49] <Arcax> $form->sessionMessage('Thanks for your interest','good');
548: [09:37:51] <Arcax> }
549: [09:37:52] <Arcax>
550: [09:37:54] <Arcax> }
551: [09:37:57] <Arcax> i used http://pastebin.com
552: [09:37:58] <Arcax> Sorry !!! xD
553: [09:38:00] <Arcax> Don't kill me please. http://pastebin.com/FumkcPVu
554: [09:38:36] * MrGuits has joined #silverstripe
555: [09:38:46] * Guits quit (Read error: Connection reset by peer)
556: [09:42:18] <swaiba> Arcax - what is the point of this, doesn't silverstripe forms contain a secruity ID to ensure you submit them only once?
557: [09:42:28] * Shrike_Finland has joined #silverstripe
558: [09:44:05] <wmk> and ain't there a captcha field already around?
559: [09:44:36] <wmk> swaiba, that's why i always do !paste
560: [09:45:09] <Arcax> I don't know what you try to say me
561: [09:45:36] <Arcax> I only want save the result of two random number in a global variable =(
562: [09:46:24] <Arcax> Java is very simple, I'm new to silverstripe.
563: [09:48:19] * BetterBert quit (Quit: (null))
564: [09:50:44] <swaiba> Java != silverstripe, but as has been said - globals are bad mmmm'kay - doesn't matter on the context
565: [09:50:59] * phillprice has joined #silverstripe
566: [09:51:38] <swaiba> and I'm asking why you are doing this because - maybe - you don't need to as the silverstripe framework (think of it like a big php library of included functions) - does it for you
567: [09:52:01] <ss-helper> Add Custom Action Response - http://www.silverstripe.org/community/forums/customising-the-cms/show/101632
568: [09:52:31] <CerV> is the [title] shortcode deprecated?
569: [09:52:48] <swaiba> and https://github.com/chillu/silverstripe-recaptcha would be a good idea if you are trying to add captcha to your site
570: [09:52:59] <CerV> i can't seem to make it work
571: [09:53:48] <wmk> CerV, where do you use the shortcode?
572: [09:53:54] <wmk> in htmleditor or template?
573: [09:54:00] <wmk> shortcodes in templates are deprecated
574: [09:54:07] <wmk> not working any more
575: [09:54:17] <CerV> wmk: in htmleditor
576: [09:54:37] <wmk> though i never used the [title] shortcode. what was/is it good for?
577: [09:54:48] <CerV> wmk: i'm trying to pass the page title to a form to use as the subject
578: [09:54:55] <CerV> wmk: to my understanding it was the page title
579: [09:55:05] <Arcax> Thank you very much for the help (wmk, swaiba), i try to apply the module that has happened to me
580: [09:55:30] <wmk> $Title, yes, but how do you generate the form in htmleditor???
581: [09:56:24] <CerV> wmk: i dont, i pass it to a seperate form with ?EditableTextField34=[title]
582: [09:56:41] <wmk> ah, userdefinedform
583: [09:57:10] <wmk> hmm, dunno if there was a shortcode for it. if not, generate it ;)
584: [09:57:14] <CerV> wmk: jup, but thats all working fine
585: [09:57:53] <CerV> wmk: i'll opt to hardcode it then, seems like less hassle, pity though, i try to keep things clean
586: [09:58:16] <wmk> yup, shortcode would be cool, but shortcodes don't know the page they're calle
587: [09:58:18] <wmk> d
588: [09:58:34] <wmk> just current page - what happens on a holder page..?
589: [09:59:39] <CerV> hmm, so current page i could get by shortcode?
590: [10:04:59] * Guits has joined #silverstripe
591: [10:05:29] * MrGuits quit (Read error: Connection reset by peer)
592: [10:06:20] * Shrike_Finland quit (Quit: Leaving.)
593: [10:07:04] <ss-helper> Re: Hosting for existing wesbite - http://www.silverstripe.org/community/forums/hosting-requirements/show/101600#post401289
594: [10:09:10] <wmk> CerV, bit complicated, but possible
595: [10:11:05] <wmk> Director::get_current_page()
596: [10:29:53] * CerV quit (Quit: Page closed)
597: [10:32:15] <Mike123> how can i DataObject::get() 3rd,4th and 5th record only ?
598: [10:32:34] <Mike123> or start from 5th record and till the end
599: [10:34:17] <swaiba> Mike123 MyDO::get()->limit(3,3);
600: [10:35:43] <Mike123> can u explain the limit() parameters ?
601: [10:37:07] <ss-helper> Stop Framework from process specific subdirectories for letting angularjs routes unprocessed - http://www.silverstripe.org/community/forums/general-questions/show/101633
602: [10:44:53] <swaiba> Mike123 can u look at docs? http://api.silverstripe.org/3.1/source-class-DataList.html#214-225
603: [10:50:08] * jarr0dsz quit (Quit: My Mac has gone to sleep. ZZZzzz…)
604: [10:51:17] * jarr0dsz has joined #silverstripe
605: [10:51:18] * jarr0dsz quit (Client Quit)
606: [10:55:27] <wmk> Mike123, there are good api docs on http://api.silverstripe.org/3.1/
607: [10:55:54] <wmk> Mike123, if you use a decent IDE for coding (like phpstorm), you can just jump to the code and read the code
608: [10:56:02] <wmk> this way you learn a lot how things are working
609: [10:57:47] <Mike123> im using aptana
610: [10:58:11] <wmk> can you easily jump to a class?
611: [10:58:17] <wmk> or to a method?
612: [10:58:36] <wmk> i tend to read in source, as api docs are "just" phpdoc comments nicely formatted
613: [11:05:04] * MischaK has joined #silverstripe
614: [11:27:36] * Colin[pi] quit (Read error: Connection reset by peer)
615: [11:29:08] * Eliseth has joined #silverstripe
616: [11:48:56] * MrGuits has joined #silverstripe
617: [11:49:16] * Guits quit (Read error: Connection reset by peer)
618: [11:52:33] * shellbackpacific has joined #silverstripe
619: [11:59:05] * shellbackpacifi1 has joined #silverstripe
620: [11:59:05] * shellbackpacific quit (Read error: Connection reset by peer)
621: [11:59:19] <shellbackpacifi1> hey all…any recommended extensions for managing users (outside of the CMS) on a site?
622: [12:01:40] <swaiba> shellbackpacifi1 - I'm really curious as to what the intention here is...
623: [12:02:06] <swaiba> got a picture in my mind of any web visitor reseting the Administrators password (rofl)
624: [12:02:29] <swaiba> any data object can be editted on the frontend, just build it like a normal form
625: [12:03:34] <swaiba> also https://github.com/chillu/silverstripe-genericviews provides a nice overview of that (for 2.X, but should be easy to make work for 3.x)
626: [12:03:53] <shellbackpacifi1> swaiba: user accounts. A user signs up for an account that is not part of the CMS
627: [12:04:02] <swaiba> ahhhh
628: [12:04:22] <swaiba> then this is what you need... https://github.com/silverstripe-australia/silverstripe-memberprofiles
629: [12:04:40] <shellbackpacifi1> yeah i was looking at that one. Just wondering if there are better
630: [12:04:42] <shellbackpacifi1> thanks
631: [12:06:22] <wmk> swaiba, scaffoldFrontendForm ...?
632: [12:06:48] <wmk> that genericViews module... tried it once on 3.0 - never again
633: [12:07:23] * Eliseth quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
634: [12:09:01] * Stomach has joined #silverstripe
635: [12:09:43] * UndefinedOffset has joined #silverstripe
636: [12:11:21] <swaiba> wmk well yeah, I should have seen it was memberprofiles straight off
637: [12:11:43] <swaiba> but as I said I just pictured a crazy situation of letting public vistors mess with Member table
638: [12:12:07] <wmk> funny picture unless you coded it
639: [12:28:28] * jcwacky has joined #silverstripe
640: [12:29:00] <jcwacky> Is it possible to tell a NewsPage that it can ONLY be created under a NewsHolder? e.g. something like $allowed_parents?
641: [12:29:49] <wmk> onBeforeWrite?
642: [12:30:15] <wmk> or do you want to filter it out from the "new page" radio list?
643: [12:30:38] <jcwacky> Yeh, using onBeforeWrite at the moment to move it to a NewsHolder.
644: [12:30:53] <jcwacky> Ideally trying to tify the New Page list.
645: [12:30:56] <jcwacky> *tidy
646: [12:31:15] <wmk> jcwacky, why not use a modeladmin for news?
647: [12:31:19] <wmk> e.g. catalogadmin?
648: [12:31:33] * Eliseth has joined #silverstripe
649: [12:32:22] <jcwacky> I’m using Lumberjack actually.
650: [12:32:34] <wmk> seems to be pretty the same
651: [12:32:46] <wmk> lumberjack could hide from sitetree anyway
652: [12:32:49] <jcwacky> Yeh, NewsArticle still appears in the Add New though.
653: [12:32:55] <wmk> hmm....
654: [12:33:11] <jcwacky> No worries. Just wondered if there was a straightforward way.
655: [12:33:16] <jcwacky> onBeforeWrite will do.
656: [12:34:21] <lerni> shellbackpacifi1: I've recently saw two modules from burnbright you could be interested in
657: [12:34:50] <lerni> github.com/burnbright/silverstripe-members, github.com/burnbright/silverstripe-listeditor
658: [12:34:50] <shellbackpacifi1> lerni: thanks :)
659: [12:34:58] <shellbackpacifi1> nice
660: [12:35:01] <shellbackpacifi1> appreciate that
661: [12:36:07] * Stomach quit (Quit: zzz)
662: [12:37:22] <ss-helper> Re: Add value manually to many_many_extrafields - http://www.silverstripe.org/community/forums/general-questions/show/31551#post401291
663: [12:40:58] * phillprice quit (Ping timeout: 246 seconds)
664: [12:42:16] * FMateo quit (Ping timeout: 240 seconds)
665: [12:58:40] * Shrike_Finland has joined #silverstripe
666: [13:04:29] * wmk jumps around in the office
667: [13:13:11] * Guits has joined #silverstripe
668: [13:13:49] <cupcake> is there a function which converts a dataobject to an sql query
669: [13:13:59] <cupcake> or u need to create a new SQLQuery object?
670: [13:14:51] <Guits> I am trying to extend File (with new class VideoFile) but when i create the File ( has_one ) the ID is null
671: [13:15:48] <wmk> cupcake, MyDataObject::get() ???
672: [13:16:08] <cupcake> but that returns a datalist no?
673: [13:16:16] <wmk> yup.
674: [13:16:25] <wmk> which is like a sql query that isn't executed yet
675: [13:16:38] <cupcake> a then ->sql()
676: [13:17:02] <wmk> good for debugging...
677: [13:17:16] <wmk> cupcake, what do you need it for?
678: [13:17:36] <lerni> wmk ary you still http://i724.photobucket.com/albums/ww250/jh2up/002s4qxt.gif
679: [13:18:12] <cupcake> i have a query
680: [13:18:22] <cupcake> i need to use UnlimitedRowCount
681: [13:18:30] <cupcake> since it is using an offset of 18
682: [13:18:37] <wmk> lerni, hmm, no, had a coffee in the meantime
683: [13:19:45] <lerni> well would be a bit harder to type - but coffee yeh
684: [13:19:54] <wmk> cupcake, ok. with ->sql() you get a http://api.silverstripe.org/3.1/class-SQLQuery.html which you could easily modify
685: [13:20:20] <wmk> lerni, well, you have to coordinate well when you want to jump and type simultanously
686: [13:20:38] <wmk> the so called van-halen code style
687: [13:22:50] <lerni> lerni jups with coffee
688: [13:24:25] <cupcake> what is the ss3 version of buildSQL on a singleton?
689: [13:25:14] * Shrike_Finland quit (Quit: Leaving.)
690: [13:25:31] <Mike123> hey guys, i'm stuck a little bit :(
691: [13:25:34] <Mike123> need your help
692: [13:26:00] <wmk> cupcake, i'd say: use ORM is the ss3 version ;)
693: [13:26:07] <wmk> !ask Mike123
694: [13:27:18] <Mike123> i have a news page , this page should have filters, i can't figure it out how to make show only prefered group by clicking links in News page
695: [13:30:12] <Mike123> for example i have a lot of news, every of them has some type, like Other news, Hot news .... i need to make button in the page to switch between these groups
696: [13:31:42] <wmk> Mike123, seems your News Controller needs some actions to filter that out
697: [13:31:54] <wmk> or other getters for "otherNews"
698: [13:33:53] <Mike123> yes ! actually i know that i need to write a function in the controller that will return me only those groups i need, but i cant firuge it out how to show them on the same page
699: [13:34:24] * catcher has joined #silverstripe
700: [13:34:37] <wmk> well, if you getter is called public function getOtherNews() in your template just write <% loop $OtherNews %>
701: [13:34:45] <wmk> the getter should return a List, e.g. DataList.
702: [13:35:29] <wmk> otherNews return News::get()->exclude(array('ID', $this->ID)->sort('Created', 'DESC')->limit(0.10)
703: [13:35:40] <wmk> returns the 10 latestnews
704: [13:35:53] <Mike123> wow thx
705: [13:39:20] <Mike123> whoou that work just exellent
706: [13:39:28] <Mike123> but here is another one :D
707: [13:39:49] <Mike123> NewsItem::get()->where("\"NewsGroup\" = '$id' ");
708: [13:40:15] <Mike123> i need to get this $id from url i think
709: [13:40:41] <Mike123> because i will click the link or button to change between groups
710: [13:42:55] <Mike123> the hardest part
711: [13:43:02] <Mike123> cant get it right :(
712: [13:43:53] <wmk> Mike123, i wonder if tutorial or Lessions have covered that
713: [13:44:14] <wmk> you need an action for filtering and getting the param out of the request object
714: [13:45:59] <Mike123> :/ just dont understand it
715: [13:47:30] * Robke quit (Quit: Leaving)
716: [13:48:04] <wmk> Mike123, http://www.silverstripe.org/learn/lessons
717: [13:49:22] <wmk> Mike123, especial http://www.silverstripe.org/learn/lessons/controller-actions-dataobjects-as-pages which should cover what you need.
718: [13:49:31] <wmk> have to run, cu l8r
719: [13:50:55] <Mike123> already covered that, there is nothing told about link there
720: [13:51:41] <wmk> well, you need a link to that action....
721: [13:54:44] * FMateo has joined #silverstripe
722: [13:55:00] <Mike123> how do i show content of that action i get in the current page ?
723: [13:57:11] * FMateo quit (Client Quit)
724: [13:58:57] * catcher quit (Quit: Leaving)
725: [14:12:13] * Eliseth quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
726: [14:19:10] * Eliseth has joined #silverstripe
727: [14:19:20] * r_hector quit (Quit: Leaving.)
728: [14:24:11] <Mike123> wmk : when i call a link to my action/ID i get page not found
729: [14:36:15] * [Fate] quit (Quit: Quit)
730: [14:36:36] * [Fate] has joined #silverstripe
731: [14:52:49] * elgabbu has joined #silverstripe
732: [14:52:55] <elgabbu> hi
733: [14:53:19] <elgabbu> I am trying to update the static property URLSegmentFilter::default_replacements using a YML file
734: [14:54:23] <elgabbu> http://sspaste.com/paste/show/552fcd145d189
735: [14:54:48] <elgabbu> however it doesn't seem to have picked up the change ... i have run ?flush=1
736: [14:54:58] <elgabbu> run dev/build
737: [14:55:08] <elgabbu> and deleted all silverstrip cache but still
738: [15:00:09] <lerni> elgabbu: have not used this but had a similar issue and it turned out I had the "key" like URLSegmentFilter: two times in my yml :(
739: [15:02:31] <elgabbu> yeah i searched all the YML files didn't find the key again
740: [15:07:41] <ss-helper> 3.1.10 ArrayList / foreach key => value / same value - http://www.silverstripe.org/community/forums/general-questions/show/101634
741: [15:08:47] * MischaK quit (Ping timeout: 256 seconds)
742: [15:08:51] * joelpittet has joined #silverstripe
743: [15:13:34] * cupcake quit (Ping timeout: 246 seconds)
744: [15:16:43] * Mike123 quit (Ping timeout: 246 seconds)
745: [15:25:26] * Eliseth quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
746: [15:38:46] * UndefinedOffset quit (Quit: Leaving.)
747: [15:41:32] * MischaK has joined #silverstripe
748: [15:41:45] * wmk quit (Ping timeout: 246 seconds)
749: [15:43:11] * UndefinedOffset has joined #silverstripe
750: [15:43:13] * arnhoe quit ()
751: [15:44:32] * swaiba quit (Remote host closed the connection)
752: [15:50:25] * cloph is now known as cloph_away
753: [16:00:41] * shellbackpacifi1 quit (Quit: Leaving.)
754: [16:05:42] * lerni quit ()
755: [16:30:39] * kinglozzer quit ()
756: [16:34:32] * cloph_away is now known as cloph
757: [16:47:24] * MischaK quit (Ping timeout: 272 seconds)
758: [17:05:41] * MrGuits quit (Ping timeout: 264 seconds)
759: [17:05:47] * Guits quit (Ping timeout: 244 seconds)
760: [17:37:09] * gelignite has joined #silverstripe
761: [17:40:31] * joelpittet quit ()
762: [17:44:49] * GioVdK quit (Ping timeout: 255 seconds)
763: [18:22:30] * Liquide has joined #silverstripe
764: [18:22:58] * Shrike_Finland has joined #silverstripe
765: [18:33:47] * alexwijn has joined #silverstripe
766: [18:34:37] <alexwijn> Hi, I'm using the ModelAdmin. But when I edit something on the admin panel I get the following Breadcrumbs "Attribute Base / #1"
767: [18:34:51] <alexwijn> How I can define the column to use as title for that?
768: [18:35:10] <alexwijn> So it will show like "Attribute Base / Something"
769: [18:42:58] <ss-helper> Silverstripe shopping cart - http://stackoverflow.com/questions/29683348/silverstripe-shopping-cart
770: [18:44:17] * mobiusnz quit (Quit: Leaving.)
771: [18:45:43] * emitor has joined #silverstripe
772: [18:49:28] <emitor> Good evening to all :) or other part of this nice day... I have my template in Layout folder, but I need to show that page without header, menu, footer... I need to use it like iframe... I need display only $Layout, not to include Header, Footer, just my $Layout
773: [18:53:09] <ss-helper> The IAAF knew that Gothenburg - http://www.silverstripe.org/community/forums/installing-silverstripe/show/101635
774: [19:01:09] <emitor> I got it... just to move *.ss file from Layout folder directly to templates
775: [19:01:25] * wmk has joined #silverstripe
776: [19:11:34] * emitor quit (Ping timeout: 246 seconds)
777: [19:16:14] * Shrike_Finland1 has joined #silverstripe
778: [19:16:15] * Shrike_Finland quit (Read error: Connection reset by peer)
779: [19:16:47] <ss-helper> SilverStripe Payment Module: 0.4.2 and 0.3.2 security release - https://groups.google.com/d/msg/silverstripe-announce/qFOFfvWBNe8/GBYNgOacmwgJ
780: [19:19:29] * Shrike_Finland1 quit (Client Quit)
781: [19:27:45] * UndefinedOffset quit (Quit: Leaving.)
782: [19:31:48] <ss-helper> SilverStripe 3.0.6 Security Release - https://groups.google.com/d/msg/silverstripe-announce/m4vmXYmV0CE/EfSzp3t6mvsJ
783: [19:41:15] * alexwijn quit ()
784: [19:57:27] * UndefinedOffset has joined #silverstripe
785: [20:10:04] * Werner_2_ has joined #silverstripe
786: [20:10:04] * wmk quit (Read error: Connection reset by peer)
787: [20:15:26] * oddnoc has joined #silverstripe
788: [20:18:25] * UndefinedOffset quit (Quit: Leaving.)
789: [20:18:40] * UndefinedOffset has joined #silverstripe
790: [20:23:13] * UndefinedOffset quit (Ping timeout: 255 seconds)
791: [20:23:45] * MischaK has joined #silverstripe
792: [20:26:11] * DimiStripe has joined #silverstripe
793: [20:27:17] * Stomach has joined #silverstripe
794: [20:35:59] * Stomach quit (Quit: zzz)
795: [20:36:09] * jedateach has joined #silverstripe
796: [20:40:01] * mobiusnz has joined #silverstripe
797: [20:43:25] * mobiusnz1 has joined #silverstripe
798: [20:43:25] * mobiusnz quit (Read error: Connection reset by peer)
799: [20:47:17] * Vanny has joined #silverstripe
800: [20:48:05] <Vanny> Hi All
801: [20:49:15] <Vanny> Im trying to upload an image from a form and getting this error message. failed to open stream: Invalid argument
802: [20:51:24] * mobiusnz1 is now known as mobiusnz
803: [20:55:45] * antmas has joined #silverstripe
804: [20:55:52] <antmas> morning all o/
805: [20:56:20] <antmas> anyone know which class I need to edit to filter out folders and files form search?
806: [20:56:23] <antmas> from*
807: [21:12:36] <oddnoc> antmas: I believe you do that when you call Fulltextsearch::enable()
808: [21:13:29] * Liquide quit ()
809: [21:14:09] * Ryan-Toast has joined #silverstripe
810: [21:14:13] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
811: [21:18:34] * willr has joined #silverstripe
812: [21:18:38] * willr quit (Changing host)
813: [21:18:38] * willr has joined #silverstripe
814: [21:18:53] * [Fate] quit (Ping timeout: 264 seconds)
815: [21:19:13] <Ryan-Toast> antmas: o/ for yesterday
816: [21:21:22] * Hailwood has joined #silverstripe
817: [21:35:40] * Werner_2_ quit (Ping timeout: 255 seconds)
818: [21:40:04] * Nightjar has joined #silverstripe
819: [21:42:50] * oddnoc quit (Quit: oddnoc)
820: [21:43:42] * Colin[pi] has joined #silverstripe
821: [21:46:29] <Colin[pi]> morning all o/
822: [21:47:21] * Ryan-Toast quit (Quit: Ryan-Toast)
823: [21:47:42] * oddnoc has joined #silverstripe
824: [21:49:12] <Vanny> Hey ColDog
825: [21:49:18] <Colin[pi]> hey Vanny o/
826: [21:49:42] <Vanny> things are starting to make sense :)
827: [21:49:53] <Colin[pi]> aww yiss
828: [21:50:01] <Colin[pi]> everything is coming up Milhouse
829: [21:50:25] <Vanny> Everything is coming up vanny
830: [21:50:30] <Colin[pi]> that also
831: [21:50:49] <Vanny> now just working on image upload through a form
832: [21:54:14] * Ryan-Toast has joined #silverstripe
833: [21:55:53] <Ryan-Toast> anbtmas: been playing gtav?
834: [22:01:11] <Ryan-Toast> antmas: ^
835: [22:01:20] <Nightjar> no
836: [22:01:29] * glenn-bautista has joined #silverstripe
837: [22:01:32] <Colin[pi]> you been playing Ryan-Toast?
838: [22:01:36] <Ryan-Toast> Colin[pi]: Yarp
839: [22:01:41] <Ryan-Toast> First person mode is great
840: [22:01:59] <Colin[pi]> Ryan-Toast: arg I'm trying so hard to resist getting it :P
841: [22:02:20] <Ryan-Toast> Colin[pi]: I broeke down.
842: [22:02:26] * Nightjar quit (Remote host closed the connection)
843: [22:02:46] <Colin[pi]> Ryan-Toast: I have too much other stuff going on, if I get it, I'll lose my whole weekend :(
844: [22:03:01] <Ryan-Toast> Colin[pi]: SINGLE MALE WITH NO DEPENDENCIES YEAAAHHH
845: [22:03:49] * [Fate] has joined #silverstripe
846: [22:04:16] <Colin[pi]> Ryan-Toast: I love being in a committed and loving relationship
847: [22:04:19] * Colin[pi] wipes tear
848: [22:04:26] * Colin[pi] sniffles a little
849: [22:04:39] * willr quit (Quit: willr)
850: [22:04:53] <antmas> Ryan-Toast: soz, meeting
851: [22:05:03] <antmas> Ryan-Toast: yeah played a little bit with Kingy last night
852: [22:05:15] <Ryan-Toast> Colin[pi]: Had a girl around last night, and she just lay there and watched me play, haha.
853: [22:05:17] <antmas> oddnoc: cheers, will take a look
854: [22:05:26] <Ryan-Toast> antmas: My internet is too bad to play online.
855: [22:05:47] <antmas> Had a girl around last night, and she just lay there and watched me play, haha.
856: [22:05:54] <antmas> I can't find a joke
857: [22:05:58] * antmas needs more coffee
858: [22:05:59] <Colin[pi]> lol
859: [22:06:43] <antmas> Ryan-Toast: my net is pretty terribad but the online servers are pretty messed up still anyway
860: [22:06:56] <antmas> I just want to try the video editor :O
861: [22:06:56] <Ryan-Toast> antmas: yeah, can imagine that there would be a bit of a bottleneck.
862: [22:07:49] * jcwacky quit (Ping timeout: 248 seconds)
863: [22:09:45] * jcwacky has joined #silverstripe
864: [22:10:52] <antmas> ss23: yo
865: [22:18:40] <antmas> oddnoc: remind me where Fulltextsearch::enable() is called from again? :O
866: [22:19:03] <oddnoc> Usually your mysite/_config.php
867: [22:20:04] <antmas> hmmmm don't see it there
868: [22:20:57] <antmas> we use solr too btw
869: [22:22:19] <oddnoc> Ah, it looks like nothing calls it by default.
870: [22:23:04] <oddnoc> FulltextSearchable::enable() is its correct name. But presumably you’re using a solr module
871: [22:23:48] * mahfuz has joined #silverstripe
872: [22:26:05] <Vanny> any idea why this wouldnt work return Director::redirect(
873: [22:28:48] <antmas> oddnoc: ok, I'll keep lookin :)
874: [22:32:21] <antmas> oddnoc: but yes, solr
875: [22:36:17] <Colin[pi]> you know what'd be great? if composer could... could just run a LITTLE slower, that'd be so sweet
876: [22:36:22] <Colin[pi]> ^_^
877: [22:36:44] <Ryan-Toast> Anyone have an example of an UploadField on a front-end form?
878: [22:37:40] <Colin[pi]> Ryan-Toast: is it supposed to run in front end? :o
879: [22:37:43] <Vanny> Hey Ryan-Toast, I am working on that right now as well
880: [22:37:46] <Colin[pi]> or just cms?
881: [22:38:04] <Ryan-Toast> Colin[pi]: i.e contact form with an “attachemnts” field
882: [22:38:26] <Vanny> Are you copying my project :P
883: [22:38:35] <Ryan-Toast> Vanny: l;ol, nah man :P
884: [22:38:46] <Vanny> im doing profile pictures
885: [22:39:06] <Ryan-Toast> Vanny: That shouldn’t be too hard if you’re using a MemberExtension
886: [22:39:12] <adrexia> Colin[pi], the whole thing doesn't as far as I'm aware, but you can use the php relation type fine
887: [22:39:24] <antmas> Ryan-Toast: I have a attachment field in a form
888: [22:39:27] <antmas> an*
889: [22:39:33] <adrexia> just make sure you double check your security set up
890: [22:39:36] <Ryan-Toast> antmas: Does it email the attachemnt?
891: [22:39:41] <Colin[pi]> adrexia: oh really?
892: [22:39:44] <Colin[pi]> hmm
893: [22:39:48] <antmas> Ryan-Toast: yarp
894: [22:39:49] <Vanny> im close, just getting a couple weird errors
895: [22:39:57] <adrexia> well, you need to be able to do that sometimes ;)
896: [22:40:03] <Ryan-Toast> Vanny: Can’t you just save it to your memeber?
897: [22:40:26] <adrexia> I've always just dumped in the blueimp jquery library on the frontend, rather than make silverstripe's BE version of it work
898: [22:40:43] <adrexia> haven't done that stuff in a while thoguh
899: [22:41:03] <adrexia> and only worth it for frontend file sharing
900: [22:41:22] <adrexia> might as well just use a regulart file upload field if its just to attach somethign to a form
901: [22:41:27] <antmas> Ryan-Toast: I'm doing this right before $email->send(); http://www.sspaste.com/paste/show/55303a7f3ad57
902: [22:41:40] <Vanny> I am, just getting a stream error
903: [22:41:54] <Ryan-Toast> antmas: and that works?
904: [22:42:33] <antmas> Ryan-Toast: yup
905: [22:42:39] <Ryan-Toast> antmas: Sweet, cheers.
906: [22:42:42] <adrexia> http://doc.silverstripe.org/en/developer_guides/forms/field_types/uploadfield#using-the-uploadfield-in-a-frontend-form
907: [22:42:50] <antmas> Ryan-Toast: don't ask me how that works exactly because I was half drunk when doing that from home ages ago
908: [22:42:56] <Colin[pi]> ooh, thanks adrexia
909: [22:43:09] <Ryan-Toast> adrexia: churbo
910: [22:43:38] <Colin[pi]> Vanny: ^ see this link if you haven't already
911: [22:49:04] <antmas> Ryan-Toast: le working?
912: [22:49:18] <Ryan-Toast> antmas: haven’t tested it yet
913: [23:12:01] * cloph is now known as cloph_away
914: [23:18:33] <adrexia> I had resigned to spend most of today dealing with merging for Mahara stuff. But I didn't expect there to be *new* js in php files. This makes me so damn sad. :( https://github.com/MaharaProject/mahara/blame/15.04_STABLE/htdocs/webservice/admin/index.php
915: [23:18:57] <adrexia> I've been trying to pull js _out_ of php files
916: [23:20:49] <Ryan-Toast> adrexia: what’s mahara?
917: [23:20:57] <adrexia> it's a ...thing
918: [23:20:59] <adrexia> :P
919: [23:21:05] <Ryan-Toast> What does it do? :P
920: [23:21:15] <adrexia> open source portfolio information sharing tool
921: [23:21:31] <adrexia> used by schools, universities etc
922: [23:21:40] <adrexia> https://mahara.org/
923: [23:22:31] <Ryan-Toast> adrexia: looks beautiful.
924: [23:22:41] <adrexia> It looks a lot better now :P
925: [23:22:52] <adrexia> or rather, it will in... like October
926: [23:24:05] <adrexia> Over time I've worked out that it does pretty much everything.
927: [23:24:13] <Ryan-Toast> adrexia: do you contribut e to this, or is it a work thing?
928: [23:24:17] <adrexia> it was jsut really hard to deal with the old UX
929: [23:24:39] <adrexia> I'm ... making it use bootstrap
930: [23:24:49] <adrexia> (framework wasn't my choice)
931: [23:25:07] <adrexia> but waht that actually means is a whole lot more complicated than it sounds
932: [23:25:22] <adrexia> because... it's not exactly...
933: [23:25:24] <adrexia> umm
934: [23:26:02] <adrexia> well.. its grown somewhat organically
935: [23:34:54] <Ryan-Toast> adrexia: I barely use any of bootstrap anymore.
936: [23:35:05] <Ryan-Toast> systematically cutting it out fo my projects
937: [23:35:13] <Ryan-Toast> I just like the grid is all.
938: [23:35:15] * adrexia nods
939: [23:35:26] <Ryan-Toast> Going to make a flex grid with bootsatrap as a base.
940: [23:35:28] <Ryan-Toast> I think.
941: [23:35:32] <adrexia> this project certainly needed a framework
942: [23:35:32] <Ryan-Toast> When I can be fucked.
943: [23:35:45] <Ryan-Toast> Big projects like that generally do.
944: [23:35:52] <adrexia> and bootstraop is so so much better than what they had
945: [23:36:06] <adrexia> and it is widely known and used, which is a plus
946: [23:36:37] <adrexia> heh
947: [23:37:14] <adrexia> there have been sections we started styling thinking 'this does x thing' until we realised that it actually did y but had never looked like it
948: [23:37:40] <adrexia> so what this project has actually become is an attempt to make the UX make sense
949: [23:38:01] <Ryan-Toast> The issue I have with boostrap is how coupled the ui elements are to their parents.
950: [23:38:16] <adrexia> yep - that's one of my issues too
951: [23:38:19] <Ryan-Toast> You have to havbe a massive div nest to have something render properly.
952: [23:38:35] <adrexia> especially bad when you need to make it fit the current sturcture of something
953: [23:38:36] <Ryan-Toast> nature of the beast I suppose.
954: [23:38:53] <adrexia> too many divs is a problem yeah
955: [23:38:56] <Ryan-Toast> All the ui components should be mixins that the classes inherit imo.
956: [23:38:59] * adrexia shurgs
957: [23:39:02] <adrexia> I still like gumby
958: [23:39:16] <adrexia> its quick, flexible, and doesn
959: [23:39:23] <adrexia> 't make me want to shoot myself in the face
960: [23:39:40] <Ryan-Toast> I’LL MAKE MY OWN FRAMEWORK, WITH BLACKJACK ETC
961: [23:39:51] <adrexia> lol
962: [23:39:58] <Ryan-Toast> and bootstrap models.
963: [23:40:03] <Ryan-Toast> because I like those.
964: [23:44:52] <adrexia> I'm way too lazy to make my own framework
965: [23:44:55] <adrexia> :P
966: [23:45:05] <adrexia> well, actually, I just really hate css
967: [23:45:09] <Ryan-Toast> Me too, but the bloat of everything makes me sad.
968: [23:45:10] <adrexia> ;)
969: [23:45:17] <Ryan-Toast> I love CSS :P
970: [23:45:21] <adrexia> yeah, true
971: [23:45:26] <Ryan-Toast> I love it’s broken fuckups everywhere.
972: [23:45:33] <adrexia> I have a love hate relationship with css
973: [23:45:42] <adrexia> it's a means to an end
974: [23:45:52] <Ryan-Toast> Now that I pretty much automate all of the generation it’s fun to write.
975: [23:46:33] <adrexia> but I'm not goign to spend so much time doing the boring bits that need to be done to make a framework when I can just use one asnd build that cool bits I want on top ;)
976: [23:47:05] <Ryan-Toast> Yeah,. it’s handy. I just ahate having to override shit.
977: [23:47:07] <adrexia> though - that's the other way to make a framework - find one that's 80% there and hack it
978: [23:47:18] <adrexia> true
979: [23:47:22] <adrexia> tried pure ?
980: [23:47:28] <Ryan-Toast> My “Framework” would pretty much just be a grid, and basic typography.
981: [23:47:29] <adrexia> it's little
982: [23:47:34] <Ryan-Toast> Yeah I have
983: [23:47:40] <Ryan-Toast> I’m too opinionated I think.
984: [23:47:43] <adrexia> http://purecss.io/
985: [23:47:46] <adrexia> ahh right
986: [23:47:53] <Ryan-Toast> Helps me learn by making bad shit too.
987: [23:47:56] <adrexia> yeah - I like having buttons and tables and typography
988: [23:48:26] <Ryan-Toast> Yeah, I neveer use utility classes in my markup, always use exxtensions or mixins.
989: [23:48:40] <Ryan-Toast> I feel like it defeats the purpose of css if you’re coupling stuff like that.
990: [23:48:42] <adrexia> because so much of the time nobody designs those elements... or they just alter colours a bit
991: [23:49:12] <adrexia> coupling html to the dom you mean?
992: [23:49:16] <adrexia> err html to css
993: [23:49:18] <adrexia> ?
994: [23:49:37] <adrexia> because the alternative is to couple css to itself too much
995: [23:49:44] <adrexia> which means you end up writing more css
996: [23:49:54] <Ryan-Toast> I mean markup like <div class=“pull-right hidden-xs btn btn-lg btn-block”>
997: [23:50:00] <adrexia> which is the opposite of my goal -> avoid writing css
998: [23:50:02] <adrexia> ;)
999: [23:50:06] <Ryan-Toast> haha
1000: [23:50:22] <adrexia> and html is comparatively easy to change
1001: [23:50:48] <Ryan-Toast> I’d much rather have something like <div class=“primary-btn”> and then have .primary-btn extend a %btn-static method.
1002: [23:50:50] <Ryan-Toast> etc
1003: [23:51:01] <adrexia> tightly coupled css is hard to reuse and altering it can have horrible side effects
1004: [23:51:02] <Ryan-Toast> adrexia: depends on how many templates you have
1005: [23:51:28] <Ryan-Toast> if you have heaps of templates changing that kind of biz is a nightmare
1006: [23:51:42] <adrexia> I like primary-btn for cms editableness - but otherwise prefer they other way - it means less repeated css
1007: [23:51:47] <adrexia> more modular design
1008: [23:51:59] <Ryan-Toast> I likle to use hierachy for those differences.
1009: [23:52:07] <Hailwood> Hey guys, so if my DO 'Deal' has_one 'Business' then how can I in my ModelAdmin 'DealAdmin' show a business dropdown in the filter sidebar?
1010: [23:52:25] <adrexia> but... what if you just need it to be bigger in one place primary-btn-lrger is a whole new class
1011: [23:52:56] <Ryan-Toast> adrexia: your pages/sections should have classes. So the hierachy will be used to make it larger
1012: [23:53:14] <adrexia> you should never design pages :P
1013: [23:53:14] <Ryan-Toast> .some-page .section .btn-primary
1014: [23:53:17] <Ryan-Toast> :P
1015: [23:53:31] <adrexia> that's an anti-pattern
1016: [23:53:51] <adrexia> just because something looks different on x-page doesn't mean that will always be the case
1017: [23:54:03] <adrexia> or the onl6y place it will ever look that way
1018: [23:54:12] <Ryan-Toast> didn’t you just say that though?
1019: [23:54:17] <adrexia> designers reuse design like developers reuse classes
1020: [23:54:46] <adrexia> nah - I mean you suddenly have a variation that currently happens on, say, the homepage
1021: [23:55:01] <adrexia> the next iteration could reuse that ame variable on a difefrent page
1022: [23:55:17] <adrexia> so tying it to the homepage would be poor future planning
1023: [23:55:34] <Ryan-Toast> %btn-lg {} then the hierachy extends that method.
1024: [23:55:40] <Ryan-Toast> is what I’m saying
1025: [23:56:01] <adrexia> but you are still saying .home-page btn-secondary
1026: [23:56:11] <adrexia> rather than .btn-secondary.btn-larger
1027: [23:56:29] <adrexia> meaning you couldn't have variations of buttons on the same page
1028: [23:56:31] <Ryan-Toast> I see what you’re saying.
1029: [23:56:36] <Ryan-Toast> I guess it’s a balance of the two
1030: [23:56:45] <Ryan-Toast> Not having a thousand classes on elements.
1031: [23:56:45] * adrexia nods
1032: [23:56:50] <adrexia> I style by components
1033: [23:56:54] <adrexia> but not by pages
1034: [23:56:56] <Ryan-Toast> i.e jquery-ui
1035: [23:57:13] <Ryan-Toast> I don’t style by pages either, just an example of hierachy.
1036: [23:57:32] <spronk2> hmm
1037: [23:57:32] <spronk2> has anyone here just outright blocked chinese IPs from their server(s)?
1038: [23:57:35] <adrexia> so - if you have a featured list that is styled in one palce, you could recreate the same list somewhere else and it would look the same
1039: [23:57:52] <adrexia> lol - good!
1040: [23:57:53] <adrexia> ;)
1041: [23:57:56] <Ryan-Toast> adrexia: yeah, I decouple all of my ui components
1042: [23:58:43] <Ryan-Toast> They should be re-usable regardless of where they’re positioned in the markup.
1043: [23:58:50] <Colin[pi]> +1
1044: [23:59:10] <adrexia> agree - though I think there are obvious caveats to taht
1045: [23:59:11] <Ryan-Toast> basically just DRY css
1046: [23:59:28] <Ryan-Toast> there are cavats to every way of creating css :P

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