Fix documentation on hook_rrssb_buttons()

Created on 20 October 2020, over 3 years ago
Updated 19 May 2023, about 1 year ago

Problem/Motivation

First of all, apologies for posting this here, which is probably not the right place to post questions. I spent an ungodly amount of hours trying to change the icons via tokens but nothing seems to work (I can change them via css or html, but I need to change them via tokens in this case).

So, I got a button set and need to replace the icons. If I understand correctly (I probably don't) tokens get the image either from a node field ([node:field_image:url] default value, or the default directory of the site's logo [rrssbsite:logo-url]. I don't know what I am doing wrong, but I can't seem to get my custom SVGs (or PNGs) that way. I would really appreciate a few pointers or a couple of image token examples.

Also, is it possible to get an SVG/PNG from a custom directory within the project through these tokens?
PS: I am on Drupal 9.0.6.

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom drupaluser42

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024