Skip to content
  1. Extras
  2. PageBuilder
  3. Section catalog
  4. Pro
  5. Newsletter

Newsletter

Section newsletter renders an HTML form. Submit goes to an external action_url, not through FetchIt. Chunk: pagebuilderpro_newsletter. Requires PageBuilder Pro.

action_url is required. email_name sets the email field name in POST. note is the privacy text.

Where it fits

  • Mailchimp, Unisender, or your own endpoint
  • A block in the landing footer
  • Collecting email without a MODX mail

Fields

FieldTypeRequiredPurpose
titletextnoTitle
texttextareanoText
action_urlurlyesForm handler URL
email_nametextnoEmail field name
placeholdertextnoPlaceholder
submit_labeltextnoButton label
notetextareanoPrivacy note

Render

The form uses method="post" and posts to action_url. FetchIt is not involved. Empty fields take chunk defaults: field name email, button Subscribe, placeholder you@example.com. note and text print only when set. There is no empty state: publish fails without action_url because the field is required.

Section data

json
{
  "title": "Newsletter",
  "text": "Once a month",
  "action_url": "https://example.com/subscribe",
  "email_name": "email",
  "placeholder": "you@example.com",
  "submit_label": "Subscribe",
  "note": "Unsubscribe from the email"
}

Similar sections