Fixed Node "sub-type" icons not always being used

digitalpoint

Well-known member
Affected version
2.2.12
Minor, but... If you look at the Node list in the admin area, you see something like this:

1678409729851.webp

You get the icons that are specific to the ForumType handler (for example the Question forum type gives the question-mark icon as well as the text showing what type of forum it is).

If you look at the Node permissions page, you lose a lot of that info... everything reverts to default info for the Forum (you don't see the text or icons).

1678409862198.webp

Shouldn't this be showing info from the ForumType handler?

In the admin:permission_node_overview template, if you change this:

HTML:
<xf:cell class="dataList-cell--min"><i class="nodeIcon nodeIcon--{$node.NodeType.node_type_id}"></i></xf:cell>
...to this:
HTML:
<xf:cell class="dataList-cell--min"><xf:macro template="node_list" name="node_icon" arg-node="{$node}" /></xf:cell>

...and...

HTML:
<div class="dataList-mainRow">{$node.title} <span class="dataList-hint" dir="auto">{$node.NodeType.title}</span></div>
...to this:
HTML:
<div class="dataList-mainRow">{$node.title} <span class="dataList-hint" dir="auto">{$node.NodeType.title} <xf:if is="callable($node.Data, 'getTypeHandler')"> ({{ $node.Data.TypeHandler.getTypeTitle() }})</xf:if></span></div>

Then you are presented with something that makes more sense and is more consistent with the Node list:

1678411206377.webp
 
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.2.13).

Change log:
Add context to node permission list with node type icons.
There may be a delay before changes are rolled out to the XenForo Community.
 
Back
Top Bottom