[TYPO3-calendar] How to extend FE-Editing with an own textarea field? cal 1.5.1 T3 4.6.13
Andrea Moroni
moroni at web-to-date.com
Wed Oct 31 16:59:53 CET 2012
Hallo,
this is the TS that didn't work:
plugin.tx_cal_controller{
view{
confirm_event{
tx_am_costs_stdWrap{
dataWrap = <div><label
for="tx_am_costs">Kosten###TX_AM_COSTS_REQUIRED###:</label>|<input
type="hidden" value="###TX_AM_COSTS_VALUE###"
name="tx_cal_controller[tx_am_costs]" /></div>
}
tx_am_time_stdWrap{
dataWrap = <div><label
for="tx_am_time">Zeit###TX_AM_TIME_REQUIRED###:</label>|<input
type="hidden" value="###TX_AM_TIME_VALUE###"
name="tx_cal_controller[tx_am_time]" /></div>
}
tx_am_printtext_stdWrap{
dataWrap = <div><label for="tx_am_printtext">Kurztext
Druck:</label><br><input type="hidden"
value="###TX_AM_PRINTTEXT_VALUE###"
name="tx_cal_controller[tx_am_printtext]"/></div>
}
tx_am_addinfo_stdWrap{
dataWrap = <div><label
for="tx_am_addinfo">Zusatzinfo###TX_AM_ADDINFO_REQUIRED###:</label>|<input
type="hidden" value="###TX_AM_ADDINFO_VALUE###"
name="tx_cal_controller[tx_am_addinfo]" /></div>
}
tx_am_teaserdate_stdWrap{
dataWrap = <div><label
for="tx_am_teaserdate">Teaserdatum###TX_AM_TEASERDATE_REQUIRED###:</label>|<input
type="hidden" value="###TX_AM_TEASERDATE_VALUE###"
name="tx_cal_controller[tx_am_teaserdate]" /></div>
}
tx_am_textdate_stdWrap{
dataWrap = <div><label
for="tx_am_textdate">Textdatum###TX_AM_TEXTDATE_REQUIRED###:</label>|<input
type="hidden" value="###TX_AM_TEXTDATE_VALUE###"
name="tx_cal_controller[tx_am_textdate]" /></div>
}
}
create_event{
# @description Standard wrap for the teaser field
teaser_stdWrap {
dataWrap = <p><label
for="teaser">{LLL:EXT:cal/controller/locallang.xml:l_event_teaser}###TEASER_REQUIRED###:</label><input
type="text" value="|" size="50" name="tx_cal_controller[teaser]"
id="teaser"/></p>
htmlSpecialChars = 1
}
tx_am_costs_stdWrap{
dataWrap = <p><label
for="tx_am_costs">Kosten###TX_AM_COSTS_REQUIRED###:</label><input
type="text" value="|" size="50" name="tx_cal_controller[tx_am_costs]"
id="tx_am_costs" /></p>
htmlSpecialChars = 1
}
tx_am_time_stdWrap{
dataWrap = <p><label
for="tx_am_time">Zeit###TX_AM_TIME_REQUIRED###:</label><input
type="text" value="|" size="50" name="tx_cal_controller[tx_am_time]"
id="tx_am_time"/></p>
htmlSpecialChars = 1
}
tx_am_printtext_stdWrap{
dataWrap = <p><label for="tx_am_printtext">Kurztext
Druck###TX_AM_PRINTTEXT_REQUIRED###:</label><textarea
name="tx_cal_controller[tx_am_printtext]" cols="50"
rows="10">|</textarea></p>
// Disable htmlSpecialChars, if you are using the RTE
#htmlSpecialChars = 1
}
tx_am_addinfo_stdWrap{
dataWrap = <p><label
for="tx_am_addinfo">Zusatzinfo###TX_AM_ADDINFO_REQUIRED###:</label><input type="text"
value="|" size="50" name="tx_cal_controller[tx_am_addinfo]" /></p>
htmlSpecialChars = 1
}
tx_am_teaserdate_stdWrap{
dataWrap = <p><label
for="tx_am_teaserdate">Teaserdatum###TX_AM_TEASERDATE_REQUIRED###:</label><input
type="text" value="|" size="50"
name="tx_cal_controller[tx_am_teaserdate]" /></p>
htmlSpecialChars = 1
}
tx_am_textdate_stdWrap{
dataWrap = <p><label
for="tx_am_textdate">Textdatum###TX_AM_TEXTDATE_REQUIRED###:</label><input
type="text" value="|" size="50" name="tx_cal_controller[tx_am_textdate]"
/></p>
htmlSpecialChars = 1
}
}
edit_event{
# @description Standard wrap for the teaser field
teaser_stdWrap {
dataWrap = <p><label
for="teaser">{LLL:EXT:cal/controller/locallang.xml:l_event_teaser}###TEASER_REQUIRED###:</label><input
type="text" value="|" size="50" name="tx_cal_controller[teaser]" /></p>
htmlSpecialChars = 1
}
tx_am_costs_stdWrap{
dataWrap = <p><label
for="tx_am_costs">Kosten###TX_AM_COSTS_REQUIRED###:</label><input
type="text" value="|" size="50" name="tx_cal_controller[tx_am_costs]" /></p>
htmlSpecialChars = 1
}
tx_am_time_stdWrap{
dataWrap = <p><label
for="tx_am_time">Zeit###TX_AM_TIME_REQUIRED###:</label><input
type="text" value="|" size="50" name="tx_cal_controller[tx_am_time]" /></p>
htmlSpecialChars = 1
}
tx_am_printtext_stdWrap{
dataWrap = <p><label for="tx_am_printtext">Kurztext
Druck###TX_AM_PRINTTEXT_REQUIRED###:</label><textarea
name="tx_cal_controller[tx_am_printtext]" cols="50"
rows="10">|</textarea></p>
// Disable htmlSpecialChars, if you are using the RTE
#htmlSpecialChars = 1
}
tx_am_addinfo_stdWrap{
dataWrap = <p><label
for="tx_am_addinfo">Zusatzinfo###TX_AM_ADDINFO_REQUIRED###:</label><input type="text"
value="|" size="50" name="tx_cal_controller[tx_am_addinfo]" /></p>
htmlSpecialChars = 1
}
tx_am_teaserdate_stdWrap{
dataWrap = <p><label
for="tx_am_teaserdate">Teaserdatum###TX_AM_TEASERDATE_REQUIRED###:</label><input
type="text" value="|" size="50"
name="tx_cal_controller[tx_am_teaserdate]" /></p>
htmlSpecialChars = 1
}
tx_am_textdate_stdWrap{
dataWrap = <p><label
for="tx_am_textdate">Textdatum###TX_AM_TEXTDATE_REQUIRED###:</label><input
type="text" value="|" size="50" name="tx_cal_controller[tx_am_textdate]"
/></p>
htmlSpecialChars = 1
}
}
}
}
plugin.tx_cal_controller.rights{
create.event{
additionalFields =
tx_am_printtext,tx_am_teaserdate,tx_am_textdate,tx_am_time,tx_am_costs,tx_am_addinfo
fields{
tx_am_printtext{
public= 1
required = 0
}
tx_am_teaserdate{
public= 1
required = 1
}
tx_am_textdate{
public= 1
required = 1
}
tx_am_time{
public= 1
required = 0
}
tx_am_costs{
public= 1
required = 0
}
tx_am_addinfo{
public= 1
required = 0
}
}
}
edit.event.additionalFields = tx_am_printtext,
tx_am_teaserdate,tx_am_textdate,tx_am_time,tx_am_costs, tx_am_addinfo
confirm.event.additionalFields = tx_am_printtext,
tx_am_teaserdate,tx_am_textdate,tx_am_time,tx_am_costs, tx_am_addinfo
delete.event.additionalFields = tx_am_printtext,
tx_am_teaserdate,tx_am_textdate,tx_am_time,tx_am_costs, tx_am_addinfo
}
Could somebody give me a hint ?
Kind regards
Andrea
Am 31.10.2012 10:23, schrieb Andrea Moroni:
> Hi,
> I have extended CAL some years ago with a textarea field :
>
> create_event.tx_am_printtext_stdWrap{
> dataWrap = <p><label for="tx_am_printtext">Kurztext
> Druck###TX_AM_PRINTTEXT_REQUIRED###:</label><textarea
> name="tx_cal_controller[tx_am_printtext]" cols="50"
> rows="10">|</textarea></p>
> // Disable htmlSpecialChars, if you are using the RTE
> #htmlSpecialChars = 1
> }
>
> now this seems not to work anymore...
> Can someone give me please a hit what is wrong?
>
> kind regards, Andrea
More information about the TYPO3-project-calendar
mailing list