This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Table you're modifying | |
t3lib_div::loadTCA('tx_news_domain_model_news'); | |
// TCA config, arbitrary example: simple text field - nice to include your ext's name in its name so you remember where it's from | |
$tempColumns = array ( | |
'tx_myext_new_input' => array ( | |
'exclude' => 0, | |
'label' => 'Some new input field', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Autofilling formhandler field values from fe_user accounts | |
##### | |
plugin.Tx_Formhandler.settings.predef.formName { | |
... | |
# Autofill contact information | |
preProcessors { | |
1 { | |
class = Tx_Formhandler_PreProcessor_LoadDefaultValues | |
config { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Bash completion for `bundle exec` or `be` in directories that look like vanagon packaging repos | |
_vanagon_actions() | |
{ | |
if [[ -d ./configs/projects && -d ./configs/platforms ]]; then | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
projects=`ls ./configs/projects/*.rb 2>/dev/null | xargs -n 1 basename | rev | cut -c 4- | rev` | |
platforms=`ls ./configs/platforms/*.rb 2>/dev/null | xargs -n 1 basename | rev | cut -c 4- | rev` |