#silverstripe IRC Log

IRC log for 6 July 2013

All timestamps are in UTC.

1: [00:00:32] <guzzlefry_dev> supernovah: Looks like it still applies: http://doc.silverstripe.org/framework/en/2.4/topics/environment-management
2: [00:01:03] <supernovah> ah
3: [00:01:07] <supernovah> that's essentially _config.php
4: [00:18:22] * metanat has joined #silverstripe
5: [00:18:26] <supernovah> going Email::setAdminEmail('website@mysite.com'); doesn't give the email to the Email class in Security, why would that be?
6: [00:18:38] <supernovah> Where should it be set? (besides _ss_environment)
7: [00:22:17] <metanat> Does anyone know about configuration reference paths? The ones used in After and Before?
8: [00:23:56] <metanat> I am wondering if people this that "something#fragmentname" should be parsed as file = somthing, name = fragmentname
9: [00:24:11] <metanat> Or module = something, name = fragmentname
10: [00:24:37] <metanat> *I am wondering if people think that*
11: [00:25:52] <simon_w> If you want just the module, modulename/*#fragmentname
12: [00:27:17] <metanat> Yep, but I am asking because I think there is a bug in the parser. What do you think "something#fragmentname" should result in. Should it see something as the module name, or the file name?
13: [00:28:19] <metanat> At the moment it parses "something" as the module name, but I expect (ad wrote unit tests for) it being the filename
14: [00:29:13] <simon_w> Personally, I find it ambiguous and think it should just be set one way and documented
15: [00:32:05] <simon_w> And, it's done such that a#b maps to a/*#b. Hardly a bug
16: [00:32:24] <metanat> Okay. I will put that information in the pull request then. I will leave it as "something#fragmentname" => module=something, name=fragmentname
17: [00:33:20] <metanat> Bug, whatever I don't really care, it was my expectations that were defied.
18: [00:36:48] * Nightjar has joined #silverstripe
19: [00:38:36] * Nightjar has left #silverstripe
20: [00:39:26] * Nightjar has joined #silverstripe
21: [00:45:08] * supernovah quit (Ping timeout: 268 seconds)
22: [00:48:05] * supernovah has joined #silverstripe
23: [00:56:57] * micmania1 quit (Quit: Leaving)
24: [01:22:57] * Nightjar has left #silverstripe
25: [01:24:06] * guzzlefry_dev quit (Quit: Ex-Chat)
26: [01:24:16] <supernovah> If I have a page underneath a parent page, it doesn't inherit some weird relationships like the has_many from the parent page does it
27: [01:24:53] * joelpittet quit (Read error: No route to host)
28: [01:31:23] <simon_w> Nope
29: [01:39:09] * metanat quit (Quit: Leaving.)
30: [01:40:08] <supernovah> Cool and how do I output just a template and none of the site layout on a specific page
31: [01:40:14] <supernovah> almost like ajax
32: [01:40:26] <supernovah> prepared for ajax even
33: [01:45:28] * metanat has joined #silverstripe
34: [01:48:42] <supernovah> oh sweet I just make an action
35: [02:11:55] * joelpittet has joined #silverstripe
36: [02:44:10] <supernovah> How can you do an inner join with get and actually get extra columns
37: [03:00:26] <simon_w> You can't
38: [03:06:59] <supernovah> how do you do it then
39: [03:07:16] <supernovah> the table is already in the has_many array
40: [03:08:36] <simon_w> You can do a join against it, but you can't get extra columns
41: [03:09:03] <simon_w> Getting extra columns against a has_many doesn't make much sense either
42: [03:09:04] <supernovah> ya I noticed but you wouldn't really use inner join for anything but getting more columns
43: [03:09:14] <supernovah> it's a has_one
44: [03:09:24] <supernovah> no wait
45: [03:09:35] <supernovah> yeah its has 1
46: [03:09:43] <simon_w> Uh, yeah you would. You join and then filter across the join. many_many does this all the time
47: [03:11:12] <supernovah> basically its a table with a user attached and I want their username there
48: [03:11:45] <simon_w> $obj->User()->username
49: [03:12:09] <simon_w> If you want more efficiency than that, you'll have to build the DataQuery yourself
50: [03:13:07] <supernovah> omfg I just realised I'm returning objects
51: [03:13:17] <supernovah> LOL
52: [03:13:32] <supernovah> thanks for that
53: [03:14:48] * SightUnseen has joined #silverstripe
54: [03:15:22] * SightUnseen has left #silverstripe
55: [03:26:57] <supernovah> No sleep and 3 heavy nights of drinking
56: [03:36:10] * cloph has joined #silverstripe
57: [03:37:33] * cloph_away quit (Ping timeout: 276 seconds)
58: [03:49:27] * SightUnseen has joined #silverstripe
59: [03:49:30] * SightUnseen quit (Client Quit)
60: [04:11:44] * supernovah quit (Ping timeout: 268 seconds)
61: [04:37:13] * DigNZ has joined #silverstripe
62: [04:37:13] * DigNZ quit (Client Quit)
63: [04:37:29] * metanat quit (Quit: Leaving.)
64: [04:39:02] * DigNZ has joined #silverstripe
65: [04:39:54] * DigNZ quit (Client Quit)
66: [04:40:59] * simon__w|air quit (Quit: Leaving)
67: [04:43:02] * simon_w|air has joined #silverstripe
68: [04:58:28] * supernovah has joined #silverstripe
69: [05:21:31] * metanat has joined #silverstripe
70: [05:24:22] * metanat quit (Client Quit)
71: [06:02:36] * inadream has joined #silverstripe
72: [06:09:31] * supernovah quit (Ping timeout: 268 seconds)
73: [06:10:26] * travis-ci has joined #silverstripe
74: [06:10:26] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#533 (3.1 - da936dd : Sam Minnée): The build passed.
75: [06:10:26] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/ff45f7ce4d1b...da936dd45e55
76: [06:10:26] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/8789107
77: [06:10:26] * travis-ci has left #silverstripe
78: [06:16:46] * travis-ci has joined #silverstripe
79: [06:16:46] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#534 (3.1 - be311f7 : Sam Minnée): The build passed.
80: [06:16:46] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/da936dd45e55...be311f72a5e3
81: [06:16:47] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/8789164
82: [06:16:47] * travis-ci has left #silverstripe
83: [06:21:56] * joelpittet quit (Remote host closed the connection)
84: [07:04:24] * wmk has joined #silverstripe
85: [07:10:21] * mobiusnz quit (Quit: Leaving.)
86: [07:18:03] * DesignerX quit (Read error: Connection reset by peer)
87: [07:29:48] * mobiusnz has joined #silverstripe
88: [07:31:40] * gelignite has joined #silverstripe
89: [07:38:02] * mobiusnz quit (Quit: Leaving.)
90: [08:00:59] * Hippie quit (Ping timeout: 264 seconds)
91: [08:28:42] * DigNZ has joined #silverstripe
92: [08:31:58] * DigNZ quit (Client Quit)
93: [09:11:53] * UncleCheese has joined #silverstripe
94: [09:12:37] <simon_w> NZ Wireless? Woosh still exists?
95: [09:12:57] * ben___ has joined #silverstripe
96: [09:12:59] <ben___> Hi
97: [09:13:00] <UncleCheese> Seriously, guys. What is with the sheep?
98: [09:13:04] <ben___> how are you
99: [09:13:19] <ben___> how to strip slashes from a tempalte view
100: [09:13:21] * ben___ is now known as Guest72804
101: [09:13:24] <simon_w> They're safe to keep next to train tracks? :p
102: [09:13:35] <Guest72804> how to strip slashes from a tempalte view
103: [09:13:43] <UncleCheese> If I didn't know better, I would think that sheep ruled this country
104: [09:13:51] <simon_w> Guest72804, where's it getting the slashes from to start with?
105: [09:13:56] <UncleCheese> They have clearly won the turf war.
106: [09:13:59] <simon_w> UncleCheese, nah, we're more of a dairy country
107: [09:14:07] <Guest72804> how to strip slashes from a tempalte view
108: [09:14:19] <Guest72804> for example a value come with /
109: [09:14:27] <Guest72804> how to remove this in a tempalte
110: [09:14:37] <UncleCheese> are you sure it's forward slashes?
111: [09:14:49] <UncleCheese> usually when people strip slashes, they're talking about backslashes
112: [09:14:52] <UncleCheese> for escaping
113: [09:15:03] <Guest72804> for escaping / from databse
114: [09:15:22] <Guest72804> there is a value $99/,0000
115: [09:15:33] <Guest72804> hoe t oremove / i ntempalte view
116: [09:16:13] <simon_w> Are you sure it's not $99\,000?
117: [09:16:27] <Guest72804> yes
118: [09:16:53] <simon_w> So, someone inputted $99/,000
119: [09:17:00] <Guest72804> yes
120: [09:17:10] <UncleCheese> isn't that a data entry issue?
121: [09:17:10] <simon_w> So, just input $99,000?
122: [09:17:11] <Guest72804> is there any inbuilt fucntion
123: [09:17:25] <Guest72804> in silverstripe 3.5
124: [09:19:40] <UncleCheese> why not just change the value to $99,000 instead of 99/,000?
125: [09:19:53] <UncleCheese> you're asking for a template function to correct a typo?
126: [09:19:57] <Guest72804> yes
127: [09:20:16] <UncleCheese> do you realize how strange that sounds?
128: [09:20:30] <simon_w> UncleCheese, you're going to have to start spelling correctly now :p
129: [09:20:56] <UncleCheese> $Content.CorectSpelling
130: [09:21:09] <Guest72804> silverstripe dont have a stripslah fucntionality
131: [09:21:24] <UncleCheese> what you're talking about isn't stripslash
132: [09:21:44] <UncleCheese> forward slashes don't need to be escaped
133: [09:21:46] <UncleCheese> only in regex
134: [09:21:51] <UncleCheese> maybe that's what you mean
135: [09:22:24] <Guest72804> is there any inbuilt function in silverstripe
136: [09:22:36] <UncleCheese> i'm not sure.. you're not providing a lot of information
137: [09:24:17] <Guest72804> like in php there are many function to strip slash
138: [09:24:39] <Guest72804> but in silverstripe ther is not a fucntion i mean
139: [09:24:47] <simon_w> strip_slashes() only strips backslashes
140: [09:24:52] <UncleCheese> forward slashes aren't strippable
141: [09:25:07] <simon_w> You have a forward slash
142: [09:29:29] * UncleCheese quit (Quit: UncleCheese)
143: [09:31:46] <Guest72804> forwaRD slash or ackward is ther a function
144: [09:32:08] <Guest72804> u dont anything i think in silvertsripe 3.5
145: [09:32:20] <Guest72804> any other users please
146: [09:32:43] <Guest72804> help me
147: [09:43:44] * gelignite quit (Quit: http://bit.ly/nkczDT)
148: [09:48:15] * Shrike_Finland quit (Quit: Leaving.)
149: [09:59:37] * Guest72804 quit (Quit: Page closed)
150: [10:01:22] * Shrike_Finland has joined #silverstripe
151: [10:12:58] * Shrike_Finland quit (Quit: Leaving.)
152: [10:46:25] * micmania1 has joined #silverstripe
153: [10:54:42] * metanat has joined #silverstripe
154: [11:00:14] * micmania2 has joined #silverstripe
155: [11:01:38] * swordsmanz quit (Quit: swordsmanz)
156: [11:03:26] * micmania1 quit (Ping timeout: 264 seconds)
157: [11:07:28] * inadream quit (Quit: Leaving)
158: [11:07:57] * Zauberfisch_ has joined #silverstripe
159: [11:10:38] * Zauberfisch__ quit (Ping timeout: 252 seconds)
160: [11:33:47] * metanat quit (Quit: Leaving.)
161: [11:41:50] * micmania2 quit (Ping timeout: 264 seconds)
162: [11:46:54] * swordsmanz has joined #silverstripe
163: [12:06:23] * onre quit (Ping timeout: 264 seconds)
164: [12:07:36] * onre has joined #silverstripe
165: [12:08:00] * onre is now known as Guest27556
166: [12:15:58] * micmania1 has joined #silverstripe
167: [12:52:36] * kerosene quit (Ping timeout: 256 seconds)
168: [13:05:36] * ARNHOE has joined #silverstripe
169: [13:11:11] * swordsmanz quit (Ping timeout: 264 seconds)
170: [13:30:58] * kerosene has joined #silverstripe
171: [14:29:42] * cloph_away has joined #silverstripe
172: [14:30:23] * cloph quit (Ping timeout: 264 seconds)
173: [14:31:48] * cloph_away quit (Remote host closed the connection)
174: [14:31:56] * cloph_away has joined #silverstripe
175: [14:42:23] * wmk quit (Ping timeout: 264 seconds)
176: [15:28:44] * ARNHOE quit (Remote host closed the connection)
177: [15:31:30] * farmingSkill has joined #silverstripe
178: [15:31:56] <farmingSkill> Hello SS community devs :)
179: [15:33:33] <farmingSkill> we received warning about PastMember cookie regarding EU Cookie law
180: [15:34:15] <farmingSkill> So I was curious if there is any way to disable it, since I read this cookie is not mandatory for webpage to function properly
181: [15:34:51] <farmingSkill> any answers / solutions are very welcome.
182: [15:46:08] * FrozenFire quit (Read error: Connection reset by peer)
183: [15:47:01] * FrozenFire has joined #silverstripe
184: [16:17:15] * FrozenFire quit (Read error: Connection reset by peer)
185: [16:20:32] * FrozenFire has joined #silverstripe
186: [16:22:41] * FrozenFire quit (Read error: Connection reset by peer)
187: [16:24:32] * FrozenFire has joined #silverstripe
188: [16:30:33] * SphereSilverNL has joined #silverstripe
189: [16:31:17] <SphereSilverNL> Oi, freenode works again!
190: [16:31:24] <SphereSilverNL> Goodevening folks!
191: [16:33:37] * SphereSilverNL quit (Remote host closed the connection)
192: [16:38:24] * SphereSilver has joined #silverstripe
193: [16:38:43] <SphereSilver> freenode closing connection. Annoying
194: [16:39:16] * kerosene quit (Ping timeout: 256 seconds)
195: [16:42:40] * micmania2 has joined #silverstripe
196: [16:44:11] * micmania1 quit (Ping timeout: 264 seconds)
197: [16:46:18] * kerosene has joined #silverstripe
198: [17:03:53] * Shrike_Finland has joined #silverstripe
199: [17:45:35] <SphereSilver> Could there be a reason Freenode is rejecting Chatzilla as a client?
200: [17:45:42] * SphereSilver is now known as SpherSilverNL
201: [18:05:04] * micmania1 has joined #silverstripe
202: [18:08:33] * micmania2 quit (Ping timeout: 276 seconds)
203: [18:15:25] * gumble has joined #silverstripe
204: [18:16:50] <gumble> I thought if I am on 127.0.0.1/shop/ page and make links like <a href="./show/$ID"> it should link to 127.0.0.1/shop/show/$ID or not? it links to 127.0.0.1/show/$ID for me
205: [18:20:25] <gumble> nm
206: [18:28:07] * micmania1 quit (Quit: Leaving)
207: [19:20:38] * chillu has joined #silverstripe
208: [19:20:39] * chillu quit (Client Quit)
209: [19:21:39] * [RojoD] has joined #silverstripe
210: [19:24:39] * RojoD- has joined #silverstripe
211: [19:27:24] * FrozenFire quit (Read error: Connection reset by peer)
212: [19:27:58] * [RojoD] quit (Ping timeout: 245 seconds)
213: [19:28:38] * RojoD- quit (Read error: Connection reset by peer)
214: [19:29:06] * FrozenFire has joined #silverstripe
215: [19:29:39] * [RojoD] has joined #silverstripe
216: [19:29:59] * [RojoD] quit (Read error: Connection reset by peer)
217: [19:30:41] <farmingSkill> does anyone have a clue how to disable or bypass SS's PastMember cookie?
218: [19:31:09] * [RojoD] has joined #silverstripe
219: [19:59:39] * [RojoD] quit (Read error: Connection reset by peer)
220: [20:00:39] * [RojoD] has joined #silverstripe
221: [20:05:09] * RojoD- has joined #silverstripe
222: [20:05:47] * gumble quit (Ping timeout: 248 seconds)
223: [20:06:39] * AlphaCactus quit (Read error: Connection reset by peer)
224: [20:07:06] * AlphaCactus has joined #silverstripe
225: [20:08:23] * [RojoD] quit (Ping timeout: 245 seconds)
226: [20:09:39] * [RojoD] has joined #silverstripe
227: [20:12:17] * RojoD- quit (Ping timeout: 240 seconds)
228: [20:20:38] * lerni has joined #silverstripe
229: [20:22:51] * [RojoD] quit (Read error: Connection reset by peer)
230: [20:36:40] * lerni quit (Remote host closed the connection)
231: [20:40:20] * gumble has joined #silverstripe
232: [20:40:41] * lerni has joined #silverstripe
233: [20:57:58] * micmania1 has joined #silverstripe
234: [21:01:01] <Shrike_Finland> Anyone awake?
235: [21:21:46] * lerni quit (Remote host closed the connection)
236: [21:22:12] * lerni has joined #silverstripe
237: [21:23:17] <micmania1> Shrike_Finland, partially.
238: [21:26:39] * lerni quit (Ping timeout: 256 seconds)
239: [21:27:54] * lerni has joined #silverstripe
240: [21:29:35] <lerni> Shrink_Finland: after barbecue weekend sleepy - yes!
241: [21:37:31] <Shrike_Finland> :D
242: [21:37:42] <simon_w> gumble, that's how it's supposed to work. You've got a <base> tag. Use $Link/show/$ID
243: [21:38:06] * simon_w isn't awake though :p
244: [21:39:19] <Shrike_Finland> Simon_w: could you help and see, what is wrong with my code: http://www.sspaste.com/paste/show/51d88dd9631ec
245: [21:40:09] <Shrike_Finland> Trying to make widget work without widgetarea and call it directly from template
246: [21:40:29] <simon_w> What's the point in line 3?
247: [21:41:11] <Shrike_Finland> to get the latest from latestTweetsWidget… I don't know, is there any point :D
248: [21:41:25] <simon_w> Don't you want it to be an assignment?
249: [21:42:04] <Shrike_Finland> I try to understand the idea from this example: "$widget->RssUrl = "http://feeds.feedburner.com/silverstripe-blog";"
250: [21:43:51] <Shrike_Finland> I try to get tweets from this widget: https://github.com/matt-bailey/silverstripe-widget-latesttweets
251: [21:44:02] <simon_w> $foo->LatestTweetsWidget::get()->filter(array("Title"=>"MyWidgetTitleHere"))->first();
252: [21:44:10] <simon_w> Look at the start of that
253: [21:44:41] <Shrike_Finland> Should I just return it?
254: [21:45:39] <simon_w> Well, to start with, that's a syntax error
255: [21:45:53] <simon_w> Think about what $foo-> is used for
256: [21:46:08] <simon_w> And about what you're actually trying to do here (assignment)
257: [21:51:01] <Shrike_Finland> Must be too tired, as I do not get it right...
258: [21:51:09] <simon_w> $foo = LatestTweetsWidget::get()->filter(array("Title"=>"MyWidgetTitleHere"))->first();
259: [21:54:21] <Shrike_Finland> :D
260: [21:55:11] <Shrike_Finland> Of coz… Is this even the way, how this kind of function should be created?
261: [21:55:55] <simon_w> I wouldn't filter on Title, but yeah
262: [22:00:53] <Shrike_Finland> I created additional pagetype for Widgets, as I do not want t add it on Page and I'm extending Page with Frontpage. Should I put the function on Frontpage, that it could work or do I have to put the WidgetArea on Page?
263: [22:04:20] <Shrike_Finland> To be more exact, I have WidgetOptions pagetype, where the WidgetArea is. It extends Page. I have Frontpage, which extends also Page. I created the function in WidgetOptions page, and renderWith("Frontpage"), call $testing on frontpage.ss -> not working
264: [22:05:54] <simon_w> Well, yeah. You're not on a WidgetOptions page, so the function doesn't exist
265: [22:06:02] <simon_w> You can put the function on Page
266: [22:21:20] <lerni> Shrink_Finland reawaking to go to bed right now :-) but now you got a expert on with simon but if you wana put it through template.. i've used and slightly tweaked (see forks) this one: github.com/tylerkidd/silverstripe-twitter-feed
267: [22:31:08] * mobiusnz has joined #silverstripe
268: [22:33:48] <Shrike_Finland> Ok, lemme check
269: [22:42:13] * lerni quit (Remote host closed the connection)
270: [22:42:21] * pex has joined #silverstripe
271: [22:42:23] <Shrike_Finland> I think the earlier approach does not work out of the box
272: [22:42:45] <Shrike_Finland> http://pastebin.com/hUBFj1bq
273: [22:43:50] <Shrike_Finland> If I call $FooBar on WidgetOptions template, nothing comes up, but Widgets heading
274: [22:50:59] * mobiusnz quit (Quit: Leaving.)
275: [23:00:20] * mobiusnz has joined #silverstripe
276: [23:03:38] * guzzlefry has joined #silverstripe
277: [23:04:08] <SpherSilverNL> First, why do you do a "new LatestTweetWidget()"
278: [23:04:11] <guzzlefry> $ composer create-project silverstripe/installer ./composer/ master-dev
279: [23:04:13] <guzzlefry> That fails with...
280: [23:04:14] <SpherSilverNL> second, what's the template?
281: [23:04:41] * gumble quit (Ping timeout: 256 seconds)
282: [23:04:51] <SpherSilverNL> with?...
283: [23:04:53] <guzzlefry> nevermind, I didn't read enough of the error output. :P
284: [23:05:56] <SpherSilverNL> now I'm curious about the error you got :P
285: [23:06:36] <Shrike_Finland> SpherSilverNL: well, I just checked it from here: https://github.com/silverstripe/silverstripe-widgets -> Extending and Customizing...
286: [23:07:00] <guzzlefry> Script php ./framework/cli-script.php dev/build handling the post-install-cmd event returned with an error
287: [23:07:25] <guzzlefry> Further up it says to add database credentials to _ss_environment.php
288: [23:07:32] <SpherSilverNL> _O-
289: [23:07:37] <SpherSilverNL> Let me quess...
290: [23:07:43] <SpherSilverNL> no db-credentials?
291: [23:07:46] <Shrike_Finland> SpherSilverNL: and I've tested it with different templates: renderwith forntpage etc.
292: [23:08:03] <guzzlefry> I guess? :P
293: [23:09:12] <Shrike_Finland> Do I need it? Well, dunno :)
294: [23:09:39] <Shrike_Finland> Basic idea was to use widget without widgetarea
295: [23:10:04] <SpherSilverNL> If you want a "widget" without a widgetarea... why not not use it?
296: [23:10:16] <SpherSilverNL> You can easily do the same with just a page/template control
297: [23:12:33] <SpherSilverNL> If I look at the readme from SS Widgets, it's quite outdated. You should use loop or with, don't use a new ClassName() etc.
298: [23:12:51] <SpherSilverNL> It should work, but it's ss2 syntax shown in the readme
299: [23:15:06] <Shrike_Finland> Becoz I'm extending many pages with different layouts and do not want to make admin screen too fulfilled… So I thought, I create one page to handle all widgets (which includes WidgetArea). That page is called WidgetOptions and is not shown on the site. But it is used to handle the widget options like Widget Title etc. Then I could call widgets what I need from template without adding widget area.
300: [23:20:21] * travis-ci has joined #silverstripe
301: [23:20:21] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#536 (3.1 - aee786b : Sam Minnée): The build passed.
302: [23:20:21] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/be311f72a5e3...aee786b22174
303: [23:20:21] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/8806814
304: [23:20:21] * travis-ci has left #silverstripe
305: [23:20:23] * MiniZeka has joined #silverstripe
306: [23:20:48] <MiniZeka> good evening everyone :)
307: [23:21:50] <MiniZeka> does anyone knows why I'm getting encoded html in model admin, although I added it to public static $casting as HTMLText?
308: [23:24:25] <guzzlefry> well this is interesting: "The requested URL /home/gus/public_html/composer/framework/main.php was not found on this server." The file is there. :P
309: [23:32:48] <SpherSilverNL> I think you should handle that via a central modeladmin or siteconfig Shrike_Finland
310: [23:33:15] <SpherSilverNL> HTMLText is supposed to store safe stuff in the database, doesn't it?
311: [23:34:38] <Shrike_Finland> SpherSilverNL: yep, that's step 2 and ModelAdmin might be a very good one for future cases...
312: [23:35:41] <guzzlefry> Any idea on why I get that 404?
313: [23:36:16] <MiniZeka> SpherSilverNL: are you talking about my problem?
314: [23:36:53] <SpherSilverNL> MiniZeka, partly ;)
315: [23:37:33] <SpherSilverNL> guzzlefry, main.php resides in /home/gus/public_html/framework/main.php or /home/gus/public_html/COMPOSER/framework/main.php?
316: [23:37:38] <MiniZeka> well, it isn't actually stored in database
317: [23:38:05] <SpherSilverNL> Ow, casting, my bad, didn't read it correctly ;)
318: [23:38:15] <guzzlefry> SpherSilverNL: the latter.
319: [23:38:23] <MiniZeka> since in database I have varchar field, and I want to display image based on that varchar
320: [23:38:40] <SpherSilverNL> what's in the varchar field?
321: [23:39:16] <MiniZeka> two letter country code
322: [23:39:29] <MiniZeka> and I want to make img tag out of it
323: [23:39:36] <SpherSilverNL> in the admin?
324: [23:39:39] <MiniZeka> yup
325: [23:40:04] <SpherSilverNL> And it's edible?
326: [23:40:15] <SpherSilverNL> ehm, I guess it's not edible
327: [23:40:23] <SpherSilverNL> but is it editable in the admin?
328: [23:40:28] <MiniZeka> no, not in EditForm
329: [23:40:45] <SpherSilverNL> Then why not make it a literalfield?
330: [23:41:04] <SpherSilverNL> Or am I completely off track on what you are trying to accomplish?
331: [23:41:15] <MiniZeka> not completely, just close
332: [23:41:42] <MiniZeka> I'm not talking about EditForm, I know how to do it there
333: [23:41:48] <MiniZeka> I'm talking about list
334: [23:41:49] <SpherSilverNL> ok :)
335: [23:42:00] <SpherSilverNL> you want to show an image in the gridfield?
336: [23:42:11] <MiniZeka> YES!
337: [23:42:19] <SpherSilverNL> ok, that's easy!
338: [23:42:30] <MiniZeka> enlighten mi please :)
339: [23:42:36] <MiniZeka> *me
340: [23:42:42] <SpherSilverNL> static $summary_fields = array('MyLanguageCodeFunction' => 'Language');
341: [23:43:16] <SpherSilverNL> public function MyLanguageCodeFunction(){ return "<img src="/image/".$this->languagecodethingy.".png />"; }
342: [23:43:26] <SpherSilverNL> something in the lines of that
343: [23:43:35] <SpherSilverNL> sorry, public function getMyLanguageCodeFunction()
344: [23:44:21] <SpherSilverNL> that should pretty much do it
345: [23:44:35] <MiniZeka> "should" is the keyword
346: [23:44:42] <SpherSilverNL> at least, that's what I did last time ;)
347: [23:44:55] <MiniZeka> that way it just returns content of the $this->Language
348: [23:45:10] <SpherSilverNL> really?
349: [23:45:14] <MiniZeka> yup
350: [23:45:17] <SpherSilverNL> whut? that's new tome
351: [23:45:55] <SpherSilverNL> (Sorry about my bad spelling and spacing, my keyboard is a bit refusing to work sometimes)
352: [23:46:32] <SpherSilverNL> http://www.silverstripe.org/general-questions/show/20136
353: [23:46:36] <SpherSilverNL> maybe that helps?
354: [23:47:13] <SpherSilverNL> and instead of returning an image object, returning a string, containing the actual img-tag
355: [23:47:21] <MiniZeka> my bad
356: [23:47:22] <MiniZeka> i
357: [23:47:33] <MiniZeka> it does return generated code
358: [23:47:37] <MiniZeka> but it's encoded
359: [23:48:13] <SpherSilverNL> try making the summary field raw
360: [23:48:29] <MiniZeka> so I can see HTML code for img tag, instead of image
361: [23:48:33] <SpherSilverNL> so, $summary_fields = array('LanguageImage.Raw' => 'Lang' );
362: [23:49:24] <SpherSilverNL> if that doesn't work
363: [23:49:43] <SpherSilverNL> have you tried letting the custom summary-function return an object of Image, with the correct Image-data in it?
364: [23:49:56] <MiniZeka> Fatal error: Call to a member function hasMethod() on a non-object
365: [23:50:31] <SpherSilverNL> That instantly explaines it, Gridfield escapes it, OR expects an object of type X
366: [23:50:32] <MiniZeka> that happens when I try to use .Raw
367: [23:51:00] <MiniZeka> it is a remote image, how can I create image object?
368: [23:51:05] <MiniZeka> or can I (at all)?
369: [23:51:15] <Shrike_Finland> I think it's time for sleep… 2:50 am...
370: [23:51:20] <SpherSilverNL> new Image(); $image->Title = 'yourtitle'; etc.
371: [23:51:27] <SpherSilverNL> Shrike_Finland, yeah, I should be in bed too :/
372: [23:51:53] <Shrike_Finland> catch you later, bye. And Thanx for help!
373: [23:51:59] <SpherSilverNL> no problem :)
374: [23:52:20] <SpherSilverNL> MiniZeka, I'm not an expert on gridfield, but I'm just trying to think along :)
375: [23:52:46] <MiniZeka> [Warning] Creating default object from empty value
376: [23:52:58] <MiniZeka> if I try new Image()
377: [23:53:10] <MiniZeka> I know how to fix it
378: [23:53:16] <SpherSilverNL> yeah, strict standards do that :/
379: [23:53:24] <MiniZeka> problem is I don't know how to reach GF
380: [23:53:26] <MiniZeka> in this case
381: [23:53:44] <SpherSilverNL> You can push config-data into a gridfield
382: [23:54:05] <MiniZeka> I don't know how to get to the gridfield from this point
383: [23:54:21] <SpherSilverNL> Is it in modeladmin?
384: [23:54:23] <MiniZeka> yes
385: [23:55:04] <SpherSilverNL> in your modeladmin class, make a function getEditForm(){ $form = parent::getEditForm(); }
386: [23:55:12] <SpherSilverNL> now, you have the gridfield at your control.
387: [23:55:29] <SpherSilverNL> Here's an example of how and what I do with the gridfields: https://github.com/Firesphere/silverstripe-newsmodule/blob/master/code/admins/NewsAdmin.php
388: [23:55:32] <SpherSilverNL> in modeladmin
389: [23:55:38] <SpherSilverNL> maybe it helps ;)
390: [23:56:42] <MiniZeka> yes, but it's in getEditForm
391: [23:56:49] <MiniZeka> I don't need that :)
392: [23:57:33] <MiniZeka> my best guess it that I need to do something in getList
393: [23:57:41] <MiniZeka> but I don't know what
394: [23:58:06] <SpherSilverNL> yeah, getList or getEditForm :)
395: [23:58:40] <MiniZeka> but how can I reach GF from getList?
396: [23:59:07] <SpherSilverNL> You can't I think, getList is AFTER the gridfield has been instantiated
397: [23:59:14] <SpherSilverNL> getList just get's the list of items
398: [23:59:24] <SpherSilverNL> heh, funny shortcode for GridField... "GF" :P

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