Typoscript to get database values in Breadcrumb

lib.breadcrumb = COA
lib.breadcrumb.wrap = <ul class=”breadcrumb hidden-xs”>|</ul>
lib.breadcrumb {
10 = HMENU
10 {
special = rootline
special.range = 0|-1
1 = TMENU
1 {
no.allwrap = <li>|</li>
no.stdwrap.htmlspecialchars = 1
cur = 1
cur {
allwrap = <li>|</li>
donotlinkit = 1
stdwrap {
data = page:subtitle // page:nav_title // tsfe:page|title
htmlspecialchars = 1
}
}
}
wrap >
}
20 = CONTENT
20 {
table = country
select {
pidInList = 605
where = uid= ###whatever### AND NOT deleted AND NOT hidden
markers {
whatever.data = GP:tx_country|country
}
}
renderObj = COA_INT
renderObj {
10 = TEXT
10.field = name
10.stdWrap.typolink.parameter = 610
10.stdWrap.typolink.additionalParams = &tx_country[country]={GP:tx_country|country}
10.stdWrap.typolink.additionalParams.insertData = 1
10.wrap = <li>|</li>
}
}
30 = CONTENT
30 {
table = city
select {
pidInList = 606
where = uid= ###whatever### AND NOT deleted AND NOT hidden
markers {
whatever.data = GP:tx_country|city
}
}
renderObj = COA_INT
renderObj {
10 = TEXT
10.field = name
10.wrap = <li>|</li>
}
}
}

That’s it

Output will be like this

Section Index menu to link perticular content in other page

Here is the typoscript

tt_content.menu.20.3 >
tt_content.menu.20 {
3 < styles.content.get
3.wrap = <div class=”csc-menu csc-menu-3″>|</div>
3.select.andWhere = sectionIndex!=0
3.select.pidInList.override.field = pages
3.renderObj = CASE
3.renderObj {
key.field = header_layout
default = COA
default {
stdWrap.fieldRequired = header
stdWrap.fieldRequired = header_link
10 = TEXT
10.field = header
10.trim = 1
10.htmlSpecialChars = 1
10.dataWrap = <p class=”csc-section-1″>|</p>
#10.typolink.parameter.field = pid
#  Where header_link is a link field in content element (542#210) where 542 is page ID and # # 201 is content id to link
10.typolink.parameter.field = header_link

}
1 < .default
2 < .default
2.10.dataWrap = <p class=”csc-section-2″>|</p>
3 < .default
3.10.dataWrap = <p class=”csc-section-3″>|</p>
4 < .default
4.10.dataWrap = <p class=”csc-section-4″>|</p>
5 < .default
5.10.dataWrap = <p class=”csc-section-5″>|</p>
}
}

Typoscript to show filesize in FAL

Here is the code to show file size in terms of kilobytes,Megabytes and Gigabytes

lib.image = FILES
lib.image {
references {
table = tt_content
fieldName = media
}
renderObj = COA
renderObj {
10 = TEXT
10.data = file:current:size
10.bytes.labels = Bytes | KB | MB | GB
10.dataWrap = <a target=”_blank” href=”{file:current:publicUrl}” >{file:current:title},&nbsp; |</a>
}
}

Customize Templavoila new content element wizard

templavoila.wizards.newContentElement {
# Activate tabs for new content element wizard in TV
renderMode = tabs

wizardItems.common.elements.tx_custom_bigimage {
icon = Images/Bigimage.png
title = BG Image
description = BG Image
tt_content_defValues {
CType = tx_custom_bigimage
}
}
wizardItems.common.show := addToList(tx_custom_bigimage)
}

Where tx_custom_bigimage is custom content type. we need to add this code in pagetsconfig of root page.

Please refer to screenshot for more info.New content Element Wizard

Debug Objects in Typo3 Extbase and Typo3 Neos

Simple way to debug an object or variable in Typo3 Latest version is:
\TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump($object);

Note: This works only with version 4.7 and higher

Similarly in case of Neos in order to print an object we use below code:
\TYPO3\FLOW3\var_dump($object);

1 2 3 23