Skip to content

Releases: praxisnetau/silverware

1.3.0 (2017-09-22)

22 Sep 01:05
Compare
Choose a tag to compare

Full Changelog

Added

  • new Button class and styles
  • new DetailFieldsExtension for rendering a list of detail fields within the template, defined from configuration
  • new ButtonStyle extension to add button styles to extended objects
  • method renderCSS() added to ViewTools, which renders a passed object with the specified CSS template

Updated

  • BaseListComponent changed default option to 'None' for showable items
  • BaseListComponent now has getListStyleFields() and getListOptionFields() for easier subclassing
  • FeatureComponent now has corner styles and can be linked in it's entirety (i.e. the whole box, rather than just the title or footer button)
  • Installer asks for database name and vendor, works in conjunction with updated silverware/app
  • AreaExtension now also handles subclasses of Panel
  • PageExtension now uses a getContentClassNames() method for content area style classes
  • setParent() on Component is now setParentInstance() - use when linking together components in memory
  • Component classes can now be added as children of pages if the Component class name is permitted by the page's allowed_children

Fixed

  • ViewportsField is now a subclass of CompositeField; SilverStripe now treats it appropriately in other methods
  • processAttribute() in ViewTools now checks if the given $parent parameter is an object

Removed

  • load_component_requirements removed from controller settings
  • getParentInstance() on Component has been replaced with an overridden getParent() method
  • trait RequireFiles has been removed; the functionality has been merged into the Renderable trait

1.2.0 (2017-09-12)

12 Sep 02:22
Compare
Choose a tag to compare

Full Changelog

Added

  • new ListItemExtension (replaces ListItem trait)
  • new TagField used to add tags to objects (such as blog posts)
  • new ToggleGroup field which will show or hide a group of fields based on the status of a checkbox
  • new ListAlert trait to add alert messages at the top of list components
  • new ListPage class which renders it's child pages as a list
  • new ListSourceSlide class to add slides to a component from a list source
  • new .handleMessages() JavaScript functionality for Ajax-powered forms
  • themed editor CSS production/styles/editor.css added to HTML editor
  • additional editor CSS can be defined using themed_editor_css config on LeftAndMain
  • style variable for icon size multiplier
  • image overlay feature for list items with custom icon
  • options for edge-to-edge and position (fixed, sticky etc.) added to Section
  • option to hide the image in a Slide
  • dependency for silverware/select2 module

Updated

  • Component now records the parent instance via setParent() in a property; useful when rendering
  • ComponentController will now throw a 404 by default when being accessed via it's URL in the browser
  • tag() method in Component renamed to renderTag() to avoid problems in templates
  • a Slide is now a Component rather than a subclass of Link
  • parent components of Slide can now define a custom template to use for the slide using getSlideTemplate()
  • getCustomCSSTemplate() now accepts a $class parameter in Renderable
  • list items will now only show a particular detail item if it has a text value
  • Slide objects can now use a custom tag (default is div)

Fixed

  • namespace for BreadcrumbsExtension was incorrect
  • initial resize upon window load for TagCloudComponent was not working correctly
  • bug with BaseComponent rendering two content divs
  • bug with MetaDataExtension throwing an error on getMetaDateFormatted() when a meta date does not exist
  • bug with the Link class not specifying page mode when being created using fromPage()
  • bug in the Tag class when finding the parent class from the many-many component

Removed

  • AutoCompleteField as it was buggy and unnecessary
  • ListItem trait, it made more sense to change it to an Extension so it could be applied to all Page classes

1.1.0 (2017-08-29)

29 Aug 05:05
Compare
Choose a tag to compare

Full Changelog

Added

  • .svg added to allowed extensions by default
  • BreadcrumbsExtension to allow easier customisation of breadcrumbs within controllers
  • BaseListComponent as an abstract parent class for list components
  • TileComponent used to render a list of items as a series of tiles
  • ability to set app title and tagline via YAML fixtures
  • model class Breadcrumb used to represent an item of breadcrumb navigation
  • interface Crumbable for classes which can be rendered as breadcrumbs in the template
  • relocated Installer class from silverware-app
  • 'LinkToExtension` which adds standard linking fields to the extended object
  • ability to specify both image and text alignment styles
  • PaginationStyle extension for components supporting pagination
  • ThemeStyle extension for using utility styles from the theme
  • merge method for FieldSection class
  • components now support a public doInit bootup method (along with a protected init)
  • components can now programmatically answer their template using getTemplate

Updated

  • build dependencies
  • styles to match with new Bootstrap v4.0.0-beta class names
  • expanded abilities of FeatureComponent (including icons and sub-headings)
  • alignment classes now include justify
  • the ListItem trait now refers to a $renderer instead of a $listComponent
  • Link functionality moved to LinkToExtension

Fixed

  • ScrollToTopButton now correctly uses theme utility classes for appearance
  • an array/string type conversion bug in FixtureBlueprint

1.0.0 (2017-06-16)

16 Jun 06:23
Compare
Choose a tag to compare

Full Changelog

Added

  • Link component
  • fallback setting for webpack dev server; if load_themed_css is set to false and fallback is set to true, the controller will fallback to using the themed CSS if the environment is dev and the dev server is not active
  • parameters for meta field config
  • toLink method on PageExtension, to easily convert Page classes to Link objects
  • CornerStyle extension for selecting the style of corners on the extended object
  • LinkColorStyle for choosing foreground/background colors for links, plus their hover and active states
  • PageDropdownField, like TreeDropdownField but defaults to showing instances of Page only
  • PageMultiselectField, like TreeMultiselectField but defaults to showing instances of Page only
  • CMSMainPermissions trait for data objects managed via the CMS
  • SiteConfigPermissions trait for data objects managed via SiteConfig

Updated

  • build dependencies
  • replaced CompositeField instances with new FieldSection class
  • replaced TreeDropdownField instances with new PageDropdownField class
  • replaced TreeMultiselectField instances with new PageMultiselectField class
  • component style is now refered to as "Selectors"
  • component options has now been renamed "Status"

Removed

  • anything admin related has been moved to silverware/admin
  • PageIconFix trait has been removed as it is no longer necessary
  • PageIconExtension has been moved to silverware/admin
  • GridFieldConfig_OrderableEditor as grid field extensions are still broken
  • permission methods on data objects have been replaced with CMSMainPermissions and SiteConfigPermissions traits

Fixed

  • code formatting and docblocks
  • fixtures can now use Title as the identifier
  • references to MetaDataExtension methods now check the object has the extension first before calling
  • methods provided by GridAware trait are now public

0.3.2 (2017-05-24)

24 May 04:25
Compare
Choose a tag to compare

Full Changelog

Fixed

  • an exception that occurred when a PageType already exists with a non-existent class

Removed

  • references to $object->class, as SilverStripe\Core\Object has been removed from silverstripe-framework

0.3.1 (2017-05-23)

23 May 06:07
Compare
Choose a tag to compare

Full Changelog

Fixed

  • dependencies in composer.json fixed

Removed

  • references to the SilverStripe\Core\Object class as it has been removed from silverstripe-framework

0.3.0 (2017-05-22)

22 May 01:05
Compare
Choose a tag to compare

Full Changelog

Added

  • MediaComponent for adding rich content via Embed\Embed
  • ImageComponent now supports linking of images and lightbox popups (if available)
  • a Panel can now be added as a child of a regular page in the site tree, allowing the user to add components to an area (e.g. sidebar) for a particular page
  • MediaURLValidator, used with the MediaComponent to validate an entered URL via Embed\Embed

Fixed

  • number badge selector in JS
  • ImageComponent margins
  • permissions for components, which will now be hidden from the site tree if the user does not have component editing permission

Removed

  • component view permissions, too confusing and problematic - use edit permissions instead

0.2.1 (2017-05-15)

15 May 00:56
Compare
Choose a tag to compare

Full Changelog

Added

  • AlertMessageExtension which translates form validation result types into alert styles
  • style mapping configuration to support Bootstrap 4 alert classes
  • number badges for CMS tree to support "iOS style" badges; useful for unread message counts etc.
  • method to return attributes for the current page, such as ID and class name; useful for styling
  • method to answer the ancestry for the current page

Fixed

  • PageType summary fields now support i18n

0.2.0 (2017-05-08)

08 May 00:31
Compare
Choose a tag to compare

Full Changelog

Added

  • components can now generate their own custom CSS
  • standard breakpoints to grid framework config
  • breakpoints accessible via Grid::framework()->getBreakpoint('viewport');
  • ViewportsField now supports regular text input as an alternative to dropdown fields
  • BaseListComponent as an abstract superclass of all "list type" components
  • canPaginate method to list components, to determine whether to show pagination settings
  • callback array syntax for YAML fixtures, to replace code blocks (see removed below)
  • ability to show only items with images in list components
  • configurable fields for MetaDataExtension to control which fields are displayed
  • attribute processing methods to ViewTools

Fixed

  • ListComponent flex styles

Removed

  • YAML code blocks from FixtureBlueprint, relying on eval is not ideal, replaced with callback array syntax