[TYPO3] TS for multiple elements multiple dynamic elements

Cate & Peter catepeter at optusnet.com.au
Sat Aug 12 06:43:24 CEST 2006


Hi

 

I have mapped an area to work similar to tt_news "latest" leader articles.

 

So far I have got this ...

 

#Latest articles from all spokes

 

temp.articles = CONTENT

temp.articles {

  table = tx_drwiki_pages

  select {

    pidInList = 1063, 1064, 1065, 1066, 1067, 1068, 1069, 1070, 1071, 1072,
1073, 1074, 1075, 1076, 1077, 1078, 1079, 1080, 1081, 1082, 1083, 1084,
1085, 1086, 1091

    selectFields = pid,tstamp,keyword,body

  }

 

[something needs to go here I think, to connect temp.articles with
lib.articletitle and lib.articlebrief - is it a stdWrap something or other?]

 

lib.articletitle = CONTENT

lib.articletitle{

  

  renderObj = TEXT

  renderObj {

    required=1

    

    # Displays the keyword inside the <div/> tags

    field = keyword

    

    # Inner wrap around individual rows

    wrap=<div class="feature_subheader">|</div>

    

    # Wraps the keyword with a link to the correct page

    typolink {

      # Links to the page that the wiki keyword is found on

      parameter.data = field:pid

      

      # Adds the keyword to the query string 

      additionalParams.wrap = &tx_drwiki_pi1[keyword]=|

      additionalParams.data = field:keyword

    }

  }

  

lib.articlebrief = CONTENT

lib.articletitle{

 

  

  renderObj = TEXT

  renderObj {

    required=1

    

    # Displays the keyword inside the <div/> tags

    field = body

    crop = 100 | read whole article... | 1

 

    # Wraps the keyword with a link to the correct page

    typolink {

      # Links to the page that the wiki keyword is found on

      parameter.data = field:pid

      

      # Adds the keyword to the query string 

      additionalParams.wrap = &tx_drwiki_pi1[keyword]=|

      additionalParams.data = field:keyword

    }

  }

}

 

Thanks in advance ... I am almost feeling like I am starting to understand
this .. umm ... maybe a little :-)

Cate




More information about the TYPO3-english mailing list