Patronus New member Mar 4, 2025 #1 Hi! how to remove "threads" in widget? So that there is only a title and not repeating threads, threads .... Attachments Thread.webp 22.9 KB · Views: 2
Hi! how to remove "threads" in widget? So that there is only a title and not repeating threads, threads ....
Bob Well-known member Mar 4, 2025 #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. Upvote 0 Downvote
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.
Patronus New member Mar 4, 2025 #3 Bob said: 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. Click to expand... but I need to remove it only from this widget, and leave it in other places. Which template should I edit and how? Upvote 0 Downvote
Bob said: 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. Click to expand... but I need to remove it only from this widget, and leave it in other places. Which template should I edit and how?
Bob Well-known member Mar 4, 2025 #4 Patronus said: but I need to remove it only from this widget, and leave it in other places. Which template should I edit and how? Click to expand... 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 Upvote 0 Downvote
Patronus said: but I need to remove it only from this widget, and leave it in other places. Which template should I edit and how? Click to expand... 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