[TYPO3-dev] Text w/ image and image only content elements not rendering

olivieragustin olivier.agustin at gmail.com
Thu Dec 11 01:07:58 CET 2008


thanks bernd, that technique will serve me well in the future; however, it
does not solve my problem :(

i found the lines responsible for the rendering of content:

# *****************
 501: # CType: text
 502: # *****************
 503: tt_content.text = COA
 504: tt_content.text {
 505:   10 = < lib.stdheader
 506:    
 507:   20 = TEXT
 508:   20 {
 509:     field = bodytext
 510:     required = 1
 511:      
 512:     parseFunc = < lib.parseFunc_RTE
 513:      
 514:     editIcons = tt_content:bodytext, rte_enabled
 515:     editIcons.beforeLastTag = 1
 516:     editIcons.iconTitle.data =
LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.bodytext
 517:      
 518:     prefixComment = 2 | Text:
 519:   }
 520: }
 521: 
 522: 
 523: # *****************
 524: # CType: image
 525: # *****************
 526: # (also used for rendering 'textpic' type):
 527: tt_content.image = COA
 528: tt_content.image.10 = < lib.stdheader
 529: tt_content.image.20 = IMGTEXT
 530: tt_content.image.20 {
 531:   imgList.field = image
 532:   textPos.field = imageorient
 533:   imgPath = uploads/pics/
 534:   imgObjNum = 1
 535:   1 {
 536:     file.import.current = 1
 537:     file.width.field = imagewidth
 538:     params = align="top"
 539:     imageLinkWrap = 1
 540:     imageLinkWrap {
 541:       bodyTag = <body bgcolor="black">
 542:       wrap =  javascript:close();  |  
 543:       width = {$styles.content.imgtext.linkWrap.width}
 544:       height = {$styles.content.imgtext.linkWrap.height}
 545:       effects = {$styles.content.imgtext.linkWrap.effects}
 546:        
 547:       JSwindow = 1
 548:       JSwindow.newWindow =
{$styles.content.imgtext.linkWrap.newWindow}
 549:       JSwindow.expand = 17,20
 550:        
 551:       enable.field = image_zoom
 552:       enable.ifEmpty.typolink.parameter.field = image_link
 553:       enable.ifEmpty.typolink.parameter.listNum.stdWrap.data =
register : IMAGE_NUM_CURRENT
 554:       enable.ifEmpty.typolink.returnLast = url
 555:        
 556:       typolink.parameter.field = image_link
 557:       typolink.parameter.listNum.stdWrap.data = register :
IMAGE_NUM_CURRENT
 558:       typolink.target = {$styles.content.links.target}
 559:       typolink.extTarget = {$styles.content.links.extTarget}
 560:     }
 561:      
 562:     altText = TEXT
 563:     altText {
 564:       field = altText
 565:       stripHtml = 1
 566:       split.token.char = 10
 567:       split.token.if.isTrue = {$styles.content.imgtext.imageTextSplit}
 568:       split.returnKey.data = register : IMAGE_NUM_CURRENT
 569:     }
 570:      
 571:     titleText < .altText
 572:     titleText.field = titleText
 573:      
 574:     longdescURL < .altText
 575:     longdescURL.field = longdescURL
 576:      
 577:     emptyTitleHandling = {$styles.content.imgtext.emptyTitleHandling}
 578:     titleInLink = {$styles.content.imgtext.titleInLink}
 579:     titleInLinkAndImg = {$styles.content.imgtext.titleInLinkAndImg}
 580:   }
 581:    
 582:   maxW = {$styles.content.imgtext.maxW}
 583:   maxW.override.data = register:maxImageWidth
 584:   maxWInText = {$styles.content.imgtext.maxWInText}
 585:   maxWInText.override.data = register:maxImageWidthInText
 586:    
 587:   equalH.field = imageheight
 588:   spaceBelowAbove = 6
 589:    
 590:   image_compression.field = image_compression
 591:   image_effects.field = image_effects
 592:    
 593:   noRows.field = image_noRows
 594:    
 595:   cols.field = imagecols
 596:   border.field = imageborder
 597:   caption {
 598:     1 = TEXT
 599:     1 {
 600:       field = imagecaption
 601:       required = 1
 602:       parseFunc =< lib.parseFunc
 603:       br = 1
 604:       fontTag = <p class="csc-caption">|</p>
 605:       wrapAlign.field = imagecaption_position
 606:       split.token.char = 10
 607:       split.token.if.isPositive =
{$styles.content.imgtext.imageTextSplit} +
{$styles.content.imgtext.captionSplit}
 608:       split.returnKey.data = register : IMAGE_NUM_CURRENT
 609:     }
 610:   }
 611:   	# captionSplit is deprecated, use imageTextSplit instead
 612:   captionSplit = {$styles.content.imgtext.captionSplit}
 613:   	# caption/alttext/title/longdescURL splitting
 614:   imageTextSplit = {$styles.content.imgtext.imageTextSplit}
 615:    
 616:   borderCol = {$styles.content.imgtext.borderColor}
 617:   borderThick = {$styles.content.imgtext.borderThick}
 618:   colSpace = {$styles.content.imgtext.colSpace}
 619:   rowSpace = {$styles.content.imgtext.rowSpace}
 620:   textMargin = {$styles.content.imgtext.textMargin}
 621:    
 622:   editIcons = tt_content : image [imageorient|imagewidth|imageheight],
[imagecols|image_noRows|imageborder],[image_link|image_zoom],[image_compression|image_effects|image_frames],imagecaption[imagecaption_position]
 623:   editIcons.iconTitle.data =
LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.images
 624:    
 625:   caption.editIcons = tt_content : imagecaption[imagecaption_position]
 626:   caption.editIcons.beforeLastTag=1
 627:   caption.editIcons.iconTitle.data =
LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.caption
 628:    
 629:   stdWrap.prefixComment = 2 | Image block:
 630: }
 631: 
 632: 
 633: # *****************
 634: # CType: textpic
 635: # *****************
 636: tt_content.textpic = COA
 637: tt_content.textpic {
 638:   10 = COA
 639:   10.if.value = 25
 640:   10.if.isLessThan.field = imageorient
 641:   10.10 = < lib.stdheader
 642:    
 643:   20  = < tt_content.image.20
 644:   20.text.10 = COA
 645:   20.text.10 {
 646:     if.value = 24
 647:     if.isGreaterThan.field = imageorient
 648:     10 = < lib.stdheader
 649:     10.stdWrap.dataWrap = <div class="csc-textpicHeader
csc-textpicHeader-{field:imageorient}">|</div>
 650:   }
 651:   20.text.20 = < tt_content.text.20
 652: }

as i've said before, only the ctype of 'text only' and all the title/headers
(lib.stdheader) of all ctypes render correctly. see->
http://theleadersclub.ph/about-us.html

this is the default config of typo3 right?

should i change =< to < ? is realurl doing the damage?

thanks in advance


Bernd Wilke wrote:
> 
> On Fri, 05 Dec 2008 04:13:58 -0800 olivieragustin wrote:
> 
>> yes it is olivier agustin
>> 
>> hmmm... i don't have any tt_content strings in my ts setup
>> 
>> here it is if you don't mind:
>> 
>> page = PAGE
> [...]
>> }
> 
> that is your definition. But that might differ much from the active 
> typoscript of your pages.
> 
> inspect the active typoscript of your pages with the objectbrowser (hover 
> mouse over any key to see in tooltip where the definition of this value 
> was done) and template-analyzer (see tree of inclusions and get 
> linenumbers of definitions)
> Web -> template -> Typoscript Object Browser 
> or Web -> template -> Template Analyzer
> 
>> i'm using typo3 4.2.2 and using css_styled_content in my static
>> templates on top
>> 
> 
> bernd
> -- 
> http://www.pi-phi.de/t3v4/cheatsheet.html
> _______________________________________________
> TYPO3-dev mailing list
> TYPO3-dev at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev
> 
> 

-- 
View this message in context: http://www.nabble.com/Text-w--image-and-image-only-content-elements-not-rendering-tp20842233p20946943.html
Sent from the TYPO3 Dev mailing list archive at Nabble.com.





More information about the TYPO3-dev mailing list