What would you like to know more about?

Show Page Sections

Configuring My Mission Trips

Set up the My Mission Trips widget.

Help people going on mission trips visualize and manage their trips! See the Quick Start Guide for tips on getting the My Mission Trips widget up and running.

If the shared script hasn't been added to your website, add it to the appropriate webpage, replacing "YOUR-BASE-MP-URL" with the base URL with your base MinistryPlatform URL.

<script id="MPWidgets" src="https://YOUR-BASE-MP-URL.com/widgets/dist/MPWidgets.js"></script>

Create or identify a page on your website where you want to display the widget. To add this widget to your church website, add the code you generate in the Widget Configurator widget (with the required attributes) in the body of your chosen website page.

Tip: While not mandatory, this snippet would typically be placed inside a <div> element with the class "container".

Widget Configuration

Required Attributes

Mission Trip Campaign Type ID
This determines the campaign type ID of pledge campaigns that can display in the My Mission Trips widget.
  • Attribute: missiontripcampaigntypeid
  • Valid Value: Pledge Campaign Type ID
  • Example:
    missiontripcampaigntypeid="2"
Note: This widget is only available to users who have authenticated via the Login Widget. New users have the opportunity to create an account through the Login flow. If needed, the page containing this widget could be added as a navigation item in the Login menu, making it available only after authentication. See Login Configuration for information about extending the drop-down menu.

Optional Attributes

Show Donors
This determines whether the donors who contributed to a pledge campaign display for each mission trip.
  • Attribute: showdonors
  • Valid Value: 0 (no) or 1 (yes)
  • Example:
    showdonors="1"

Configure Your Widget

Use the Widget Configurator widget to configure your widget:
  1. Go to your Widgets Library by appending "/widgets" to your system domain. For example, https://example-church.ministryplatform.net/widgets.
  2. Click the Navigate to... drop-down menu, and select Widget Configurator.
  3. Select the widget you want to configure, then customize your widget.
  4. Click Try it Out to see what your widget will look like!
  5. Copy the generated code from the Embed Code box.
  6. Add the code to the designated page on your website.

Platform Configuration

To display in the My Mission Trips widget, pledges must meet the following criteria:

  • Today's date is before the end date or the end date is blank.
  • The campaign type matches the type set in the Mission Trip Campaign Type ID attribute.
Note: Active and completed Pledges display for six months after the campaign's end date. Images attached to the pledge campaign display in the widget. If there is no image, a stock image will display. File formats supported by both browsers and MinistryPlatform are: .bmp, .gif, .jpg., and .png. The widget software will crop and focus on the center of the image according to an ideal ratio of 59:32.

Customization

Customize the My Mission Trips widget to change button colors, update labels, and more to match your church brand.

CSS: Every widget accepts the Custom CSS attribute. Include it before the closing of the opening widget tag to customize backgrounds, button colors, and more!

Application Labels: Call them service trips instead of missions trips? To make changes, go to System Setup > Application Labels and update the appropriate label(s). Note that you are responsible for all translations if the default is not used.

  • mpp-my-mission-trips.pageTitle: The page title. The default is "My Mission Trips".