Download the PHP package mouseketeers/silverstripe-template-selector without Composer

On this page you can find all versions of the php package mouseketeers/silverstripe-template-selector. 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-template-selector

Template selector

Adds a Layout dropdown to page settings. Custom layouts are discovered from Silverstripe's effective theme paths, including the application and modules in $default. Theme overrides follow the same precedence as normal rendering. In the CMS, discovery uses the public theme stack retained by HTMLEditorConfig, rather than the admin theme stack.

For a page class Acme\Pages\ArticlePage, automatic discovery includes:

The unsuffixed ArticlePage.ss is the default and is excluded. The application folder's name and case come from Silverstripe's configuration. Only active themes are searched.

For other naming conventions or namespaces, configure an explicit identifier to label mapping on the page class. A nonempty mapping replaces automatic discovery:

Identifiers are relative to templates/, with no .ss extension. The same identifier is stored in Template and passed to renderWith(). Only mapped identifiers that resolve in the effective themes are offered.

Existing basename-only values (for example ArticlePageGallery) continue to resolve against available candidates. Automatic discovery prefers the page's namespace over the global Layout directory for legacy basename collisions. For explicit mappings, the first matching basename wins. Existing selections remain selected in the CMS; new selections use full identifiers. Unavailable selections remain visible as unavailable and render the normal default layout. The controller retains normal outer-template selection.

Run dev/build after upgrading to widen the Template column to Varchar(255). For themes selected dynamically, ensure the same public theme stack is available before CMS initialization (or set HTMLEditorConfig::setThemes() accordingly).

Integration checks

The regression script uses real Silverstripe dropdowns, data objects, theme resolution and template rendering. It requires a case-sensitive fixture directory and an isolated Silverstripe 5 installation; it does not connect to a database. It checks loaded legacy values, canonical identifiers, public versus admin themes, app-only discovery, theme precedence, mapped layouts, outer templates and fallback.

Copy an existing compatible CMS vendor directory into a new disposable project (do not symlink it: Silverstripe requires framework files beneath BASE_PATH):

Alternatively, supply an isolated application bootstrap as the first argument. The script asserts filesystem case sensitivity before testing. No production records are read or written; database save/publish and browser interaction should also be checked in the consuming application.


All versions of silverstripe-template-selector with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
silverstripe/framework Version ^5.4 || ^6
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 mouseketeers/silverstripe-template-selector contains the following files

Loading the files please wait ...