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

volto-site-settings

Package Overview
Dependencies
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

volto-site-settings

volto-site-settings: Volto add-on

  • 0.2.1
  • npm
  • Socket score

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

volto-site-settings

Introduction

Note: This add-on currently needs collective.volto.sitesettings to be installed in order to work.

This addon enable user to change and translate:

  • site title
  • site subtitle

and to change:

  • site logo
  • site footer logo
  • site favicon

from control panel

and sets page title template with current site title. If volto-subsites is installed, it calculates site-title and site logo if you are under a subsite.

image

Usage

yarn add volto-site-settings

Use SiteProperty component to get site properties: For example, to get site title:

import { SiteProperty } from 'volto-site-settings';
const title = SiteProperty = ({
  property = 'site_title',
  getValue: true
});

or

import { SiteProperty } from 'volto-site-settings';
<SiteProperty property="site_title" />;

or to get logo:

import { SiteProperty } from 'volto-site-settings';
import logo from './logo.png';

<SiteProperty
  property="site_logo"
  defaultValue={{ url: logo, width: 82, height: 82 }}
  className="icon"
  alt={alt}
/>;

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 09 May 2024

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