Chandan Web Blog.

Entries Tagged ‘typoscript’

Conditional menu based on menu page-id

Following code gives a nice way to have a custom content element as sub-menu item for each main menu item lib.customMenu = HMENU lib.customMenu { 1 = TMENU 1 { wrap = | NO.allWrap = | NO.stdWrap.htmlSpecialChars = 1 NO.after.cObject = COA NO.after.cObject { 20 = CASE 20 { key.field = uid default = RECORDS [...]

Display Image when both path and file name are in two fields

The following code gives an overview of how to display an IMAGe when 2 fields are involved. That is one contains the image path “fileadmin/templates/imgs/” and the other field has the image name “mylogo.png” 10 = IMAGE10 { file.import { cObject = COA cObject { 10 = TEXT 10.data = field:image_path 20 = TEXT 20.data [...]

Changing Menu based on selected Templavoila TemplateObject using TypoScript

TypoScript has so much features that it is indeed impossible to document each and every feature hidden with it. As we start adding extensions the feature list would increase as well. Consider you have selected a specific Templavoila Template and you wish to have a different type of menu based on the selected template. In [...]

date2cal for mailformplus

In order to set date2cal for mailformplus we need to follow 3 important steps: 1. Include the necessary js and css files page.headerData.80 = TEXT page.headerData.80.value ( <script type="text/javascript" src="typo3conf/ext/date2cal/js/jscalendar/calendar.js"></script> <script type="text/javascript" src="typo3conf/ext/date2cal/js/jscalendar/lang/calendar-en.js"></script> <script type="text/javascript" src="typo3conf/ext/date2cal/js/jscalendar/calendar-setup.js"></script> <script type="text/javascript" src="typo3conf/ext/date2cal/js/date2cal.js"></script> <script type="text/javascript" src="typo3conf/ext/date2cal/js/naturalLanguageParser.js"></script> <link rel="stylesheet" type="text/css" href="typo3conf/ext/date2cal/js/jscalendar/skins/aqua/theme.css" /> ) # add translations # French – DEFAULT [...]

Dynamically change class attribute of body tag using typoscript

This is a small note about how we can change the class attribute of body tag using typoscript. # bodyTag page.bodyTag > page.bodyTagCObject = TEXT page.bodyTagCObject.data = levelfield:-1 :, myfeildname, slide page.bodyTagCObject.wrap = <body class="myclass_|"> Well here I am using a custom field added to pages table. If you wish to use the page id [...]

Subscribe to this page grab our RSS feed
search_left
Theme & Wordpress Integration - by Chandan