0.2.1 • Published 1 day ago

volto-site-settings v0.2.1

Weekly downloads
-
License
MIT
Repository
-
Last release
1 day ago

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

0.2.1

1 day ago

0.2.0

18 days ago

0.1.2

2 years ago

0.1.1

2 years ago