Zum Inhalt springen

t3blog lastposts in TS

Erstellt am 16. September 2013 · 2 Antworten · letzte Antwort am 17. September 2013

Tags: Blog, TYPO3 4.x, Frage

sma123 ·

Hallo,

ich will die neuesten Blogeinträge per TS in Marker einsetzen. Geht alles bis auf die Verlinkung.
Wie bekomme ich die UID als Parameter hinein? Hat jemand eine Idee??

 lib.news1= CONTENT
       lib.news1{
         wrap = <div class="module-title"><h2 class="title">BLOG</h2></div>|
         table = tx_t3blog_post
         select.orderBy = tstamp DESC
         select.pidInList = 5
         select.max= 3  
         renderObj = COA
         renderObj  {
           1 = TEXT
           1.field=title
           1.crop = 50|...|1
           1.wrap = <b>|</b>
           1.typolink.parameter.field=pid
          # 1.typolink.parameter.dataWrap=|
           1.typolink.additionalParams=&tx_t3blog_pi1[blogList][showUid]={field:uid}
           1.title = Zum Beitrag
           1.typolink.no_cache=1
           2 = TEXT
           2.field = tstamp
           2.date = d.m.y          
           2.wrap = <p class="date">|</p>
        }
}

Ergebnis der URL ist : ?tx_t3blog_pi1[blogList][showUid]={field:uid} Also OHNE UID

sma123 ·

OK, habs gelöst. Nachfolgende Bariante geht:

      lib.news1= CONTENT
       lib.news1{
         wrap = <div class="module-title"><h2 class="title">BLOG</h2></div>|
         table = tx_t3blog_post
         select.orderBy = tstamp DESC
         select.pidInList = 5
         select.max= 3   
         renderObj = COA
         renderObj  {
           1 = TEXT
           1.field=title
           1.crop = 50|...|1
           1.wrap = <b>|</b>
           1.typolink{
             parameter.field=pid
             additionalParams.dataWrap=&tx_t3blog_pi1[blogList][showUid]={field:uid}
             useCacheHash =0
             title=zum Blogbeitrag
             no_cache=1
           }
           2 = TEXT
           2.field = tstamp
           2.date = d.m.y          
           2.wrap = <p class="date">|</p>
        }
}
sma123 · · Beste Antwort

OK, habs gelöst. Nachfolgende Bariante geht:

      lib.news1= CONTENT
       lib.news1{
         wrap = <div class="module-title"><h2 class="title">BLOG</h2></div>|
         table = tx_t3blog_post
         select.orderBy = tstamp DESC
         select.pidInList = 5
         select.max= 3   
         renderObj = COA
         renderObj  {
           1 = TEXT
           1.field=title
           1.crop = 50|...|1
           1.wrap = <b>|</b>
           1.typolink{
             parameter.field=pid
             additionalParams.dataWrap=&tx_t3blog_pi1[blogList][showUid]={field:uid}
             useCacheHash =0
             title=zum Blogbeitrag
             no_cache=1
           }
           2 = TEXT
           2.field = tstamp
           2.date = d.m.y          
           2.wrap = <p class="date">|</p>
        }
}