FieldtypeButton by kixe

Field that stores 3 values for label, target and class (CSS). Output markup configurable in field settings.


ProcessWire Module Fieldtype to easily create and edit buttons for the frontend.

The returned value is an instance of Button. Direct output provided.

Button properties

With the button object the following properties are provided:

Defined in field settings

|:-|:-| | html | Markup for the output. Placeholders can be used. Define placeholders by surrounding property names with curled brackets. If a property is an object use dot syntax to get subproperties. |

Defined in inputfield

|:-|:-| | label | Page object if detected as internal page, default: NULL | | target | Relative paths will be translated to page (if exists). Placeholders (e.g. language home segments) can be used @see html  | | class | CSS class |

Generic properties

|:-|:-| | targetPage | Page object if detected as internal page, default: NULL |

Language specific properties

|:-|:-| | language | Language object (current user language) | | lang | Language home segment | | langNonDefault | Language home segment appended by a slash or empty string if default language | | langFor<homeSegment> | E.g. langForEn. Language home segment appended by a slash. Provided only if user language matches, otherwise an empty string will be returned | |label<languageID> | E.g. label1234. Language specific button label. |

Install and use modules at your own risk. Always have a site and database backup before installing new modules.

Twitter updates

  • Great video by @jlahijani that demonstrates his ProcessWire page builder using ProFields Repeater Matrix, the new Page Autosave + Live Preview module and Uikit 3—…
    13 November 2021
  • More development on page automatic save this week, plus the addition of live preview— More
    12 November 2021
  • ProcessWire 3.0.189 core updates— More
    5 November 2021

Latest news

  • ProcessWire Weekly #393
    In the 393rd issue of ProcessWire Weekly we'll cover the latest core and module updates, check out a brand new module called Anonymize fields, and highlight some recent tutorials and other online resources. Read on! / 20 November 2021
  • New Repeater and Repeater Matrix features
    This week we have some very useful new additions to both the core Repeater Fieldtype and the ProFields Repeater Matrix Fieldtype. This post covers all the details along with a couple of brief demonstration videos. 
    Blog / 22 October 2021
  • Subscribe to weekly ProcessWire news

“Yesterday I sent the client a short documentation for their ProcessWire-powered website. Today all features already used with no questions. #cmsdoneright—Marc Hinse, Web designer/developer