UIItem dataAttributes not work on topic Snippet layout, it works fine on Classic.
onlyME 2,165 Posted 6 hours ago 1 hour ago, Marc said: Please could you clarify further what you are seeing by example? I created an UIItem extension for 'IPS\forums\Topic' class to add a data attribute public function dataAttributes( BaseItem $item ): string { return "data-test"; } In the Classic layout, you might see something like this in the template: <li data-ips-hook="topicRow".... data-test> But when using Snippet layout for , there is no "data-test"
Recommended Comments