Skip to content

Fix social media site entry on departments #2672

@curtismchale

Description

@curtismchale

Source

CM

Currently if we want to add another social media option to our Department (agency) menu we don't have a good way to define the label, icon classes, URL as their own entities. You can add a new item here but then due to the differences in how we do labels and Font Awesome does icons we have to perform a bunch of coding gymnastics to get everything to show as we want. This is because it uses the array_key as the label and hardcodes a bunch of the icon classes, which aren't consistent across options.

We need to redefine the array of available social networks to contain fields for:

  • label
  • icon_class
  • URL

Then we need to save that with the user being able to set the URL via the admin interface on Departments.

This commit performed the hacks you see so that we could have X as an option.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions