PHPackages                             swishdigital/template-selector - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. swishdigital/template-selector

ActiveCraft-plugin[Templating &amp; Views](/categories/templating)

swishdigital/template-selector
==============================

A fieldtype that allows you to select a template from a dropdown.

5.0.1(2y ago)25.5k↓70%2MITPHP

Since Aug 23Pushed 2y ago1 watchersCompare

[ Source](https://github.com/helloswish/template-selector)[ Packagist](https://packagist.org/packages/swishdigital/template-selector)[ RSS](/packages/swishdigital-template-selector/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (8)Dependencies (1)Versions (8)Used By (0)

Template Selector plugin for Craft CMS 3.x/4.x/5.x
==================================================

[](#template-selector-plugin-for-craft-cms-3x4x5x)

A fieldtype that allows you to select a template from a dropdown.

Requirements
------------

[](#requirements)

This plugin requires Craft CMS 3.0.0-beta.23 or later, Craft CMS ^4.0.0-alpha.1, or Craft CMS ^5.0.x-dev or later.

Please note this plugin requires PHP 8.x.

Installation
------------

[](#installation)

To install the plugin, select and install the plugin from the Craft Plugin Store, or follow these instructions:

1. Open your terminal and go to your Craft project:

    ```
     cd /path/to/project

    ```
2. Then tell Composer to load the plugin:

    ```
     composer require swishdigital/template-selector

    ```
3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Template Selector.

Migrating from Template Select plugin by Siperbig
-------------------------------------------------

[](#migrating-from-template-select-plugin-by-siperbig)

1. Remove the Template Select plugin without changing any attributes of your fields.
2. Uninstall the Template Select plugin.
3. Install Template Selector. All of your fields will continue to work and data from the provious fieldtype will remain intact.

Configuring Template Selector
-----------------------------

[](#configuring-template-selector)

Create a new field and choose field type Template Selector.

In the field settings, you can limit the list of available templates to a subfolder of the Craft templates folder. The path is relative, i.e. *subfolder/anotherfolder*. This may also be set to an ENV variable.

[![Screenshot](resources/img/field-settings-1.png)](resources/img/field-settings-1.png)

[![Screenshot](resources/img/field-1.png)](resources/img/field-1.png)

In the field settings, you can choose to make the template names more user friendly. In the field, file extensions will be removed, and the file names properly capitalized and spaced for readability.

[![Screenshot](resources/img/field-settings-2.png)](resources/img/field-settings-2.png)

[![Screenshot](resources/img/field-2.png)](resources/img/field-2.png)

Using Template Selector
-----------------------

[](#using-template-selector)

Output the chosen template name:

```
{{ entry.fieldHandle }}
```

Include/Embed the chosen template:

```
{% include entry.fieldHandle %} or {% include 'myFolder/anotherFolder/' ~ entry.fieldHandle %}
```

Output the subfolder name:

```
{{ craft.templateSelector.subfolder('fieldHandle') }}
```

Include/Embed more dynamically:

```
{% include craft.templateSelector.subfolder('fieldHandle') ~ '/' ~ entry.fieldHandle %}
```

More Info
---------

[](#more-info)

Brought to you by [Swish Digital](https://swishdigital.co)

This is an updated and enhanced version of the [Template Select](https://github.com/sjelfull/craft3-templateselect) plugin by [Superbig](https://superbig.co)

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~92 days

Recently: every ~138 days

Total

7

Last Release

856d ago

Major Versions

1.0.7 → 5.0.12024-02-29

### Community

Maintainers

![](https://www.gravatar.com/avatar/aa032da94102be5908fc58ea10624fdd78ea68570e91f511250052562bdfcfa7?d=identicon)[chadcrowell](/maintainers/chadcrowell)

---

Top Contributors

[![chadcrowell](https://avatars.githubusercontent.com/u/48151?v=4)](https://github.com/chadcrowell "chadcrowell (12 commits)")[![tomdavies](https://avatars.githubusercontent.com/u/136308?v=4)](https://github.com/tomdavies "tomdavies (1 commits)")

---

Tags

cmsCraftcraftcmscraft-plugintemplate selector

### Embed Badge

![Health badge](/badges/swishdigital-template-selector/health.svg)

```
[![Health](https://phpackages.com/badges/swishdigital-template-selector/health.svg)](https://phpackages.com/packages/swishdigital-template-selector)
```

###  Alternatives

[verbb/formie

The most user-friendly forms plugin for Craft.

102393.6k70](/packages/verbb-formie)[wbrowar/guide

A CMS Guide for Craft CMS.

6154.7k1](/packages/wbrowar-guide)[verbb/vizy

A flexible visual editor field for Craft.

4250.4k](/packages/verbb-vizy)[verbb/hyper

A user-friendly links field for Craft.

24147.8k12](/packages/verbb-hyper)[verbb/footnotes

Adds a footnotes feature to CKEditor fields and Twig templates.

213.6k](/packages/verbb-footnotes)[verbb/events

A full-featured plugin for event management and ticketing.

2311.9k](/packages/verbb-events)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
