#silverstripe IRC Log

IRC log for 21 November 2016

All timestamps are in UTC.

1: [00:10:20] * micmania1 quit (Quit: micmania1)
2: [00:15:09] * jonlemmon has joined #silverstripe
3: [00:17:50] * darjusit has joined #silverstripe
4: [00:20:11] * jonlemmon_ has joined #silverstripe
5: [00:20:11] <ss-helper> jonlemmon_: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
6: [00:22:01] * jonlemmon quit (Ping timeout: 260 seconds)
7: [00:24:56] * jonlemmon_ quit (Ping timeout: 260 seconds)
8: [00:32:42] * micmania1 has joined #silverstripe
9: [00:44:24] * pweh has joined #silverstripe
10: [00:48:53] * DanaeNZ quit (Remote host closed the connection)
11: [00:49:28] * DanaeNZ has joined #silverstripe
12: [00:52:35] * micmania1 quit (Read error: No route to host)
13: [00:52:38] * micmania2 has joined #silverstripe
14: [00:52:39] * bubaphex has joined #silverstripe
15: [00:53:37] * DanaeNZ quit (Ping timeout: 240 seconds)
16: [00:54:32] * DanaeNZ has joined #silverstripe
17: [00:55:05] <Admonish> MAn I keep forgetting what the global variable is in SS to access the root directory of the install
18: [00:55:19] <Admonish> Is it BASE_PATH or something else
19: [00:59:24] <Admonish> Oh wait, I think i found it base
20: [00:59:25] * bubaphex quit (Quit: bubaphex)
21: [01:00:11] <Admonish> Director::baseFolder()
22: [01:01:32] * Azure quit (Read error: Connection reset by peer)
23: [01:06:05] * Azure has joined #silverstripe
24: [01:08:55] * bubaphex has joined #silverstripe
25: [01:09:08] <pippy> https://github.com/otago/tiles
26: [01:09:17] <pippy> https://github.com/otago/moodle
27: [01:09:22] <pippy> I open sourced some modules
28: [01:14:36] * darjusit quit (Quit: Leaving)
29: [01:22:54] <Nightjar> Admonish, no global variable. A static method or a defined constant. Global variable is $project and maybe $database
30: [01:23:18] <Nightjar> tiles look interesting pippy :)
31: [01:26:23] * bubaphex quit (Quit: bubaphex)
32: [01:28:44] * pweh quit (Ping timeout: 260 seconds)
33: [01:38:32] * bubaphex has joined #silverstripe
34: [01:39:00] * chillu_23 has joined #silverstripe
35: [01:40:45] * muskie9 has joined #silverstripe
36: [01:41:41] * bubaphex quit (Client Quit)
37: [01:44:06] * bubaphex has joined #silverstripe
38: [01:50:53] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
39: [01:51:49] * Stomach quit (Quit: zzz)
40: [01:55:14] * Navid_ has joined #silverstripe
41: [01:55:14] <ss-helper> Navid_: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
42: [01:57:20] <Navid_> Hi all Experts! I have created a contact us form with three fields i.e. Name, Email, Message in silverstripe and it is working fine. I am rendering it as $ContactForm which is rendering the Label and Field automatically.
43: [01:58:04] <Navid_> I want to render the fields without labels and customizing the order
44: [01:59:00] * UncleCheese has joined #silverstripe
45: [02:05:12] <Admonish> Does anyone know if silvertripe uses the composers autoload.php file by default? Im trying to use some composer php libraries but im having issues
46: [02:12:36] <micmania2> Admonish: yep, it does
47: [02:16:06] <Admonish> micmania2: Im not very knowledgable in regards to php autoloading, but if SS is using the autoloader shouldn't that mean I should be able to access any of the libraries installed in the vendor folder
48: [02:16:51] <micmania2> Admonish: yep, you should. Double check that the class names and namespaces are correct?
49: [02:17:57] <Admonish> micmania2: k
50: [02:24:07] <UncleCheese> Any NZ'ers know anything about this "Skinny Direct" mobile? seems too good to be true
51: [02:28:07] <Admonish> micmania2: oh woops, I was missing a use method/function/whatever its called
52: [02:30:04] <Admonish> UncleCheese: wow, I see what you mean. Not sure if its lagit
53: [02:30:14] <UncleCheese> yeah, it's crazy
54: [02:30:26] <UncleCheese> i'm sure, being skinny, it's no frills
55: [02:30:29] <UncleCheese> but.. that's ok
56: [02:30:44] <UncleCheese> they're kind of the Ryan Air of telcos
57: [02:32:36] <Admonish> UncleCheese: yeah I was looking through the FAQ and it says that its powered by the guys at skinny mobile (which I have personally never heard of) so I guess you would have to check how long that business has been running and what its reputation is.
58: [02:32:55] <UncleCheese> you're never heard of skinny?!
59: [02:33:07] <UncleCheese> big SS site
60: [02:34:09] <UncleCheese> just confused about the "direct" part.. i don't get that
61: [02:34:10] <Nightjar> Navid_, to change the order just change the order they're defined in code.
62: [02:34:18] <Admonish> UncleCheese: I must admit that I don't actually look around at SS powered sites that often ;)
63: [02:35:02] <UncleCheese> oh they don't want you to have to look.. they promote the hell out of them
64: [02:35:08] <UncleCheese> LOOK, IT USES PLATFORM
65: [02:36:14] <Admonish> UncleCheese: lol yeah I guess. As for the direct part, it looks like you can only sign up for it online. By doing so they cut out the middle man supposidly
66: [02:36:18] <pippy> if you go to /admin on their site they call it "CRM Internal Tool"
67: [02:36:19] <Admonish> Skinny Direct is just that. Direct. You can only sign up online. You can’t get this offer in stores. Because we’ve taken out the middle man, we can save money, and we’ve passed these savings on to you in the form of super rich Combos - packed with calling and data!
68: [02:36:43] <Admonish> UncleCheese: thats an quote from there website
69: [02:36:46] <UncleCheese> so, ryan air
70: [02:37:14] <Nightjar> <UncleCheese> Any NZ'ers know anything about this "Skinny Direct" mobile? seems too good to be true
71: [02:37:18] <UncleCheese> although, to be fair, even Air NZ charges me to talk to a human
72: [02:37:34] <Admonish> lol
73: [02:37:35] <Nightjar> UncleCheese, know nothing about it, other than that last bit you said is usually (ultimately/eventuallyt) "because it is"
74: [02:38:23] * vitaly___ quit (Quit: Leaving...)
75: [02:41:09] <Nightjar> Navid_, http://api.silverstripe.org/3.4/class-FormField.html#_setFieldHolderTemplate is one way to not render the <label> tag.
76: [02:43:36] * bubaphex quit (Quit: bubaphex)
77: [02:43:36] * Robin has joined #silverstripe
78: [02:43:36] <ss-helper> Robin: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
79: [02:43:43] * pippy_ has joined #silverstripe
80: [02:44:52] * chillu_23 quit (Ping timeout: 260 seconds)
81: [02:44:54] * chillu_2323 has joined #silverstripe
82: [02:45:26] <Robin> Hi, I need to connect to an external database, I have an ODBC connection available to me, is there a Silverstripe solution I can use for this or am I better to code this myself?
83: [02:46:23] * bubaphex has joined #silverstripe
84: [02:47:51] * pippy quit (Ping timeout: 260 seconds)
85: [02:54:56] * pippy_ quit (Quit: Page closed)
86: [02:55:41] * bubaphex quit (Quit: bubaphex)
87: [03:04:24] * Kolin quit (Ping timeout: 258 seconds)
88: [03:05:03] * Kolin has joined #silverstripe
89: [03:13:16] <Admonish> micmania2: Hey micmania I was wondering if you happen to know if there is a way to manually create DataLists similiarly to ArrayLists. I ask because I am trying to create a custom ss_List for the PickerField (module) to use but It needs methods that only exist on the DataList Class.
90: [03:14:55] <Admonish> micmania2: Worst case scenario, I can try creating a custom arrayList subclass and add in the methods from the DataList. But I'm hoping there might be a better way
91: [03:15:00] <UncleCheese> what methods do you need from data list?
92: [03:15:04] <UncleCheese> you can only create datalist from a query
93: [03:15:38] <Admonish> the dataQuery() method
94: [03:15:52] <Admonish> :(
95: [03:16:22] <Admonish> and of course any of the methods that that method would call
96: [03:17:06] * Stomach has joined #silverstripe
97: [03:17:31] <Admonish> hmm looking at the code, that method is pretty simple
98: [03:20:30] * helenclarko quit (Ping timeout: 258 seconds)
99: [03:20:54] <Admonish> Ill check the Pickerfield Module code sto see if thats the only method it needs that is spacific to Datalist. I must say that I was a bit disapointed that the arrayList didnt work right off the bat.
100: [03:21:19] <Admonish> It is an SS_List subclass after all
101: [03:21:42] * marco__ has joined #silverstripe
102: [03:21:42] <ss-helper> marco__: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
103: [03:24:12] * HD|Laptop quit (Ping timeout: 252 seconds)
104: [03:25:32] * jonlemmon has joined #silverstripe
105: [03:31:52] * bubaphex has joined #silverstripe
106: [03:31:56] * chillu_2323 quit (Quit: chillu_2323)
107: [03:33:13] <Admonish> Im looking more into why the pickerField needs a datalist and moreover what parts it needs, but in the mean time I will ask this question
108: [03:34:10] <Admonish> Can someone look at my small code snippet http://pastebin.com/WnrxPd7B and see if I can somehow use the ORM to create a datalist countaining the same data.
109: [03:35:47] <Admonish> Basically I have a has_one rlationship in a class called StoreItem. I would like to retrive the related record. But not for just one StoreItem but for all of them
110: [03:35:48] * marius has joined #silverstripe
111: [03:36:17] <Admonish> Basically getting the latest version of every store item to display
112: [03:38:37] * chillu_23 has joined #silverstripe
113: [03:39:11] * jonlemmon quit (Ping timeout: 260 seconds)
114: [03:39:46] <Nightjar> Admonish, are you sure they're on the DataList class, not just implementations of interfaces for Lists?
115: [03:39:58] * bubaphex quit (Quit: bubaphex)
116: [03:40:18] <Nightjar> Oh, DataQuery
117: [03:40:23] <Admonish> yepper
118: [03:40:40] <Nightjar> well that's kinda the whole point of DataList. You might consider the alterDataQuery method if you want at it.
119: [03:40:48] <Nightjar> (or something like that)
120: [03:40:54] <Admonish> whats that?
121: [03:41:25] <Nightjar> also, not sure what you're after, you haven't explained very well. Sounds like you just want StoreItem::get()
122: [03:42:01] <Admonish> Sorry I will try to explain better
123: [03:43:14] * Stomach quit (Quit: zzz)
124: [03:43:58] * bubaphex has joined #silverstripe
125: [03:44:07] * chillu_23 quit (Quit: chillu_23)
126: [03:44:55] * bubaphex quit (Client Quit)
127: [03:45:12] <Admonish> So basically I have two classes. StoreItem and StoreItemVersion. Each StoreItem has a has_many DB relationship to StoreItemVersion (called Versions) and a has_one relationship to storeItemVersion that only contains the latest version. I want to get all the store items most recent version
128: [03:45:14] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
129: [03:45:19] * chillu_23 has joined #silverstripe
130: [03:45:36] <Nightjar> Sounds like you should have just applied Versioned to your StoreItem.
131: [03:45:39] <Nightjar> :>
132: [03:45:39] <Admonish> This is how I accomplished that with ArrayList
133: [03:45:42] <Admonish> http://pastebin.com/WnrxPd7B
134: [03:46:09] <Admonish> ...
135: [03:46:10] <Admonish> oh
136: [03:46:37] <Nightjar> but since you're here already
137: [03:46:50] <Admonish> lol...wow
138: [03:47:04] <Admonish> I feel stupid
139: [03:47:17] <Admonish> scratch that, I am stupid
140: [03:47:33] <Nightjar> StoreItem::get()->filter('ID' => StoreItemVersion::get()->Column('StoreItemID')->toArray())
141: [03:48:22] <Nightjar> or you could do StoreItem::get()->LeftJoin(...)->filter()
142: [03:48:36] <Nightjar> I think if you search docs there is a way to get the has_ones of a relation
143: [03:48:41] <Nightjar> err, api docs.
144: [03:49:02] <Nightjar> not 100% on that, but yeh.
145: [03:49:25] <Nightjar> That all said Admonish - Versioned isn't a silver bullet. It's not always that easy to deal with itself.
146: [03:49:37] <Admonish> could you breakdown what your first code snippit is doing
147: [03:49:40] <Nightjar> But would hopefully ease some of your pain.
148: [03:50:17] <Nightjar> it makes 2 queries. One to get the ID's of all the related items ('live' version). Then it gets all the items, by those IDs.
149: [03:50:37] <Nightjar> may not be 100% correct, typed from top of my head.
150: [03:50:44] <Admonish> And yeah your right, I should have looked at versioned. Im so used to another cms we uesd to use. It never had a class for that so we had to make do
151: [03:50:45] <Nightjar> api docs will help you out.
152: [03:51:23] <Admonish> totally slipped my mind that SS already has versioning
153: [03:52:22] <Admonish> Hopefully I will find a good reason why versioned wouldn't work for my situation. Otherwise I'm going to be kicking myself for a long time over this
154: [03:52:48] <Nightjar> Happens to us all ;)
155: [03:54:18] <Admonish> I suppose so. Any way thanks for all your help. I will go ahead and look more into thh stuff you have suggested
156: [03:54:36] <Nightjar> remember Admonish - http://api.silverstripe.org/3.4/
157: [03:54:37] <Nightjar> :)
158: [03:55:07] <Admonish> right :D
159: [03:55:30] <Nightjar> ciao
160: [03:55:31] * Nightjar quit (Quit: Leaving)
161: [03:56:09] * tony_ has joined #silverstripe
162: [03:56:09] <ss-helper> tony_: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
163: [03:57:16] * Stomach has joined #silverstripe
164: [03:57:34] * DanaeNZ quit (Remote host closed the connection)
165: [03:57:44] * tony_ quit (Client Quit)
166: [03:58:11] * DanaeNZ has joined #silverstripe
167: [03:59:46] * Admonish quit (Ping timeout: 252 seconds)
168: [04:03:03] * DanaeNZ quit (Ping timeout: 268 seconds)
169: [04:07:44] * DanaeNZ has joined #silverstripe
170: [04:11:16] * Navid_ quit (Ping timeout: 260 seconds)
171: [04:12:11] * pweh has joined #silverstripe
172: [04:13:42] * chillu_23 quit (Quit: chillu_23)
173: [04:18:12] * micmania2 quit (Quit: micmania2)
174: [04:19:33] * marius quit (Remote host closed the connection)
175: [04:22:54] * pweh is now known as gitgud90210
176: [04:24:33] * Admonish has joined #silverstripe
177: [04:24:40] * frieda has joined #silverstripe
178: [04:24:40] <ss-helper> frieda: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
179: [04:28:38] * frieda quit (Remote host closed the connection)
180: [04:35:11] * Robin quit (Ping timeout: 260 seconds)
181: [04:48:09] * gitgud90210 is now known as pweh
182: [05:08:44] <Admonish> so I used the DataList leftJoin() method to join two tables together. But Im wondering what the ORM equivilent is for table.* in sql
183: [05:10:37] <Admonish> oh...wait a minute...Im using leftJoin which means...Forget it
184: [05:10:44] <Admonish> pretend that you heard nothing
185: [05:25:06] <Firesphere> But I /did/ read something
186: [05:32:59] * muskie9 quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
187: [05:33:18] * muskie9 has joined #silverstripe
188: [05:37:49] * muskie9 quit (Ping timeout: 260 seconds)
189: [05:53:33] * DanaeNZ quit (Remote host closed the connection)
190: [05:54:10] * DanaeNZ has joined #silverstripe
191: [05:58:17] * DanaeNZ quit (Ping timeout: 240 seconds)
192: [06:04:00] * hewp has joined #silverstripe
193: [06:04:04] * pweh quit (Ping timeout: 260 seconds)
194: [06:10:48] * Shrike_Finland has joined #silverstripe
195: [06:18:45] * Admonish quit (Ping timeout: 248 seconds)
196: [06:43:33] * UncleCheese has joined #silverstripe
197: [06:44:51] * Stomach quit (Quit: zzz)
198: [06:54:56] * hewp quit (Ping timeout: 260 seconds)
199: [07:00:02] * Admonish has joined #silverstripe
200: [07:09:47] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
201: [07:13:40] * Admonish quit (Ping timeout: 250 seconds)
202: [07:46:32] * wmk has joined #silverstripe
203: [07:50:05] * Shrike_Finland quit (Quit: Leaving.)
204: [08:06:05] * Shrike_Finland has joined #silverstripe
205: [08:20:51] <Shrike_Finland> Good morning
206: [08:21:17] <wmk> Moin
207: [08:24:13] * darianno has joined #silverstripe
208: [08:24:21] * Admonish has joined #silverstripe
209: [08:26:10] * marco__ quit (Quit: Verlassend)
210: [08:27:24] <Shrike_Finland> I have a news page and news items. I set general value in news page (Show Author) and when opening the item (with NewsItem), is it possible to check the value from page?
211: [08:28:54] <Shrike_Finland> Like <% if $ShowValue == 1 %>, but as the value is not set in Item itself, I think it can not be done this way
212: [08:46:02] <wmk> Shrike_Finland, inside a <% loop %> ?
213: [08:46:13] <wmk> Use $Up.ShowValue
214: [08:46:48] <Shrike_Finland> Jep, inside loop -> testing
215: [08:48:00] * hewp has joined #silverstripe
216: [08:49:05] <Shrike_Finland> Actually $Top.ShowValue worked!
217: [08:49:50] <wmk> Top is top level, $Up is one level up
218: [08:49:58] <wmk> So both should work, yes
219: [08:58:07] * chillu_23 has joined #silverstripe
220: [08:58:23] * chillu_23 quit (Client Quit)
221: [09:11:15] * Admonish quit (Remote host closed the connection)
222: [09:12:54] <wmk> is there a ready-to-use module for uploading videos and embedding them in a page?
223: [09:41:57] * Shrike_Finland quit (Quit: Leaving.)
224: [09:55:35] * DanaeNZ has joined #silverstripe
225: [09:59:48] * DanaeNZ quit (Ping timeout: 250 seconds)
226: [10:08:42] * cupcake has joined #silverstripe
227: [10:12:14] * Shrike_Finland has joined #silverstripe
228: [10:13:02] * Shrike_Finland1 has joined #silverstripe
229: [10:15:56] <ss-helper> Re: Giving a greater Role to Silverstripe Sake - https://groups.google.com/d/msg/silverstripe-dev/p312W8Qh2fM/gIxtt_oNBwAJ
230: [10:15:57] <ss-helper> Giving a greater Role to Silverstripe Sake - https://groups.google.com/d/msg/silverstripe-dev/p312W8Qh2fM/y7aMw2cNBwAJ
231: [10:16:22] * Shrike_Finland quit (Ping timeout: 244 seconds)
232: [10:17:07] * darjusit has joined #silverstripe
233: [10:25:45] * UncleCheese has joined #silverstripe
234: [10:30:57] <ss-helper> Re: [silverstripe-dev] Re: Giving a greater Role to Silverstripe Sake - https://groups.google.com/d/msg/silverstripe-dev/p312W8Qh2fM/bX6IFO0OBwAJ
235: [10:30:57] <ss-helper> Re: [silverstripe-dev] Re: Giving a greater Role to Silverstripe Sake - https://groups.google.com/d/msg/silverstripe-dev/p312W8Qh2fM/CPriV20OBwAJ
236: [10:30:57] <ss-helper> Re: Giving a greater Role to Silverstripe Sake - https://groups.google.com/d/msg/silverstripe-dev/p312W8Qh2fM/vHveO2kOBwAJ
237: [10:31:14] <lerni> wmk: https://github.com/nathancox/silverstripe-embedfield
238: [10:31:46] <lerni> used it a while back and was OK
239: [10:32:19] <wmk> just for external videos or can you upload directly to the site?
240: [10:33:11] <lerni> ...is intended for services like youtube or vimeo -> oembed
241: [10:33:43] <wmk> ok. I'd need it for uploading videos easily to the page and show it. ATM no resizing / converting
242: [10:34:03] <lerni> generate tumbnails / stillimages ?
243: [10:34:34] <wmk> guess no. Though this feature would be great.
244: [10:34:54] <lerni> so why not just use uploadField?
245: [10:36:03] <wmk> well, "like image in htmleditor would be great(tm)"
246: [10:56:13] * wmk quit (Ping timeout: 268 seconds)
247: [11:09:56] * Shrike_Finland1 quit (Quit: Leaving.)
248: [11:11:29] * Shrike_Finland has joined #silverstripe
249: [11:14:39] * hewp is now known as pweh
250: [11:18:06] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
251: [11:24:24] * agent44 has joined #silverstripe
252: [11:31:08] <darjusit> Hi all
253: [11:33:29] <darjusit> if MyPage extends not Page but SiteTree, ant in themes/mytheme/templates/MyPage.ss I will put html template1 codes and csses $Layout var will pass same css files in inner pages?
254: [11:57:46] * swaiba has joined #silverstripe
255: [12:51:55] <lerni> swaiba: did you progress with image-xml-sitemaps?
256: [12:52:11] <swaiba> hi lerni!
257: [12:52:24] <swaiba> and no further progress using ss seo modules
258: [12:52:39] <swaiba> I keep meaning to do some stuff I promised the cyberduck guys
259: [12:54:44] <lerni> I wonder if I can incorporate https://support.google.com/webmasters/answer/178636?hl=en into wilr/silverstripe-googlesitemaps
260: [12:55:06] <swaiba> lerni the image sitemap is already in some seo modules for ss...
261: [13:00:17] * DanaeNZ has joined #silverstripe
262: [13:03:37] <lerni> swaiba: do you know which?
263: [13:03:59] <lerni> https://www.irccloud.com/pastebin/GhpViFqn/
264: [13:04:30] <lerni> orgh new irc-client is doing funny things :)
265: [13:04:44] <lerni> https://github.com/Cyber-Duck/Silverstripe-SEO
266: [13:05:14] <lerni> swaiba: I would like the stuff from the cyberduck guys working with wilr/silverstripe-googlesitemaps
267: [13:13:09] * pweh quit (Read error: Connection reset by peer)
268: [13:22:39] <swaiba> lerni then take it :) I'm only going to add to the cyber duck one in the future (maybe)
269: [13:23:42] * UndefinedOffset has joined #silverstripe
270: [13:27:34] * cloph quit (Remote host closed the connection)
271: [13:30:49] * cloph_away has joined #silverstripe
272: [13:33:11] * cloph_away is now known as cloph
273: [13:40:39] <lerni> swaiba: looks like you just have to GoogleSitemap::register_dataobject "Image" and fiddle a bit with the xml-template :)
274: [13:44:11] <slievr> I didn't know cyber-duck used SS
275: [14:14:13] * Shrike_Finland quit (Quit: Leaving.)
276: [14:18:43] * kinglozzer has joined #silverstripe
277: [14:27:30] * agent44 quit (Quit: agent44)
278: [14:33:46] * agent44 has joined #silverstripe
279: [14:37:04] * janneklouman-- has joined #silverstripe
280: [15:18:52] * swaiba quit (Remote host closed the connection)
281: [15:19:27] <darjusit> on using Fluent, is it possible to get all locales in array?
282: [15:20:07] * helenclarko has joined #silverstripe
283: [15:22:52] * Shrike_Finland has joined #silverstripe
284: [15:22:58] <darjusit> on using Fluent, is it possible to get all locales in array in controller?
285: [15:35:36] * Shrike_Finland quit (Quit: Leaving.)
286: [15:35:44] * DanaeNZ quit (Ping timeout: 260 seconds)
287: [15:48:20] <slievr> darjusit: If you're refering to this https://github.com/tractorcow/silverstripe-fluent
288: [15:49:07] <slievr> There is a static method on fluent called locales. so you could call Fluent::locales(); in your controller
289: [15:54:48] <darjusit> but controller must extend page controller?
290: [16:08:32] * Shrike_Finland has joined #silverstripe
291: [16:41:28] * Shrike_Finland quit (Quit: Leaving.)
292: [16:45:38] * UndefinedOffset quit (Quit: Leaving.)
293: [17:02:12] <slievr> Shouldn't have to
294: [17:25:03] * kinglozzer quit (Remote host closed the connection)
295: [17:25:12] * kinglozzer has joined #silverstripe
296: [17:25:20] * kinglozzer quit (Remote host closed the connection)
297: [17:25:46] * kinglozzer has joined #silverstripe
298: [17:30:25] * kinglozzer quit (Ping timeout: 265 seconds)
299: [17:30:38] * UndefinedOffset has joined #silverstripe
300: [17:59:37] * Shrike_Finland has joined #silverstripe
301: [18:01:55] * agent44 quit (Quit: zzz)
302: [18:05:37] * DimiStripe quit (Quit: DimiStripe)
303: [18:25:46] * kinglozzer has joined #silverstripe
304: [18:28:35] <darjusit> in framework there is form fields templates, is it possible rewrite it in theme, not touching the framework files?
305: [18:33:10] * kinglozzer quit (Ping timeout: 252 seconds)
306: [18:47:26] * Stomach has joined #silverstripe
307: [18:52:55] * janneklouman-- quit (Ping timeout: 256 seconds)
308: [19:05:39] * Stomach quit (Quit: zzz)
309: [19:11:46] * Stomach has joined #silverstripe
310: [19:29:18] * kinglozzer has joined #silverstripe
311: [19:32:38] * DanaeNZ has joined #silverstripe
312: [19:34:51] * kinglozzer quit (Ping timeout: 256 seconds)
313: [19:35:43] * janneklouman-- has joined #silverstripe
314: [19:36:04] * Shrike_Finland quit (Quit: Leaving.)
315: [19:36:48] * DanaeNZ quit (Ping timeout: 246 seconds)
316: [19:42:35] * bubaphex has joined #silverstripe
317: [19:42:35] * bubaphex quit (Client Quit)
318: [19:44:16] * bubaphex has joined #silverstripe
319: [19:52:20] * UncleCheese has joined #silverstripe
320: [19:59:31] * DanaeNZ has joined #silverstripe
321: [20:02:09] * micmania1 has joined #silverstripe
322: [20:02:15] * micmania1 quit (Client Quit)
323: [20:30:29] * janneklouman-- quit (Ping timeout: 248 seconds)
324: [20:30:54] * kinglozzer has joined #silverstripe
325: [20:34:17] * janneklouman-- has joined #silverstripe
326: [20:35:47] * micmania1 has joined #silverstripe
327: [20:36:30] * kinglozzer quit (Ping timeout: 256 seconds)
328: [20:47:50] * Stomach quit (Quit: zzz)
329: [20:53:01] * bubaphex quit (Quit: bubaphex)
330: [20:57:25] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
331: [21:01:12] * agent44 has joined #silverstripe
332: [21:01:28] * Stomach has joined #silverstripe
333: [21:01:48] * bubaphex has joined #silverstripe
334: [21:02:23] <ss-helper> Re: [silverstripe-dev] Re: Giving a greater Role to Silverstripe Sake - https://groups.google.com/d/msg/silverstripe-dev/p312W8Qh2fM/mXPrQfEwBwAJ
335: [21:03:01] <darjusit> in fluent to get in controller all locales its easy Fluent::locales() if it extends page. how to get all locales from fluent in dataObject?
336: [21:03:10] <darjusit> any one tried?
337: [21:08:58] * bubaphex quit (Quit: bubaphex)
338: [21:11:24] * micmania1 quit (Quit: micmania1)
339: [21:12:15] <UndefinedOffset> darjusit: purely based on what you put here (I don't have direct experiance with Fluent), if Fluent::locales() is defined as static then it should work anywhere
340: [21:13:46] <darjusit> in have tested in controllers that not extends page controller not working. when i try with DO i will know then :)
341: [21:14:51] * bubaphex has joined #silverstripe
342: [21:15:45] * micmania1 has joined #silverstripe
343: [21:17:25] * Nightjar has joined #silverstripe
344: [21:21:29] <darjusit> UndefinedOffset: maybe you know if its possible to edit form fields templates not touching framework/templates/forms/ files?
345: [21:23:56] * bubaphex quit (Quit: bubaphex)
346: [21:27:24] <Nightjar> darjusit, copy them into either your theme, or your project.
347: [21:27:56] <darjusit> folder forms needed in my theme?
348: [21:28:01] <Nightjar> They obey the natural order of templates, same as all others ;)
349: [21:28:09] <Nightjar> Sure.
350: [21:28:25] <darjusit> Nightjar: my thx :)
351: [21:28:31] <Nightjar> That'll make it easier to understand your theme :)
352: [21:29:42] <Nightjar> Template priority always follows:
353: [21:29:43] <darjusit> yes my projects have 2 themes one is form user interface and other for website front so this help me a lot :)
354: [21:30:01] * UndefinedOffset quit (Quit: Leaving.)
355: [21:30:04] <Nightjar> checking each and going to the next only if a template doesn't exist there
356: [21:30:58] <darjusit> thx
357: [21:30:59] <Nightjar> Project -> current (sub-)Theme -> Module -> >error<
358: [21:32:06] * kinglozzer has joined #silverstripe
359: [21:35:06] * bubaphex has joined #silverstripe
360: [21:35:06] * bubaphex quit (Client Quit)
361: [21:35:09] * samsam has joined #silverstripe
362: [21:35:26] * bubaphex has joined #silverstripe
363: [21:35:55] * bubaphex quit (Client Quit)
364: [21:36:23] <samsam> so, when you create a modeladmin with 2 managed models ($managed_models=array('product','category'); you can display them in two seperate gridfields right?
365: [21:36:27] <samsam> on the same modeladmin page
366: [21:37:42] * kinglozzer quit (Ping timeout: 256 seconds)
367: [21:53:48] * UncleCheese has joined #silverstripe
368: [21:55:10] <samsam> alright I found the answer, seperate gridfields it is, as expected.
369: [21:55:41] <samsam> Anyone has a link to an article where it's explained how to get multiple models in a modeladmin page sorted in ONE tab instead of SEPERATE ones?
370: [22:08:30] * bubaphex has joined #silverstripe
371: [22:09:34] * bubaphex quit (Client Quit)
372: [22:10:12] * Stomach quit (Quit: zzz)
373: [22:15:26] <ss-helper> SilverStripe ModelAdmin with single tab - http://stackoverflow.com/questions/40730269/silverstripe-modeladmin-with-single-tab
374: [22:33:32] * kinglozzer has joined #silverstripe
375: [22:38:36] * kinglozzer quit (Ping timeout: 268 seconds)
376: [22:49:31] * samsam quit (Ping timeout: 260 seconds)
377: [22:51:53] * Stomach has joined #silverstripe
378: [22:53:29] * Stomach quit (Read error: Connection reset by peer)
379: [22:54:07] * Stomach has joined #silverstripe
380: [23:00:01] * ss-helper quit (Remote host closed the connection)
381: [23:00:14] * ss-helper has joined #silverstripe
382: [23:04:47] * bubaphex has joined #silverstripe
383: [23:11:34] * bubaphex quit (Quit: bubaphex)
384: [23:34:38] * kinglozzer has joined #silverstripe
385: [23:39:16] * kinglozzer quit (Ping timeout: 260 seconds)
386: [23:51:33] * bubaphex has joined #silverstripe
387: [23:53:51] * Stomach quit (Quit: zzz)

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