#silverstripe IRC Log

IRC log for 25 January 2013

All timestamps are in UTC.

1: [00:17:00] * gelignite quit (Quit: http://bit.ly/nkczDT)
2: [00:17:00] * Motoservo quit (Ping timeout: 248 seconds)
3: [00:18:00] * aznain has joined #silverstripe
4: [00:22:00] <aznain> Can anybody define difference between <% with %> and <% loop %> ?
5: [00:22:00] * gelignite has joined #silverstripe
6: [00:23:00] <simon_w> loop loops over the object
7: [00:23:00] * gelignite quit (Read error: Connection reset by peer)
8: [00:23:00] <simon_w> with goes into that object's scope
9: [00:26:00] <Pyromanik> loop is for lists
10: [00:27:00] <Pyromanik> although if an object isn't a list, then loop will do the same thing as with
11: [00:27:00] <Pyromanik> with is for shifting scope without looping.
12: [00:27:00] <aznain> what is definition of scope here
13: [00:27:00] <Pyromanik> aznain: same thing it always is
14: [00:28:00] <simon_w> aznain, the object that's currently in scope is the object you call things on
15: [00:28:00] <Pyromanik> you're on a page object. use with to shift. eg onto a has_one or SiteConfig
16: [00:29:00] <Pyromanik> eg $Title will return page title. With SiteConfig, $Title returns SiteConfig.Title
17: [00:30:00] <aznain> http://www.sspaste.com/paste/show/5101d1ece0d9e
18: [00:30:00] <aznain> ok
19: [00:30:00] <aznain> how can i access footer address directly without looping ?
20: [00:31:00] * catcher quit (Quit: Leaving)
21: [00:33:00] <aznain> is there way to get $footer.Address or section->title->url
22: [00:36:00] <aznain> I want to get data for different part of the page ...
23: [00:44:00] <aznain> anybody ?
24: [00:54:00] * ray__ has joined #silverstripe
25: [01:03:00] <Pyromanik> with footer
26: [01:03:00] <Pyromanik> wait what
27: [01:03:00] <Pyromanik> is this defined on a page aznain?
28: [01:04:00] * normann quit (Quit: normann)
29: [01:05:00] <Pyromanik> wow, I have no idea what that code is up to, and why you don't just return Footer::get()->First()
30: [01:07:00] <Pyromanik> aznain: it looks like you're confusing array data and array list
31: [01:07:00] <Pyromanik> I'm not exactly sure what you're up to, but you probably just want to return an arraydata, which has an arraydata with the fields, and an array list with the links.
32: [01:08:00] <Pyromanik> so you can arraydata.arraydata.address
33: [01:08:00] <Pyromanik> or loop arraydata.arralist
34: [01:09:00] <Pyromanik> as a loose analogy
35: [01:09:00] <Pyromanik> arraydata = {}; arraylist = [];
36: [01:09:00] <Pyromanik> it might be easier for you to visualise as javascript
37: [01:10:00] <Pyromanik> as it stands your code to just get an address will have to be something like $getFooter.first.footer.address
38: [01:11:00] <aznain> there are two data objects
39: [01:11:00] <aznain> one is parent and other is children
40: [01:12:00] <Pyromanik> just dig deeper in the template.
41: [01:12:00] <aznain> I want to combine in one result ...
42: [01:12:00] <Pyromanik> why?
43: [01:13:00] <aznain> yea
44: [01:13:00] <Pyromanik> <% with Footer %>$Address <% loop Links %>$Link<% end_loop %><% end_with %>
45: [01:13:00] <aznain> ok
46: [01:13:00] <Pyromanik> assuming that that is the structure
47: [01:13:00] <Pyromanik> and Footer is a has_one association with the page
48: [01:13:00] <Pyromanik> ie page has one footer has many footerlinks
49: [01:14:00] <Pyromanik> keeping code clean!
50: [01:14:00] <Pyromanik> that's what templates are for man!
51: [01:14:00] <aznain> page has one footer which has many sections which has many links
52: [01:14:00] <Pyromanik> mm
53: [01:15:00] <aznain> My intention was that i should return the result and without looping, i should be able to $footer.name or $section.url
54: [01:15:00] <Pyromanik> <% with Footer %>$Address <% loop Sections %>$Title <% loop Links %>$Link <% end... etc
55: [01:15:00] <Pyromanik> show me object code
56: [01:16:00] <Pyromanik> mmm, so?
57: [01:16:00] <aznain> becuase section position can be change
58: [01:16:00] <aznain> let me sspaste
59: [01:16:00] <Pyromanik> ok
60: [01:17:00] <aznain> then i have to make check if section is facebook ... if section is twitter
61: [01:18:00] <Pyromanik> I don't see why
62: [01:18:00] <Pyromanik> paste up some code and i'll see if I can figure it out
63: [01:19:00] <aznain> http://www.sspaste.com/paste/show/5101dd8ca809a
64: [01:19:00] <aznain> there are two classes
65: [01:19:00] <aznain> footer and footerlink
66: [01:22:00] <Pyromanik> oh you're Australian?
67: [01:23:00] <Pyromanik> for some reason I thought you were German.
68: [01:23:00] <aznain> lol
69: [01:23:00] <Pyromanik> ok so a Page has one Footer?
70: [01:23:00] <aznain> yea
71: [01:24:00] <Pyromanik> and that's contact details
72: [01:24:00] <aznain> there 3 sections
73: [01:24:00] <aznain> under each section there are different links
74: [01:24:00] <Pyromanik> right
75: [01:25:00] <Pyromanik> and you define section as Facebook Twitter or Whatever?
76: [01:25:00] <aznain> so i thought , in order to make think simple , i will return data in same level
77: [01:26:00] <Pyromanik> <% loop Links.GroupedBy(Section) %>
78: [01:26:00] <aznain> under social media there are facebook, twitter, youtube
79: [01:26:00] <aznain> yea
80: [01:26:00] <Pyromanik> but section is defined on link
81: [01:26:00] <aznain> section is social media
82: [01:26:00] <Pyromanik> ok
83: [01:26:00] <Pyromanik> so section has many links
84: [01:27:00] <Pyromanik> other than alphabetical
85: [01:27:00] <aznain> i thought if i return result like footer, section, section, section
86: [01:27:00] <Pyromanik> but you can't control the order
87: [01:28:00] <aznain> hmmm
88: [01:28:00] <Pyromanik> you still dont' really have any control over the order of sections
89: [01:28:00] <aznain> then i can directly access the data like $footer.Name ... Section.URL etc
90: [01:28:00] <Pyromanik> yeah, but there's not much point
91: [01:29:00] <Pyromanik> yeah
92: [01:29:00] <Pyromanik> but
93: [01:29:00] <aznain> ok let me try
94: [01:29:00] <aznain> one more thing ... http://www.silverstripe.org/upgrading-silverstripe/show/19980
95: [01:29:00] <Pyromanik> hmm
96: [01:29:00] <Pyromanik> I suppose you could do something like that
97: [01:30:00] <aznain> i did get this code
98: [01:30:00] <aznain> $al = new ArrayList(array_map(function($i) { return new ArrayData($i); }, $a);
99: [01:30:00] <aznain> did not understand*
100: [01:31:00] <aznain> ok thanks
101: [01:31:00] <Pyromanik> http://nz1.php.net/array_map
102: [01:31:00] <aznain> let me read ur comments above again to understand
103: [01:33:00] <Pyromanik> if you use your code to make all the sections at the same level, that's cool, but you'll need to know their names to be able to access in the template. If they're user settable, that's not really possible.
104: [01:34:00] <aznain> that's correct .. thats why they are define are optionfield
105: [01:34:00] <aznain> as*
106: [01:36:00] * nickmolhoek quit (Remote host closed the connection)
107: [01:36:00] * nickmolhoek has joined #silverstripe
108: [01:36:00] * nickmolhoek has joined #silverstripe
109: [01:38:00] * jona has joined #silverstripe
110: [01:39:00] <jona> hi, anyone could help to override the TreeMultiselectField css?
111: [01:40:00] <jona> i duplicated the TreeMultiselectField class and added to the module, even if i comment out the css and js, nothing changed
112: [01:40:00] <jona> btw i changed the name of the new TreeMultiselectField file...
113: [01:43:00] <jona> hey?
114: [01:43:00] <jona> anyone please?
115: [01:46:00] <kmayo> @jona has the cache been flushed?
116: [01:46:00] <jona> yes i did
117: [01:47:00] <jona> i think it still apply the TreeDropdownField rule
118: [01:47:00] <jona> not sure how to override the css and js
119: [01:48:00] <kmayo> what version of SS are you running on is it using sass stylesheets?
120: [01:48:00] <jona> its 3.0.0 or 3.0.1..
121: [01:50:00] <jona> i just perfer to get rid of the yellow background when add siteTree to the TreeMultiselectField
122: [01:55:00] <kmayo> Are you using anything like FireBug can you see what page resources have been loaded?
123: [01:55:00] * liam quit (Quit: liam)
124: [01:56:00] <jona> yes~~~
125: [01:56:00] <jona> let me check..
126: [01:57:00] <jona> framework/admin/css/screen.css
127: [01:58:00] <jona> this file is not in the TreeDropdownField file, how to override this one please?
128: [02:00:00] * howardgrigg has joined #silverstripe
129: [02:00:00] <kmayo> To include your own css file you would use something like Requirements::css(FRAMEWORK_DIR . '/css/TreeDropdownField.css');
130: [02:01:00] <kmayo> so to override it I would include my own css file with the relevant css file flagged as !important
131: [02:01:00] <kmayo> framework/admin/css/screen.css is one of the main admin css files
132: [02:02:00] <jona> so Kmayo, i should add one css file in the module, link the new php file to the new css file and override the colour?
133: [02:02:00] <jona> TreeDropdownField.css does not including the yellow colour
134: [02:02:00] <kmayo> FireBug should give you an indication of what file includes the relevant css
135: [02:03:00] <jona> framework/admin/css/screen.css thats the relevant css
136: [02:04:00] <kmayo> so ion your extended file you would call the parent features but add the css file that way
137: [02:04:00] <kmayo> the ideal way would be to extend from the module and include the css file that way
138: [02:05:00] <jona> could you please more speficy about "extend from the module"
139: [02:06:00] <jona> sorry
140: [02:06:00] <kmayo> you would extend from the class TreeMultiselectField with a Field function which calls the parent and adds the css
141: [02:06:00] <jona> yes i used extends TreeDropdownField
142: [02:07:00] <jona> great, I will do it now
143: [02:07:00] <jona> thanks
144: [02:21:00] * DesignerX has joined #silverstripe
145: [02:29:00] <DesignerX> Hi, I need help with widgets, I have alot of questions so anyone has worked / working with widgets now let me know :
146: [02:30:00] * oddnoc quit (Quit: bye!)
147: [02:30:00] <simon_w> DesignerX, no.
148: [02:30:00] <DesignerX> 1 - Can Mypage has_many WidgetArea ? Ies yes, what type of CMS Fields will be used to edit them ? GridField or is there something else for has_many WidgetArea ?
149: [02:31:00] <DesignerX> 2- can a single widhet be linked to many_ widgetArea ?
150: [02:31:00] <DesignerX> single widget *
151: [02:31:00] <DesignerX> kk ,
152: [02:32:00] <DesignerX> one instance
153: [02:32:00] <simon_w> No
154: [02:32:00] <simon_w> As in one widget instance? or just the same type of widget?
155: [02:33:00] <DesignerX> what I understand is , MyPage has_one WIdgetArea , WIdgetArea has_many MyWidget , MyWidget has_one WidgetArea ? is this correct ?
156: [02:33:00] <simon_w> yes
157: [02:34:00] <DesignerX> ok, is there any situation where the above could be wrong ?
158: [02:34:00] <simon_w> If you remove the relationship between MyPage and WidgetArea
159: [02:35:00] <DesignerX> if I do that, how can I manage the WidgetArea(s) ? ModelAdmin doesnt seem to work with them ?
160: [02:36:00] <simon_w> Well, ModelAdmin on WidgetArea just wouldn't make sense. You need something with the WidgetAreaEditor
161: [02:37:00] <simon_w> Page is the usually place for that
162: [02:38:00] <simon_w> Home time!
163: [02:39:00] <DesignerX> was thinking a while back, if we can manage WidgetArea(s) with model admin , then each page link to a WidgetArea .. this was before I even start wotking with WIdgets , moved it to the bottom of my ToDo list for now
164: [02:40:00] <DesignerX> simon_w: :) , going now or have time for few more question before/after you home ?
165: [02:41:00] <DesignerX> for what reson would snyone remove the MyPage has_one WidgetArea relation ? other then removing the page ?
166: [02:43:00] * kmayo quit (Remote host closed the connection)
167: [02:45:00] <DesignerX> simon_w so if $MyPage->exist() then any instance of MyWidget HasOnlyOne ownerPage(MyPage) ? (yes or no anwser then we talk later & ask the guys around here , dont wanna keep you away from home for too long :D)
168: [02:48:00] * Motoservo has joined #silverstripe
169: [02:49:00] <Pyromanik> he
170: [02:49:00] <Pyromanik> is gone.
171: [02:50:00] <Pyromanik> widgets are set pretty hard and fast.
172: [02:50:00] <Pyromanik> They're specifically designed to work with pages.
173: [02:51:00] <DesignerX> no problem with that, but just find it missing some fields in the database, for example, if each WidgetArea hasOnlyOne Page , I need that WidgetArea->PageID to return that pageID
174: [02:51:00] <Pyromanik> there is minor abstraction with widget area, but generally you'd only ever wanna stick it on a page, maybe a siteconfig.
175: [02:51:00] <Pyromanik> CMS elements anyway
176: [02:51:00] <Pyromanik> and use the special edityor field
177: [02:53:00] <DesignerX> its looked like WIdgetAre does NOT have a has_one to Page
178: [03:03:00] * liam has joined #silverstripe
179: [03:05:00] * streetspirit has joined #silverstripe
180: [03:08:00] <streetspirit> Did anybody have a problem with Apache crash after installing SS 3.0.3 on Xampp 1.8.1 ?
181: [03:12:00] <streetspirit> Crash is caused by Faulting module name: php5ts.dll, version: 5.4.7.0
182: [03:19:00] <Pyromanik> xampp is too old to run ss 3.0.3
183: [03:19:00] <Pyromanik> look at requirements
184: [03:20:00] <Pyromanik> oh
185: [03:20:00] <Pyromanik> they finally updated it
186: [03:20:00] * streetspirit quit (Ping timeout: 245 seconds)
187: [03:21:00] <Pyromanik> too... BLEEDING EDGE?
188: [03:21:00] * Pyromanik puts on sunglasses
189: [03:21:00] <DesignerX> I am on xampp 1.7.7 & all working fine
190: [03:21:00] <Pyromanik> now it seems like it's...
191: [03:22:00] <DesignerX> its working fine fore me, download , tick box, restart then I am ready to go
192: [03:22:00] <DesignerX> "Love Portable " set it up once & you set for ever (or untill time to update )
193: [03:26:00] <Colin[pi]> fuck you IE
194: [03:27:00] <Pyromanik> lolwut
195: [03:27:00] <Pyromanik> stop using IE6
196: [03:27:00] <Colin[pi]> they are still using XP
197: [03:27:00] <Pyromanik> so?
198: [03:27:00] <Pyromanik> ie8
199: [03:27:00] <Pyromanik> OH GAWD
200: [03:27:00] <Colin[pi]> govt dept :(
201: [03:27:00] <Colin[pi]> still dealing with png transparency issues after this many years
202: [03:27:00] <Pyromanik> indeed
203: [03:28:00] <Colin[pi]> nope, the png fix (supersleight) was causing other issues as well
204: [03:28:00] <Colin[pi]> sigh
205: [03:29:00] <DesignerX> Colin[pi]: Portable browser = FireFox ?
206: [03:29:00] <Colin[pi]> ?
207: [03:30:00] <DesignerX> its more secure & beter then IE they should use it instead of IE
208: [03:31:00] <Colin[pi]> dude preaching to the choir, I wish they would but they will continue to use whatever their IT dept decides for them for eternity :(
209: [03:36:00] <elgrodo> Colin[pi]: I
210: [03:36:00] <elgrodo> gah
211: [03:37:00] <elgrodo> Colin[pi]: I've worked onsite for govt agencies in NZ, lots of fun...
212: [03:37:00] <Colin[pi]> hehe
213: [03:38:00] <elgrodo> perfectly ok to build a new building next door and have jack hammers running throughout the working day, and then no natural daylight
214: [03:39:00] <Colin[pi]> elgrodo: these guys are still on IE7, the png fix is for IE6 but it's screwing up something in IE7.. I couldn't even replicate it without IETester
215: [03:39:00] * Motoservo quit (Quit: Motoservo)
216: [03:44:00] <Pyromanik> DesignerX: the answer isn't that simple
217: [03:45:00] <Pyromanik> they're generally paranoid about security, so try to avoid putting new software on a network wherever possible, even if that means they'll be more secure.
218: [03:45:00] * simon_w|air has joined #silverstripe
219: [03:45:00] <Pyromanik> especially because of user permissions and shit that sys admins like to have fine grained control over
220: [03:45:00] * subvert has joined #silverstripe
221: [03:45:00] <Pyromanik> esp. with govt. departments.
222: [03:46:00] <Colin[pi]> most depts here are still on XP, some Win 2000
223: [03:46:00] <Pyromanik> even microsoft themselves are hating it.
224: [03:46:00] <Pyromanik> meaning updating it will break their internal systems
225: [03:46:00] <Colin[pi]> yup it is a major pain in the arse for developers :(
226: [03:46:00] <Pyromanik> I'd say that'd probably be true here too
227: [03:46:00] <Pyromanik> yeh
228: [03:46:00] <Pyromanik> and some places have infrastructure built on ie6 as a platform
229: [03:47:00] <Colin[pi]> most users are complete nubs
230: [03:47:00] <Pyromanik> so they just leave it
231: [03:47:00] <Pyromanik> lock everything down super tight
232: [03:47:00] <Pyromanik> no browser except IE, and staying with v6 because otherwise internal stuff breaks.
233: [03:47:00] <Pyromanik> because IE ties in with windows user permissions
234: [03:47:00] <Pyromanik> installing something like firefox opens up a whole can of worms and "how what" with sysadmins
235: [03:47:00] <Colin[pi]> the admins lock everything down tight
236: [03:47:00] <Pyromanik> $$$$$ to upgrade
237: [03:48:00] <aznain> I mean get ArrayList and direct access the value ... like $A.B.C
238: [03:48:00] <Pyromanik> DesignerX: yes.
239: [03:48:00] <Pyromanik> aznain: not really, you're going to need to loop the Links at least
240: [03:48:00] <DesignerX> Pyromanik: do they have to install it ?
241: [03:48:00] <Pyromanik> lol
242: [03:48:00] <aznain> Pyomanik: Can we not avoid <% loop %> ?
243: [03:48:00] <Colin[pi]> colleague of mine went to work at a dept, and he knew ways around some of their restrictions... they were like "dude.. you're a hax0r" and would come to him for all sorts of IT advice (much to the hate of the IT dept) LOL
244: [03:48:00] <Pyromanik> so they're forced to IE
245: [03:48:00] <Pyromanik> and individual users don't have permission to install software
246: [03:49:00] <DesignerX> subvert: DataObject doesnt have a title by default, you need to create that field on YourDataObject
247: [03:49:00] <subvert> (This is for ModelAdmin)
248: [03:49:00] <Pyromanik> subvert: what
249: [03:49:00] <Pyromanik> or at least, get through the firewall
250: [03:49:00] <subvert> Greetings! Using SilverStripe 3.0.1... how does one customize the Title of a DataObject? Have tried function setTitle as per DataObject.php comments but it's not rendering in the CMS! http://sspaste.com/paste/show/5102007d180d2
251: [03:49:00] <DesignerX> Pyromanik: what about portable ? doesnt leave any trace
252: [03:49:00] <aznain> ok
253: [03:49:00] <Pyromanik> DesignerX: I know you like 'portable' software, but it won't have permission to execute
254: [03:50:00] <Pyromanik> or Text instead of Varchar
255: [03:50:00] <Pyromanik> mmm, what DesignerX said
256: [03:50:00] <Pyromanik> to set
257: [03:50:00] <Pyromanik> subvert: it's because you don't have a title
258: [03:50:00] <DesignerX> Pyromanik: what the Guys here tought me few years goo, check the logs for the answer :)
259: [03:50:00] <Pyromanik> Varchar usually does it
260: [03:50:00] <Pyromanik> public static $db = array( 'Title' => 'Varchar', ...
261: [03:51:00] <Pyromanik> subvert: no
262: [03:51:00] <subvert> and Pyromanik - I'm wanting to render the title based on relationship fields
263: [03:51:00] <DesignerX> subvert: if has title
264: [03:51:00] <subvert> DesignerX: http://sspaste.com/paste/show/510201265dcde
265: [03:51:00] <subvert> Yes it dows
266: [03:51:00] <Pyromanik> it doesn't
267: [03:51:00] <Pyromanik> if not, Varchar(255) for 255 chars of storage!
268: [03:52:00] <DesignerX> subvert: if YourDO has a title , ModelAdmin will use that in the breadcrumbs & other things ..
269: [03:52:00] <Pyromanik> well don't reject advice when it's given to you and I might help you. DataObject doesn't have a title, if you want to set a title, define a title on the dataobject.
270: [03:52:00] <Pyromanik> getTitle is a method that returns title, or makes one up on the fly if one doesn't exist.
271: [03:52:00] <DesignerX> subvert: but unless you set it, if will return false & it will have no title :)
272: [03:53:00] <subvert> I understand - but I cant set a DB field of "Title" as the Title is not a static thing. I have done this before in SS 2.4.X but it no longer works in 3
273: [03:53:00] <Pyromanik> but in order to set, it has to exist.
274: [03:53:00] <DesignerX> what he said
275: [03:54:00] <subvert> * <code>
276: [03:54:00] <subvert> * function getTitle() {
277: [03:54:00] <subvert> * return "{$this->StreetNumber} {$this->StreetName} {$this->City}";
278: [03:54:00] <subvert> * }
279: [03:54:00] <subvert> * </code>
280: [03:54:00] <Pyromanik> your PHP is broken
281: [03:54:00] <simon_w|air> setTitle() only makes sense if you're trying to set it, not display it
282: [03:54:00] <subvert> sorry about multiline
283: [03:54:00] <Pyromanik> you're missing a close string
284: [03:54:00] <Pyromanik> simon_w: he has a getTitle, but it should be causing a parse error
285: [03:54:00] <subvert> it's fine I've fixed that
286: [03:54:00] <DesignerX> subvert: post your full code & I may be able to help
287: [03:54:00] <simon_w|air> subvert, so you want your own getTitle() method then?
288: [03:54:00] <subvert> and you should be able to overload it... it says so in DataObject.php?? * Overload this method to have a more specialized implementation,
289: [03:54:00] <subvert> * e.g. for an Address record this could be:
290: [03:55:00] <subvert> I'm just doing as DataObject.php advises..
291: [03:55:00] <Pyromanik> change from getTitle to just Title()
292: [03:55:00] <Pyromanik> see if that works
293: [03:55:00] <DesignerX> as Pyromanik , that has to work
294: [03:55:00] <Pyromanik> what
295: [03:55:00] <subvert> thanks though :)
296: [03:56:00] <Pyromanik> reverse engineering all the things, that's what we like to see DesignerX
297: [03:56:00] <Pyromanik> I don't even.
298: [03:56:00] <DesignerX> i use it in MyWidget to overload the default Titile
299: [03:56:00] <Pyromanik> Cool.
300: [03:56:00] <Pyromanik> reverse engineer the error.log
301: [03:56:00] <Colin[pi]> I have a PhD in reverse engineering
302: [03:56:00] <Pyromanik> rofl
303: [03:57:00] <Colin[pi]> bro do you even code??
304: [03:57:00] <Colin[pi]> hehe
305: [03:57:00] <Pyromanik> this internet stuff is pretty bleeding edge
306: [03:57:00] * liam quit (Quit: liam)
307: [03:57:00] <subvert> Title doesn't work :(
308: [03:57:00] <Pyromanik> I have a bachelors
309: [03:57:00] <Pyromanik> frim 1973
310: [03:58:00] <subvert> yarp
311: [03:58:00] <Pyromanik> in gridfield or what?
312: [03:58:00] * liam has joined #silverstripe
313: [03:58:00] <Pyromanik> bummer, that sucks
314: [03:58:00] <subvert> have tried setTitle too
315: [03:59:00] <subvert> It's a Photo Database, converted one from Access for a photographer with 3000odd photos
316: [03:59:00] <Pyromanik> set $summary_fields
317: [03:59:00] <DesignerX> subvert: do YouObject has a dynamic title ? are the fields that create that "Titile" empty !
318: [03:59:00] <Pyromanik> needs to set summaryfields
319: [03:59:00] <Pyromanik> DesignerX: he doesn't have a Title defined at all.
320: [03:59:00] <Pyromanik> but because of that it won't ever show up
321: [03:59:00] <Pyromanik> set $summary_fields
322: [04:00:00] <Pyromanik> because otherwise it's scaffolded from defined fields
323: [04:00:00] <Pyromanik> iirc
324: [04:00:00] <Pyromanik> public static $summary_fields = array('Title' => 'Title');
325: [04:00:00] <Pyromanik> public function Title() {... {
326: [04:00:00] <Pyromanik> errr }
327: [04:00:00] <DesignerX> subvert: Test this : on YouDO , create a getTitle(){ return 'TestTitle'; }
328: [04:00:00] <Pyromanik> anyway
329: [04:00:00] <Pyromanik> beer
330: [04:00:00] <Pyromanik> and
331: [04:01:00] <Pyromanik> not working
332: [04:01:00] <Pyromanik> bai
333: [04:01:00] <DesignerX> c ya spammer :)
334: [04:01:00] * Pyromanik has left #silverstripe
335: [04:02:00] <subvert> Shot Pyromanik... even though you've left
336: [04:03:00] * nhorstmeier has joined #silverstripe
337: [04:03:00] * nickmolhoek quit (Quit: nickmolhoek)
338: [04:03:00] <DesignerX> i know, it has to be Title() , a function that return the title
339: [04:03:00] <DesignerX> subvert: any luck ?
340: [04:03:00] <subvert> it was a combination of public Title() and set_summary_fields if anyone wants to know...
341: [04:03:00] <DesignerX> kk :)
342: [04:03:00] <subvert> just public Title doesn't work
343: [04:04:00] * jona quit (Quit: Page closed)
344: [04:06:00] <nhorstmeier> hello, is it possible to ensure that an onBeforeWrite() is the last onBeforeWrite executed? mainly due to needing a module run it's onBeforeWrite() prior to mine as I check fields it would write to...
345: [04:08:00] <simon_w|air> before your code
346: [04:08:00] <simon_w|air> just make sure you call parent::onBeforeWrite()
347: [04:09:00] * liam quit (Quit: liam)
348: [04:11:00] <DesignerX> WIdget Question : How can I get WIdgetArea->ParentID . ParentID being the PageID its on ?
349: [04:11:00] * EPIK quit (Ping timeout: 276 seconds)
350: [04:12:00] <simon_w|air> the WidgetArea doesn't care what its parent is
351: [04:12:00] <simon_w|air> Like I've told you lots of times before, you can't
352: [04:14:00] * subvert quit (Quit: subvert)
353: [04:14:00] <DesignerX> before I asked abot Widget , not widgetArea ( I think!) ... but what can I do to make WidgetArea care about PageID ?
354: [04:14:00] * Motoservo has joined #silverstripe
355: [04:15:00] <Colin[pi]> extend it with an object which has a ParentID, linked via onBeforeWrite?
356: [04:15:00] <aznain> How do we associate a page_controller class to show in template ... Is it feasible to make FooterController extends Page_Controller ... and call its function in any template ?
357: [04:15:00] * subvert has joined #silverstripe
358: [04:15:00] <aznain> In other words, How a class method be available in particular template
359: [04:17:00] <DesignerX> Colin[pi]: you mean WidgetArea has_one Page ?
360: [04:18:00] <simon_w|air> DesignerX, in most cases, you can just use Page::get()->filter('WidgetAreaID', $this->ID)->First()
361: [04:18:00] <simon_w|air> though what happens if the WidgetArea's attached to SiteConfig, not a Page?
362: [04:18:00] <aznain> no, i am not using widget ... Just asking that If i make class which has method getAzNain() .... how can it be available to any particular ss file
363: [04:19:00] <aznain> does that class needs to extends something which can make it available ?
364: [04:19:00] <simon_w|air> aznain, no one said you were. Look into implementing TemplateGlobalProvider
365: [04:21:00] * subvert quit (Quit: subvert)
366: [04:25:00] <DesignerX> I think I will do this, Create PageID on WidgetArea then get MyPage to write MyWidgetArea-.PageID = $this->ID . hope this is correct :)
367: [04:29:00] * tractorcow has left #silverstripe
368: [04:29:00] <nhorstmeier> simon_w|air: thanks, should've realized that
369: [04:30:00] * Motoservo quit (Quit: Shhh. I'm trying to get some sleep here.)
370: [04:33:00] <DesignerX> Question : if MyPage has multiple has_one relations to MyObject , is there a quick way of getting all of them . like function getAllHasOneRelationsToClass($ClassName) ?
371: [04:33:00] <simon_w|air> no
372: [04:34:00] * cloph_away1 has joined #silverstripe
373: [04:34:00] <DesignerX> kk\
374: [04:35:00] * cloph_away quit (Ping timeout: 256 seconds)
375: [04:36:00] * ss23 has joined #silverstripe
376: [04:36:00] * ss23 quit (Ping timeout: 260 seconds)
377: [04:39:00] * Colin[pi] quit (Ping timeout: 276 seconds)
378: [04:40:00] <simon_w|air> ss23, still no domain as awesome as s.geek.nz then? :p
379: [04:45:00] <ss23> :<
380: [04:45:00] <ss23> Still no domain that awesome
381: [04:46:00] <ss23> dodgy internets too
382: [05:10:00] <aznain> if arraydata key has space in its name, then can we call it
383: [05:11:00] <aznain> if no space then can be called $key but if key is like [my key] => value
384: [05:12:00] <aznain> can i call it ?
385: [05:18:00] * ss23 quit (Ping timeout: 240 seconds)
386: [05:24:00] * AshKyd_ quit (Quit: leaving)
387: [05:26:00] * ss23 has joined #silverstripe
388: [05:32:00] <DesignerX> is it a good idea to decoreate DataObject to make canCreate, canEdit, canView & can Delete return true ? instead of doing that on each new Object I create ?
389: [05:39:00] <simon_w|air> That won't work
390: [05:40:00] * nhorstmeier quit (Read error: Connection reset by peer)
391: [05:40:00] * nhorstmeier has joined #silverstripe
392: [05:41:00] * Error404NotFound has joined #silverstripe
393: [05:52:00] * Colin[pi] has joined #silverstripe
394: [05:56:00] * nhorstmeier quit (Read error: Connection reset by peer)
395: [05:57:00] * nhorstmeier has joined #silverstripe
396: [05:59:00] * nhorstmeier quit (Remote host closed the connection)
397: [06:00:00] * Shrike_Finland quit (Quit: Leaving.)
398: [06:02:00] <aznain> I am trying to do this but it is not working
399: [06:02:00] <aznain> <% if $Footer.Phone %><h3>Ph: $formatPhone($Footer.Phone)</h3><% end_if %>
400: [06:02:00] <aznain> but when i do on top of the template $formatPhone('12333333')
401: [06:03:00] <aznain> $formatPhone($Footer.Phone) is not calling inside
402: [06:03:00] <aznain> then it is working
403: [06:05:00] * dendeffe has joined #silverstripe
404: [06:07:00] <aznain> simon_w: help please
405: [06:09:00] <aznain> anybody
406: [06:19:00] * RossHamish has joined #silverstripe
407: [06:22:00] <aznain> ??????
408: [06:24:00] * RossHamish quit (Ping timeout: 245 seconds)
409: [06:33:00] <Colin[pi]> aznain: the template engine does not support passing variables into functions
410: [06:34:00] <Colin[pi]> they can be static values, like 'string' or 12345 - but not variables from other objects
411: [06:39:00] <simon_w|air> aznain, weird scope things happen. First, does $Footer.Phone output what you expect by itself? Then try $Top.Footer.Phone
412: [06:39:00] <simon_w|air> Colin[pi], get with the times :p
413: [06:39:00] <aznain> thanks
414: [06:39:00] <Colin[pi]> that can be done in SS3?
415: [06:39:00] <Colin[pi]> what version are you using aznain?
416: [06:39:00] <aznain> 3.0.3
417: [06:40:00] <simon_w|air> Colin[pi], yes
418: [06:40:00] <Colin[pi]> OIC
419: [06:40:00] <Colin[pi]> ok carry on :D
420: [06:40:00] <aznain> number is saved like 0312121212
421: [06:40:00] <simon_w|air> $Phone prints? So why are you trying $Footer.Phone?
422: [06:40:00] <aznain> i want to show like 03 1212 1212
423: [06:40:00] <aznain> i can print $Phone
424: [06:41:00] * ray__ quit (Ping timeout: 256 seconds)
425: [06:41:00] <aznain> formatPhone('0312121212') is working when not inside if condition
426: [06:41:00] <aznain> outside loop
427: [06:41:00] <aznain> i made custom function
428: [06:42:00] <simon_w|air> and if $Phone itself works, why are you trying $Footer.Phone?
429: [06:42:00] <aznain> $Footer.Phone print what i expect
430: [06:42:00] <aznain> but $formatPhone($Footer.Phone) not working
431: [06:42:00] <simon_w|air> So, you're inside a loop?
432: [06:43:00] <aznain> yes
433: [06:43:00] <simon_w|air> Then you probably want $Top.formatPhone($Footer.Phone)
434: [06:45:00] <simon_w|air> though, that may run into weird scoping issues, so it may end up being $Top.formatPhone($Up.Footer.Phone)
435: [06:45:00] <aznain> let me try
436: [06:46:00] <aznain> not workign
437: [06:47:00] <simon_w|air> Both of those?
438: [06:48:00] <aznain> Up called when we're already at the top of the scope
439: [06:49:00] <simon_w|air> So what about the other one?
440: [06:49:00] <aznain> no output
441: [06:49:00] <aznain> no error
442: [06:50:00] <aznain> no result
443: [06:50:00] <aznain> $Top.formatPhone($Footer.Phone)
444: [06:53:00] <aznain> thanks man ! at least You try to help
445: [06:53:00] <aznain> really appreciate it
446: [06:54:00] <simon_w|air> And the method your wrote's on your controller?
447: [06:59:00] <elgrodo> just while I remember to ask, is there an SS3 compatible version of the sphinx module around?
448: [06:59:00] <simon_w|air> no idea
449: [07:00:00] <elgrodo> sounds like a no :)
450: [07:02:00] * Motoservo has joined #silverstripe
451: [07:04:00] * Motoservo quit (Client Quit)
452: [07:05:00] * Motoservo has joined #silverstripe
453: [07:05:00] * Shrike_Finland has joined #silverstripe
454: [07:08:00] * Motoservo has joined #silverstripe
455: [07:08:00] * Motoservo quit (Remote host closed the connection)
456: [07:13:00] <simon_w|air> nope
457: [07:13:00] <Colin[pi]> *fields
458: [07:13:00] <Colin[pi]> simon_w, is there a way I can get a widget to know about the area/page it is being added to when it renders it's field for the CMS?
459: [07:18:00] <Colin[pi]> what about from the form or request?
460: [07:18:00] <Colin[pi]> bummer
461: [07:18:00] * dendeffe quit (Quit: dendeffe)
462: [07:19:00] <DesignerX> Colin[pi]: I am looking at that my self, I need the Widget to know the id of its owner page/object
463: [07:20:00] <Colin[pi]> ah lol
464: [07:20:00] <Colin[pi]> yeah I think you asked about that earlier today, no?
465: [07:20:00] <DesignerX> today & the day before :)
466: [07:21:00] <DesignerX> I will do it through adding parentID on WidgetArea which as the ID of the page/object it belongs to
467: [07:21:00] <DesignerX> I plan to do ParentID & ParentClassName on WidgetArea incase I use it with Objects later ? what u think ?
468: [07:22:00] <Colin[pi]> I have a widget that shows news categories from a news archive on the site
469: [07:22:00] <Colin[pi]> so the widget has an ArchiveID. The widget can be added at the footer (on all pages) or in the sidebar of the news archive
470: [07:22:00] <Colin[pi]> well I'll explain why I need it
471: [07:23:00] <Colin[pi]> in the footer, we need to tell it what archive to pull categories from (if more than one), and in the archive sidebar, I want it to "detect" that it's inside that archive, and default to it's ID
472: [07:23:00] <Colin[pi]> if that makes sense
473: [07:24:00] <DesignerX> in other words, you need it to pull data from the page its on
474: [07:24:00] <DesignerX> no playing around with core files :)
475: [07:24:00] <Colin[pi]> good :)
476: [07:24:00] <DesignerX> extend it
477: [07:24:00] <Colin[pi]> are you going to modify WidgetArea? or extend it?
478: [07:25:00] <Colin[pi]> yeah pretty much, well, from the archive it's part of which sits at the top of the tree
479: [07:25:00] <Colin[pi]> Archive => Category => Article
480: [07:26:00] <Colin[pi]> what I wanted to do was to shop a tree dropdown to choose the archive if it's added outside of the archive, or just hide that field if it's added inside the archive
481: [07:26:00] <Colin[pi]> *shop = show
482: [07:27:00] <Colin[pi]> not convinced it's impossible yet, or maybe I'm just over complicating things :)
483: [07:28:00] <DesignerX> Let me test my code, It has to work :)
484: [07:29:00] <Colin[pi]> all are pages
485: [07:29:00] <DesignerX> Colin[pi]: Archive is a page yeh ?
486: [07:29:00] <Colin[pi]> aye
487: [07:29:00] <Colin[pi]> btw I already extended WidgetArea in my code, I made ResponsiveWidgetArea which is responsible for working out different CSS classes based on the number of widgets (works with the skeleton framework)
488: [07:30:00] <Colin[pi]> but some custom code too
489: [07:30:00] <Colin[pi]> for the gui
490: [07:30:00] <Colin[pi]> via css override
491: [07:30:00] <Colin[pi]> oh man mine is heavily customised now :o
492: [07:30:00] <DesignerX> customizing the CMS :)
493: [07:31:00] <Colin[pi]> hehe good plan
494: [07:31:00] <DesignerX> I am far from that now, le5ts get a widget working then we worry about the CMS style :)
495: [07:39:00] * irogue quit (Ping timeout: 255 seconds)
496: [07:39:00] <DesignerX> Colin[pi]: The way I am working on it is : MyPage/MyObject will write its ID on MyWidget->ParentID
497: [07:50:00] * simon_w quit (Read error: Connection reset by peer)
498: [07:51:00] <Colin[pi]> looks promising
499: [07:51:00] <Colin[pi]> ooh
500: [07:51:00] <Colin[pi]> I just stumbled on something that might help mine
501: [07:51:00] <Colin[pi]> Session::get("CMSMain.currentPage") :)
502: [07:51:00] <Colin[pi]> returns the ID of the currently selected page :o
503: [07:52:00] * simon_w has joined #silverstripe
504: [07:53:00] * irogue has joined #silverstripe
505: [07:53:00] <Shrike_Finland> Hello guys!
506: [07:53:00] <Colin[pi]> y hello thar
507: [07:54:00] <Colin[pi]> is there any other?
508: [07:54:00] <Shrike_Finland> Deep coding session?
509: [07:54:00] <onre> hi. i'm trying to translate a blog module for ss 3.0. it has files according to locale in lang/ directory, like en_US.php etc. how does this work? it looked like as if my modifications never took effect, and i've even put exit; statement in en_US.php and nothing breaks, as if the file was never included
510: [07:55:00] <Colin[pi]> always the file is lang/pt_BR.php
511: [07:55:00] <Colin[pi]> onre: make sure you check the lang code is valid, I do a lot of pt_BR.php langs to test translation and they seem to work
512: [07:55:00] <Colin[pi]> then I have <?php
513: [07:55:00] <Colin[pi]> global $lang;
514: [07:56:00] <Colin[pi]> dammit, now what does it use?
515: [07:56:00] <Colin[pi]> ah ha
516: [07:56:00] <simon_w|air> YAML files
517: [07:56:00] <simon_w|air> onre, 3.0 doesn't use the PHP files for translation
518: [07:57:00] <onre> https://github.com/silverstripe/silverstripe-blog it's this one
519: [07:57:00] <onre> interesting. this module doesn't have any .yml files in it
520: [07:58:00] <onre> or yes, it does have some .yml files under tests/ but those don't seem to have anything to do with translations
521: [07:58:00] <onre> they look more like test fixtures
522: [07:59:00] * UD has joined #silverstripe
523: [07:59:00] <simon_w|air> That's because they are test fixtures
524: [07:59:00] <Colin[pi]> DesignerX: zomg, that just totally worked
525: [08:00:00] <DesignerX> Colin[pi]: great tip !
526: [08:00:00] * ugly_duck quit (Ping timeout: 248 seconds)
527: [08:00:00] <Colin[pi]> i got the parent page using the session ID, if it's a news archive, I hide the dropdown - works, SWEET
528: [08:01:00] <DesignerX> thats was all we wanted, the ID of the current page , who care about the relation :)
529: [08:01:00] <DesignerX> sure
530: [08:01:00] <Colin[pi]> you need to see my code?
531: [08:02:00] <DesignerX> Colin[pi]: thanks
532: [08:02:00] <Colin[pi]> ok one sec, just making it a bit more acceptable and less hackish
533: [08:02:00] <DesignerX> btw, can I still dfo Debug::dump() ?
534: [08:04:00] <onre> simon_w|air, oddly enough there are .php files under lang/ still - do you have any idea how this might be supposed to work?
535: [08:05:00] <onre> or are those just leftovers from back when this was a 2.x module?
536: [08:05:00] * dendeffe has joined #silverstripe
537: [08:06:00] * irogue quit (Ping timeout: 255 seconds)
538: [08:07:00] <ss23> Cheap taxi service that doesn't require paying a driver, no chance of hijacking / stabbing etc
539: [08:07:00] <ss23> What about if they use Google cars as taxis?
540: [08:08:00] * irogue has joined #silverstripe
541: [08:09:00] <Colin[pi]> DesignerX: here we go, see the part "Remove Archive Dropdown" - http://sspaste.com/paste/show/51023d8f6601f
542: [08:09:00] <DesignerX> Colin[pi]: how do you customize the CMS , I just need to load some CSS ! :D
543: [08:10:00] <Colin[pi]> I made a module to customise it, the module uses its _config.php to change stuff
544: [08:10:00] * l8s has joined #silverstripe
545: [08:10:00] * chillu has joined #silverstripe
546: [08:10:00] <Colin[pi]> it calls LeftAndMain::require_css('praxis-cms/css/praxis.css');
547: [08:11:00] <Colin[pi]> which contains all the css I need to customise
548: [08:11:00] <DesignerX> oh, so there is no quick way to place a CSS file somewher in my theme & get it loaded into the CMS ?
549: [08:12:00] <onre> looks like i18n textcollector task runs out of memory, no matter how much i give it
550: [08:12:00] <onre> i'd imagine one gigabyte to be more than enough to just collect strings from the blog module
551: [08:12:00] <Colin[pi]> DesignerX: sure there is, make a .css file somewhere, then in your _config.php call: LeftAndMain::require_css('/path/to/yer/css.css')
552: [08:16:00] <DesignerX> Colin[pi]: another question : how to get the CurrentTheme in php ?
553: [08:17:00] * l8s quit (Quit: Nettalk6 - www.ntalk.de)
554: [08:17:00] * zfmf has joined #silverstripe
555: [08:18:00] <Colin[pi]> from the template?
556: [08:18:00] <Colin[pi]> or within a class
557: [08:18:00] <DesignerX> within class
558: [08:19:00] <simon_w|air> SSViewer::current_theme()
559: [08:19:00] <Colin[pi]> SSViewer::current_theme() ?
560: [08:20:00] <Colin[pi]> beat me :P
561: [08:20:00] <simon_w|air> Won't work in the CMS though
562: [08:21:00] <onre> (some of them)
563: [08:21:00] <Shrike_Finland> Simon: is there a way to get current theme and current project dir on themes?
564: [08:21:00] <onre> allright, so the .php files were just leftovers
565: [08:21:00] <onre> creating new .yml files under lang/ made the blog actually translate strings
566: [08:21:00] <simon_w|air> Shrike_Finland, $ThemeDir and $project?
567: [08:21:00] <onre> some seem to be hard-coded in templates
568: [08:24:00] <Shrike_Finland> Ah, yes, I have already used ThemeDir but project??? that's great news!
569: [08:27:00] <elgrodo> hee hee, delete a page, choose Add New and the default is to add the new page to the deleted one :)
570: [08:30:00] <Shrike_Finland> Simon: can also used inside require? Like <% require javascript($project/javascript/jquery.easing.js) %>
571: [08:31:00] <DesignerX> how can I check if MyMethod exixts on Parent::MyMethod
572: [08:35:00] * g4b0 has joined #silverstripe
573: [08:57:00] * zri has joined #silverstripe
574: [08:59:00] <zri> anyone knows how to flush images in SS3?
575: [08:59:00] <zri> hi guys
576: [08:59:00] <zri> in ss2 it was possible through url variable which doesnt work now
577: [09:00:00] * Motoservo quit (Read error: Connection reset by peer)
578: [09:00:00] * Motoservo has joined #silverstripe
579: [09:01:00] <zri> fixed by just deleting resized images manually :)
580: [09:05:00] <simon_w|air> zri, you just need to use ?flush
581: [09:07:00] * kinglozzer has joined #silverstripe
582: [09:09:00] * instabil has joined #silverstripe
583: [09:11:00] * ARNHOFF has joined #silverstripe
584: [09:12:00] <Marvanni> any idea whey $form->setTemplate('MyTemplate'); does not work?
585: [09:13:00] <Marvanni> I added the template to mytheme/templates/forms
586: [09:14:00] <kinglozzer> ?flush=1 ?
587: [09:15:00] <ARNHOFF> admin/pages/edit/show/-1"
588: [09:15:00] <ARNHOFF> and I have a feeling it isn't on my end, as I changed everything back to a empty page type, yet it still goes to -1 everytime
589: [09:15:00] <Marvanni> hm.. it needs to be in Includes..., where the FormField templates can be in templates/forms
590: [09:15:00] <ARNHOFF> chillu: Are you aware of the following bug/issue? I have a page type, DesignerPage. I can create the page normally, but as soon as I save and the preview website shows up, the "admin/pages/edit/show/2" redirects to "
591: [09:20:00] <ARNHOFF> chillu: in 3.0 it works perfectly
592: [09:24:00] <ARNHOFF> In a controller, is it possible to make urls with a allowed action? So instead of /designers/designer/eric-kuster. I want designers/eric-kuster rightaway. But "designer" is the function calling etc
593: [09:30:00] * Bollig|DesignCty quit (Read error: Connection reset by peer)
594: [09:30:00] <simon_w|air> Well, designers would be the action and eric-kuster would be the ID
595: [09:30:00] * Bollig|DesignCty has joined #silverstripe
596: [09:32:00] <chillu> ARNHOFF: Does your page controller do a redirect?
597: [09:32:00] <ARNHOFF> but designers is in the sitetree with pagetype DesignerPage
598: [09:33:00] <ARNHOFF> no it doesn't
599: [09:34:00] <ARNHOFF> http://pastebin.com/07RMD4LP
600: [09:41:00] <simon_w|air> may cause problems with child pages, though those would be a little weird in this context so I think that's fine
601: [09:41:00] <simon_w|air> ARNHOFF, public static $url_handlers = array('$ID!' => 'designer');
602: [09:43:00] <ARNHOFF> $ID! works always with the custom urlsegment that I created where the name of the designer is the url?
603: [09:44:00] <simon_w|air> Well, it's like the normal $Action/$ID/$OtherID, just skipping the $Action and making $ID required (so it'll fall back to index without one)
604: [09:52:00] <zri> ?flush=1 wont clear resized images FYI
605: [09:53:00] <zri> *clears
606: [09:53:00] <zri> it had to be deleted manually
607: [09:53:00] <zri> flush clear cache
608: [09:55:00] * zfmf quit (Ping timeout: 264 seconds)
609: [09:56:00] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
610: [09:58:00] * zfmf has joined #silverstripe
611: [10:07:00] <ARNHOFF> simon_w, I cant seem to get itw orking. Do I need to do something in _routes.yml aswell ?
612: [10:07:00] <ARNHOFF> routes.yml*
613: [10:09:00] <kinglozzer> simon_w: Quick question. I have an action 'plot', then using $request->param('ID'); to get the ID. Is there any way I can make 'ID' required using routes/URL handlers? Or best to just check if it's present inside the function
614: [10:09:00] <kinglozzer> Currently doing if ( ! $ID = $request->param('ID')) return $this->redirect($this->Link());
615: [10:10:00] <kinglozzer> Oh, the ! marks it as required in $url_handlers. Guess I can work it out from there
616: [10:10:00] <mrsteveheyes> i was wondering if someone would be able to help me
617: [10:10:00] <mrsteveheyes> hey everyone
618: [10:10:00] * mrsteveheyes has joined #silverstripe
619: [10:10:00] <kinglozzer> But returning a 404 page would be fine if it saves that line of code :)
620: [10:11:00] <mrsteveheyes> i was wondering if anyone knows how to do it?
621: [10:11:00] <mrsteveheyes> i am wanting to change the labels on the comments module
622: [10:14:00] * Friksel has joined #silverstripe
623: [10:14:00] <DesignerX> any idea why ppl send spam when the e-mail has a fake e-mail address & no link to website or anything, whats the point if the e-mail takes me no where ?
624: [10:15:00] <DesignerX> ""( trying to understand why everyone in india is now targeting me ) ""
625: [10:15:00] <Friksel> anybody knows how to make a page visible that is extended from a page with implements Hiddenclass?
626: [10:15:00] * howardgrigg quit (Remote host closed the connection)
627: [10:16:00] <ec8or> DesignerX: from what i understand it has to do with un-training spam filters
628: [10:17:00] <ec8or> if you send through masses of emails without anything "bad" in them, you can base your real spam on the same format
629: [10:17:00] <ec8or> but yeah, i don't know it is strange :)
630: [10:17:00] <ARNHOFF> simon_w|air thanks I got it working!
631: [10:18:00] <kinglozzer> Friksel: remove HiddenClass?
632: [10:19:00] <Friksel> @kinglozzer: I want to hide my basePage-class, but show the derived classes. when I implement Hiddenclass on basePage all subclasses are hidden as well, so how can I show the sublcasses?
633: [10:20:00] <kinglozzer> It will inherit the interface HiddenClass from its parent. I don't think there's any way to prevent that.
634: [10:20:00] <kinglozzer> Can't the child pages extend a different class?
635: [10:20:00] * priithansen has joined #silverstripe
636: [10:22:00] <Friksel> no, it has to extend from that baseclass
637: [10:22:00] <DesignerX> ec8or: well, i have reported most of the e-mail so good luck untraining
638: [10:22:00] <kinglozzer> Friksel: Why?
639: [10:23:00] * guci0 has joined #silverstripe
640: [10:23:00] <kinglozzer> It's not possible to remove an interface, at least not that I'm aware of, so you don't really have much choice
641: [10:23:00] <guci0> Hello World!
642: [10:23:00] <DesignerX> Friksel: kinglozzer i think there is something like hide ancectors
643: [10:24:00] <DesignerX> hide ancestors *
644: [10:24:00] <kinglozzer> Friksel, DesignerX: Well spotted: http://api.silverstripe.org/3.0/cms/SiteTree.html#var$hide_ancestor
645: [10:25:00] <Friksel> @DesignerX: I tried that one, but it doesn't seem to hide the page. I tried $hide_ancester = 'basePage' in the extended page, but it still shows in the add menu (silverstripe3).
646: [10:26:00] <Friksel> next to that I think it's strange that an extended class desides that the baseclass is hidden... (or is it that I don't understand the working of it?)
647: [10:26:00] <DesignerX> Friksel: $hide_ancestor = MyParentClass should work, if not then its a bug in the CMS
648: [10:29:00] <Friksel> I found this thread from 2007 with the same issue: http://www.silverstripe.org/archive/show/610 , but I'm using SS3.0.3, so if it's still not fixed it takes a long time :(
649: [10:34:00] * mrsteveheyes quit (Quit: mrsteveheyes)
650: [10:37:00] <kinglozzer> Friksel: Looking at SiteTree.php the code is present, not sure if it's working properly thoug
651: [10:37:00] <kinglozzer> though*
652: [10:38:00] <kinglozzer> Friksel: It's working fine for me on 3.0.3
653: [10:39:00] <kinglozzer> Just tried it with public static $hide_ancestor = 'Page';
654: [10:40:00] <DesignerX> tray = array('Page')
655: [10:41:00] <DesignerX> try *
656: [10:42:00] <kinglozzer> No it doesn't accept an array, just a single value
657: [10:43:00] <Friksel> DesignerX / kinglozzer: In the page extending the baseClass I put: "public static $hide_ancester = 'BasePage';" (also tried with array), but whatever I do (even flushing/building etc.), no success
658: [10:43:00] <kinglozzer> $hide_ancestor
659: [10:43:00] <kinglozzer> Not $hide_ancester
660: [10:44:00] <kinglozzer> Haha
661: [10:44:00] <Friksel> Damn... that was it... stupid me
662: [10:44:00] <Friksel> :)
663: [10:44:00] <DesignerX> o != e
664: [10:44:00] <DesignerX> I blam SS, it should have auto correct
665: [10:45:00] <Friksel> DesignerX: yes indeed, it was not my fault, it is Silverstripe not thinking ;)
666: [10:46:00] <DesignerX> my turn
667: [10:47:00] <DesignerX> parent::$has_one doesnt work ?
668: [10:48:00] <Friksel> DesignerX: what do you want to do?
669: [10:48:00] <DesignerX> want to get all has_one relation Names of an object & its ancestors
670: [10:48:00] <Friksel> there are two parents, the parent-class and the parent-page
671: [10:49:00] <DesignerX> the class I am aafter
672: [10:50:00] <ARNHOFF> Its weird, I have a controller, DesignerPage then it extends DesignerViewer. Which creates links for the designers that get added, so designers/name. But for some reason I can no longer reach, designers/ now ?
673: [10:50:00] * howardgrigg has joined #silverstripe
674: [10:51:00] <Friksel> DesignerX: does it work form the class itself? (with $this)
675: [10:52:00] <Friksel> DesignerX: And does it work with $db?
676: [10:52:00] <ARNHOFF> when I comment 'designers//$ID': 'DesignerViewer' in routes.yml, I am able to reach designers again. But I tried everything designers/$ID, designers//$ID etc :(
677: [10:52:00] <DesignerX> & no , doesnt wotk with $db
678: [10:52:00] <DesignerX> no, its static $has_one so it works with self::$has_one
679: [10:55:00] * travis-ci has joined #silverstripe
680: [10:55:00] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#209 (3.1 - 649de6e : Ingo Schommer): The build was fixed.
681: [10:55:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/6a4387b970e0...649de6e1bce0
682: [10:55:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/4374313
683: [10:55:00] * travis-ci has left #silverstripe
684: [11:01:00] <DesignerX> with DataExtention there is no way to add static functions & vars ?
685: [11:03:00] <Friksel> DesignerX: Sorry, never tried that
686: [11:06:00] <DesignerX> np
687: [11:06:00] <Friksel> what do you use it for?
688: [11:07:00] <kinglozzer> DesignerX: Can't you access them with MyDataExtension::$has_one ?
689: [11:07:00] * lx-berlin has joined #silverstripe
690: [11:08:00] <DesignerX> I am trying to get a list of all $has_one array on this class 7 parent class(s)
691: [11:08:00] <DesignerX> 7 = &
692: [11:09:00] <DesignerX> so I need self::$has_one + parent::$has_pne + parentParent:L:$has_one .. ect
693: [11:10:00] * travis-ci has left #silverstripe
694: [11:10:00] * travis-ci has joined #silverstripe
695: [11:10:00] <travis-ci> [travis-ci] silverstripe/sapphire#1250 (3.1 - 3457f43 : Ingo Schommer): The build passed.
696: [11:10:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/1ca15d039915...3457f438397d
697: [11:10:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4374317
698: [11:11:00] * Infidel has joined #silverstripe
699: [11:14:00] <DesignerX> Friksel: kinglozzer best way to reigger a function on PageLoad in the CMS ? other then __construct
700: [11:14:00] <DesignerX> to trigger *
701: [11:15:00] <Friksel> Infidel: uploadField is a bug in widgets
702: [11:15:00] <Friksel> DesignerX: did you try index function in controller
703: [11:15:00] <Infidel> Hey, did anyone managed to get UploadField in widget? Issue: https://github.com/silverstripe/silverstripe-widgets/issues/20
704: [11:15:00] <DesignerX> index function ? what does it do ( a link if u have one )
705: [11:15:00] <DesignerX> Infidel: I wll test it now
706: [11:16:00] <Infidel> is there any workaround?
707: [11:16:00] <Friksel> Infidel: there seems to be a lot of bugs in the widgetmodule (if you use ss3). I got rid of it and made alternatives
708: [11:16:00] * mrsteveheyes has joined #silverstripe
709: [11:16:00] <DesignerX> Friksel: Infidel good to know before I strt working with it :)
710: [11:17:00] <Infidel> heh
711: [11:17:00] <Infidel> yhea, but it's to late for me;] project already live;]
712: [11:17:00] <Friksel> DesignerX: indexfunction got triggered on loading the page
713: [11:17:00] <Friksel> Infidel: good luck then ;)
714: [11:17:00] <g4b0> Is it possible to use boolean operator like and, or, etc in template files?
715: [11:18:00] <Friksel> g4b0: yes, but very basic: see http://doc.silverstripe.org/framework/en/reference/templates
716: [11:18:00] <Infidel> yes
717: [11:19:00] <Infidel> and one more thing - maybe you have some ideas how to add gallery in content page? I think I need to create some model with many images and then create some TinyMCE button for add gallery? or you know any alternatives?
718: [11:20:00] <Friksel> Infidel: I believe there is a gallerymodule for ss3
719: [11:20:00] <Infidel> shortcode is way to go. thank you
720: [11:20:00] <Friksel> Infidel: https://github.com/anselmdk/ss3-resources/blob/master/modules.md
721: [11:20:00] <DesignerX> Infidel: using shortcode
722: [11:21:00] <g4b0> Infidel: have you already checked this: https://github.com/OpticBlaze/ss3Gallery ?
723: [11:22:00] <g4b0> I'm using a modified version
724: [11:22:00] <Infidel> main idea is to have many photos in any content page, in any place between text. all the galleries i was checking, had gallery as external version for specific page type.
725: [11:22:00] <g4b0> it works well
726: [11:24:00] <DesignerX> Infidel: I have GalleryWidget which has_one Gallery . Gallery is managed in ModelAdmin .. not sure if this good for you ?
727: [11:25:00] <g4b0> but you have to write your code...
728: [11:25:00] <g4b0> you can code something like [gallery] into HtmlEditor
729: [11:25:00] <g4b0> and then in frontend
730: [11:25:00] <Infidel> because I have html like this: http://kst.name/ktu/html/inside.html
731: [11:25:00] <Infidel> g4b0: that sounds lika a solution then.
732: [11:25:00] <g4b0> you can swap it with the gallery code
733: [11:26:00] <Infidel> in the content
734: [11:26:00] <g4b0> I understand
735: [11:26:00] <g4b0> maybe you can get some inspiration from the module above
736: [11:26:00] <Infidel> there is Nuotrauk?? galerija.
737: [11:27:00] <g4b0> but you have to write the module by yourself
738: [11:27:00] <Infidel> you suggest me that ss3Gallery as a starter and extend it?
739: [11:27:00] <g4b0> and then you can share it on github :)
740: [11:27:00] <Infidel> with some shortcode and handling..
741: [11:30:00] <g4b0> elno
742: [11:30:00] <g4b0> ss3 as filosophy
743: [11:30:00] <g4b0> no
744: [11:31:00] <g4b0> write your code
745: [11:31:00] <priithansen> silverstripe.org really needs a working modules page. So much good stuff out there but no way to find it
746: [11:31:00] <g4b0> ...I hope :)
747: [11:31:00] <g4b0> it's not so hard...
748: [11:36:00] <Friksel> @priithansen: same with the documentation... 2 books out there, but none of ss3... also a lot of easy functions are not documenten... but maybe in the future?
749: [11:36:00] * mrsteveheyes has left #silverstripe
750: [11:37:00] <priithansen> would gladly pay for a good book indeed
751: [11:45:00] <DesignerX> more question : how to get all subclasses of Page ?
752: [11:47:00] <Infidel> you have to iterate
753: [11:47:00] <Friksel> DesignerX: in most basic form you can query the sitetree table
754: [11:48:00] <DesignerX> Friksel: ah ! nice one ;)
755: [11:55:00] * Colin[pi] quit (Ping timeout: 276 seconds)
756: [11:57:00] * Error404NotFound quit (Read error: Operation timed out)
757: [11:58:00] * Error404NotFound has joined #silverstripe
758: [12:00:00] * jerga has joined #silverstripe
759: [12:01:00] * jerga quit (Client Quit)
760: [12:01:00] <DesignerX> jerga: hi
761: [12:01:00] * jerga has joined #silverstripe
762: [12:01:00] <jerga> hi all
763: [12:03:00] <jerga> I had tried File->setFilename, File->write, but in File->updateFilesystem, it overrides the Filename, so this doesn't work
764: [12:03:00] <jerga> I have a question (of course)... the simple version is: what's the best way to move assets and still preserve relationships?
765: [12:03:00] <jerga> I had tried a simple PHP rename()
766: [12:04:00] <Friksel> jerga: while renaming the files also rename the paths in the file-table?\
767: [12:04:00] <jerga> but this doesn't update the database, and when FileSystem::sync is called it seems to remove the old objects and thus relations are lost
768: [12:04:00] <jerga> Any ideas?
769: [12:05:00] <jerga> @Friksel, that's the path I originally have tried. I've been fiddling around with changing Filename, and even a DB::query, but it all feels hackish (and isn't working!) so I wondered if anyone had experience of this kind of thing.
770: [12:06:00] <Friksel> jerga: mayb it's a caching problem?
771: [12:06:00] <jerga> hmm.. what kind of caching?
772: [12:07:00] <DesignerX> jerga: by "moving" ypou mean rename the folder/ that has the files ?
773: [12:07:00] <jerga> Oh! cheers!
774: [12:07:00] <DesignerX> jerga: let me dig an old project, I think i have some code for you
775: [12:07:00] <jerga> So, would it be recommended to use a DB::query to update the File table?
776: [12:08:00] <jerga> yeah, I need to make sure the folder always 'matches' the Article -- it's to keep a large site organised, so that uploaded images always go into the relevant Article's folder.
777: [12:09:00] <jerga> but on rename, the relations get wiped due to either a broken File table reference (from my manipulations), or if FS::sync is called, it kills the old row so that the File.ID in the relation is now invalid
778: [12:09:00] <jerga> @Frikset, thanks, but this seems to unrelated AFAIK to caching
779: [12:09:00] <Friksel> jerga: silverstripe caching
780: [12:09:00] <DesignerX> kk , let me see
781: [12:10:00] <jerga> still, it could be to do with the DataObject cache...
782: [12:10:00] <jerga> in some places
783: [12:11:00] <DesignerX> jerga: here is a "working" code which only rename the folder & updates the file table http://www.sspaste.com/paste/show/5102764585f1a
784: [12:11:00] <jerga> Awesome, thanks, taking a look...
785: [12:12:00] <DesignerX> a bit messy , forgot to hightlight lines in the paste
786: [12:12:00] <jerga> That's okay. I see you're setting all the fields
787: [12:13:00] <jerga> and calling updateFilesystem manually
788: [12:14:00] <DesignerX> jerga: was looking at moving the files to fub folders if a page got mogved down a a subPage but didnt have the time
789: [12:14:00] <jerga> interesting...
790: [12:15:00] <jerga> right, luckily I don't have to deal with the hierarchy, as this site uses more of a tag/category system
791: [12:15:00] <DesignerX> jerga: nice, created any extra code/modules to deal with tags ?
792: [12:15:00] <jerga> hmm, your code is doing similar things as my own... I think I need to test a few more things now!! :)
793: [12:15:00] <jerga> Thanks very much, I'll report back in a bit
794: [12:16:00] <jerga> I'm using @chillu's tagfield module
795: [12:16:00] <jerga> Anything I get around to splitting off, goes here: https://github.com/lingo
796: [12:16:00] <jerga> Well, I split modules off as I get the chance, but I haven't done anything directly with the tags
797: [12:17:00] <DesignerX> & bookemarked ..
798: [12:17:00] <jerga> :)
799: [12:20:00] <DesignerX> jerga: if you see how I have onBeforeWrite & onAfterWirte : i had some problems when creting new page, it has no ID or relation to folder so I couldnt change the name of a folder I dont have a relation to
800: [12:21:00] <DesignerX> jerga: + PageID is a part of the FolderName so the page has to be saved 1st before O can adjust the name .. just wanan save you time trying to figur out why I split them .. GL
801: [12:22:00] <jerga> cheers. Yeah I have the ID as part of FolderName in order to handle duplicate titles etc.
802: [12:23:00] <DesignerX> :) just change the getFolderpath & you set to go
803: [12:23:00] <jerga> http://sspaste.com/paste/show/51027953220bf
804: [12:24:00] * dendeffe quit (Quit: dendeffe)
805: [12:24:00] <jerga> this is a piece of what I'm working on
806: [12:24:00] <jerga> a bit ugly -- I'm still working on it
807: [12:25:00] <jerga> movePrivateFolders() is what I keep rewriting recently
808: [12:25:00] <jerga> I admit that my method to find $oldFolder is prone to problems
809: [12:25:00] <jerga> You're keeping the FolderID saved which makes more sense
810: [12:26:00] <DesignerX> yeh, if you have a relation to One Folder, then you have access to all its parent folders (if they exist )
811: [12:26:00] <jerga> oh, I see the bit I'm talking about isn't in the paste... ignore me :)
812: [12:27:00] <DesignerX> " what u need old folder for " ?
813: [12:27:00] <DesignerX> with FolderID you hold the start of the line :)
814: [12:29:00] <jerga> for URLSegment
815: [12:29:00] <jerga> ah, oldFolder is part of the change tracking
816: [12:31:00] <DesignerX> jerga: I read something about DataobjectAspage module, havt used it it, it may have versionizing as part of it (if thats what you trying to do )
817: [12:31:00] <jerga> yeah, I am using DataObjectAsPage, but in fact I've diverged a lot from it, and ended up using all custom controllers. The Versioning is actually only half implemented in DOAP
818: [12:32:00] <jerga> I'm using DOAP to provide Staged/Live and otherwise I'm ignoring it
819: [12:32:00] <jerga> As in, there is no UI to handle it
820: [12:32:00] <jerga> so I think by default /dev/build clears all old versions
821: [12:33:00] * jerga pauses for lunch
822: [12:33:00] <DesignerX> lunch at 11:30 PM :)
823: [12:40:00] <jerga> jeje, 12:40pm for me
824: [12:43:00] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
825: [12:43:00] * Error404NotFound has joined #silverstripe
826: [12:48:00] <priithansen> where would one but the ini_set("memory_limit", "256M"); to raise memory limit for GD library
827: [12:50:00] <priithansen> top of _config.php seems to work
828: [12:50:00] * dendeffe has joined #silverstripe
829: [12:51:00] * dendeffe quit (Client Quit)
830: [13:00:00] * Error404NotFound quit (Ping timeout: 264 seconds)
831: [13:10:00] <Friksel> clear
832: [13:12:00] * Error404NotFound has joined #silverstripe
833: [13:13:00] <priithansen> god dammit gmail everything to write and email is hidden somewhere. Can't even indent text
834: [13:14:00] <Friksel> Anybody knows how to put data into newly created dataobject $db-field? $newObj->CourceId = 10; doesn't do the trick
835: [13:15:00] <kinglozzer> ^^
836: [13:15:00] <kinglozzer> Friksel: That is the correct way to do it, then call $newObj->write();
837: [13:15:00] <Friksel> oh damn.. it d??es do the trick! :)
838: [13:16:00] * UndefinedOffset has joined #silverstripe
839: [13:16:00] * dendeffe has joined #silverstripe
840: [13:30:00] * Friksel quit (Ping timeout: 245 seconds)
841: [13:30:00] * lobarvaz has joined #silverstripe
842: [13:33:00] <DesignerX> hi, is there like getAncestors on DataObject or page ? to get all ancestor classes ?
843: [13:36:00] <jerga> anyone know how to effectively unit test code that affects filesystem?
844: [13:36:00] <UndefinedOffset> DesignerX i believe its on the class ClassInfo::getAnsestry or something like that
845: [13:36:00] <DesignerX> ty , lets test it
846: [13:37:00] <UndefinedOffset> DesignerX i know its on ClassInfo what the exact method is you'll probably have to confirm
847: [13:38:00] <DesignerX> & now for some reason my IDE stopped listing my calsses & methods :(
848: [13:40:00] <jerga> ^ ClassInfo
849: [13:40:00] <jerga> static function ancestry($class, $onlyWithTables = false) {
850: [13:41:00] <jerga> documentation says: * @todo Improve documentation
851: [13:41:00] <DesignerX> yeh, that should be added everywhere :)
852: [13:42:00] <UndefinedOffset> lol
853: [13:42:00] <UndefinedOffset> seeing how its static it is everywhere :)
854: [13:42:00] <UndefinedOffset> DesignerX ya I wrote a plugin for eclipse that does silverstripe stuff, but its not were i want it yet for public use :P
855: [13:42:00] <jerga> :)
856: [13:43:00] <UndefinedOffset> it has no validation in templates so it the html validator freaks out when it hits a silverstripe template tag lol
857: [13:44:00] <UndefinedOffset> true true :)
858: [13:44:00] <DesignerX> UndefinedOffset: you did , what ever stage its in its still better then nothing + you need bug reports :)
859: [13:45:00] <DesignerX> care to share ? its not fair that I just stare
860: [13:46:00] <DesignerX> now time to download the "portable" eclipse & see how it works
861: [13:48:00] <UndefinedOffset> I'll try get around to make sure I've got an exact list of versions for its requirements and such :)
862: [13:49:00] <UndefinedOffset> I'll make sure I make some noise about it when its time, maybe even post it's sources on github, for everyone to gawk at my horrid java skills lol
863: [13:49:00] <UndefinedOffset> :)
864: [13:49:00] <DesignerX> :) cant wait
865: [13:49:00] <UndefinedOffset> i know one of the guys here at the office thats using it has problems with the highlighting in templates not working so ya, kinda kills its purpose lol
866: [13:50:00] <DesignerX> I am ok with the temapltes, I use Netbean 7 set .SS files to be treated as HTML , I get some red underlines when doing <% but the rest is ok
867: [13:51:00] <UndefinedOffset> ya this will give you a warning in most cases an error if it breaks a tag but it works, been using it on my machines at home and here at the office and i'm diggin it. Even set it up in the last build to have a button that runs dev/build?flush=all and show you the output
868: [13:51:00] <DesignerX> how can i merge a list of array in php ?
869: [13:54:00] <jerga> @DesignerX something like this? http://php.net/manual/en/function.array-merge-recursive.php
870: [13:55:00] <DesignerX> jerga: just perfect :D
871: [14:02:00] <lobarvaz> Hi guise! Got a weird issue here, seeking help. Want to sort results of a DataList: $query->sort('Port.ID = '.$show.' DESC, OrderItem.ClassName IN (\'PremiumPort\') DESC');
872: [14:03:00] <lobarvaz> However, SQL ends up as this: SELECT DISTINCT OrderItem.ClassName IN ('PremiumPort') AS "_SortColumn0", OrderItem.ClassName IN ('PremiumPort') AS "_SortColumn1", ...
873: [14:04:00] * PigeonFriend has joined #silverstripe
874: [14:10:00] <DesignerX> jerga: I miss understood array_merge_recursive , its not what I need :(
875: [14:10:00] <jerga> ah, a pity...
876: [14:10:00] <DesignerX> I have a nested array , I need to merge the nested arrays as one array
877: [14:11:00] <UndefinedOffset> DesignerX: keep an eye on webbuildersgroup.com/blog :) we're going to talk about that pluggin there I guess when I've got my i's dotted and my t's crossed :P
878: [14:11:00] <PigeonFriend> DesignerX: you want all the sub arrays of an array to become a flat array?
879: [14:11:00] <DesignerX> $Array1 = array( $arrayA , $arrayB , $ArrayC ) into one array
880: [14:11:00] <DesignerX> PigeonFriend: yes :)
881: [14:12:00] * UndefinedOffset quit (Quit: Leaving.)
882: [14:14:00] <PigeonFriend> DesignerX: do you need to keep the key values?
883: [14:14:00] <DesignerX> no, only need vlaues
884: [14:17:00] <PigeonFriend> :P
885: [14:17:00] <PigeonFriend> DesignerX: this was easy to find: http://php.net/manual/en/function.array-values.php#41967
886: [14:18:00] <DesignerX> thanks :) 1:20 am .. cant sleep till I get this pice of code out of my head
887: [14:21:00] <PigeonFriend> ouches
888: [14:25:00] * Emil_Blume has joined #silverstripe
889: [14:30:00] * Shrike_Finland quit (Quit: Leaving.)
890: [14:38:00] * UD quit (Ping timeout: 276 seconds)
891: [14:42:00] * svandragt has joined #silverstripe
892: [14:43:00] <DesignerX> PigeonFriend: jerga : now I just finished my public function getHasOneReltionsToClass($ClassName) { } if anyone needs it
893: [14:43:00] <DesignerX> now I can use it with WidgetArea to WidgetArea has PageID :D
894: [14:43:00] <jerga> cheers, good to know
895: [14:44:00] <PigeonFriend> DesignerX: wowsers, what does it do? finds all classes that have specified a has_one to the $ClassName?
896: [14:44:00] <DesignerX> now I can sleep , I will just count widgets & fall asleep in 10 sec
897: [14:45:00] <PigeonFriend> nice
898: [14:45:00] <DesignerX> PigeonFriend: yep
899: [14:46:00] <DesignerX> returns all the relation ThisPage has to $ClassName as key=>Value
900: [14:46:00] <DesignerX> next step is to move it to dataobject ,
901: [14:47:00] <svandragt> good day
902: [14:48:00] <PigeonFriend> night
903: [14:48:00] <DesignerX> good night all , Hope you guys on for the next few days, we make a good suppoirt team :)
904: [14:49:00] <jerga> yes indeed! I'll be on more often.
905: [14:49:00] <svandragt> I'm looking to disable the autocompleter relationshipsearch on a relation when edited through ModelAdmin, anyone done this or has idea where to look, as I haven't found anything useful in the api docs or otherwise.
906: [14:49:00] <PigeonFriend> DesignerX: probably wont be on over the weekend :P
907: [14:49:00] <jerga> @svandragt, can you explain a bit more? This sounds like something where you'd change the field type in getCMSFields
908: [14:51:00] <svandragt> I have a Course dataobject, which has_many CourseDates, managed through a CourseModelAdmin, but I don't want authors to search for coursedates, so I need to hide the "link existing" search form
909: [14:52:00] <priithansen> svandragt I have definitely disabled the Add new button on the same thing
910: [14:53:00] * DesignerX quit (Ping timeout: 248 seconds)
911: [14:53:00] <jerga> Not sure if I understand, but do you have a custom getCMSFields method in your Course DO ? If so, you can do something like $fields->removeByName('CourseDate');
912: [14:53:00] <priithansen> i'll look into my code
913: [14:53:00] * UD has joined #silverstripe
914: [14:53:00] <jerga> or is this a 3.x thing I'm out of touch with?
915: [14:53:00] <jerga> Then you can add your own field type.
916: [14:54:00] <jerga> ^ I guess that's a yes.
917: [14:54:00] <priithansen> $gridConfig->removeComponentsByType('GridFieldAddExistingAutocompleter');
918: [14:55:00] * jerga really needs a SStr 3.x project, to catch up
919: [14:55:00] <jerga> yeah I played with it on beta and made a very small sapphire-only
920: [14:55:00] <priithansen> it's a delight :)
921: [14:55:00] <priithansen> jerga if I understand correctly it is indeed grid field thing which is ss3 thing
922: [14:56:00] * perverse quit (Ping timeout: 248 seconds)
923: [14:56:00] <jerga> project, but haven't caught up with the CMS since then
924: [14:56:00] <svandragt> http://i.imm.io/U36H.png
925: [14:56:00] <svandragt> will try that priithansen
926: [14:57:00] * UndefinedOffset has joined #silverstripe
927: [14:58:00] <priithansen> All the bigger bugs are getting fixed and more documentation and modules is getting released everyday it's getting more fun to use ss with every day
928: [15:00:00] * jerga quit (Ping timeout: 264 seconds)
929: [15:11:00] * UndefinedOffset has joined #silverstripe
930: [15:11:00] * UndefinedOffset quit (Quit: Leaving.)
931: [15:17:00] * Infidel quit (Ping timeout: 245 seconds)
932: [15:18:00] * SightUnseen has joined #silverstripe
933: [15:18:00] * SightUnseen has left #silverstripe
934: [15:21:00] * UncleCheese has joined #silverstripe
935: [15:41:00] <ARNHOFF> Anyone has a ajax pagination in SilverStripe 3 somewhere for public use / example ?
936: [15:43:00] * jerga has joined #silverstripe
937: [15:48:00] * Nivery has joined #silverstripe
938: [15:53:00] * ARNHOFF quit (Quit: ( www.nnscript.com :: NoNameScript 4.22 :: www.esnation.com ))
939: [15:56:00] * svandragt quit (Read error: Connection reset by peer)
940: [16:02:00] * SightUnseen has joined #silverstripe
941: [16:02:00] * lurker has joined #silverstripe
942: [16:05:00] * dhbiker has joined #silverstripe
943: [16:06:00] <dhbiker> hi there i have one problem.... when i try to Upload a file to silverstripe it throws out "File exceds 2MB".. i have upload_max_filesize = 8M in php.ini under framework folder
944: [16:06:00] <PigeonFriend> dhbiker: check you max post size
945: [16:07:00] <dhbiker> also written with 8MB
946: [16:07:00] <PigeonFriend> dhbiker: and your uploader isn't limited to 2MB in terms of HTML form properties? - what version of SS?
947: [16:08:00] <dhbiker> stable
948: [16:08:00] <dhbiker> downloaded it today
949: [16:08:00] <dhbiker> latest
950: [16:08:00] <dhbiker> "Filesize exceeds 2 MB"
951: [16:08:00] <PigeonFriend> dhbiker: exact error is the one you quoted?
952: [16:08:00] <PigeonFriend> 3? ok
953: [16:10:00] * SightUnseen quit (Ping timeout: 252 seconds)
954: [16:10:00] * FrozenFire quit (Read error: Connection reset by peer)
955: [16:11:00] <PigeonFriend> dhbiker: your UploadField validator has a size restriction
956: [16:11:00] * FrozenFire has joined #silverstripe
957: [16:11:00] * FrozenFire quit (Changing host)
958: [16:11:00] * FrozenFire has joined #silverstripe
959: [16:11:00] <kinglozzer> dhbiker: Are you sure your php.ini is being picked up?
960: [16:12:00] <dhbiker> PigeonFriend: how do i "remove" this restriction ?
961: [16:12:00] <PigeonFriend> dhbiker: very easy to check - phpinfo();
962: [16:12:00] <PigeonFriend> heh, not sure.
963: [16:12:00] <dhbiker> kinglozzer: i'm just checking that
964: [16:13:00] <PigeonFriend> dhbiker: UploadField.php:163 - appears it looks at the values in the PHP.ini :P
965: [16:13:00] <kinglozzer> dhbiker: First use phpinfo() to check if it's not a PHP limit on upload size
966: [16:13:00] <dhbiker> dayum
967: [16:13:00] <kinglozzer> Then worry about checking UploadFields :P
968: [16:14:00] <PigeonFriend> so i suspect your PHP.ini
969: [16:16:00] <dhbiker> its not being picked up yes
970: [16:17:00] <PigeonFriend> dhbiker: did you restart httpd?
971: [16:17:00] <kinglozzer> dhbiker: I'd move it up a level to the root folder, no need for it to be in /framework
972: [16:18:00] <kinglozzer> Local server?
973: [16:18:00] <kinglozzer> That's a good point, is this on a development server? Shared hosting?
974: [16:19:00] <dhbiker> devel server
975: [16:21:00] <dhbiker> setenv ?
976: [16:21:00] <kinglozzer> If it's on shared hosting you might need to specify the location of php.ini in .htaccess
977: [16:21:00] <dhbiker> moved php.ini to root
978: [16:21:00] <dhbiker> nothing
979: [16:21:00] <kinglozzer> We have this in our .htaccess: suPHP_ConfigPath /PATH/TO/public_html/php.ini
980: [16:21:00] <dhbiker> oh.
981: [16:22:00] <dhbiker> k i'll try this ty
982: [16:22:00] <kinglozzer> If you're on shared hosting your path will vary, it should tell you in your cPanel. Ours is usually something like /data02/somesite/public_html/php.ini
983: [16:22:00] <PigeonFriend> dhbiker: if its a deleopment server, why not just edit the core /etc/php.ini file? and make sure httpd is restarted
984: [16:23:00] <priithansen> I think there was a way to set the post_max_size in .htaccess directly too
985: [16:25:00] <dhbiker> with php_value ?
986: [16:26:00] <priithansen> don't exactly know you'll have to google it but if it's dev server why just not update the main php settings like PigeonFriend said
987: [16:27:00] <kinglozzer> Yeah if it's a local dev server you can just do that, my advise was for if you're on a 'staging' server or something
988: [16:31:00] <dhbiker> i think i got it
989: [16:33:00] <dhbiker> a*
990: [16:33:00] <dhbiker> nope...
991: [16:33:00] * dendeffe quit (Quit: dendeffe)
992: [16:33:00] <dhbiker> nevermid i'll google it
993: [16:33:00] <dhbiker> thanks enyways guys !
994: [16:38:00] * SightUnseen has joined #silverstripe
995: [16:44:00] * SightUnseen quit (Ping timeout: 252 seconds)
996: [16:51:00] * UndefinedOffset quit (Ping timeout: 245 seconds)
997: [16:54:00] * zri quit (Ping timeout: 245 seconds)
998: [16:57:00] * UndefinedOffset has joined #silverstripe
999: [16:58:00] * lobarvaz has left #silverstripe
1000: [17:04:00] * kinglozzer quit (Remote host closed the connection)
1001: [17:07:00] * g4b0 quit (Quit: Sto andando via)
1002: [17:08:00] * catcher has joined #silverstripe
1003: [17:09:00] * UndefinedOffset quit (Ping timeout: 276 seconds)
1004: [17:12:00] * slith1 has joined #silverstripe
1005: [17:29:00] * ARNHOFF has joined #silverstripe
1006: [17:29:00] * slith1 quit (Quit: Leaving.)
1007: [17:32:00] * Emil_Blume quit (Ping timeout: 245 seconds)
1008: [17:38:00] * SightUnseen has joined #silverstripe
1009: [17:43:00] * Nivery has joined #silverstripe
1010: [17:43:00] * Nivery quit (Quit: Nivery)
1011: [17:43:00] * Shrike_Finland has joined #silverstripe
1012: [17:43:00] * SightUnseen quit (Ping timeout: 252 seconds)
1013: [17:43:00] * UncleCheese quit (Quit: UncleCheese)
1014: [17:44:00] * UncleCheese has joined #silverstripe
1015: [17:45:00] * UndefinedOffset has joined #silverstripe
1016: [17:45:00] * dendeffe has joined #silverstripe
1017: [17:46:00] * slith1 has joined #silverstripe
1018: [17:46:00] * popeshoe quit (Quit: Leaving)
1019: [18:01:00] * AshKyd has joined #silverstripe
1020: [18:04:00] * jerga quit (Ping timeout: 248 seconds)
1021: [18:04:00] * dendeffe quit (Quit: dendeffe)
1022: [18:12:00] * zfmf has left #silverstripe
1023: [18:26:00] * Motoservo quit (Quit: Motoservo)
1024: [18:28:00] * Shrike_Finland quit (Quit: Leaving.)
1025: [18:29:00] * Nivery quit (Quit: Nivery)
1026: [18:30:00] * Nivery has joined #silverstripe
1027: [18:30:00] * UncleCheese quit (Quit: UncleCheese)
1028: [18:35:00] * aaron1245 has joined #silverstripe
1029: [18:37:00] <aaron1245> If you wanted to replace a linked-to file in the file manager, what's the best way to go about that? Problem we're having is clients deleting the file in the CMS and uploading a different version with the same name, however since there was a link to the old file by the "Download a File" link, the connection disappeared when the original file was deleted.
1030: [18:39:00] * SightUnseen has joined #silverstripe
1031: [18:40:00] * UncleCheese has joined #silverstripe
1032: [18:43:00] * SightUnseen quit (Ping timeout: 244 seconds)
1033: [18:47:00] <FrozenFire> Just noticed a bug in SecurityAdmin
1034: [18:48:00] <FrozenFire> So you end up with literal &raquo; in your GridField
1035: [18:48:00] <FrozenFire> Its Groups GridField uses the Group's breadcrumbs, which contains an html entity
1036: [18:48:00] <FrozenFire> (Or more than one)
1037: [18:48:00] <FrozenFire> &raquo; for double-right-arrow
1038: [18:48:00] <FrozenFire> It doesn't decode in the browser, so far as I can tell
1039: [18:49:00] <FrozenFire> Ended up having to do: http://www.sspaste.com/paste/show/5102d3ab04379
1040: [18:53:00] * UncleCheese quit (Quit: UncleCheese)
1041: [19:09:00] * PigeonFriend quit ()
1042: [19:19:00] * dendeffe has joined #silverstripe
1043: [19:29:00] * SightUnseen has joined #silverstripe
1044: [19:32:00] * SightUnseen has left #silverstripe
1045: [19:33:00] * MrGuits has joined #silverstripe
1046: [19:42:00] * UD quit (*.net *.split)
1047: [19:42:00] * Guits quit (*.net *.split)
1048: [19:44:00] * chillu quit (Quit: chillu)
1049: [19:49:00] * UD has joined #silverstripe
1050: [19:50:00] * UndefinedOffset quit (Quit: Leaving.)
1051: [19:51:00] * dendeffe quit (Quit: dendeffe)
1052: [19:54:00] * UndefinedOffset has joined #silverstripe
1053: [20:02:00] * Err404NotFound has joined #silverstripe
1054: [20:02:00] * Error404NotFound quit (Disconnected by services)
1055: [20:04:00] * Err404NotFound quit (Remote host closed the connection)
1056: [20:28:00] <catcher> template <% if %> controls seem to behave oddly with booleans. What's the right way to test?
1057: [20:29:00] * Nivery quit (Quit: Nivery)
1058: [20:29:00] <simon_w|air> <% if $Blah %>
1059: [20:30:00] * Nivery has joined #silverstripe
1060: [20:31:00] * lx-berlin has left #silverstripe
1061: [20:32:00] <catcher> ah, the dollar?
1062: [20:40:00] * UncleCheese has joined #silverstripe
1063: [20:44:00] * Shrike_Finland has joined #silverstripe
1064: [20:58:00] * jerga has joined #silverstripe
1065: [20:59:00] * SightUnseen has joined #silverstripe
1066: [21:00:00] <Nivery> having a problem with the DataObject as Page module where the DataObjectAsPageAdmin class isn't getting created when I dev/build, though other classes in the module are
1067: [21:00:00] * SightUnseen has left #silverstripe
1068: [21:00:00] * UndefinedOffset quit (Quit: Leaving.)
1069: [21:01:00] <simon_w|air> Admin interfaces usually don't have database tables to create
1070: [21:01:00] <Nivery> thanks!
1071: [21:01:00] <Nivery> fair enough :)
1072: [21:07:00] * cloph_away has joined #silverstripe
1073: [21:09:00] * cloph_away1 quit (Ping timeout: 264 seconds)
1074: [21:18:00] * Shrike_Finland quit (Quit: Leaving.)
1075: [21:20:00] * chillu has joined #silverstripe
1076: [21:21:00] * aaron1245 has left #silverstripe
1077: [21:26:00] * Colin[pi] has joined #silverstripe
1078: [21:31:00] * Emil_Blume has joined #silverstripe
1079: [21:31:00] <priithansen> so one should use $ in template if's ?
1080: [21:50:00] * UncleCheese quit (Quit: UncleCheese)
1081: [21:52:00] <jerga> in 3.x I believe that's the case
1082: [21:52:00] <jerga> before this, no.
1083: [21:53:00] * howardgrigg quit (Remote host closed the connection)
1084: [21:53:00] * jerga has left #silverstripe
1085: [21:59:00] * UncleCheese has joined #silverstripe
1086: [22:07:00] * guci0 quit (Ping timeout: 245 seconds)
1087: [22:15:00] * UncleCheese quit (Quit: UncleCheese)
1088: [22:33:00] * jerga has joined #silverstripe
1089: [22:38:00] * jerga quit (Ping timeout: 256 seconds)
1090: [22:41:00] * gelignite has joined #silverstripe
1091: [22:53:00] * jerga has joined #silverstripe
1092: [22:54:00] * jerga has left #silverstripe
1093: [23:02:00] * Nivery has left #silverstripe
1094: [23:11:00] * aaron1245 has joined #silverstripe
1095: [23:15:00] * EPIK has joined #silverstripe
1096: [23:16:00] * gelignite quit (Quit: http://bit.ly/nkczDT)
1097: [23:18:00] * DesignerX has joined #silverstripe
1098: [23:23:00] * Colin[pi] quit ()
1099: [23:43:00] * Colin[pi] has joined #silverstripe
1100: [23:44:00] <Colin[pi]> oi chaps
1101: [23:51:00] * UncleCheese has joined #silverstripe
1102: [23:59:00] <Zauberfisch> good evening

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