Remove Modules from Site Template List

Hello,
it’s my first time requesting something here. If it is in the wrong place be patient :slight_smile:
AND I am really new to kirby.

I’m using the modules plugin and I don’t want the list of available modules appear in the site listing.

As you can see in the image below only the “Default Page” is a real page.
How can i remove the modules from there?

thank you in advance

You can define the templates/blueprints that might be used for creating new template with the create option:

sections:
  pages:
    type: pages
    headline: My pages section
    create: default
    # ...

If it’s not just about creating but also listing:

sections:
  pages:
    type: pages
    headline: My pages section
    create: default
    templates:
      - default
    # ...

I want to erase all moduels from all “add site” lists, but mainly the one on the frontpage.
How should I call the file under templates/blueprints, where i can paste your solution?

The view you see first when you open the Panel is the so-called “Dashboard”. The fields/sections etc. you see there are defined in /site/blueprints/site.yml. That file is necessary, so always already exists.

However, since blueprints can be modular, you might have to make changes in multiple files. Since I don’t know your setup, I cannot tell you what exactly you have to change.

My site.yml only contains:

title:
  en: Website
  de: Webseite
unlisted: true
preset: pages

so i have to edit the page-preset ?
i have a plain kirby3 setup only with the plugin installed and working - nothing more.

No, you can still set the templates option:

title:
  en: Website
  de: Webseite
unlisted: true
preset: pages
templates:
  - default

But then only pages with this template will be listed as well.

If you need more control, use manually added sections instead of the preset.

You are a hero! Thanks.
after adding “home” to the template list, everything works perfect.

just to improve my skills. i remove the preset and add sections like u mentioned here? :

Yes, exactly. If you use multiple section (e.g for drafts etc.) make sure to use a unique key for each

sections:
  drafts:
    type: pages
    headline: My pages section
    create: default
    status: drafts
    templates:
      - default
    # ...
  listed:
    type: pages
    status: listed
    # ...
1 Like