Jump to content


wes

Member Since 11 Feb 2012
Offline Last Active Feb 27 2013 07:33 PM
-----

Posts I've Made

In Topic: command line script file API not performing same as on website

27 February 2013 - 06:56 PM

Image field is always an array, it's just that page output formatting does change it so in template files you get an object if the image field is set to max 1 item.

So if output formatting is off it's always treated as an array, disregarding the field settings. I think in case of a bootstrap there's no output formatting on I think.

 

That's good to know. Forgot about the fact that image fields can have multiple items, so by default it would make sense to be an array. Thanks!


In Topic: command line script file API not performing same as on website

27 February 2013 - 06:47 PM

Ah, fixed it. You were right, it was something about output formatting. Doing a $item->setOutputFormatting(true) right before the echo statements did the trick.

 

Thanks, Soma.


In Topic: command line script file API not performing same as on website

27 February 2013 - 06:42 PM

Looks like outputFormatting symptom. Try using it as array and use $item->my_mage->first->url.

 

Hmm, doesn't print anything. I would think that 'first' wouldn't be accessible because $item->my_image should be a PW file object ($item being an item from the repeater field).


In Topic: Repeatable Fields

14 March 2012 - 04:36 PM

I can reproduce, got same issue here. Plain install, no other modules except language. Simple repeater with text field and image field. Users not admin/superuser user can't upload images.


Thanks for confirming this, Soma. I'm going to write a github issue right now.

In Topic: Repeatable Fields

14 March 2012 - 02:50 PM

I think we need bug reports using github. :) This isn't well for Ryan, as he misses things in the threads.

Good point. I'll submit an issue to github. I guess I imagined github issues being only for absolutely positively confirmed bugs, and I wanted to see if someone on the forums have used images in repeater fields as a non-admin user with positive experience.