[TYPO3-english] Crop content
    Tapio Markula 
    tapio.markula at xetpoint.fi
       
    Mon Oct 20 15:17:32 CEST 2008
    
    
  
Tyler Kraft
> Hey Tapio,
> 
> No. But you could always add the h2 as the main part of the menu, and 
> then ass the abstract as an "after" cObject - that way you could crop it 
> using the stdWrap properties
I need first image and the title + absract. Can you propose more exactly 
how to change this.
temp.isokuva1 = HMENU
temp.isokuva1 {
   special = directory
   special.value ={$isokuva1}
   maxItems = 1
   wrap = <table class="table_ajankohtaista" cellpadding="0" 
cellspacing="0" border="0">|</table>
   1 = TMENU
   #1.alternativeSortingField=endtime
   1.NO.doNotLinkIt = 1
   1.NO.stdWrap.cObject = COA
   1.NO.stdWrap.cObject {
     5 = TEXT
     5.value =
     10=TEXT
     10.value=<tr>
     20 = CONTENT
     20 {
       table = tt_content
       select {
         where = colPos=0
         pidInList.field = uid
       }
       renderObj = IMAGE
       renderObj {
         file.import=uploads/pics/
         file.import.field=image
         file.width = 270c
         #file.height = 158c
         #stdWrap.dataWrap = <td><div class="isokuva">|</div></td></tr><tr>
         wrap = <td><div class="isokuva">|</div></td></tr><tr>
       }
     }
     30= TEXT
     30 {
         stdWrap.dataWrap (
                                     <td>
                                     <h2>{field:title}</h2>|
         )
     }
   }
}
1.NO.after...
                                     <p>{field:abstract}</p>
                                     <p class="readMore"><a 
href="index.php?id={field:uid}"><b>Lue lisää <img 
src="fileadmin/template/kuvat/nuoli.gif" alt="" height="7" 
width="9"></b></a></p>
                                     </td></tr
    
    
More information about the TYPO3-english
mailing list