Search by

dynamic / silverstripe-base-site

dynamic

Base page types for SilverStripe websites

Package info

github.com/dynamic/silverstripe-base-site

Type:silverstripe-vendormodule

pkg:composer/dynamic/silverstripe-base-site

Fund package maintenance!

dynamic

Statistics

Installs: 19 391

Dependents: 1

Suggesters: 1

Stars: 0

Open Issues: 20


README

Base page types and extensions for SilverStripe websites

CI Sponsors

Latest Stable Version Total Downloads Latest Unstable Version License

Requirements

  • PHP: ^8.3
  • axllent/silverstripe-email-obfuscator: ^2
  • axllent/silverstripe-scaled-uploads: ^2.1
  • dnadesign/silverstripe-elemental: ^6
  • dynamic/silverstripe-site-tools: ^6
  • jonom/silverstripe-betternavigator: ^7
  • jonom/silverstripe-text-target-length: ^2
  • silverstripe/linkfield: ^5.0
  • silverstripe/recipe-cms: ^6
  • silverstripe/sharedraftcontent: ^4
  • tractorcow/silverstripe-robots: ^5
  • wilr/silverstripe-googlesitemaps: ^4

Installation

composer require dynamic/silverstripe-base-site

Features

  • Multiple Page Types: HomePage, BlockPage, CampaignLandingPage, SearchPage
  • Header Image Support: Add hero images to pages
  • Elemental Integration: Full page builder support with drag-and-drop elements
  • Shared Drafts: Collaborate with shared draft content management
  • SEO Tools: Google Sitemaps, robots.txt configuration, and configurable meta title/description length targets
  • Site Branding & Navigation: SiteConfig-level logo (with retina variant) or title/slogan toggle, footer navigation columns and link groups, social links, and utility links
  • CMS Field Organization: Reorders CMS fields for a more logical editing experience
  • Better Navigation: Enhanced CMS navigation via jonom/betternavigator
  • Email Obfuscation: Protected email links from spam bots
  • Image Optimization: Automatic scaled uploads for performance

Configuration

  • Dynamic\Base\Model\SocialLink.social_channels / .social_icons / .default_icon — the supported social platforms and their Bootstrap Icons mapping (see _config/social-channels.yml)
  • Axllent\ScaledUploads\ScaledUploads.max_width / .max_height — maximum dimensions for uploaded images (see _config/scaled-uploads.yml)

Documentation

Upgrading

SearchContent is gone from SeoExtension

SeoExtension no longer declares a SearchContent field or a SearchFields fulltext index over it, and no longer hooks onBeforeWrite(). Sites whose custom code queried SearchContent directly (templates printing $SearchContent, ORM filters on that field, or custom MATCH queries) will stop seeing that data after this change.

dev/build neither drops columns nor removes indexes that a class stops declaring, so existing installs keep the stale, frozen data behind - including the storage cost of a large HTMLText column on every row of SiteTree_Versions. To drop it by hand after deploying:

ALTER TABLE SiteTree DROP COLUMN SearchContent;
ALTER TABLE SiteTree_Live DROP COLUMN SearchContent;
ALTER TABLE SiteTree_Versions DROP COLUMN SearchContent;

Dropping the column also removes it from any index that contains it. Sites without FulltextSearchable lose the old SearchFields index entirely. Sites with it keep core's SearchFields index on Title, MenuTitle, Content, MetaDescription, which dev/build already manages. Don't drop that index by hand.

Skip any statement for a table that has no such column - for example a site that never ran an older version of this module. On a large site, altering SiteTree_Versions can rebuild the whole table, so take a backup and run it in a maintenance window.

This removal breaks public API for anyone still using it: templates printing $SearchContent, ORM filters on that field, and calls to seoContentFields() all stop working.

Maintainers

Bugtracker

Bugs are tracked in the issues section of this repository. Before submitting an issue please read over existing issues to ensure yours is unique.

If the issue does look like a new bug:

  • Create a new issue
  • Describe the steps required to reproduce your issue, and the expected outcome. Unit tests, screenshots and screencasts can help here.
  • Describe your environment as detailed as possible: SilverStripe version, Browser, PHP version, Operating System, any installed SilverStripe modules.

Please report security issues to the module maintainers directly. Please don't file security issues in the bugtracker.

Development and contribution

If you would like to make contributions to the module please ensure you raise a pull request and discuss with the module maintainers.

License

See License