0.4.6 • Published 12 months ago

volto-site-settings v0.4.6

Weekly downloads
-
License
MIT
Repository
-
Last release
12 months 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.4.5

1 year ago

0.4.6

12 months ago

0.3.0

1 year ago

0.4.4

1 year ago

0.4.1

1 year ago

0.4.0

1 year ago

0.4.3

1 year ago

0.4.2

1 year ago

0.2.3

1 year ago

0.2.2

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago

0.1.2

3 years ago

0.1.1

3 years ago