XF 2.0 Display custom thread fields when browsing forum threads

0ptima

Well-known member
How can I display the custom thread fields when browsing forum threads? In this example, I have a custom thread field called PHP Version that must be filled in when creating a new thread. I would like this custom field to be shown when browsing the forum threads.



191342
 

sbj

Well-known member
Don't think you can do that by default. Maybe you could do it by doing a template modification, but I wouldn't know how to do it.

As a suggestion, this addon let's you to do what you want to do.
 

0ptima

Well-known member
I was able to add it by adding the following to the thread_list_macros template

<xf:if is="$thread.node_id == 5">
<xf:if is="{$thread.custom_fields.phpversion}">
PHP Version: {$thread.custom_fields.phpversion}
</xf:if>
</xf:if>
 

cdub

Well-known member
🌭 !

Now what we really need is a way to sort and search custom fields natively. (I know there's an addon that helps with that)
 

est3ban129

Active member
can you tell me where the RSS code is ? I'd like to explore this to see if I can get the custom fields added to the RSS feed
 
Top