XF 2.3 remove "threads"

Patronus

New member
Hi! how to remove "threads" in widget? So that there is only a title and not repeating threads, threads ....
 

Attachments

  • Thread.webp
    Thread.webp
    22.9 KB · Views: 2
Currently, the easiest way is to edit the Phrase thread_x

Note: XF 2.4 won't display the thread prefix if threads are the only content type in the widget.
but I need to remove it only from this widget, and leave it in other places. Which template should I edit and how?
 
but I need to remove it only from this widget, and leave it in other places. Which template should I edit and how?
It's not something hard coded in a template that you can just edit and remove.

The content title is fetched via the function getContentTitle() in the Content Entity.

PHP:
    public function getContentTitle(string $context = '')
    {
        return \XF::phrase('thread_x', ['title' => $this->title]);
    }

Anyway, XF developers listened to the feedback on this and XF 2.4 includes a solution that the content type prefix only will be displayed if the widget contains mixed content :)
 
Back
Top Bottom