[symfony-users] Re: How to select thumbnail of sfAssetLibraryPlugin from tinyMCE ?

2009-11-08 Thread Crafty_Shadow
There is no straightforward way to do that, the only thing I can think of is modify sfAssetPlugin's image browser for tiny to include an extra button for every image that would return the path to the thumbnail. It shouldn't be more than a few lines of html/js On Nov 7, 11:32 am, Sid Bachtiar

[symfony-users] Re: How to select thumbnail of sfAssetLibraryPlugin from tinyMCE ?

2009-11-08 Thread Sid Bachtiar
Never mind, there's actually a feature for that in the sfAssetsPlugin but was not working correctly. I've modified the plugin a little and now working really well. On Sun, Nov 8, 2009 at 10:48 PM, Crafty_Shadow vankat...@gmail.com wrote: There is no straightforward way to do that, the only

[symfony-users] Re: How to select thumbnail of sfAssetLibraryPlugin from tinyMCE ?

2009-11-08 Thread mattsister
this is because the sfAssets solution is for the version 2 of tinyMCE... but, as you said, with a little effort you can make it work straight with the third version. Anyway, in a recent project, I managed to have a static images backend module, that serves also as a selector for tinyMCE. With a

[symfony-users] Re: form for internationalization

2009-11-08 Thread dziobacz
I have schema.yml: Firm: actAs: I18n: fields: [description, address] columns: id_firm: type: integer(1) primary: true autoincrement: true email: type: string(100) notnull: true description: type: clob notnull: true address:

[symfony-users] Re: form for internationalization

2009-11-08 Thread David Ashwood
Remove the description from the fields listed in I18n, build-all, clear-cache. On Sun, 2009-11-08 at 03:27 -0800, dziobacz wrote: I have schema.yml: Firm: actAs: I18n: fields: [description, address] columns: id_firm: type: integer(1) primary: true

[symfony-users] Re: form for internationalization

2009-11-08 Thread dziobacz
But I want also 'description' for i18n but on the other page with other form. I need two international forms for 'address' and 'description' but I think it isn't possible - all international fields must be on the same form :/ ok so I could create NORMAL the easiest form with these two fields:

[symfony-users] How to host a Symfony project's web assets(images/uploads) on the s3

2009-11-08 Thread a...@speedypin.com
I heard in a recent Usergroup meeting that the S3 is good for keeping web accessible assets that don't require the appserver (i.e. symfomy) to serve, as a high load/traffic optimization technique. Do you think the benefit is there? (Probably), and has anyone successfully partitioned the

[symfony-users] how can I pass ARRAY to the form ?

2009-11-08 Thread dziobacz
I have array: $firm['Translation']['pl']['address'] = ; $firm['Translation']['pl']['description'] = b; $firm['Translation']['en']['address'] = c; $firm['Translation']['en']['description'] = d; In action I am trying to pass this array to the form: $this-form = new

[symfony-users] a menu for my project

2009-11-08 Thread Relez
Hey guys, I need a horizontal menu for my application, this menu need to be integrated with sfGuardPlugin to manage permissions. Any idea? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post

[symfony-users] Re: how can I pass ARRAY to the form ?

2009-11-08 Thread rooster (Russ)
Options are passed as an array to the second argument. $this-form = new ContactForm(array(), array(firm = $firm)); Then in your form class: $this-getOption(firm); Although in your case - if you are just trying to set defaults you can use the first array for that. On Nov 8, 10:10 pm, dziobacz

[symfony-users] Unset embedded form

2009-11-08 Thread HAUSa
I have two classes: UserForm and UserSimpleForm. UserSimpleForm extends UserForm. In UserForm are several other forms embedded, like PhotoForm and AddressForm. For the simple version of the form, UserSimpleForm, I want to unset these embedded forms. Say unembed (is that an existing word?) them.

[symfony-users] Re: Trying to list profile fields in the backend

2009-11-08 Thread tirengarfio
Hi again, Hi, i have read this ticket: http://trac.symfony-project.org/ticket/6731 As you can see it propose another file _list_th_tabular.php to customize the list of backend. After change that file, i get this error: Couldn't find class ct Any idea? Javi On Oct 20, 7:28 pm,

[symfony-users] Re: a menu for my project

2009-11-08 Thread HAUSa
Build one in HTML / CSS in a special component / partial? On 8 nov, 21:37, Relez relvis.gonza...@gmail.com wrote: Hey guys, I need a horizontal menu for my application, this menu need to be integrated with sfGuardPlugin to manage permissions. Any idea?

[symfony-users] Re: Unset embedded form

2009-11-08 Thread cosmy
I think the better way is to use an attribute to control the embedding in the UserForm using a simpe if.. then the derivated class should set the attribute to false.. On 9 Nov, 00:51, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: I have two classes: UserForm and UserSimpleForm.

[symfony-users] form-Render() when embedding?

2009-11-08 Thread cosmy
Hi all, I was asking my self... how do I do to access embedded forms if i want to render my form widget by widget? (I'd like to group forms widgets and divide my form in sections) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[symfony-users] It's possible use Template component in SF 1.3

2009-11-08 Thread ReynierPM
Hi every: I'm asking if it's possible to use Template Component in a SF 1.3 Project. I need to develop my application skinnable and I tough that Template Component will be nice for this purpose. If it wasn't possible: any others suggestions? -- Cheers ReynierPM

[symfony-users] Force empty input field

2009-11-08 Thread HAUSa
Is it possible to force an empty input field? Because when I use setDefault(), the field still has default values from the object when you edit is (object not new)... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[symfony-users] Pager without database

2009-11-08 Thread HAUSa
Is it possible to make a pager that doesn't use the database? In that case I make an array of objects myself and pass it on to the pager. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post

[symfony-users] Re: how can I pass ARRAY to the form ?

2009-11-08 Thread dziobacz
But that doesn't work in a form - why ? : $firm = $this-getOption(firm); $this-setDefault('contact', $firm['Translation']['pl'] ['description']); On 9 Lis, 00:10, rooster (Russ) russmon...@gmail.com wrote: Options are passed as an array to the second argument. $this-form = new

[symfony-users] Problem with model in Event Management Plugin

2009-11-08 Thread juro
Hi, I am creating a plugin that adds event management to Symfony - currently for my own needs and as soon as I am happy with it, I shall publish it (it is very early stages at the moment). The plugin is called sfEventPlugin (for the lack of a better name ;) ). After building all the models, I

[symfony-users] Re: Pager without database

2009-11-08 Thread Alexandru-Emil Lupu
I guess it would be sfPager ... but not sure atm .. On Mon, Nov 9, 2009 at 8:33 AM, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: Is it possible to make a pager that doesn't use the database? In that case I make an array of objects myself and pass it on to the pager. -- Hawe