Download the PHP package webfox/silverstripe-global-content without Composer
On this page you can find all versions of the php package webfox/silverstripe-global-content. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download webfox/silverstripe-global-content
More information about webfox/silverstripe-global-content
Files in webfox/silverstripe-global-content
Download webfox/silverstripe-global-content
More information about webfox/silverstripe-global-content
Files in webfox/silverstripe-global-content
Vendor webfox
Package silverstripe-global-content
Short Description Silverstripe SiteConfig like interface for global content that content-authors can access
License MIT
Package silverstripe-global-content
Short Description Silverstripe SiteConfig like interface for global content that content-authors can access
License MIT
Please rate this library. Is it a good library?
Informations about the package silverstripe-global-content
silverstripe-global-content
Installation
This module only supports installation via composer.
Run the following to add this module as a requirement and install it via composer.
then browse to /dev/build?flush=all
Requirements
- SilverStripe 3.2+
- PHP 5.4+
Module Overview
This module adds a convenient SiteConfig
like interface for managing global content.
Useful for when you want global content but don't want to give content-authors access to SiteConfig
Module Usage
Too add additional fields:
- Create a
DataExtension
that gets applied toGlobalContent
- The extension requires an
updateCMSFields(FieldList $fields)
method and any standardDataExtension
properties
The use with permissions:
- Grant the user/role/group the
Access to 'Global Content' section
permission
To use in templates:
$GlobalContent.MyFieldName
<% with $GlobalContent %> {$MyFieldName} <% end_with %>
$GlobalContent('MyFieldName')
To use in PHP:
GlobalContent::inst()->MyFieldName
To alter the edit form directly:
- Create a new
LeftAndMainExtension
that gets applied toGlobalContentAdmin
- The extension can use the
updateEditForm($form)
method to update the form before data is loaded. - The extension can use the
updateEditFormData($form)
method to update the form after data is loaded.
All versions of silverstripe-global-content with dependencies
PHP Build Version
Package Version
The package webfox/silverstripe-global-content contains the following files
Loading the files please wait ....