Lack of interest Extend tag react

This suggestion has been closed automatically because it did not receive enough votes over an extended period of time. If you wish to see this, please search for an open suggestion and, if you don't find any, post a new one.

kick

Well-known member
It would be nice if you could specify your template, and add the ability to disable the display of reaction headers. At the moment, the response header cannot be hidden.
For example use.
Code:
<xf:react content="{$post}"
    template="custom_react"
    showtitle="false"
    link="posts/react"
    list="< .js-post | .js-reactionsList" />
This is currently hard-coded and when the template is called.
 
Upvote 0
This suggestion has been closed. Votes are no longer accepted.
.if you use a custom template, it can be hidden. The react template has this content:
Code:
<xf:reaction id="{$reaction}"
    content="{$content}" link="{$link}" params="{$params}" list="{$list}" class="{$class}"
    init="true" hasreaction="{$hasReaction}" small="true" showtitle="true" />

So just set showtitle="false".

Or you can use params attribute for xf:react: params="{{ {'showtitle': false} }}" and use it in your react template
Code:
<xf:reaction id="{$reaction}"
    content="{$content}" link="{$link}" params="{$params}" list="{$list}" class="{$class}"
    init="true" hasreaction="{$hasReaction}" small="true" showtitle="{$params.showtitle}" />
 
I kind of clearly wrote to add 1 attribute, so that it would be possible to show or not how it was done in the bookmarks.
 
Last edited:
Back
Top Bottom