[TYPO3-UG Italy] Nuovo campo form estens. Feuser

jh at venetowebdesign.com jh at venetowebdesign.com
Wed Mar 26 11:25:21 CET 2008


Ciao,
forse il problema è come fai la sostituzione dei valori.

$body = 'Lorem ipsum ###MARKER1###';

$marker = array(
	'marker1' => 'dolor si amet',
);

$html = $this->pibase->cObj->substituteMarkerArray($body,$marker,'###| 
###',1);

Hai già provato di mettere tutti i marker in uppercase?

Vedi pure la documentazione delle classe con l'estensione development  
evaluator, dove c'è scritto per substituteMarkerArray :

$content: The content stream, typically HTML template content.
$markContentArray=array(): Regular marker-array where the 'keys' are  
substituted in $content with their values
$subpartContentArray=array(): Exactly like markContentArray only is  
whole subparts substituted and not only a single marker.
$wrappedSubpartContentArray=array(): An array of arrays with 0/1 keys  
where the subparts pointed to by the main key is wrapped with the 0/1  
value alternating.
Returns:
string
The output content stream

ciao
Jan


On 26.03.2008, at 09:40, <namesys at live.com> wrote:
>
> Ciao Paolo,
> ti rispondo qui così seguiamo la traccia dell'argomento...
>
> Mi rendo conto di essermi spiegato male io ... la problematica  
> riscontrata è relativa al template che non riesco a far funzionare;  
> pensavo, erroneamente,  che il discorso fosse riconducibile ai nomi  
> dei campi creati nel DB tramite Kickstarter ma mi avete ampiamente  
> spiegato che quello è del tutto normale.
>
> Come suggerito, ho prestato attenzione al case sensitive dei tag  
> (es. ###REQUIRED_spedizione###) ma ancora adesso non mi viene fuori  
> la label del campo (cosa che succede invece del BE) ... ma solo  
> ###LABEL_SPEDIZIONE### ###REQUIRED_SPEDIZIONE### ed il campo testo
>
> altri suggerimenti?
>
> Thanks
> Enrico
>
> ----------------------------------------
>> From: namesys at live.com
>> To: typo3-ug-italy at lists.netfielders.de
>> Date: Tue, 25 Mar 2008 16:46:28 +0000
>> Subject: Re: [TYPO3-UG Italy] Nuovo campo form estens. Feuser
>>
>>
>> leggo questo nella guida ufficiale:
>>
>> ---
>> "Using the Constant Editor, modify the value of the following  
>> constants of plugin  tx_srfeuserregister_pi1:
>>
>> formFields: add to the list of fields the names of the fields you  
>> have defined and want to be displayed in the Frontend form. If the  
>> field is not in this list, the subpart
>>
>> will be deleted;
>>
>> requiredFields: add to the list of fields the names of the fields  
>> you have defined and want to be treated as required fields. If the  
>> field is not in the list OR if the field is in this list and is  
>> correctly filled, the subpart
>>
>> <---###SUB_REQUIRED_FIELD_myNewFieldName###---> will be deleted.
>>
>> You may also specify in the TS template Setup some default values  
>> and validation rules to be applied by the extension to the  
>> additional fields.
>>
>> If there are no validation rules, you should set:
>>
>> plugin.tx_srfeuserregister_pi1.create.evalValues.myNewFieldName =
>>
>> If your field is a select field and if you wish to enable multiple  
>> selection, you should also set:
>>
>> plugin.tx_srfeuserregister_pi1.parseValues.myNewFieldName  =  
>> multiple"
>> ---
>>
>> ciò significa che, siccome desidero inserire il campo nella lista  
>> ma non come campo richiesto, cancello tutta questa parte nel  
>> template:
>>
>> ***
>> ***###MISSING_SPEDIZIONE###
>> ***
>>
>> così adesso nel form FE mi scompare ###MISSING_SPEDIZIONE###, però  
>> mi rimane scritto:
>>
>> ###LABEL_SPEDIZIONE###
>> ###REQUIRED_SPEDIZIONE###
>> ed il campo testo...
>>
>> domande:
>> 1. Devo anche cancellare nel template ###REQUIRED_SPEDIZIONE### ?
>> 2. Secondo voi perchè nel template non prende il nome del LABEL?  
>> (nb. nel BE viene visualizzato correttamente!)
>>
>> Saluti
>> Enrico
>>
>>
>>
>>> From: namesys at live.com
>>> To: typo3-ug-italy at lists.netfielders.de
>>> Date: Tue, 25 Mar 2008 15:10:18 +0000
>>> Subject: Re: [TYPO3-UG Italy] Nuovo campo form estens. Feuser
>>>
>>>
>>> Ti ringrazio per la chiarificazione, d'altra parte speravo che  
>>> fosse in quello il problema che riscontravo ... nulla da fare...
>>>
>>> non riesco a capire allora! ho fatto tutto seguendo le guide ma in  
>>> FE continuo a visualizzare quelle voci... bisogna settare qlcs  
>>> anche nel setup per fdarlo funzionare o quello riguarda solo  
>>> validazione, ecc del campo?
>>>
>>>
>>>> Date: Tue, 25 Mar 2008 16:00:53 +0100
>>>> From: nicola.dellamarina at webformat.com
>>>> To: typo3-ug-italy at lists.netfielders.de
>>>> Subject: Re: [TYPO3-UG Italy] Nuovo campo form estens. Feuser
>>>>
>>>> Salve Enrico
>>>>
>>>> Il 25/03/2008 15.48, namesys at live.com ha scritto:
>>>>> una cosa non mi è chiara, una volta inseriti i nomi dei field in  
>>>>> Extend existing tables, faccio click su upload e per far  
>>>>> comparire View Result, devo inserire un nome nel campo testo  
>>>>> "Enter extension key:" ... ci devo mettere il nome  
>>>>> dell'esetensione sr_feuser_register o una a mio piacere?
>>>>
>>>> In questo momento stai creando una nuova estensione, dovresti  
>>>> quindi
>>>> darle un nome specifico.
>>>>>
>>>>> cmq in ogni caso nel db nella tabella fe_users mi crea una  
>>>>> colonna denominata tx_srfeuserregistrationfield_spedizione e non  
>>>>> spedizione ... qlcn sa aiutarmi per creare la colonna con il  
>>>>> solo nome spedizione?
>>>>>
>>>>
>>>> Se tu all'interno di una nuova estensione, ad es. 'miaestensione',
>>>> aggiungi un campo ad una tabella esistente, tipo 'miocampo', nel
>>>> database verrà creato con il nome 'miaestensione_miocampo', in  
>>>> questo
>>>> modo si evita che due estensioni diverse possano creare due campi  
>>>> con lo
>>>> stesso nome. E' un modo corretto di fare le cose.
>>>>
>>>> Saluti.
>>>> --
>>>> Nicola Della Marina - Webformat Srl
>>>> E-mail: nicola.dellamarina at webformat.com
>>>> ________________________________________________________
>>>> WEBFORMAT srl | Corte Europa 12 | I-33097 SPILIMBERGO PN
>>>> Tel +39-0427-926.389 -- Fax +39-0427-927.653
>>>> info at webformat.com -- http://www.webformat.com
>>>> _______________________________________________
>>>> TYPO3-UG-italy mailing list
>>>> TYPO3-UG-italy at lists.netfielders.de
>>>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-ug-italy
>>>
>>> _________________________________________________________________
>>> Il futuro di MSN Messenger è oggi Windows Live Messenger 2008!
>>> www.messenger.it
>>> _______________________________________________
>>> TYPO3-UG-italy mailing list
>>> TYPO3-UG-italy at lists.netfielders.de
>>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-ug-italy
>>
>> _________________________________________________________________
>> Il futuro di MSN Messenger è oggi Windows Live Messenger 2008!
>> www.messenger.it
>> _______________________________________________
>> TYPO3-UG-italy mailing list
>> TYPO3-UG-italy at lists.netfielders.de
>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-ug-italy
>
> _________________________________________________________________
> Scarica GRATIS più di 100 emoticon per Messenger
> http://intrattenimento.it.msn.com/emoticon
> _______________________________________________
> TYPO3-UG-italy mailing list
> TYPO3-UG-italy at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-ug-italy

------------------------------------------
Jan Holzmann OG
Grabenweg 72
A-6020 Innsbruck

t. 	+43 (0)512 890480
@. 	jh at venetowebdesign.com
www. 	http://www.venetowebdesign.com

ATU 	63138526

------------------------------------------
Projects:
http://meineAdria.com
http://austriavicina.it
http://www.lago.it
------------------------------------------





More information about the TYPO3-UG-italy mailing list