[TYPO3-english] Rendering a field from the table pages as RTE content

Tapio Markula tapio.markula at xetpoint.fi
Thu Jun 11 15:00:26 CEST 2009


Hi

I tired to render a field from the table pages as RTE content.

Added field 'newstext' and set in backend as RTE field.

Tried to render in HMENU with parseFunc_RTE:


   special = directory
   special.value ={$uutislista.item}
   maxItems = {$uutislista.maxItems}

...


1.NO.stdWrap.cObject {

     5=TEXT
     5.stdWrap.dataWrap=<h2 class="uutisotsikko"><a 
href="index.php?id={field:uid}">{field:title}</a></h2>

     10 = TEXT
     10.value = <table class="table_ajankohtaista" cellpadding="0" 
cellspacing="0" border="0"><tr><td valign="top" 
class="ajankohtaistieto"><td>

     15 = CONTENT
     15{
       table = pages
       select {
         pidInList.field = pid
       }
       renderObj =TEXT
       renderObj {
			fieldRequired = newstext
			field = newstext
			parseFunc = < lib.parseFunc_RTE
			wrap=<div class="uutisteksti">|</div>
		}
	
      }
...

The problem relates with 'pidInList.field = pid'

all contents of the selected directory has been rendered

so how to render *only* content from the field newstext or the *current* 
page?


More information about the TYPO3-english mailing list