Download the PHP package dynamic/silverstripe-elemental-blog without Composer

On this page you can find all versions of the php package dynamic/silverstripe-elemental-blog. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package silverstripe-elemental-blog

SilverStripe Elemental Blog

Recent Blog Posts Element for the SilverStripe Elemental module.

CI codecov

Latest Stable Version Total Downloads Latest Unstable Version License

Requirements

Installation

composer require dynamic/silverstripe-elemental-blog

License

See License

Usage

There are four blocks available for you to use. It is likely that you will not want all of them to be available to content authors, so it is recommended that you review what the purpose of each block is, and then add the ones you don't need to disallowed_elements.

The four blocks are:

ElementBlogPosts

A block to show a list of recent posts by a featured blog. Ideal for home pages or dashboards.

ElementBlogOverview

The purpose of this block is to replicate the output that was originally being given by the Blog module's Layout template.

Including:

You will likely want to override the very basic default template that has been provided, you can do so by overriding the template found with the namespace Dynamic\Elements\Blog\Elements\ElementBlogOverview.ss.

Controlling pagination & widgets for this block

Pagination config:

With the default configuration, when an author creates a new Overview block, they will be presented with a checkbox to "Show pagination" (which will be ticked by default). If you do not want your authors to be able to disable pagination, then you can update the show_pagination_field config to false.

If you would like pagination to be turned off by default, then you can update the pagination_field_default to 0.

Widget config:

Because the Widget module is an optional addon, the default settings for Widgets is for them to be disabled. You have the same control over the Widgets config as you do for Pagination.

Using this block on Page types other than Blog

Please consider: While the Overview block does support you using it on other page types, it is primarily designed to be used on Blog page types. This is because it is Blog and BlogController that provide the relevant info to this block.

Please consider whether you want this block to be available to other page types, and if you don't, you might want to add this block to disallowed_elements on your other page types. EG:

If you do wish this block to be available on other page types, then please review the contents on the class to see how you can dictate what data should be provided to this block.

ElementBlogPagination

You might decide that you would like Pagination to be displayed quite separately to the Overview block. This can be achieved by using ElementBlogPagination as a separate block.

Please consider: Like the Overview Block, please consider removing this block from any/all Page types that you do not want it available on. EG, if you don't want to use it at all, you can disallow it for all pages by default:

ElementBlogWidgets

You might decide that you would like Blog Widgets to be displayed quite separately to the Overview. This can be achieved by using ElementBlogWidgets as a separate block.

Please consider: Like the Overview Block, please consider removing this block from any/all Page types that you do not want it available on. EG, if you don't want to use it at all, you can disallow it for all pages by default:

Getting more elements

See Elemental modules by Dynamic

Configuration

See SilverStripe Elemental Configuration

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:

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.


All versions of silverstripe-elemental-blog with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
dnadesign/silverstripe-elemental Version ^5.0
sheadawson/silverstripe-dependentdropdownfield Version ^3.0
silverstripe/framework Version ^5.0
silverstripe/blog Version ^4.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package dynamic/silverstripe-elemental-blog contains the following files

Loading the files please wait ....