Repository navigation
Help templatecode
The Template Code edit screen allows advanced users to create and edit custom PHP template files that control exactly how Proclaim content renders on the frontend. Template codes provide full control over HTML markup and PHP logic, going beyond the visual Layout Editor.
Components -> Proclaim -> Template Codes, then click New or click an existing filename.
| Button | Action |
|---|---|
| Save | Saves and stays on the edit screen |
| Save & Close | Saves and returns to the template codes list |
| Save & New | Saves and opens a blank form |
| Cancel | Discards changes and returns to the list |
| Help | Opens this help page |
| Field | Description |
|---|---|
| Filename | A descriptive name for this template code. |
| Type | The template type (determines available code snippets). Cannot be changed after creation. |
| Template Code | PHP/HTML code editor (CodeMirror) with syntax highlighting. |
| Status | Published, Unpublished, or Trashed. |
| Type | Description |
|---|---|
| Sermon List | Controls the list view displaying multiple messages |
| Sermon | Controls the detail view for a single message |
| Teachers List | Controls the list view displaying teachers |
| Teacher | Controls the detail view for a single teacher |
| Series List | Controls the list view displaying series |
| Series Display | Controls the detail view for a single series |
| Module | Controls the output of the Proclaim module |
The right sidebar contains clickable insertion buttons organized by category. Clicking a button inserts the corresponding PHP code at the cursor position. Available snippets vary by template type.
| Snippet | Variable |
|---|---|
| Title | $study->studytitle |
| Date | $study->studydate |
| Scripture | $study->scripture1 |
| Media | $study->media |
| Topics | $study->topics |
| Teacher | $study->teachername |
| Location | $study->location_text |
| Hits | $study->hits |
| Thumbnail | $study->study_thumbnail |
| Intro | $study->studyintro |
| Snippet | Variable |
|---|---|
| Search Tools | $this->page->searchtools |
| Pagination | $this->page->pagelinks |
| Limit Box | $this->page->limitbox |
| Snippet | Variable |
|---|---|
| Full Text | $this->item->studytext |
$this->page->print |
|
| Social | $this->page->social |
| Snippet | Variable |
|---|---|
| Name | $teacher->teachername |
| Image | $teacher->image |
| Biography | $this->item->information |
| Short Bio | $this->item->short |
| Snippet | Variable |
|---|---|
| Title | $series->series_text |
| Description | $series->description |
| Image | $series->image |
- Always back up your template code before making changes.
- Test in development before deploying to production.
- The Type is locked after creation because changing it would invalidate existing code variables.
- Use the snippet panel instead of typing variable names manually.
- Do not modify default template codes -- create copies and customize those instead.
- Template codes must be linked to a template via the Template edit screen to take effect.
- Help-templatecodes -- Template codes list view
- Help-template -- Template edit (where codes are assigned)
- Help-templates -- Templates list view
Need help with your site? Proclaim Support — the place to start for anything to do with your own install · Ask on GitHub
Something wrong with Proclaim itself? Report it on GitHub — bugs and code issues are tracked there, in the open.
More — Proclaim documentation · Helpful videos · Latest release · Christian Web Ministries
Security issues privately to info@christianwebministries.org, not a public tracker. When asking for help, say which Proclaim and Joomla versions you are on.
- Publish Your First Message
- Show Proclaim on Your Site
- Add Audio and Video
- Organise Your Messages
- Set Up Podcasting
- Control How Proclaim Looks
- Import and Migrate
- Maintain Your Site
- Multi-Campus-Admin-Guide
- Multi-Campus-User-Guide
- Template-Customization-Guide
- Vimeo-API-Setup
- Print-Friendly-View
- Protected-Media-Storage
- Content-Security-Policy
- Troubleshooting-FAQ
- Setting-up-your-development-environment
- Standards and Conventions
- Contributing-Workflow
- REST API
- Database-Schema
- Location-API-Reference
- Backward-Compatibility-Breaks-10.1
- ARS Migration Plugin
- Proclaim-Code-Road-map
- Tasks
- Overview
- Admin Center
- Messages
- Media Files
- Servers
- Teachers
- Series
- Podcasts
- Topics
- Locations
- Comments
- Message Types
- Playlists
- Templates
- Utilities