Chandan Web Blog.

Entries Tagged ‘typoscript’

Running a SQL Query using TypoScript

Well, after using this feature for quite long time, I though I should post this info:Consider the following Query: SELECT DISTINCT FROM_UNIXTIME(`datetime`, ‘%Y’) AS `year` FROM tt_news where pid=113 order by datetime limit 1 My main goal was to get the latest year from the tt_news records, that is then going to be pushed to [...]

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 [...]

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