Chandan Web Blog.

Entries for the ‘Typo3’ Category

Displaying the actual filename when the same file is uploaded multiple times

Hi! In Typo3 when we upload the same file (i.e. file with the same name) multiple times in a page, The same name is displayed on the page but the link to the files is diferrent as the file is renamed when it is uploaded. For example Say we upload a file name test.txt two [...]

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 the value one object only when the other object value is faslse

Hello! In some cases we want to display the value of object only when the value of the other object is false or null. For this to work we use the typoscript cobject with the negate option. The Following code depicts how to display the PREVIOUS and NEXT buttons in the typoscript prev/next menu. When [...]

Display the page when it is completely Loaded

Hello All! The following code helps you to display the contents of the page after it is completely loaded. It uses the JQuery for this purpose. Initially wrap the whole page in a <div> tag and hide it using CSS. The HTML code is as follows…. <html> <title>…..</title> <body> <div id=”my_testid”> . . . . [...]

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

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