Skip to content

Instantly share code, notes, and snippets.

@DirkWolke
DirkWolke / searchbox.html
Created October 14, 2016 12:34
#TYPO3 #FLUID searchbox-form for #indexed_search
<f:form class="searchbox form-inline"
pageUid="{pidSearch}"
method="post"
noCacheHash="true"
absolute="0"
action="search"
extensionName="IndexedSearch"
pluginName="pi2"
controller="Search"
>
@DirkWolke
DirkWolke / cal_fe_editing.ts
Created August 31, 2016 14:58
#TYPO3 add required message for empty field in Extension #cal width #fe_editing
# add message marker in title
plugin.tx_cal_controller.view.create_event.title_stdWrap {
dataWrap = <div class="form-group"><label for="title">%%%WHAT%%%:</label>###TITLE_REQUIRED### ###TITLE_CONSTRAIN###<input class="form-control" type="text" value="|" size="40" name="tx_cal_controller[title]" id="title" /></div>
htmlSpecialChars = 1
}
# add rule for message if field empty
plugin.tx_cal_controller.rights.create.event.fields.title {
required = 0
constrain {
# Records only for FE-Users width different FE-Groups
[loginUser = *]
lib.content-left = CONTENT
lib.content-left {
table = tt_content
select {
pidInList = 456 // PID Records
where = colPos = 0
andWhere.data = TSFE:fe_user|user|usergroup
andWhere.wrap = fe_group = |
// Speichern in einer anderen Datenbank hier in News
plugin.tx_powermail.settings.setup {
dbEntry {
# Enable or disable db entry for table tx_news_domain_model_news
tx_news_domain_model_news {
_enable = TEXT
_enable.value = 1
author = TEXT
author.field = anzeige_name
@DirkWolke
DirkWolke / fal.ts
Created April 26, 2016 11:32
TYPO3 7.6 FAL tt_content Images TypoScript
10 = FILES
10 {
references {
table = tt_content
uid.data = uid
fieldName = assets
}
renderObj = IMAGE
renderObj {
file {
@DirkWolke
DirkWolke / load_register.ts
Last active June 13, 2016 21:50
Counter width LOAD_REGISTER
lib.register = CONTENT
lib.register {
wrap = <div class="example">|</div>
table = tt_content
select {
pidInList = this
selectFields = *
where = colPos = 0
orderBy = sorting
languageField = sys_language_uid
@DirkWolke
DirkWolke / sortingmenu.ts
Last active June 13, 2016 20:06
TMENU sorting alphabetically / create Date
lib.sortmenu = HMENU
lib.sortmenu {
1 = TMENU
1 {
# alternativeSortingField = crdate DESC
alternativeSortingField = title
wrap = <ul>|</ul>
NO.wrapItemAndSub = <li>|</li>
}
}