[TYPO3-project-formidable] Formidable questions

Mack Sol macksol at live.fr
Fri Aug 1 18:00:04 CEST 2008


Thank you very much for your help Luc.
I will wait patiently your response.
Bye and good weekend !!

> From: l.mul-nospam-ler at ameos.com
> Date: Fri, 1 Aug 2008 13:39:19 +0200
> To: typo3-project-formidable at lists.netfielders.de
> Subject: Re: [TYPO3-project-formidable] Formidable questions
> 
> I've made some testing, I found some stranges stuff making that I cannot 
> complete the process I wanted to test.
> 
> Jerome is going to be back from holidays on monday, I think we can have 
> a look together at the problem.
> 
> Luc
> 
> Mack Sol a écrit :
> > Hi Luc,
> > That's exactly what I want to do!!
> > Because in edition mode I don't want to ask the user to fill the field "password conf" if he don't want to change his password. You know ?
> > Can you help me with this ?
> > bye bye
> > :)
> >
> >   
> >> From: l.mul-nospam-ler at ameos.com
> >> Date: Thu, 31 Jul 2008 12:10:14 +0200
> >> To: typo3-project-formidable at lists.netfielders.de
> >> Subject: Re: [TYPO3-project-formidable] Formidable questions
> >>
> >> I'm note sur to get the point.
> >>
> >> You want, that at load a "checkpassword field" will get the value of a 
> >> first passwordfield which is stored in the DB ?
> >>
> >> this means, you're in edition mode. and you want to edit data such as 
> >> account data.
> >>
> >> there, the second password field, as it is not stored in the db, will be 
> >> automaticcaly field with the password value that is stored in the db ? 
> >> right ?
> >>
> >> Luc =:0)
> >>
> >> Mack Sol a écrit :
> >>     
> >>> Hello again,
> >>>
> >>> I have found this:
> >>> <renderlet:PASSWORD name="passwordConf" label="password again">
> >>> <renderonly>true</renderonly>
> >>> <onload runat="client">
> >>> <userobj>
> >>> <php>
> >>> <![CDATA[
> >>> $iPassConfValue = $this->oDataHandler->_getThisFormData("password");
> >>> return array($this->aORenderlets['passwordConf']->majixReplaceData($iPassConfValue));
> >>> ]]>
> >>> </php>
> >>> </userobj>
> >>> </onload>    
> >>> </renderlet:PASSWORD>
> >>>
> >>> It works but the problem is that if there is an error in a field of the form, the form is load again.
> >>> So the  "passwordConf" renderlet takes again the value of "password" renderlet. That's not what I want.
> >>> I just want it takes the value of the "password" renderlet at the first display of the form.
> >>> How can I do please ?
> >>>
> >>> Thanks in advance
> >>>
> >>>   
> >>>       
> >>>> From: macksol at live.fr
> >>>> To: typo3-project-formidable at lists.netfielders.de
> >>>> Date: Tue, 29 Jul 2008 21:59:25 +0200
> >>>> Subject: Re: [TYPO3-project-formidable] Formidable questions
> >>>>
> >>>>
> >>>> Hey,
> >>>>
> >>>> I would like to thank you everybody for your help. My DATE and FILE problems were both because of my template. I have made some modifications and it works now.
> >>>>
> >>>> Can I ask another question please ?
> >>>> I have a renderlet password and another renderlet password for the confirmation. I would like that at the load of the form the password confirmation value := password value.
> >>>>
> >>>> <renderlet:PASSWORD name="passwordConf" label="password again">
> >>>> <renderonly>true</renderonly>
> >>>> <data>
> >>>> <value>
> >>>> <userobj>
> >>>> <php>
> >>>> <![CDATA[
> >>>>  $iPassConfValue = $this->oDataHandler->_getThisFormData("password");
> >>>> return $iPassConfValue;
> >>>> ]]>
> >>>> </php>
> >>>> </userobj>
> >>>>  </value>
> >>>>  </data>
> >>>> </renderlet:PASSWORD>
> >>>>
> >>>> If I do this, the value is never change even if the user change it. But if I don't use <value> the renderlet don't take the value of my first renderlet password. How can I give a value of another renderlet in a renderlet ?
> >>>>
> >>>> Mack
> >>>>
> >>>>     
> >>>>         
> >>>>> From: l.mul-nospam-ler at ameos.com
> >>>>> Date: Fri, 25 Jul 2008 08:52:25 +0200
> >>>>> To: typo3-project-formidable at lists.netfielders.de
> >>>>> Subject: Re: [TYPO3-project-formidable] Formidable questions
> >>>>>
> >>>>> Hi Mack,
> >>>>>
> >>>>> You should have a try with :
> >>>>>
> >>>>> {starttime.debug()}
> >>>>>
> >>>>> You can do this on every kind of renderlet.
> >>>>>
> >>>>> This can be helpful ;)
> >>>>>
> >>>>> Luc =:0)
> >>>>>
> >>>>> Mack Sol a écrit :
> >>>>>       
> >>>>>           
> >>>>>> Hello Manuel, Hello Jerome, Hello list,
> >>>>>>
> >>>>>> Manuel, thanks for your help. Thanks to you my list is sorted at first display and I can use the sort column option :)
> >>>>>> About the DATE renderlet problem, I have found why it's not working. It's because of my template. Indeed I have tested my code with the default template and it's work.
> >>>>>> The line of my template :
> >>>>>> <td>{starttime.value}</td>
> >>>>>> <td>{endtime.value}</td>
> >>>>>> Give me 12148632000 & 1216850400
> >>>>>> But if I write :
> >>>>>> <td>{starttime}</td>
> >>>>>>
> >>>>>> <td>{endtime}</td>
> >>>>>> I have "Start 01 juillet 2008" and "End 24 
> >>>>>> juillet 2008 "
> >>>>>> Start and End are the labels. I don't want them to be displayed on all the lines but if I use starttime.value and endtime.value it's not working...
> >>>>>> Have you an idea how I can do ?
> >>>>>>
> >>>>>> Jerome, thanks to you too! Now my tiny looks good :) I really appreciate your help.
> >>>>>>
> >>>>>> If someone have an idea about my renderlet file question I still have the problem so it would be helpfull.
> >>>>>>
> >>>>>> Best regards
> >>>>>>
> >>>>>>
> >>>>>>   
> >>>>>>         
> >>>>>>             
> >>>>>>> From: typo3dev at ameos.com
> >>>>>>> Date: Wed, 23 Jul 2008 09:52:46 +0200
> >>>>>>> To: typo3-project-formidable at lists.netfielders.de
> >>>>>>> Subject: Re: [TYPO3-project-formidable] Formidable questions
> >>>>>>>
> >>>>>>> Hi,
> >>>>>>>
> >>>>>>> concerning TINYMCE, you can configure everything like this:
> >>>>>>>
> >>>>>>> <renderlet:TINYMCE name="tinymce" label="tinymce">
> >>>>>>>     <config
> >>>>>>>        width="400"
> >>>>>>>        height="200"
> >>>>>>>     />
> >>>>>>> </renderlet:TINYMCE>
> >>>>>>>
> >>>>>>> If you want all the buttons + toolbar on top
> >>>>>>>
> >>>>>>> <renderlet:TINYMCE name="tinymce" label="tinymce">
> >>>>>>>     <config
> >>>>>>>        width="400"
> >>>>>>>        height="200"
> >>>>>>>        theme="advanced"
> >>>>>>>        theme_advanced_toolbar_location="top"
> >>>>>>>     />
> >>>>>>> </renderlet:TINYMCE>
> >>>>>>>
> >>>>>>> If you want to choose wich buttons should be there:
> >>>>>>>
> >>>>>>> <renderlet:TINYMCE name="tinymce" label="tinymce">
> >>>>>>>     <config
> >>>>>>>        theme="advanced"
> >>>>>>>        width="400"
> >>>>>>>        height="200"
> >>>>>>>        theme_advanced_buttons1="bold,underline,bullist,link"
> >>>>>>>        theme_advanced_buttons2=""
> >>>>>>>        theme_advanced_buttons3=""
> >>>>>>>        theme_advanced_toolbar_location="top"
> >>>>>>>     />
> >>>>>>> </renderlet:TINYMCE>
> >>>>>>>
> >>>>>>>
> >>>>>>> All available configuration is described here:
> >>>>>>> http://wiki.moxiecode.com/index.php/TinyMCE:Configuration
> >>>>>>>
> >>>>>>>
> >>>>>>> Best regards,
> >>>>>>> Jerome Schneider
> >>>>>>>
> >>>>>>> Manuel Rego Casasnovas a écrit :
> >>>>>>>     
> >>>>>>>           
> >>>>>>>               
> >>>>>>>> Hello,
> >>>>>>>>
> >>>>>>>> Some quick answers:
> >>>>>>>>
> >>>>>>>>       
> >>>>>>>>             
> >>>>>>>>                 
> >>>>>>>>> 2) SORT:
> >>>>>>>>> I would like to sort my lister at the first display on one of my database field. Fox example, fe_users table.
> >>>>>>>>> So, I have add an ORDER BY in my sql:
> >>>>>>>>> <datasource:DB name="fe_users">
> >>>>>>>>>   <sql><![CDATA[
> >>>>>>>>>     SELECT
> >>>>>>>>>       fe_users.username AS username
> >>>>>>>>>     FROM
> >>>>>>>>>       fe_users 
> >>>>>>>>>     WHERE 1
> >>>>>>>>>     ORDER BY fe_users.username
> >>>>>>>>>   ]]></sql>
> >>>>>>>>> </datasource:DB>
> >>>>>>>>> And it works. But the problem is that if I sort my lister by clicking on the column I have and
> >>>>>>>>> sql error because my request looks like this:
> >>>>>>>>> SELECT SQL_CALC_FOUND_ROWS 
> >>>>>>>>>   fe_users.username AS username
> >>>>>>>>> FROM
> >>>>>>>>>   fe_users 
> >>>>>>>>> WHERE 1
> >>>>>>>>> ORDER BY fe_users.username
> >>>>>>>>> ORDER BY  username ASC  LIMIT 0, 20
> >>>>>>>>> How can I do ?
> >>>>>>>>>         
> >>>>>>>>>               
> >>>>>>>>>                   
> >>>>>>>> You can use something like:
> >>>>>>>> <renderlet:LISTER ...>
> >>>>>>>>    ...
> >>>>>>>>    <pager>
> >>>>>>>>       <sort column="username" direction="desc" />
> >>>>>>>>    </pager>
> >>>>>>>> </renderlet:LISTER>
> >>>>>>>>
> >>>>>>>> See an example at:
> >>>>>>>> http://formidable.typo3.ug/pastebin/snippet/45.html
> >>>>>>>>
> >>>>>>>>       
> >>>>>>>>             
> >>>>>>>>                 
> >>>>>>>>> 3) RENDERLET DATE:
> >>>>>>>>> In my renderlet lister I want to display the starttime field of the table fe_users.
> >>>>>>>>> So I have done:
> >>>>>>>>> <column name="starttime" type="renderlet:DATE" listHeader="Date" label="Date" sort="true">
> >>>>>>>>>   <data>  
> >>>>>>>>>     <datetime format="%d %B %Y" />  
> >>>>>>>>>   </data>  
> >>>>>>>>> </column>
> >>>>>>>>> But it's not written like "DD/MM/AAAA" but "1216211380" (for example).
> >>>>>>>>> What's the problem in my code ?
> >>>>>>>>>         
> >>>>>>>>>               
> >>>>>>>>>                   
> >>>>>>>> It works for me with table pages, my XML is:
> >>>>>>>> <column name="crdate" type="renderlet:DATE" listHeader="crdate">
> >>>>>>>>    <data>
> >>>>>>>>       <datetime format="%d %B %Y" />
> >>>>>>>>    </data>
> >>>>>>>> </column>
> >>>>>>>>
> >>>>>>>> I don't find any problem in your code.
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> Best regards,
> >>>>>>>>    Rego
> >>>>>>>>
> >>>>>>>>       
> >>>>>>>>             
> >>>>>>>>                 
> >>>>>>> -- 
> >>>>>>>
> >>>>>>>
> >>>>>>> *Jérôme Schneider*
> >>>>>>> /Developer/
> >>>>>>> /Formidable - Rapid Application Developpement Framework for Typo3
> >>>>>>> <http://formidable.typo3.ug>/
> >>>>>>> /Ameos <http://www.ameos.com>/
> >>>>>>> _______________________________________________
> >>>>>>> TYPO3-project-formidable mailing list
> >>>>>>> TYPO3-project-formidable at lists.netfielders.de
> >>>>>>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-formidable
> >>>>>>>     
> >>>>>>>           
> >>>>>>>               
> >>>>>> _________________________________________________________________
> >>>>>> Pendant tout l'été, consultez vos emails Hotmail sur votre mobile !
> >>>>>> http://www.messengersurvotremobile.com/?d=hotmail
> >>>>>>         
> >>>>>>             
> >>>>> -- 
> >>>>>
> >>>>> *Luc Muller*
> >>>>> /Web Developper/
> >>>>> /Formidable - Rapid Application Developpement Framework for Typo3 
> >>>>> <http://formidable.typo3.ug>/
> >>>>> /Typo3 Ameos <http://www.ameos.com>/
> >>>>> _______________________________________________
> >>>>> TYPO3-project-formidable mailing list
> >>>>> TYPO3-project-formidable at lists.netfielders.de
> >>>>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-formidable
> >>>>>       
> >>>>>           
> >>>> _________________________________________________________________
> >>>> Plus besoin de clé usb ! Stockez votre musique en ligne gratuitement !
> >>>> http://www.windowslive.fr/skydrive/
> >>>> _______________________________________________
> >>>> TYPO3-project-formidable mailing list
> >>>> TYPO3-project-formidable at lists.netfielders.de
> >>>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-formidable
> >>>>     
> >>>>         
> >>> _________________________________________________________________
> >>> Plus besoin de clé usb ! Stockez votre musique en ligne gratuitement !
> >>> http://www.windowslive.fr/skydrive/
> >>>       
> >> -- 
> >>
> >> *Luc Muller*
> >> /Web Developper/
> >> /Formidable - Rapid Application Developpement Framework for Typo3 
> >> <http://formidable.typo3.ug>/
> >> /Typo3 Ameos <http://www.ameos.com>/
> >> _______________________________________________
> >> TYPO3-project-formidable mailing list
> >> TYPO3-project-formidable at lists.netfielders.de
> >> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-formidable
> >>     
> >
> > _________________________________________________________________
> > Retouchez, classez et partagez vos photos gratuitement avec le logiciel Galerie de Photos !
> > http://www.windowslive.fr/galerie/
> 
> 
> -- 
> 
> *Luc Muller*
> /Web Developper/
> /Formidable - Rapid Application Developpement Framework for Typo3 
> <http://formidable.typo3.ug>/
> /Typo3 Ameos <http://www.ameos.com>/
> _______________________________________________
> TYPO3-project-formidable mailing list
> TYPO3-project-formidable at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-formidable

_________________________________________________________________
Pendant tout l'été, consultez vos emails Hotmail sur votre mobile !
http://www.messengersurvotremobile.com/?d=hotmail


More information about the TYPO3-project-formidable mailing list