FieldtypeButton by kixe

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

FieldtypeButton

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

  • Today a new version of FormBuilder has been released in the FormBuilder support board (our 50th version) and it has a lot of interesting new features, which we’ll take a closer look at in this post— More
    11 June 2021
  • ProcessWire 3.0.179 adds great new admin theme customization tools that put you in full control over the Uikit admin styles— More
    28 May 2021
  • ProcessWire updates for week of 21 May 2021— More
    22 May 2021

Latest news

  • ProcessWire Weekly #370
    In the 370th issue of ProcessWire Weekly we're going to check out the latest version of the commercial FormBuilder module, introduce a couple of brand new third party modules, and more. Read on!
    Weekly.pw / 12 June 2021
  • ProcessWire FormBuilder v50 updates
    Today a new version of FormBuilder has been released in the FormBuilder support board (our 50th version) and it has a lot of interesting new features, which we'll take a closer look at in this post.
    Blog / 11 June 2021
  • Subscribe to weekly ProcessWire news

“We were really happy to build our new portfolio website on ProcessWire! We wanted something that gave us plenty of control on the back-end, without any bloat on the front end - just a nice, easy to access API for all our content that left us free to design and build however we liked.” —Castus, web design agency in Sheffield, UK