Query about Badge Links
- This topic has 3 replies, 2 voices, and was last updated 2 years, 6 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
Hi everyone,
The BMCC team has a few questions about the links that are currently inside our group badges.
From the group/profile:
-The OER badge links right back to itself.
-The Open badge links to a “some link” url that goes to a “Page not found” error (from an example group): https://openlab.bmcc.cuny.edu/groups/bus104-introduction-to-business-course-hub/somelink/
-The Cloneable badge links to a “some other link” url that also shows the “Page not found” error (from another example group): https://openlab.bmcc.cuny.edu/groups/gardening-101-1600-sp-20-graves/someotherlink/
We would like to follow City Tech’s OL model and create a help page defining these terms, and have the badges link to that help doc.
1) How do we edit these badge links?
2) Is it possible to edit the badge that says “clone” to say “cloneable,” like City Tech’s badge? When we hover the mouse over “clone,” the drop-down label says “cloneable” already (see attached screenshot).
Thanks!
We’ve been in touch outside the forum about this, but I just wanted to post an update here for anyone else who comes across the issue.
‘Open’ and ‘Clone’ are not technically badges, in that they’re not added to a group by an admin, but more like labels that are added automatically depending on a group’s status. This is why they’re not included in the Badges admin interface. Currently they’re hardcoded, and the placeholder links (‘somelink’ etc) shouldn’t have been included. We have a ticket for addressing this in the next release:
https://github.com/cuny-academic-commons/commons-in-a-box/issues/334
In the meantime, Boone included a short-term fix in the ticket:
Anyone wanting to make changes to these badges can use the following as a template:
https://gist.github.com/boonebgorges/95d1ec1c291e7c63cdeb0391780b6d51
The first block changes the ‘Open’ link to ‘#’, which effectively makes it a non-link. (Actually removing the anchor tag will cause problems for the tooltip and for styling.) You can change it to some other URL if you’d like. The second block changes the ‘Clone’ link to read ‘Cloneable’. You can mix and match as you see fit.
Thanks!
Just want to reply here on the old forum and say thank you! We love having badge links.