Skip to content

Configurable branding via init file#7754

Open
glughi wants to merge 2 commits intoTerriaJS:mainfrom
bioretics:configurable-branding-via-init-file
Open

Configurable branding via init file#7754
glughi wants to merge 2 commits intoTerriaJS:mainfrom
bioretics:configurable-branding-via-init-file

Conversation

@glughi
Copy link
Copy Markdown
Contributor

@glughi glughi commented Feb 9, 2026

What this PR does

Added the ability to set brandBarElements, brandBarSmallElements and displayOneBrand in the init files. This way, using the init file in the URL you will be able to see brand elements other than the default ones.

Test me

Add

"parameters":{
        "brandBarElements": [
            "<a target=\"_blank\" href=\"https://www.bioretics.com\"><img src=\"https://www.bioretics.com/themes/bioretics/assets/images/Bioretics-logo.svg\" alt=\"Bioretics\"  height=\"52\" title=\"Bioretics\" /></a>"
        ]
    }

to an init file.

Checklist

  • There are unit tests to verify my changes are correct or unit tests aren't applicable (if so, write quick reason why unit tests don't exist)
  • I've updated relevant documentation in doc/.
  • I've updated CHANGES.md with what I changed.
  • I've provided instructions in the PR description on how to test this PR.

…directly within InitSourceData following the same pattern used for settings parameters.

Updated initialization file markdown documentation.
@zoran995
Copy link
Copy Markdown
Collaborator

Hi, @glughi, I am not sure we want to support this in the open-source, as it opens the door to presenting the maps with different branding and might give the wrong impression about who owns the map (and the map owner might actually spend a lot of time crafting the catalogue)

@glughi
Copy link
Copy Markdown
Contributor Author

glughi commented Feb 14, 2026

Hi @zoran995, we could add a parameter in the config to enable/disable this feature. At that point, if the admin then allows it, it is his responsibility.

@glughi
Copy link
Copy Markdown
Contributor Author

glughi commented Mar 9, 2026

We would also have prepared the change of main theming colours (such as "colorPrimary", "colorSecondary", "dark", etc.) using init files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants