[TYPO3-english] Crop content

Tapio Markula tapio.markula at xetpoint.fi
Mon Oct 20 18:03:53 CEST 2008


Tapio Markula kirjoitti:
> Tyler Kraft kirjoitti:
>> You could use the stripHtml=1
> 
> 
> Does not do what I want - I would like to *keep* the HTML - it should 
> not be stripped at all. But apparently I can't add anything after 
> NO.after - or it should be COA, but how then create correct result.


this works ok:

   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.cObject=COA
   1.NO.after.cObject{
   10=TEXT
   10.value=<p>
   20=TEXT
   20 {
   data=field:abstract
   crop=196
   #stripHtml=1
   stdWrap.dataWrap=|
  }

  30=TEXT
  30 {
   stdWrap.dataWrap(

                                     </p><p class="readMore"><a 
href="index.php?id={field:uid}"><b>Lue&nbsp;lisää&nbsp;<img 
src="fileadmin/template/kuvat/nuoli.gif" alt="" height="7" 
width="9"></b></a></p>
                                     </td></tr>
                                     )
  }
  }

Thank's forwarding to the correct direction.


More information about the TYPO3-english mailing list