Download the PHP package qbus/contao-fallback-articles without Composer

On this page you can find all versions of the php package qbus/contao-fallback-articles. 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 contao-fallback-articles

Contao Fallback Articles

This Contao extension provides a basis for developers to implement methods that can get fallback articles when a page has no articles for a layout section.

Implementations

Usage

Fallback Articles provides the hook getFallbackArticles, language labels for implementations, and integration options in tl_layout.

Hook getFallbackArticles

The hook is called whenever a layout section does not contain any articles and a fallback method for that section is selected in the layout settings. The hook provides the page id and the name of the section. As a return value, it expects the fallback content as a string or false if no content could be provided by the fallback method.

Your hook listener must be named in order for it to be usable in the layout settings.

Example

Register the hook:

Implement your fallback method:

Language labels for the fallback method

Use the name of your hook implementation as a key to provide a short description of your fallback method under the language key fallback_articles_methods.

Example

or

Backend integration

Open the layout settings and select the checkbox "Define fallback articles". In the tabular field "Fallback articles", select the methods to be used per layout section. The methods are evaluated from bottom to top. The first one (from the bottom) to return any content "wins", i. e. the methods following it are not used. In other words, the fallback content in a section does not accumulate when multiple methods are defined.

TODO

Drop Contao 3.5 support and use the getArticles hook to get rid of the current replication of the core's module assembly.


All versions of contao-fallback-articles with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
contao-community-alliance/composer-plugin Version ~2.4 || ~3.0
contao/core-bundle Version ^3.5.5 || ~4.4
menatwork/contao-multicolumnwizard Version ^3.3.9
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 qbus/contao-fallback-articles contains the following files

Loading the files please wait ....