#silverstripe IRC Log

IRC log for 16 March 2015

All timestamps are in UTC.

1: [00:00:07] <Colin[pi]> :\
2: [00:00:21] <Colin[pi]> is it expected to make landfall?
3: [00:00:27] <antmas> I think so?
4: [00:00:40] <antmas> kind hard to tell
5: [00:00:54] <antmas> we're supposed to have heavy rain all day and so far it's sunny and hot :/
6: [00:01:15] <Colin[pi]> disappointed? Stomach was complaining too ;P
7: [00:01:53] <Colin[pi]> antmas: looks like it's tracking south east, but who knows how these things can change: http://www.ssd.noaa.gov/PS/TROP/floaters/17P/imagery/rb_lalo-animated.gif
8: [00:02:19] <antmas> I'd welcome rain, but wind can have a bag of nopes
9: [00:02:23] <Colin[pi]> lol
10: [00:02:33] <Colin[pi]> yeah I like my house where it is k thx
11: [00:02:58] <ss-helper> Re: ERR_INCOMPLETE_CHUNKED_ENCODING - http://www.silverstripe.org/community/forums/general-questions/show/101353#post400723
12: [00:05:10] <markcl> how do I redirect everything under a suburl?
13: [00:05:32] <Colin[pi]> markcl: .htaccess ?
14: [00:05:37] <markcl> lol
15: [00:05:41] <Colin[pi]> :D
16: [00:05:45] <markcl> I guess no Silverstripe way
17: [00:05:56] <Colin[pi]> well you could do it as part of the controller I spose
18: [00:12:30] * Stomach quit (Quit: zzz)
19: [00:14:27] * LoveDuckie quit (Read error: Connection reset by peer)
20: [00:25:47] <Hailwood> Is it normal for a very basic build via cli to take 83 seconds? and then a cli based flush=all to take 74 seconds?
21: [00:28:16] <markcl> Hailwood: if you have a sucky PC yes.
22: [00:28:47] <markcl> Actually, if the Silverstripe setup is very big, had a coworker that has a dev/build costing him 2 minutes.
23: [00:28:54] <markcl> Anyway, to make it faster, invest in a SSD
24: [00:28:55] <Hailwood> markcl, Well, it's running inside a vagrant machine.
25: [00:29:05] <Hailwood> markcl, That's my plan!
26: [00:29:09] <markcl> or you can put the dev site on a RAM disk
27: [00:29:40] * jghazally quit (Ping timeout: 272 seconds)
28: [00:29:42] <markcl> Well the RAM disk can be hundreds of times faster than an SSD
29: [00:29:54] <markcl> I sometimes use it if I need to TDD Silverstripe
30: [00:30:17] <markcl> TDD sucks on SS otherwise, tests finish in minutes due to having to load so many stuff.
31: [00:34:06] <Hailwood> markcl, Any chance you have a guide for setting up a ramdisk (linux) and getting ss (ideally still inside vagrant) running on it?
32: [00:35:26] <markcl> I don't =/
33: [00:35:43] <markcl> I made a bash script for it years ago
34: [00:35:59] <markcl> Don't know where it is anymore, since I upgraded to a flash Macbook
35: [00:36:03] <markcl> I haven't had the need
36: [00:36:38] * Stomach has joined #silverstripe
37: [00:56:04] * UncleCheese has joined #silverstripe
38: [00:57:47] * mobiusnz has joined #silverstripe
39: [01:01:32] * spronk2 quit (Quit: I may need a longer sleep timer...)
40: [01:03:43] * Tanger has joined #silverstripe
41: [01:07:35] * Sticks has joined #silverstripe
42: [01:10:53] <Tanger> Mornin'
43: [01:12:44] * Colin[pi] waves at Tanger
44: [01:13:11] <antmas> Tanger: o/
45: [01:19:58] * micmania1 has joined #silverstripe
46: [01:20:19] * Cheddam quit (Quit: Textual IRC Client: www.textualapp.com)
47: [01:20:50] * spronk2 has joined #silverstripe
48: [01:21:51] * spronk2 quit (Client Quit)
49: [01:23:39] * Cheddam has joined #silverstripe
50: [01:29:37] <ss23> antmas: did you find it?
51: [01:29:40] <ss23> yeah, you got it
52: [01:29:41] <ss23> :D
53: [01:30:34] <antmas> ss23: :)
54: [01:35:59] <Hailwood> I've extended the Image class to create LinkedImage. which is working fine, except any UploadFields that refer to a LinkedImage relation are only showing other LinkedImage File types rather than any Image File types when I select "From Files" how can I fix this?
55: [01:41:46] * Ryan-Toast quit (Quit: Ryan-Toast)
56: [01:42:40] <nontgor> Hailwood: How does 'LinkedImage' differ from the standard Image? I've seen issues in the distant path with extending versus using Extensions, I normally go for the latter
57: [01:44:34] <Stomach> yeah use extensions
58: [01:44:43] <Stomach> otherwise you can only see the type of image which it is
59: [01:44:44] * spronk2 has joined #silverstripe
60: [01:46:24] * Ryan-Toast has joined #silverstripe
61: [01:46:32] <Ryan-Toast> Hailwood: I’ve come accross that before, and would be interested if you come accross a solution.
62: [01:49:23] * Ryan-Toast quit (Client Quit)
63: [01:50:40] * Ryan-Toast has joined #silverstripe
64: [01:50:51] * markcl has left #silverstripe
65: [01:52:47] <Hailwood> nontgor, Stomach, the issue is that I only want a subset of the images to have these extra fields
66: [01:53:57] <nontgor> Hailwood: mmmm. Perhaps a flag that defaults to false and if set to true shows your extra fields #JustAnIdea #MightNotWork
67: [01:58:48] * markcl has joined #silverstripe
68: [02:00:44] <markcl> Hey guys!
69: [02:01:05] <Ryan-Toast> Hmm, my SS installation just seems to be showign the root files. .htaccess is in there… weird.
70: [02:01:16] <markcl> Any way to remove all spaces from text in the template without having to make a custom method for it?
71: [02:01:39] <markcl> Ryan-Toast: maybe you are not using apache?
72: [02:01:56] <Ryan-Toast> markcl: Apache/2.4.10 (Ubuntu)
73: [02:02:12] <markcl> maybe no mod-rewrite?
74: [02:04:11] <Ryan-Toast> markcl: Yeah, you’re right. mod-rewrite isn’t avaliable on the server.
75: [02:04:51] <Ryan-Toast> markcl: wait, no. It is avaliable
76: [02:10:14] * camfindlay quit (Quit: camfindlay)
77: [02:18:02] <nontgor> how do you remove a tab again in CMS field, forgotten
78: [02:18:23] <ss-helper> Re: ERR_INCOMPLETE_CHUNKED_ENCODING - http://www.silverstripe.org/community/forums/general-questions/show/101353#post400724
79: [02:18:55] <nontgor> should have googled, $fields->removeByName("TabName");
80: [02:19:14] * nontgor had removeTabByName
81: [02:20:08] <markcl> nontgor: no IDE auto complete?
82: [02:20:18] <Hailwood> In a template - $SomeImage.exists $SomeImage.Exists $SomeImage.exists() $SomeImage.Exists() ?
83: [02:20:32] <markcl> $SomeImage
84: [02:20:52] <markcl> <%if $SomeImage %> <% end_if %>
85: [02:21:33] <Hailwood> markcl, Oh, I though $SomeImage would return an empty Image object resulting in the If being true. guess not..
86: [02:22:02] <markcl> it will return an empty Image object resulting in the if being false. =/
87: [02:23:10] <Hailwood> markcl, I assume then that the silverstripe if is a bit smarter than the standard php if - I had assumed it was a simple boolean check
88: [02:24:05] <Ryan-Toast> Hailwood: I use $this->Image()->ID to check in controllers.
89: [02:27:44] <Hailwood> Ryan-Toast, I'm pretty sure that's what ->exists() does too
90: [02:46:06] * nontgor quit (Ping timeout: 246 seconds)
91: [02:47:23] <Ryan-Toast> ugh, I hate server shit
92: [02:54:19] * antmas quit (Ping timeout: 246 seconds)
93: [02:54:35] * camfindlay has joined #silverstripe
94: [02:55:07] * Colin[pi] has left #silverstripe
95: [02:59:53] * nontgor has joined #silverstripe
96: [03:02:38] <nontgor> markcl: Using Sublime so nope, haven't used IDEs for a long time
97: [03:11:48] <nontgor> markcl: Used to work with a guy who would do XSLT in Notepad!
98: [03:14:24] <zauberfisch> nontgor: yeah, why would one want to use a tool that makes you about 10 times as productive
99: [03:14:28] <zauberfisch> such nonsense those IDEs
100: [03:16:58] * Ryan-Toast quit (Quit: Ryan-Toast)
101: [03:18:32] * micmania1 quit (Quit: micmania1)
102: [03:22:11] * micmania1 has joined #silverstripe
103: [03:24:20] <Tanger> Vim is best IDE ;D
104: [03:30:06] <nontgor> zauberfisch: Not here to troll or argue, I've tried both and for me IDEs get in the way. Working at Catalyst for a couple of years kind of forced me to learn command line ways
105: [03:30:33] <nontgor> zauberfisch: I realise IDEs work for some people, command line/text editors for others
106: [03:33:37] <ss-helper> Help Installing with composer - http://www.silverstripe.org/community/forums/general-questions/show/101354
107: [03:33:56] <Hailwood> Hi guys, I have a pagetype that can only have a single instance in the site (this has been setup), what I want to do though is change the icon of the pagetype depending on a value of the page - any ideas where I would do this? I know *how* to update it, I just don't know where to stick the code.
108: [03:36:31] <Hailwood> $icon = MyPageType::get()->first()->IconValue; Config::inst()->update('MyPageType', 'icon', "mysite/images/{$icon}.png"); - maybe in _config.php?
109: [03:40:46] * Ryan-Toast has joined #silverstripe
110: [03:41:33] * Phlunk3 quit (Quit: Leaving)
111: [03:46:54] <Hailwood> Actually this question goes a bit beyond that - since you can't access DB values in _config.php this wouldn't work - so in SS is there anywhere you can stick random "after init" code?
112: [04:00:05] <spronk2> fucking anti-IDE people
113: [04:00:06] <spronk2> tards :P
114: [04:00:35] <spronk2> good IDE removes so much boilerplate from your job it makes you 10x faster. No reason why an IDE shouldn't work in with the best CLI tools either
115: [04:01:10] * mobiusnz quit (Quit: Leaving.)
116: [04:04:15] <nontgor> Hailwood: There is an onAfterInit extension hook in Controller/handleRequest but I'm not sure if that would be usable in your use case or not
117: [04:06:16] * Kingy[a] is now known as Kingy
118: [04:06:48] * Ryan-Toast quit (Quit: Ryan-Toast)
119: [04:08:23] * willr quit (Quit: willr)
120: [04:09:20] * Ryan-Toast has joined #silverstripe
121: [04:11:29] * jedateach quit (Ping timeout: 252 seconds)
122: [04:12:54] <zauberfisch> nontgor: I was here to troll :D
123: [04:13:15] <zauberfisch> nontgor: but I seriously can't understand why an IDE would not work for someone
124: [04:13:58] * Steve30 has joined #silverstripe
125: [04:14:02] <zauberfisch> and I say that as a linux user who normaly chooses commandline over a gui 9 out of 10 times
126: [04:14:30] <spronk2> the code navigability you get from a good IDE pays for itself in a matter of days
127: [04:14:37] <zauberfisch> yep
128: [04:14:49] * camfindlay quit (Quit: camfindlay)
129: [04:15:12] <spronk2> inline docs let me remember less mundane shit, save me 10 seconds here and there each time i need to look up docs, and let me remember more about the system design
130: [04:15:17] <zauberfisch> especially with a php and silverstripe. there are just so many inconsistent and/or wrongly documented apis
131: [04:15:39] <spronk2> mm
132: [04:15:40] <Steve30> Hi, I'm fairly new to SS...does someone has a hint how I can create a sidebar panel which content shows on every page and I can edit centralized? Maybe adding an extra navigation tab in the admin area for editing? Is there a mudule for it or a tutorial?
133: [04:15:50] <zauberfisch> but yeah, I guess every one is entitled to their own wrong opinion :D
134: [04:16:02] <spronk2> ive always used SS on IDEs, find it soooo difficult to use something like vim or sublime
135: [04:16:11] <spronk2> well.. difficult isn't the right word
136: [04:16:12] <spronk2> slow
137: [04:16:31] <zauberfisch> Steve30: a new menu entry in the cms would work. but its probably better/easier for you to just add it to siteconfig
138: [04:16:34] <spronk2> i always think about it as people who might ahve defended horses when cars came around
139: [04:16:48] <spronk2> "cars are faster"... "but they are more complicated and break down more often"
140: [04:16:55] <spronk2> "cars keep you warm" ... "but you can put on more clothes"
141: [04:17:00] <zauberfisch> Steve30: check out http://doc.silverstripe.org/en/developer_guides/configuration/siteconfig
142: [04:17:38] <Steve30> thanks, I check that out.
143: [04:17:54] <zauberfisch> Steve30: SiteConfig is that things in the CMS called "Settings"
144: [04:18:01] <spronk2> or yknow
145: [04:18:05] <spronk2> people trying to build a house without power tools
146: [04:18:06] <spronk2> why would you.
147: [04:18:38] <nontgor> spronk2: Bicycles are faster in Bangkok ;)
148: [04:19:00] <spronk2> only if you have to get around a few blocks :P
149: [04:19:11] <spronk2> which is the same notion for iDEs
150: [04:19:22] <spronk2> for tiny little code edits, yep, vim is probably quicker
151: [04:19:30] <zauberfisch> agreed
152: [04:19:30] * Hailwood quit (Quit: Leaving)
153: [04:19:41] <spronk2> if you actually have serious distance to cover, which you almost always do when building anythign of substance, an IDE will wipe the floor every single tie.
154: [04:19:43] <spronk2> time*
155: [04:20:24] <Steve30> @zauberfisch: I see, so when I extend the SiteConfig with e.g. a HTML text field, that's where I'll find it...
156: [04:20:46] <nontgor> Steve30: Example here, ignore the column fields and change Footer to SideBar or whatever name suits http://sspaste.com/paste/show/5506595e8cb57
157: [04:21:06] <nontgor> Steve30: Similar scenario but for text in the footer
158: [04:21:30] * micmania1 quit (Quit: micmania1)
159: [04:22:48] * veb quit (Quit: veb-irc: &)
160: [04:26:27] <markcl> So what IDE you guys use?
161: [04:26:30] <markcl> I came from Eclipse
162: [04:26:31] <magickpal> vim
163: [04:26:33] * mobiusnz has joined #silverstripe
164: [04:26:33] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
165: [04:26:34] <magickpal> and linux
166: [04:26:37] <spronk2> intellij atm
167: [04:26:38] <markcl> But then moved on to PhpStorm
168: [04:26:44] <markcl> I use vim too for on-ssh editing =P
169: [04:26:44] <magickpal> and chrome
170: [04:26:54] <spronk2> used to use zendstudio, and before that eclipse+PDT
171: [04:26:59] <magickpal> vim, fiddler, chrome
172: [04:27:07] <magickpal> perfect ladies
173: [04:27:14] <magickpal> or boys, if you prefer
174: [04:27:17] <spronk2> vim isn't an ide :p
175: [04:27:24] <magickpal> linux is an IDE however
176: [04:27:28] * micmania1 has joined #silverstripe
177: [04:27:31] <spronk2> nooo it isn't
178: [04:27:39] <spronk2> linux doesn't understand your source code in a meaningful way
179: [04:27:44] <magickpal> if you mean 'monolithic software is the only thing we can call an IDE
180: [04:27:51] <magickpal> the linux tools do
181: [04:27:58] <magickpal> git and syntastic for example
182: [04:28:02] <spronk2> and they don't integrate with eachother
183: [04:28:05] <spronk2> so, they aren't an IDE
184: [04:28:09] <magickpal> ss23 halp
185: [04:28:17] <magickpal> someones trying to tell me how to computer
186: [04:28:22] <spronk2> lawl.
187: [04:29:30] <markcl> the only thing I hate about Silverstripe in IDE is that the IDE does not autocomplete db's and has_ones
188: [04:29:40] <markcl> You have to add @property and @method for each of them =/
189: [04:29:45] <spronk2> i mean, you can spend years setting up ctags, and a tags database, and attempt to get some sort of navigability in the code
190: [04:29:55] <markcl> I want to make a tool that automatically does this but can't seem to find the time
191: [04:29:59] <spronk2> but that generally doesn't work very well with dynamic languages that rely on doc blocs for navigation
192: [04:30:09] <spronk2> i haven't found a vim solution that actually works with doc blocks either
193: [04:31:00] * mobiusnz quit (Client Quit)
194: [04:31:07] * Ryan-Toast quit (Quit: Ryan-Toast)
195: [04:31:26] <spronk2> then there's inline docs
196: [04:31:54] <spronk2> vimdoc is pretty archacic compared to what you get from any modern IDE
197: [04:31:58] <zauberfisch> intellij when on my desktop (linux). or vim when via ssh on some remote loaction
198: [04:32:14] <zauberfisch> sublime for minor stuff locally
199: [04:32:22] <spronk2> then there's other stuff like debugging integration, unit testing integration, code visualisation, refactoring support
200: [04:32:36] <spronk2> can't even get close with vim plugins to what you get from PHPStorm out of the box in those respects
201: [04:32:42] <zauberfisch> yep+
202: [04:32:58] <magickpal> we probably have different crutches by the sound
203: [04:33:06] <spronk2> i continue to try to get vim to work well
204: [04:33:22] <spronk2> and it's fine if i'm working on smaller bits and don't have to look around the code much
205: [04:33:23] <zauberfisch> I even use intellij for csv files instead of libre office :D
206: [04:33:41] <spronk2> more often than not if i'm doing any kind of remote editing i'll have a copy of the source locally open in intellij for nav & docs
207: [04:34:04] <zauberfisch> actuall silverstripe question:
208: [04:34:24] <zauberfisch> did >=3.1.10 stop locking for action templates or did I mess up something?
209: [04:34:40] <zauberfisch> as in, MyPage_someaction.ss is not used for MyPage->someaction
210: [04:34:43] <zauberfisch> :S
211: [04:35:05] * Stomach quit (Quit: zzz)
212: [04:36:01] <zauberfisch> ah
213: [04:36:05] <zauberfisch> son of a
214: [04:36:08] <zauberfisch> api change?
215: [04:36:22] <zauberfisch> it is actually some-action
216: [04:36:36] <zauberfisch> and now seems to look for some_actions
217: [04:36:39] <zauberfisch> -s
218: [04:37:28] <zauberfisch> well, easy enough to fix
219: [04:38:26] * Steve30 quit (Quit: Page closed)
220: [04:39:20] * Kingy is now known as Kingy[a]
221: [04:39:56] * glenn-bautista quit (Ping timeout: 265 seconds)
222: [04:44:42] * micmania1 quit (Quit: micmania1)
223: [04:45:42] * spronk2 quit (Quit: I may need a longer sleep timer...)
224: [04:48:50] <ss-helper> Re: counting items sold (database query question) - http://www.silverstripe.org/community/forums/e-commerce-modules/show/101278#post400726
225: [04:53:28] <ss23> magickpal: quick use your copmuter
226: [04:55:36] <zauberfisch> oh
227: [04:55:40] <zauberfisch> might actually be my fault
228: [04:58:26] <magickpal> too busy using phpstorm to edit text
229: [05:05:11] * wmk has joined #silverstripe
230: [05:44:54] <nontgor> Icon size needs fixed but an example of points of interest clustered on a google map, with full screen option also https://www.jakayanrides.com/route-finding/train-map-of-thailand
231: [05:45:18] <nontgor> and the https cert if using Firefox (one of the chain is out of date, forgot about that...)
232: [05:46:09] <nontgor> code here, other than full screen which I am still testing https://github.com/gordonbanderson/Mappable
233: [05:48:48] <nontgor> locations of points of interest all editable in SilverStripe on a google map, though in this case I imported from Open Street Map
234: [05:51:59] * r_hector has joined #silverstripe
235: [05:58:11] <wmk> nontgor, is the map inserted via shortcode?
236: [05:59:22] * veb has joined #silverstripe
237: [06:06:23] * benjhocking has joined #silverstripe
238: [06:16:01] <markcl> With regards to i18n
239: [06:16:14] <markcl> Should I use the silverstripe translatable module or the Tractorcow one?
240: [06:17:12] <markcl> So basically what are you guys' recommendation for internationalization, Silverstripe Translateable or Tractorcow's Fluent?
241: [06:17:35] <markcl> Anyone tried those and could lead me to which one is better?
242: [06:18:44] * Cheddam quit (Quit: Textual IRC Client: www.textualapp.com)
243: [06:29:42] <wmk> markcl, it's basically a matter of taste
244: [06:30:00] <wmk> if you need exactly the same site structure in all languages go for fluent
245: [06:30:19] <wmk> if you have different sitetree for each language you'll need translatable
246: [06:30:47] <wmk> fluent has urls like /en/path/to/my/page /de/pfad/zu/meiner/seite
247: [06:30:54] <wmk> with lang prefix
248: [06:32:58] <wmk> if your dataobjects / pages share a lot of data between languages (like images, relations etc..) fluent seems to be better as you can define the translated fields for each DO
249: [06:36:45] <wmk> if you have tons of languages, fluent might slow down a bit, cause all languages are stored in ONE table row
250: [06:39:07] * Sticks quit (Quit: Leaving)
251: [06:39:15] <Tanger> I'm perplexed! If I set my treedropdownfield name to '{relationName}ID' as opposed to '{relationName}', it suddenly goes readonly and sets the ID as the homepage
252: [06:40:41] * antmas has joined #silverstripe
253: [06:40:51] <antmas> morning all! o/
254: [06:41:32] <Tanger> Hey antmas
255: [06:42:02] <nontgor> "wmk> nontgor, is the map inserted via shortcode?" < no, it's a content type https://github.com/gordonbanderson/Mappable/blob/3.1/code/POIMapPage.php
256: [06:43:06] * kerosene is now known as tmro
257: [06:52:35] <wmk> nontgor, ok.
258: [06:53:08] <wmk> i once tried a mapable shortcode that inserts the pins by tag
259: [06:53:19] <wmk> i tagged my POIs...
260: [06:53:43] * mahfuz quit (Ping timeout: 246 seconds)
261: [06:54:25] <wmk> it shouldn't matter how's it inserted as long as we can map all controller action to the shortcode before rendering
262: [06:54:58] <Tanger> Hey, can anybody explain this? My treedropdownfield keeps defaulting to HomePage and gets set to read only
263: [06:59:18] * nontgor quit (Ping timeout: 256 seconds)
264: [07:01:57] * wmk quit (Ping timeout: 245 seconds)
265: [07:10:06] <markcl> How do you report typos on Silverstripe docs?
266: [07:11:39] * nontgor has joined #silverstripe
267: [07:13:27] * spronk2 has joined #silverstripe
268: [07:26:36] * markcl quit (Quit: Leaving.)
269: [07:28:43] * spronk2 quit (Quit: I may need a longer sleep timer...)
270: [07:33:58] * wmk has joined #silverstripe
271: [07:38:12] <wmk> !paste Tanger
272: [07:38:13] <ss-helper> Tanger: Please paste your code using something like http://kopy.io/ or http://www.sspaste.com/ or https://gist.github.com/ and then paste the link here.
273: [07:38:37] <wmk> i'm not a treedropdown expert, but without any code it's too difficult to find an answer, Tanger
274: [07:38:46] <Tanger> All fixed now. It was silly
275: [07:38:54] <Tanger> Well
276: [07:39:48] <wmk> what was causing the problem?
277: [07:42:31] <Tanger> http://www.sspaste.com/paste/show/550688ca7880f
278: [07:42:36] <Tanger> Not entirely sure
279: [07:42:53] <Tanger> But I swapped around the LinkTo and HeaderPage order in the $has_one
280: [07:42:57] <Tanger> And voila! It worked <_<
281: [07:43:13] <wmk> hmm....
282: [07:43:47] <wmk> maybe cause both has_one relations go to SiteTree
283: [07:43:50] <Tanger> I found a reference to it on SO, but the answer was pretty meh: http://stackoverflow.com/questions/23644561/page-dropdownfield-automatically-defaulting-to-parent-page-of-object-in-silverst
284: [07:43:53] <Tanger> Yeah
285: [07:44:08] <wmk> pretty meh?
286: [07:44:26] <Tanger> The guy answered his own question in very small detail
287: [07:44:39] <Tanger> But it seems along the same lines
288: [07:45:34] * wmk wonders what happens if you need two trees for both has_one relations
289: [07:45:45] <wmk> i think this is more like a bug in treedropdownfield
290: [07:45:59] <wmk> or the apple field of silverstripe: it wasn't designed to be used like this
291: [07:46:05] <wmk> *duck*
292: [07:47:16] <Tanger> Yeah
293: [07:47:43] <Tanger> I kinda wonder how SS determines which $has_one is a reverse relationship between a $has_many and a single object
294: [07:47:52] <Tanger> AFAIK, there's no naming convention it follows
295: [07:48:26] <wmk> i bet ->first()
296: [07:49:04] <wmk> good question....
297: [07:49:19] <wmk> from the has_one side it's easy, the has_many is tricky
298: [08:04:27] * elgabbu has joined #silverstripe
299: [08:09:38] * veb quit (Quit: veb-irc: &)
300: [08:18:22] * darjus01 has joined #silverstripe
301: [08:20:30] <darjus01> Hi all I have situation with swipestripe, in shop admin is atrributes view there you can add default atributes, but to get there you need to go to shop > shop setting -> edit attributes, Is any way to put that view to left side button on left side of admin?
302: [08:21:07] <darjus01> so I can get to edit attributes in one click
303: [08:28:36] * mobiusnz has joined #silverstripe
304: [08:31:20] * mobiusnz quit (Client Quit)
305: [08:36:23] <wmk> hmm...
306: [08:36:49] <wmk> darjus01, dunno if it's possible to add some deeper links on the leftandmain menu
307: [08:37:47] <darjus01> I just founded CMSMenu::add_menu_item
308: [08:38:05] <darjus01> I try and see if it works
309: [08:41:55] <wmk> ah, nice
310: [08:43:04] <wmk> played with groupedcmsmenu module last week, nice module to reorder and group the cms menu, darjus01
311: [08:50:28] <darjus01> ok thx for tips, wmk
312: [08:50:30] * r_hector quit (Quit: Leaving.)
313: [08:58:27] * kinglozzer has joined #silverstripe
314: [09:09:53] * Stomach has joined #silverstripe
315: [09:12:06] * swaiba has joined #silverstripe
316: [09:21:28] * GioVdK has joined #silverstripe
317: [09:24:53] <wmk> gmorning kinglozzer
318: [09:25:29] <kinglozzer> Morning wmk
319: [09:31:08] <swaiba> morning chaps
320: [09:40:47] <Guits> Can I use a silverstripe form to post to a custom url? (external or internal)
321: [09:44:19] <kinglozzer> Morning swaiba
322: [09:44:27] <kinglozzer> Guits: I think so, though I've never tried it
323: [09:44:53] <kinglozzer> $form->setFormAction('http://formsite.com/some-url');
324: [09:46:21] * Stomach quit (Quit: zzz)
325: [09:46:36] <zauberfisch> Guits: yes
326: [09:46:37] <zauberfisch> you can
327: [09:46:41] <zauberfisch> as kinglozzer said
328: [09:46:56] <Guits> thanx
329: [09:48:46] <Tanger> Woooh! Home! So I can work in the comfort of a glass of wine!
330: [09:49:17] <Tanger> And install vmail - Vim powered gmail! Exciting
331: [09:52:30] * Tanger quit (Quit: sleep())
332: [09:59:27] <wmk> is there an updated LegacyURLController around? like the one from ingo's great book
333: [09:59:58] * Pyl8k has joined #silverstripe
334: [10:00:20] <Pyl8k> TIL: 'Flexible hours' doesn't actually mean 'flexible'. It means 'Change your start time by prior arrangement only'
335: [10:00:29] <Pyl8k> :<
336: [10:00:40] <Pyl8k> Time to start turning up to work on time :(
337: [10:05:39] <kinglozzer> Anyone done SS on AWS? What sort of size instance do you go for? D:
338: [10:06:20] <swaiba> kinglozzer - didn't I contact you guys about AWS?
339: [10:06:38] <wmk> *G*
340: [10:10:49] <kinglozzer> swaiba: I thought that was just about SilverStripe development, not hosting?
341: [10:20:56] <wmk> nontgor, very impressed...
342: [10:27:10] <Pyl8k> It's cool isn't it wmk :>
343: [10:27:38] <wmk> Pyl8k, that Mappable module?
344: [10:27:55] <wmk> I'd say "rockt wie sau"
345: [10:28:36] <Pyl8k> wmk: yeah, the mappable
346: [10:28:55] <wmk> a great fork of a great module
347: [10:29:05] <wmk> much extra functoinality that extends the basic mappable interface.
348: [10:29:11] <Pyl8k> also wmk you made the comment last week that my module suite is kinda like lego. Yep, that's exactly what it's like: http://logs.simon.geek.nz/index.php?date=2013-09-18#log_1048879
349: [10:29:30] <Pyl8k> (intentionally :P)
350: [10:31:07] * DimiStripe has joined #silverstripe
351: [10:32:04] <Guits> I am working with TagField on frontent. How can I use it to save into many_many, as it only sends plain text?
352: [10:37:14] <kinglozzer> Guits: $tagField->saveInto($record);
353: [10:37:51] <kinglozzer> Or if you're in a form handler you might just do $form->saveInto($record);
354: [10:37:53] <Guits> ..on the form function?
355: [10:38:39] <wmk> hmm...
356: [10:38:40] <kinglozzer> Guits: It kinda depends on the form. If you want _all_ of the data from the form to be saved into one record, $form->saveInto($object); $object->write(); where $object is the DataObject you want to write the data to
357: [10:38:46] <wmk> normally it saves into the manymany automatically
358: [10:39:03] <kinglozzer> Otherwise, $form->Fields()->dataFieldByName('TagFieldName')->saveInto($object);
359: [10:43:50] <Guits> Can i pass $object through the form ..or just the ID
360: [10:49:30] <Pyl8k> strings.
361: [10:49:32] <Pyl8k> only strings.
362: [10:50:00] <Pyl8k> as per http
363: [10:54:27] * mento has joined #silverstripe
364: [10:57:57] <Guits> $form->Fields()->dataFieldByName('TagFieldName')->saveInto($object); does not save into the object
365: [10:58:28] <wmk> !paste Guits
366: [10:58:28] <ss-helper> Guits: Please paste your code using something like http://kopy.io/ or http://www.sspaste.com/ or https://gist.github.com/ and then paste the link here.
367: [10:58:48] <wmk> Guits, is your tagfieldbackend or frontend?
368: [10:58:57] <Guits> backends
369: [10:59:02] <Guits> sorry frontend
370: [10:59:52] <mento> whats the best way to put this text into a translation variable? <p>Type: <% if $CurrentUser.IsSellerAccount %>Seller<% else %>Buyer<% end_if %></p>
371: [11:00:35] <wmk> mento, three calls to _t
372: [11:01:01] <wmk> <p <%t Foo.TYPE 'Type' %>: <% if ...
373: [11:01:21] <mento> wmk: that seems to easiest way to do yes, isnt there a way to comebine it with the if else statement?
374: [11:01:30] <mento> Like in this example? <%t Member.WELCOME 'Welcome {name} to {site}' name=$Member.Name site="Foobar.com" %>
375: [11:01:43] <mento> not sure if it works with if / else statements or other calls
376: [11:01:44] <wmk> Guits, shouldn't matter... can you paste your class definition and where the Tagfield is defined
377: [11:01:54] <wmk> mento, best if you pass the if/else to the controller
378: [11:02:56] <wmk> mento <%t Type: {type} type=$CurrentUser.TypeName %>
379: [11:03:10] <wmk> and decorate $Member to return the translated TypeName
380: [11:03:37] * travis-ci has joined #silverstripe
381: [11:03:38] <mento> wmk: thanks, i'm going to pass the if else to the controller and have it run that way!
382: [11:03:38] <travis-ci> dhensby/silverstripe-framework#282 (pulls/absolute-url-fix - f568052 : Daniel Hensby): The build has errored.
383: [11:03:38] <travis-ci> Change view : https://github.com/dhensby/silverstripe-framework/compare/fcb1a0332050...f56805204418
384: [11:03:38] <travis-ci> Build details : http://travis-ci.org/dhensby/silverstripe-framework/builds/54551416
385: [11:03:38] * travis-ci has left #silverstripe

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