Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get rid of read more link in news Teaser

I have a news list element on my site with no detail page associated with it. But the Teaser headline and image are still links and the read more links is still displayed.

How do I disable all links to the detail page in the Teaser.

I searched for dokumentation on this but all I could find dealt with the tt_news extention and not tx-news.

like image 354
Blank Chisui Avatar asked Nov 23 '25 02:11

Blank Chisui


1 Answers

You have to edit the templates and remove the links from the list view.

You'll find this template in /ext/news/Resources/Private/Partials/List/Item.html

Don't edit this original file, but copy it like explained in the link above.

Now change for example ...

<h3>
    <n:link newsItem="{newsItem}" settings="{settings}" title="{newsItem.title}">
        <span itemprop="headline">{newsItem.title}</span>
    </n:link>
</h3>

...to ...

<h3>
        <span itemprop="headline">{newsItem.title}</span>
</h3>
like image 134
Ben Avatar answered Nov 25 '25 00:11

Ben