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

  • ProcessWire 3.0.187: 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— More
    22 October 2021
  • ProcessWire 3.0.185 (dev) core updates, plus new Session Allow module— More
    17 September 2021
  • Three new ProcessWire Textformatter modules: Find/Replace, Markdown in Markup, and Emoji— More
    3 September 2021

Latest news

  • ProcessWire Weekly #388
    In the 388th issue of ProcessWire Weekly we'll check out the latest core update, introduce two new third party modules, and more. Read on!
    Weekly.pw / 16 October 2021
  • ProcessWire 3.0.184 new master/main version
    This week we have a new master/main version released after a full year in the making. As you might imagine, this new version has a ton of great new stuff and we’ll try to cover much of it here.
    Blog / 27 August 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