minimalic/silverstripe-sitetools

SiteTools extension for custom 'siteconfig' fields in Silverstripe CMS

Installs: 13

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:silverstripe-vendormodule

1.2.0 2024-05-21 19:12 UTC

This package is auto-updated.

Last update: 2025-03-21 21:20:45 UTC


README

Silverstripe Extension for Settings and Pages with custom configuration fields for usage in own templates.

New options for Pages:

  • ShowInFooter (Bool)

New options for SiteConfig:

  • FooterCopyright (Varchar)
  • FooterDisclaimer (HTMLText)

Requirements

  • Silverstripe 4 or Silverstripe 5

Installation

composer require minimalic/silverstripe-sitetools

Refresh DB (shell website root): vendor/bin/sake dev/build "flush=all"

Or use base URL with: /dev/build?flush=all

Configuration: CMS

Use the Settings area for global footer content or Page settings for the ShowInFooter option.

Configuration: Templates

In your footer template use $SiteConfig.FooterCopyright or $SiteConfig.FooterDisclaimer:

<div class="row">
    &copy; $Now.Year $SiteConfig.FooterCopyright
</div>
<div class="row text-black-50">
    $SiteConfig.FooterDisclaimer
</div>

For custom lists/navs of pages with ShowInFooter enabled use <% loop $FooterMenu %> in Footer templates.

License

See License

Copyright (c) 2024, minimalic.com - Sebastian Finke All rights reserved.