Thanks for visiting Marketpath. We use cookies to make this website work better for you and to track site visits anonymously.

Tell Me More Ok, Continue

Looking for content tailored to you? Let us know what role best suits you:

Marketer Developer Agency General

Custom Data Feeds

custom-data-feed-usage

With Marketpath CMS, you can easily build and distribute custom data feeds in any format to outside websites and application services. You can build a fully headless system where content is maintained in one location and used by other services in unlimited ways.

Custom data feeds also take advantage of our Fast Cache so they rendered and delivered in lightning speed.

Custom data feeds are often used within the same site to create dynamic user experiences and can be consumed by any number of external sites or services. 

Custom Feed Example

Here's a small sample of a feed we use on our help site. This iterates through all courses, modules, and lessons and builds a feed that is used to dynamically load courses. This allows our training courses and documentation to act as single page websites.
 

{% set_header Content-Type:"application/json" %}

{% datastore_items courses = datastore:"Courses" limit:0 %}
[
    {% for course in courses %}
        {
            "course": "{{course.title.value}}",
            "guid": "{{course.guid}}",
            "url": "{{course.url}}",
            "modules": [
                {% for module in course.modules %}
                    {
                        "module": "{{module.title.value}}",
                        "guid": "{{module.guid}}",
                        "lessons": [
                            {% for lesson in module.lessons %}
                                {
                                    "lesson": "{{lesson.title.value}}",
                                    "lessonId": "{{ lesson.lesson-id}}",
                                    "guid": "{{lesson.guid}}",
                                    "url": "{{lesson.url}}"
                                } {% unless forloop.last %},{% endunless %}
                            {% endfor %}
                        ]
                    } {% unless forloop.last %},{% endunless %}
                {% endfor %}
            ]
        } {% unless forloop.last %},{% endunless %}
    {% endfor %}
]

This produces data that looks like the following:

[
  {
    "course": "Intro to Website Development",
    "guid": "d293d49b-cd1a-474a-be83-dfeceee4fdda",
    "url": "/courses/intro-to-website-development",
    "modules": [
      {
        "module": "Getting Started",
        "guid": "5cd6b3a4-a37a-4e2f-ad93-aa0e9a61a997",
        "lessons": [
          {
            "lesson": "Introduction",
            "lessonId": "IWD-GS-INTRO",
            "guid": "fe7d5136-4bf7-4c0b-a2ae-5beee5c4d619",
            "url": "/courses/intro-to-website-development/getting-started/introduction"
          },
          {
            "lesson": "Marketpath CMS Setup",
            "lessonId": "IWD-GS-CMS",
            "guid": "4cd78f09-0868-42fb-8239-4dc5cd968134",
            "url": "/courses/intro-to-website-development/getting-started/marketpath-cms-setup"
          },
          {
            "lesson": "Site Setup",
            "lessonId": "IWD-GS-SITE",
            "guid": "9a534319-5447-418a-b695-8b60491fecfa",
            "url": "/courses/intro-to-website-development/getting-started/site-setup"
          } 
        ]
      } 
    ]
  },
  .........

 

  • FirstNetwork
  • lenex
  • EquiTeam
  • AAO
  • KSM
  • patronPath
  • midland
  • ritron

Looking to see Marketpath CMS in action?

Sign Up for a Demo