Build your own website on the i-Catholic CMS
This section is for the web team of a diocese, parish or Catholic institution that wants to build its own public website (its own domain, its own design), while the content is written by the unit's staff right in the i-Catholic admin site.
The two halves of the system
| Who | Does what | Where |
|---|---|---|
| The unit's staff | Write posts and pages, arrange categories, tags, menus, contact details, translations | The i-Catholic admin site, Website section |
| The web team (you) | Build the design, read the content and display it | Your website, calling the public API |
The public API is read-only, needs no sign-in and no API key, and returns exactly what has been published. Drafts, posts awaiting review, scheduled posts whose time has not come, and posts in the trash never come out through this API. You do not need to (and cannot) deal with permissions or accounts.
Base URL:
https://api.i-catholic.org/v2/public/cms/{siteSlug}
{siteSlug} is your unit's site code, for example giao-xu-cua-ban (lowercase letters, digits and hyphens, at most 64 characters).
Getting started: request a site
Each unit has at most one site on the CMS. Sites are created by the i-Catholic team (platform administration, CMS system section); the unit's staff cannot create one themselves. Once it is created, you receive the site code (siteSlug) and the list of enabled languages.
To request a site, email support@i-catholic.org (or use Contact in the app, topic Cooperation; see Contact support). Include the unit's name, the planned domain and the languages you need.
After that, the unit's staff (the unit's administrator, or someone given permission to manage the website) open the Website section in the admin site to write content.
What you can build
- A home page with featured posts and the latest posts.
- News pages by category (two levels) and by tag.
- Post pages and static pages (About, Contact, ...).
- Header and footer menus that staff arrange themselves.
- Post search (accent-insensitive) and a Most read block.
- Multilingual sites (up to six languages:
vi,en,es,pt,fr,it). - A contact block: name, address, phone, office hours, embedded map.
- Custom content types with custom fields (for example "Event" with a date and a place).
Terms
| Term | Meaning |
|---|---|
| Site | One unit's website, identified by siteSlug. It has one primary language (primaryLocale) and a list of enabled languages (locales). |
| Entry | One piece of content. There are two kinds (type): post (has a publish date, appears in lists) and page (static page, never appears in lists, has no categories or tags). |
| Slug | The path part of an entry, for example le-bon-mang. Shared by all languages. |
| Category | A tree of at most two levels. Each post has one main category (category) and may have other categories (categories). |
| Tag | A flat label, with no levels. |
| Menu | Two fixed locations: primary (header) and footer (footer), each menu at most two levels deep. |
| Locale | Language code: vi, en, es, pt, fr, it. |
| Featured | A post pinned to the top of a list (the general list or a category's list), at most 10 posts, optionally with an end date. |
| Content type | A group of posts sharing the same set of custom fields; each post of a type has contentType set to that type's slug. |
| Meta | The values of the custom fields on an entry. |
Reading order
- Quick start: your first request, showing a list of posts and one post.
- API reference: every path, parameter, response and error.
- Languages and URLs: language fallback, old slugs, SEO.
- Search, views and "Most read".
- Custom fields and content types via the API.
- Performance, caching, limits and errors: read this before you take your website live.
The API is right. Every field and limit on these pages is taken from the running source code; if you find a difference, please tell us.