Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

volto-site-settings

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

volto-site-settings

Volto add-on that loads Site controlpanel settings

  • 0.1.1
  • npm
  • Socket score

Version published
Weekly downloads
251
increased by161.46%
Maintainers
1
Weekly downloads
 
Created
Source

volto-site-settings

Volto add-on that fetches site settings, as configured in the Site controlpanel, during SSR and stores data in the redux store. It also contains a customization of the default Volto Logo component that uses the logo and site title set in the controlpanel.

Note: this add-on currently needs redturtle.volto to be installed in order to work.

Installation

In your Volto project run

yarn add -W volto-site-settings

Then add the add-on to the addons section of your project package.json file.

Usage

You can read the site settings directly from the redux store, they will always be populated since they are requested by the server when generating the page during SSR.

The settings are not refreshed on navigation. This means that after changing the settings, you need a full reload of the page in order to read the settings again.

import { useSelector } from 'react-redux';

const Logo = () => {
  const siteSettings = useSelector((state) => state.siteSettings);
  const siteTitle = siteSettings.result.site_title;
  ...
};

See the customized Logo implementation in this package for more details.

Contributing

Contributions are welcome, feel free to open an issue or submit a PR.

This project uses the conventional changelog specification (see COMMITLINT.md).

License

This product is licensed under the MIT License.

Authors

This product was developed by the RedTurtle Technology team.

RedTurtle

Keywords

FAQs

Package last updated on 21 Jul 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc