Zum Inhalt springen

tt_news readmore trotz TS doppelt vorhanden

Erstellt am 10. Oktober 2012 · 3 Antworten · letzte Antwort am 11. Oktober 2012

Tags: tt_news, Frage

timmy2007 ·

Der Read More Button wird in meinem LIST Template trotz der TS Konfigurationen doppelt angezeigt. Eigentlich sollte der am "news_subheader" Marker rangestellte Button verschwinden und dafür der danach kommende Button formatiert angezeigt werden.

#tt_news readmore Link nicht doppelt
### tt_news: more-Link weg
plugin.tt_news.displayList.subheader_stdWrap.append >


page.5 = LOAD_REGISTER
page.5 {
    readmore.cObject = TEXT
    readmore.cObject {
      value = Read more
      lang.de = Weiterlesen
    }
}
 
plugin.tt_news {
    displayList {
        subheader_stdWrap >
        subheader_stdWrap {
            stripHtml = 1
            crop = 230 | ... | 1
            ifEmpty.field = bodytext
            append = TEXT
            append.data = register:newsMoreLink_url
            append.dataWrap = <a class="smallsmoothrectange redbutton" href="|" title="{field:title}">{register:readmore}</a>
      append.if.isTrue.field = bodytext
        }
  }

Mein HTML des Templates der LIST Ansicht:

<!-- ###TEMPLATE_LIST### begin
        This is the template for the list of news in the archive or news page or search
-->

<!-- ###CONTENT### begin
                  This is the part of the template substituted with the list of news:
        -->
                <!-- ###NEWS### begin
                        Template for a single item
                -->

<!-- Start Left Section -->
        <div class="leftsection">

                <!-- Start Blog Post -->
                <div class="blogwrapstart">

<div class="blogtitle"><h3>###NEWS_TITLE###</h3></div>

<div class="blogbody">
                        <!-- Start Blog Image -->
                        <div class="blogimage">###NEWS_IMAGE###</div>
                    <!-- End Blog Text -->
                    <!-- Start Blog Information -->
                    <div class="bloginfo">

                             <p class="usericon">Autor: <span>###NEWS_AUTHOR###</span></p>
                      <p class="calendericon">Am: <span>###NEWS_DATE###</span></p>
                      <p class="settingsicon">Kategorie: <span>###NEWS_CATEGORY###</span></p>
                      </div>
                    <!-- End Blog Information -->
                    <!-- Start Blog Text -->
                    <div class="blogtext">

                    ###NEWS_SUBHEADER###
                    <p class="blogbutton"><!--###LINK_ITEM###-->###MORE###<!--###LINK_ITEM###--></p>

                    </div>
                        <!-- End Blog Text -->
                </div>

                <span class="box-arrow"></span>

            </div>
            <!-- End Blog Post -->



        </div>
        <!-- End Left Section -->

            <!-- Start Pagination -->
            <div class="blogwrap">

                <div class="blogpagination">

                        ###BROWSE_LINKS###
                </div>

                <span class="box-arrow"></span>
            </div>
            <!-- End Pagination -->

                    </div>
        <!-- End Left Section -->
        <!-- ###NEWS### end-->
        <!-- ###CONTENT###  end -->

<!-- ###TEMPLATE_LIST### end -->

Hat jemand eine Idee?

LuP ·

Hallo,

nimm append raus wenn nur der more Link in <p class="blogbutton"></p> erhalten bleiben soll.

OT: register:newsMoreLink_url kommt mir bekannt vor ...

VG,
LuP