Banners

Universalis content on your page

You can't copy and paste our pages directly into yours, for copyright reasons. Anyway, it would be terribly boring to have to do it day after day, every day for ever.

Here are two ways of getting today's Mass readings into your web page. The JSON method also lets you get the readings for next Sunday.

<iframe>

iframes are a way of creating a rectangular 'window' inside your own page through which another web site is visible.

This is quick and simple to set up but the drawback is that what people see inside the frame is the whole of our site (headings and all) and not just the liturgical texts. And you have to decide the size of the frame in advance, which means that either mobile phone users or users of big computers are bound to be unhappy. You can't please them both.

JSON (actually JSONP)

You can incorporate a few lines of Javascript into your web page which will retrieve specific pieces of Universalis content – for instance, the Gospel and readings at Mass – and place them into the text of your page.

The text retrieved becomes part of your web page, so it has the same style and appearance as everythng else and doesn't have to live in its own separate box.

You need to be able to edit the HTML text of your page in order to use this method, but it isn't a sophisticated business.

Twitter feed

If your web page can show a Twitter feed then you will find the Universalis feed at @CatholicFeasts. The feed is quite limited (it only gives the names of the saints of the day) but that may be all you need.