Jump to content

How do I add a setting to templates?


Harmster
 Share

Recommended Posts

I haven't had an answer yet so I figured I post some more details.

I want a setting that enables MVC for my Module on template level, i want this to be a checkbox. How do I approach this? Can this be done with code lets say in the ___install() method of my module? 

Much appriciated

Link to comment
Share on other sites

  • 1 year later...

it looks like ProcessTemplate::buildEditForm  is a good example lets you create your own settings tabs, but is there any way to add or modify the "settings" of a page to add your own custom status, or would those have to go in their own Tab?

Link to comment
Share on other sites

it looks like ProcessTemplate::buildEditForm  is a good example lets you create your own settings tabs, but is there any way to add or modify the "settings" of a page to add your own custom status, or would those have to go in their own Tab?

Check out this post from Ryan where he explains how to use: ProcessPageEdit::buildFormSettings

https://processwire.com/talk/topic/510-name-field-in-content-instead-in-settings-tab/?p=4830

  • Like 3
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...