#silverstripe IRC Log

IRC log for 13 January 2013

All timestamps are in UTC.

1: [00:33:00] * ARNHOFF quit (Read error: Connection reset by peer)
2: [00:42:00] * DesignerX has joined #silverstripe
3: [01:05:00] * ugly_duck quit (Quit: Leaving)
4: [01:09:00] * simon_w has joined #silverstripe
5: [01:11:00] * Zauberfisch quit (Ping timeout: 246 seconds)
6: [01:20:00] * C10ne_ quit (Ping timeout: 245 seconds)
7: [01:22:00] * Zauberfisch has joined #silverstripe
8: [01:26:00] <simon_w> ss23, FINE THEN.
9: [01:46:00] * Emil_Blume quit (Read error: No route to host)
10: [01:46:00] <DesignerX> simon_w: hi & happy new year
11: [02:03:00] <DesignerX> hi, Using ModelAdmin , trying to show the ID os an object as a read only , this code Does Not make it read only ? any error in my code ? $ID_ReadOnly = new NumericField('ID');
12: [02:03:00] <DesignerX> $ID_ReadOnly->setReadonly(true);
13: [02:10:00] <DesignerX> willr_: ah ty,
14: [02:10:00] <willr_> DesignerX - $fields->makeFieldReadonly('ID')
15: [02:17:00] <willr_> Welcome back simon_w. Enjoy your flight
16: [02:17:00] <simon_w> Oh, I'm not really back. xchat just opens automatically on this computer
17: [02:18:00] * liar3switch2 has joined #silverstripe
18: [02:19:00] * liar3switch quit (Ping timeout: 248 seconds)
19: [02:19:00] <willr_> Well back as in on the right side of the world
20: [02:20:00] <willr_> but wheres the fun in that.
21: [02:20:00] <willr_> I'm not really back either, I should still be on a beach in Thailand according to my work leave form...
22: [02:23:00] <DesignerX> willr_: lolz , "wheres the fun in that" :D
23: [02:32:00] <DesignerX> How can I make a field unique ? I want Title to be unique on MyDataObject . Cant remember or find how to do it :(
24: [02:38:00] * liar3switch2 quit (Quit: Nettalk6 - www.ntalk.de)
25: [02:39:00] <DesignerX> found it , using static $indexes = array(
26: [02:44:00] <ss23> simon_w: Did you have lots of fun? :D
27: [02:44:00] <ss23> simon_w: :D <3
28: [02:53:00] * BPower has joined #silverstripe
29: [02:53:00] <BPower> Hey all!
30: [02:54:00] <BPower> I'd like to include HTML in my $Field->setDescription() --- is there any built-in way to do this? I saw that setDescription itself doesn't allow it, but maybe there's a special Field Type?
31: [02:59:00] <BPower> Got it! setRightTitle will do the trick. Not quite sure what the difference is between setDescription and setRightTitle other than HTML. Wouldn't it be better to have just one: setDescription($description,$hasHtml=false)?
32: [03:00:00] * Error404NotFound quit (Disconnected by services)
33: [03:00:00] * Err404NotFound has joined #silverstripe
34: [03:03:00] * Emil_Blume has joined #silverstripe
35: [03:14:00] * pippy quit (Read error: Connection reset by peer)
36: [03:18:00] * gelignite quit (Quit: http://bit.ly/nkczDT)
37: [03:32:00] * BPower quit (Quit: Ex-Chat)
38: [04:12:00] * FrozenFire is now known as FrozenFire[afk]
39: [04:24:00] * Err404NotFound quit (Quit: User guilty of hitting the Big Red X...)
40: [04:46:00] * cloph_away has joined #silverstripe
41: [04:48:00] * cloph_away1 quit (Ping timeout: 276 seconds)
42: [04:51:00] * FrozenFire[afk] is now known as FrozenFire
43: [05:06:00] * BPower has joined #silverstripe
44: [05:08:00] <BPower> Aaand I'm back. How do I get more details from Admin errors? All it says is "Warning at line 47 of [file_name]". Looking in my error log turns up nothing.
45: [05:09:00] <simon_w> Look at the response from the server
46: [05:15:00] <FrozenFire> How was your trip?
47: [05:15:00] <simon_w> Good
48: [05:15:00] <FrozenFire> simon_w, Hey there
49: [05:16:00] <simon_w> Ah, fun things
50: [05:16:00] <FrozenFire> Questions I needed answered that I couldn't get an answer one
51: [05:16:00] <FrozenFire> on**
52: [05:16:00] <FrozenFire> I've developed a new-found appreciation for you these past few days
53: [05:16:00] <FrozenFire> :P
54: [05:16:00] <FrozenFire> Been doing some out-of-the-ordinary shit with SS lately for client projects
55: [05:16:00] <simon_w> Having to deal with more questions?
56: [05:16:00] <simon_w> Haha :p
57: [05:17:00] <FrozenFire> My productivity plummets
58: [05:17:00] <FrozenFire> :P
59: [05:17:00] <simon_w> I'm leaving on Wednesday
60: [05:17:00] * FrozenFire commences Vader-esque NNNNNNOOOOOOOO
61: [05:17:00] <FrozenFire> Never leave again
62: [05:18:00] <BPower> Thanks simon_w -- Didn't think of that.
63: [05:19:00] <FrozenFire> One question I did have that I've had to hack around was the use of ancestor-oriented relations
64: [05:19:00] <FrozenFire> Say I have CartItem as a has_many, and then extend it with CartItem_CatalogItem and so on
65: [05:20:00] <simon_w> ->filter('ClassName', 'CartItem_CatalogItem')?
66: [05:20:00] <FrozenFire> Which is, of course, woefully inefficient
67: [05:20:00] <FrozenFire> I can't seem to get and filter just the CartItem_CatalogItem items in the list by the descendant fields
68: [05:20:00] <FrozenFire> I ended up splitting it into multiple has_many relations, and having a virtual has_many which just fetches all of the other has_many's and merges them into an ArrayList
69: [05:21:00] <simon_w> the get should
70: [05:21:00] <FrozenFire> And doing a manual innerJoin doesn't seem to work
71: [05:21:00] <FrozenFire> But that won't join the descendant's table, sfaik
72: [05:21:00] <FrozenFire> Nope
73: [05:22:00] <FrozenFire> I'm wanting to filter on the descendants' fields
74: [05:22:00] <FrozenFire> Gets filtered out by SQLQuery or something, because I'm not fetching the descendant specifically
75: [05:22:00] <FrozenFire> I can sort of understand why it's an awkward query
76: [05:22:00] <simon_w> That should make the fields lazy loaded
77: [05:22:00] <FrozenFire> Because the same fields will not exist on all items
78: [05:23:00] <FrozenFire> But that seems iffy for stability
79: [05:23:00] <FrozenFire> If I could alter the fetched modelClass on the has_many for that call, that would do it fine.
80: [05:23:00] <simon_w> I had lots of fun doing that
81: [05:23:00] <simon_w> Ah, right
82: [05:23:00] <FrozenFire> CartItem_CatalogItem has ItemID and MediumID, but CartItem doesn't.
83: [05:24:00] * Emil_Blume quit (Quit: Leaving.)
84: [05:25:00] <simon_w> So, it should be doing a left join
85: [05:26:00] <FrozenFire> Inner
86: [05:27:00] <simon_w> It should left join all the child classes' tables
87: [05:27:00] <simon_w> inner would only be if you're going against the child class
88: [05:27:00] <FrozenFire> They're essentially equivalent in this scenario, given the right set of where clauses, but it's definitely inner
89: [05:28:00] <FrozenFire> Well, yeah. I guess we're talking about two scenarios.
90: [05:28:00] <FrozenFire> The other, getting all items of the ancestor
91: [05:28:00] <FrozenFire> One being getting all items where the class is the child
92: [05:29:00] <simon_w> Well, the easiest way is basically the opposite of what you're doing
93: [05:30:00] <simon_w> So, have the one has_many, then have different methods that return new HasManyList(childClass, hasOneField)
94: [05:33:00] <FrozenFire> So HasManyList doesn't require a bunch of screwing around?
95: [05:33:00] <FrozenFire> Ah
96: [05:34:00] <FrozenFire> Thanks, that's my solution, then
97: [05:34:00] <simon_w> nah
98: [05:35:00] <FrozenFire> That being said, in my other scenario, that being I want all items in that relation, regardless of it being a descendant or not, is there a way to handle that?
99: [05:35:00] <FrozenFire> If I'm not mistaken, it gets it where ClassName = "Ancestor", no?
100: [05:36:00] <FrozenFire> Ah, okay
101: [05:36:00] <FrozenFire> GridField edit buttons stacking weird as well?
102: [05:36:00] <FrozenFire> BPower, Let me guess, menu items stacking weird?
103: [05:36:00] <FrozenFire> BPower, Could always just screenshot
104: [05:36:00] <FrozenFire> Ah, good
105: [05:36:00] <BPower> Gah! Anyone willing to screenshare w/ me? SS Admin is doing some weird stuff - it's consistently inconsistent.
106: [05:36:00] <simon_w> ClassName doesn't get filtered on unless you're adding it
107: [05:36:00] <BPower> FrozenFire, nope - it's in the interaction, not the display
108: [05:37:00] <BPower> actually it wouldn't capture it at all.
109: [05:37:00] <BPower> a screenshot wouldn't quite capture it
110: [05:37:00] <BPower> ah - I'm on 3.0.3
111: [05:37:00] <FrozenFire> Probably a result of my higher-resolution monitor (big viewport)
112: [05:37:00] <FrozenFire> I've just had never-ending problems with 3.1 and its navigation menus
113: [05:37:00] <FrozenFire> Also a weird artefact on ModelAdmin's model menu, iirc
114: [05:39:00] * simon_w doesn't use the CMS so he's no help
115: [05:39:00] <simon_w> Also, on holiday so screw looking it up :p
116: [05:40:00] <FrozenFire> Heh
117: [05:41:00] <BPower> Sad.
118: [05:43:00] <BPower> :-P
119: [05:43:00] <BPower> correction....
120: [05:43:00] * BPower is sad.
121: [05:46:00] <BPower> oops
122: [05:46:00] <BPower> Y
123: [05:46:00] <BPower> Y'all know when Ingo typically gets online?
124: [05:49:00] <FrozenFire> He's German, iirc
125: [05:49:00] <FrozenFire> In which case, it's 6:49 a.m. right now
126: [05:52:00] <BPower> yep
127: [05:52:00] <simon_w> on a Sunday
128: [05:54:00] <BPower> figured out the issue. apparently file_get_contents will throw an error (warning) if it get a 404. Suppress errors, problem solved.
129: [05:54:00] <BPower> I already handle 404s/500s etc - don't need the additional error.
130: [06:08:00] * willr_ quit (Quit: willr_)
131: [06:08:00] <DesignerX> How can make some text fields to be "sortable /draggable" on my page ? something like how UserDefinedForm work with its Form .
132: [08:02:00] * C10ne has joined #silverstripe
133: [08:12:00] * ChairyOnehouse has joined #silverstripe
134: [08:33:00] * BPower quit (Quit: Ex-Chat)
135: [08:36:00] * Error404NotFound has joined #silverstripe
136: [08:37:00] <C10ne> anybody using UncleCheese's contact form module? I keep getting 404 when I submit the form
137: [08:51:00] <FrozenFire> http://jqueryui.com/draggable/
138: [08:51:00] <FrozenFire> DesignerX, You mean, on your front-end?
139: [08:52:00] <FrozenFire> Specifically the last example
140: [08:52:00] <FrozenFire> Sortable
141: [09:57:00] <C10ne> Anyone using translatable?
142: [10:17:00] * Shrike_Finland quit (Quit: Leaving.)
143: [10:23:00] * Shrike_Finland has joined #silverstripe
144: [10:27:00] * gelignite has joined #silverstripe
145: [10:30:00] <DesignerX> FrozenFire: for the backend
146: [10:32:00] <DesignerX> FrozenFire: have u used User Defined from module ? you can create a custom form & reorder fields .
147: [10:40:00] * Shrike_Finland quit (Read error: Connection reset by peer)
148: [10:45:00] * Shrike_Finland has joined #silverstripe
149: [11:04:00] <C10ne> Is there a way to set a prefic for form action? I'm having trouble with form submission and translatable + LanguagePrefix module...
150: [11:04:00] <C10ne> *prefix
151: [11:15:00] * SightUnseen has left #silverstripe
152: [11:15:00] * SightUnseen has joined #silverstripe
153: [11:19:00] * C10ne quit (Ping timeout: 245 seconds)
154: [11:47:00] * chillu has joined #silverstripe
155: [12:06:00] * zfmf has joined #silverstripe
156: [12:07:00] * Shrike_Finland quit (Quit: Leaving.)
157: [12:12:00] * liar3switch has joined #silverstripe
158: [12:14:00] * Error404NotFound quit (Ping timeout: 272 seconds)
159: [12:27:00] * Error404NotFound has joined #silverstripe
160: [12:34:00] * Error404NotFound quit (Ping timeout: 260 seconds)
161: [12:47:00] * Error404NotFound has joined #silverstripe
162: [12:59:00] * Error404NotFound quit (Ping timeout: 240 seconds)
163: [14:06:00] * priithansen has joined #silverstripe
164: [14:10:00] * Error404NotFound has joined #silverstripe
165: [14:11:00] <liar3switch> does anybody know why uploadfield does not work with $has_one relations?
166: [14:12:00] <DesignerX> it works *
167: [14:12:00] <DesignerX> liar3switch: hi, SS3 ? it wors for me so far .. what error u get ?
168: [14:13:00] <liar3switch> and if i use $has_one
169: [14:13:00] <liar3switch> sometimes the images are not shown in backend
170: [14:13:00] <liar3switch> DesignerX: yes, ss3
171: [14:13:00] <liar3switch> the reference mentions it as currently not working
172: [14:14:00] <DesignerX> there is something wrong in the upload sometimes , when u upload the files doesnt get uploaded or doesnt show up . To fix this I always create & save my page/object before uploading a file
173: [14:15:00] <liar3switch> i tried that too and it didn't work either
174: [14:16:00] <DesignerX> liar3switch: ok, take me through step by step & paste what code u have .
175: [14:18:00] <liar3switch> ok, give me some minutes..
176: [14:19:00] <liar3switch> oh, sorry, now i see, i didn't mean $has_one relations, but $has_many
177: [14:20:00] <liar3switch> the reference mentions, to use $many_many instead
178: [14:20:00] <DesignerX> kk ig MyPage has_many MyImage u also need MyImage has_one Mypage
179: [14:21:00] <DesignerX> liar3switch: other option : MyImage is an object which has a has_one relation to Image
180: [14:21:00] <liar3switch> there is mentioned:
181: [14:21:00] <liar3switch> yes, but look at http://doc.silverstripe.org/framework/en/reference/uploadfield
182: [14:21:00] <DesignerX> note sure if this will be helpful in your case
183: [14:22:00] <DesignerX> ah ok,
184: [14:22:00] <liar3switch> WARNING: Currently the UploadField doesn't fully support has_many relations, so use a many_many relation instead!
185: [14:23:00] <DesignerX> it makes sense, a file/image can be attached to other pages too , so many_many sounds correct
186: [14:23:00] <liar3switch> yes, but not if you don't want the image to be attached to other pages (or in my case dataobjects)
187: [14:25:00] <liar3switch> i wanted to create a simple image gallery where every album has its own assets folder, and therefore there should be no image in one folder attached to another album
188: [14:26:00] <DesignerX> liar3switch: not sure if u can do that
189: [14:27:00] * Zauberfisch quit (Ping timeout: 246 seconds)
190: [14:28:00] <DesignerX> liar3switch: Which ever relation u use, has_one , has_many or many_many , I dont think u can stop a file from being attached to other objects
191: [14:29:00] <DesignerX> liar3switch: but, there is a work around ,, are u here to hear it ?
192: [14:29:00] <liar3switch> yes
193: [14:30:00] <liar3switch> yes
194: [14:30:00] <DesignerX> kk, you have each albume uploading all files to a spesific folder ?
195: [14:31:00] <DesignerX> then remove the "From Files" button on the upload fields so they cant attach other files, they can onley add new files or remove exisiting
196: [14:32:00] <DesignerX> this will keep your albums soreted but the file can be linked to from other objects/pages
197: [14:32:00] <liar3switch> yes, that would be plan b if plan a (if from files is used, copy them to the new directory) failes
198: [14:33:00] * zfmf has left #silverstripe
199: [14:33:00] <DesignerX> so instead of using "From Files" to link to an exiting file, U need to duplicate that file & relocate
200: [14:33:00] <DesignerX> I think plan A will fail unless u know how to modify the UploadField buttons
201: [14:33:00] <liar3switch> my main intention is, to make the relation between folder and gallery album to a normal user as clear as possible
202: [14:33:00] <liar3switch> i thought maybe i find a hook somewhere
203: [14:34:00] * zfmf has joined #silverstripe
204: [14:34:00] <DesignerX> I have something like this where the Folder name changes according to the ObjectTitle
205: [14:35:00] * ChairyOnehouse quit (Ping timeout: 246 seconds)
206: [14:35:00] <liar3switch> yes, but that's not really the problem, at least at the moment
207: [14:36:00] <DesignerX> there is no "fix" for has_one problem, only solution is to use many_many ..
208: [14:37:00] <liar3switch> should be: gallery has many images and images has one gallery
209: [14:37:00] <liar3switch> is: gallery many many images and images belong many many galleries
210: [14:38:00] <liar3switch> that would work if uploadfield gets fixed
211: [14:38:00] <DesignerX> can i see your code ?
212: [14:40:00] <liar3switch> gallery album: http://www.sspaste.com/paste/show/50f2c73898779
213: [14:40:00] <liar3switch> image as extension: http://www.sspaste.com/paste/show/50f2c765b5864
214: [14:40:00] <DesignerX> line 11 is wrong
215: [14:40:00] <liar3switch> at the moment i have the is-version, not the should-be-version
216: [14:41:00] <DesignerX> 1st, I would subclass instead of extending
217: [14:42:00] <DesignerX> kk
218: [14:42:00] <liar3switch> sorry, that was my hasty trial to recover the not working version here is the working version with many many http://www.sspaste.com/paste/show/50f2c79bb0788
219: [14:42:00] * lx-berlin has joined #silverstripe
220: [14:43:00] <liar3switch> but for this problem it makes no difference if extended or subclassed
221: [14:43:00] * Zauberfisch has joined #silverstripe
222: [14:43:00] <liar3switch> no, i'm extending because i explizitly want (see plan a) to find other images in upload dialog
223: [14:44:00] <DesignerX> ok, so the "problem" is you dont want the same file to be atatched to other album
224: [14:46:00] <DesignerX> liar3switch: no need for $coverUploadField->getValidator()->setAllowedExtensions(array('jpg', 'jpeg', 'png', 'gif')); that is done automatically when u relate to Image class
225: [14:47:00] <liar3switch> thanks
226: [14:50:00] <liar3switch> yes, i don't want the same file to be attached to other class, but because at the moment the uploadfield does not support has_one on image site i can not stop other galleries from using the belong_many_many as intended
227: [14:51:00] <DesignerX> liar3switch: true
228: [14:52:00] <DesignerX> but this dones stop other classes from accessing & attaching the same file,..
229: [14:52:00] <DesignerX> so our only option is "not" giving them the option to attach other files ? if you want them to upload the files & not link to an existing one , why not remove the "from files" button ?
230: [14:54:00] <DesignerX> ->setFolderName($this->Folder()->Title);
231: [14:54:00] <DesignerX> liar3switch: Idea : make GalleryAlbum has_one folder
232: [14:55:00] <DesignerX> now for each image attached , check of $Image->ParentID = $this->Folder()->ID ... do u get what am at here ?
233: [14:56:00] <DesignerX> check if * ..if($Image->ParentID != $this->Folder()->ID ) duplicate & relocate image
234: [15:00:00] <liar3switch> yes, but give me just some minutes (too much infos at the moment)
235: [15:01:00] <DesignerX> liar3switch: np, I just gave u everything I can help with .. 2 am so i gtg .. U have enough to keep u busy for sometime :D
236: [15:13:00] * priithansen quit (Quit: priithansen)
237: [15:42:00] * Zauberfisch quit (Ping timeout: 246 seconds)
238: [15:42:00] * lx-berlin has left #silverstripe
239: [15:52:00] * Zauberfisch has joined #silverstripe
240: [16:13:00] * Error404NotFound quit (Ping timeout: 272 seconds)
241: [16:26:00] * Error404NotFound has joined #silverstripe
242: [16:29:00] * Error404NotFound quit (Client Quit)
243: [17:16:00] * DesignerX quit (Ping timeout: 240 seconds)
244: [17:27:00] * zfmf has left #silverstripe
245: [17:31:00] * gelignite quit (Ping timeout: 272 seconds)
246: [17:36:00] * Emil_Blume has joined #silverstripe
247: [17:40:00] * priithansen has joined #silverstripe
248: [17:56:00] * zaigham has joined #silverstripe
249: [17:57:00] <zaigham> hello every one.
250: [18:04:00] * gelignite has joined #silverstripe
251: [18:47:00] * zfmf has joined #silverstripe
252: [19:06:00] * cloph_away1 has joined #silverstripe
253: [19:09:00] * Emil_Blume quit (*.net *.split)
254: [19:09:00] * cloph_away quit (*.net *.split)
255: [19:09:00] <priithansen> where to start if one would like to see next items properties in a template loop
256: [19:11:00] * DigNZ has joined #silverstripe
257: [19:11:00] * DigNZ has joined #silverstripe
258: [19:11:00] * DigNZ quit (Remote host closed the connection)
259: [19:15:00] <FrozenFire> priithansen, What're you trying to accomplish with that?
260: [19:15:00] <FrozenFire> Lookahead is typically not used except for very particular situations
261: [19:16:00] <priithansen> but now there are some items that take both columns
262: [19:16:00] <priithansen> I have a news layout with two columns and used Odd Even to determine when it's time for a new row In the layout
263: [19:16:00] <priithansen> so if the first items is regular and the next one takes both columns I would like the first one to set the row separator
264: [19:17:00] <FrozenFire> That's mixing data and presentation
265: [19:17:00] <FrozenFire> It shouldn't really be necessary to use explicit row separation
266: [19:18:00] <priithansen> basically it's an <hr> tag after each row
267: [19:21:00] <FrozenFire> http://jsfiddle.net/FQrvv/
268: [19:21:00] <FrozenFire> There's an example of how it *should* work
269: [19:22:00] <priithansen> Don't really know how else to approach it. Tried everything I could think of now thinking of using javascript to later take out unnecessary hr's :)
270: [19:22:00] <priithansen> yep that much I have working
271: [19:23:00] <FrozenFire> That does the stacking automatically.
272: [19:23:00] <FrozenFire> No, but you see, you don't need an <hr>
273: [19:23:00] <FrozenFire> No extra markup
274: [19:23:00] <FrozenFire> Nor do you need special even-odd classes
275: [19:23:00] <priithansen> hr is for visual purposes
276: [19:24:00] <FrozenFire> So you just want a line under each row?
277: [19:25:00] <priithansen> Well if you but it that way :)
278: [19:26:00] <priithansen> I'm using foundation.zurb framework and it kind of expects one to have a div.row wrapper around each new row that's why I started to look into SS for ways to do that
279: [19:27:00] * Emil_Blume has joined #silverstripe
280: [19:27:00] <FrozenFire> Depends on what you're doing
281: [19:28:00] <FrozenFire> If you're defining semantic rows, then yeah, have a row wrapper
282: [19:28:00] <FrozenFire> If you're just defining visual rows, then you don't need one. Nor should you have one.
283: [19:29:00] <priithansen> Will have to look into it If the larger news item could advance the Pos by 2 it would work with Odd Even as well
284: [19:29:00] <FrozenFire> If you really do need to fetch the next item into the currently looped row, you can probably just do <% with next %>
285: [19:29:00] <FrozenFire> But keep in mind that calling next is a side-effect-producing call
286: [19:31:00] <priithansen> That's probably not very good then
287: [19:31:00] <FrozenFire> Well, it just means that you can only call it once
288: [19:31:00] <FrozenFire> Each call advances the iterator
289: [19:32:00] * irogue has joined #silverstripe
290: [19:32:00] * SightUnseen has joined #silverstripe
291: [19:36:00] * nickmolhoek quit (Remote host closed the connection)
292: [19:36:00] * nickmolhoek has joined #silverstripe
293: [19:37:00] * nickmolhoek has joined #silverstripe
294: [19:39:00] <priithansen> If I make my own function that return the news items should it be in the HomePage class or HomePageController class?
295: [19:40:00] * SightUnseen quit (Ping timeout: 260 seconds)
296: [19:40:00] <priithansen> seems to work both ways but which way is correct
297: [19:41:00] <FrozenFire> Eh, that's even worse than looking ahead
298: [19:41:00] <FrozenFire> It completely defeats the current scope
299: [19:42:00] * zaigham quit (Quit: Page closed)
300: [19:42:00] <priithansen> Hm I'm planning to use my own function in the entire loop instead and just pack my own Pos info into it
301: [19:43:00] <priithansen> something like this public function getFrontPageNewsANDPos() {/*Add pos info */ return $this->FrontPageNews(); }
302: [19:45:00] <priithansen> jean but I need to advance the pos by 2 for larger items
303: [19:45:00] <priithansen> so I can use the odd even thing for butting the hr
304: [19:45:00] <FrozenFire> Yes.
305: [19:45:00] <FrozenFire> Iterators already come with Pos
306: [19:46:00] <FrozenFire> So <% with next %>
307: [19:47:00] <FrozenFire> But I still think you're mixing data and presentation
308: [19:47:00] <FrozenFire> Hard to know, because this is a weird and bad thing to do
309: [19:47:00] <FrozenFire> Why do you need to split them into rows like this?
310: [19:47:00] <priithansen> Didn't seem to produce any results or I'm too dimm to use it properly
311: [19:47:00] <FrozenFire> Well, it might be <% with Iterator.next %>
312: [19:47:00] <FrozenFire> And even worse, you're mixing logic and presentation
313: [19:49:00] <FrozenFire> I'm still inclined to insist not to do what you're trying to do
314: [19:49:00] <priithansen> PHP Fatal error: Call to undefined method ArrayIterator::obj() in /Applications/MAMP/htdocs/myyri/framework/view/SSViewer.php on line 68
315: [19:49:00] <FrozenFire> Heh. Not surprising
316: [19:50:00] <priithansen> Hm I'll see if there is some way in css first then
317: [19:50:00] <FrozenFire> It can be accomplished elsewise
318: [19:52:00] <FrozenFire> If it's visual formatting, then yes, there's a way.
319: [19:54:00] <priithansen> :) thanks for the help
320: [19:57:00] * Pyromanik has joined #silverstripe
321: [20:01:00] * cloph_away has joined #silverstripe
322: [20:02:00] * cloph_away1 quit (Ping timeout: 272 seconds)
323: [20:23:00] * SightUnseen has joined #silverstripe
324: [20:24:00] * SightUnseen has left #silverstripe
325: [20:58:00] <Pyromanik> sorting a 2.4 modeladmin, y/n>?
326: [21:02:00] * Motoservo quit (Quit: Motoservo)
327: [21:10:00] * Motoservo has joined #silverstripe
328: [22:23:00] * gelignite quit (Quit: http://bit.ly/nkczDT)
329: [22:57:00] * Emil_Blume quit (Quit: Leaving.)
330: [23:02:00] * DesignerX has joined #silverstripe
331: [23:08:00] * EPIK has joined #silverstripe
332: [23:31:00] * zfmf has left #silverstripe
333: [23:35:00] * SightUnseen has joined #silverstripe
334: [23:35:00] * SightUnseen has left #silverstripe
335: [23:48:00] * willr_ quit (Changing host)
336: [23:48:00] * willr_ has joined #silverstripe
337: [23:48:00] * willr_ has joined #silverstripe

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