Pages
LoginSign Up

Sources

You can automatically deploy static pages linking CSV feed URL to a previously created HTML template.

Feed structure

This feed should contain at least the same variables as your template. For example:

<html>
  <head>
    <base href="{{PAGE_URL}}">
    <title>{{title}}</title>
    <meta name="description" content="{{description}}">
  </head>
  <body>
    <h1>{{title}}</h1>
    <p>{{description}}</p>
    <div data-arengu-form-id="{{form}}"></div>
  </body>
<html>

If your template has title, description and form variables, your CSV feed should be something like this:

title description form slug
Page title 1 This is a page description 1 123456789 landing-slug-1
Page title 2 This is a page description 2 123456789 landing-slug-2
Page title 3 This is a page description 3 123456789 landing-slug-3

It's highly recommended to add a slug column where you can specify the slug you want for every page, otherwise you have select a column where Arengu will slugify the content to generate a slug for that page. For example, Page title 1 will be turned to page-title-1.

Scheduler

A scheduler can be configured inside Arengu to read a Source at certain intervals (eg. every 6 hours) to automatically create/update/delete pages based on the values of the feed.

By default, every time the scheduler reads the feed it deploys again all the pages of that feed so, in order to optimize the deployment of a high volume of pages, it's highly recommended to add a new column to specify the latest update date of your page. You can name and format it as you want. For example:

title description form slug latest_update
Page title 1 This is a page description 1 123456789 landing-slug-1 04-12-1990 15:30:15
Page title 2 This is a page description 2 123456789 landing-slug-2 04-12-1990 21:30:15
Page title 3 This is a page description 3 123456789 landing-slug-3 04-12-1990 22:30:15

The scheduler will omit pages that have not been modified since the latest deployment.

Pages that are built using a Source can't be manually deleted or updated. Any changes should be done from the feed.

Table of contents

Sources guides & tutorials

Discover our step-by-step guides and tutorials to learn using Arengu with Sources.

No items found.