TextformatterImageFieldMarkup by diogo

Allows you to use image fields inside markup languages, notably, Markdown and Textile in Processwire text fields

pw-image-fields-markup

Textformater for ProcessWire fields that allows you to use image fields inside markup languages, notably, Markdown and Textile in Processwire text fields

Modules directory: http://processwire.com/modules/textformatter-image-field-markup/

Support forum: https://processwire.com/talk/topic/9192-textformatter-image-fields-markup/

To apply it to a field


Add the textformater AFTER the markup language textformatter (Markdown or Textile)

To use it inside the text area


Simply use the normal image tags from the Markup language that you're writting on. In case of Markdown would be: ![alt](url) and in the url part use the form field_name:position. If you use 0 as the position, all images from the field will be shown. If you fill also the alt text, it will be used, if you leave it empty, that image description will be used instead.

Examples:


show second image from the field called "images" with and alt text of "overriding alt text":

![overriding alt text](images:2)

--

show all images from the field called "images" with their descriptions as the alt text:

![](images:0)

--

do the same with Textile:

!images:2(overriding alt text)!

!images:0!

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

Latest news

  • ProcessWire Weekly #515
    In the 515th issue of ProcessWire Weekly we’ll check out the latest core updates, new modules, and more. Read on!
    Weekly.pw / 23 March 2024
  • Invoices Site Profile
    The new invoices site profile is a free invoicing application developed in ProcessWire. It enables you to create invoices, record payments to them, email invoices to clients, print invoices, and more. This post covers all the details.
    Blog / 15 March 2024
  • Subscribe to weekly ProcessWire news

“Indeed, if ProcessWire can be considered as a CMS in its own right, it also offers all the advantages of a CMF (Content Management Framework). Unlike other solutions, the programmer is not forced to follow the proposed model and can integrate his/her ways of doing things.” —Guy Verville, Spiria Digital Inc.