Custom Plugin Field Using Wrong Template Path I'm trying to build a simple dropdown field with a pre-populated set of options, so I figured I'd just import most of the methods from Craft's native Dropdown field. The plugin name is siteutilities and the field name is Regionselect:

namespace kgrote\siteutilities\fields;

use kgrote\siteutilities\SiteUtilities;

use Craft;
use craft\base\ElementInterface;
use craft\fields\BaseOptionsField; 


This pulls in the code from craft/vendor/craftcms/cms/src/fields/BaseOptionsField.php.

So now I want to render a custom settings template for my plugin:

public function getSettingsHtml()
{
    return Craft::$app-&gt;getView()-&gt;renderTemplate(
        '_components/fields/Regionselect_settings',
        [
            'field' =&gt; $this,
        ]
    );
}


But I get a Twig error:


  Unable to find the template
  “_components/fields/Regionselect_settings”.


My plugin file structure looks like this:

kgrote
|-siteutilities
  |-src
    |-fields
    |  |-Regionselect.php
    |-templates
    |  |-_components
    |    |-fields
    |      |-Regionselect_settings.html
    |-SiteUtilities.php
In order to render a template within your custom plugin you need to include your plugin handle in front of your template path. For example

plugin-handle/_components/fields/Regionselect_settings