Creating Template Files

A Template File replaces the View you choose in the Template Display Settings. Once you create a file based on a specific view, you can choose it to use instead of the Template Display Settings.

Using these files is only for advanced users. Give the template file a name (with no .php) and choose a type of view. 

Some code is placed in the editor, don't change it, please!

Start your coding at the bottom of the file. You are using a combination of PHP, HTML, CSS, and special codes that reveal data from rows in the database.  

 

Template Code Helper

Template Code Helper (click field to select)

Studies Codes (for all views)
To get the list, see each view items as $study){put individual items here}"/>
Title studytitle;"/>
Study Number studynumber;"/>
Description studyintro;"/>
Date studydate;"/>
Id id;"/>
Scripture 1 scripture1;"/>
Scripture 2 scripture2;"/>
Title studytitle;"/>
Media media;"/>
Duration duration;"/>
Topics topics;"/>
Study Thumbnail study_thumbnail;"/>
Series Thumbnail series_thumbnail;"/>
Secondary Reference secondary_reference;"/>
Link to Details View detailslink;"/>
Topics topics;"/>
Teacher Name teachername;"/>
Teacher Title teachertitle;"/>
Teacher Image teacherimage;"/>
Topics topics;"/>
Hits hits;"/>
Submitted By submitted;"/>
Slug slug;"/>
Total Plays totalplays;"/>
Total Downloads totaldownloads;"/>
Location location_text;"/>

Sermon List Codes
List Introduction params->get('list_intro');"/>
Search Tools page->searchtools;"/>
Pagination links page->pagelinks"/>;
Pagination Limit Box page->limitbox;"/>
Pagination array pagination;"/>
Sample Code

Sermon Display Codes (Plus any studies code)
Print Button page->print;"/>
Social Media Box page->social;"/>
Study Text item->studytext;"/>
Main Reference Passage passage;"/>
Related Studies Drop Down related;"/>
Sample Code

Series List Codes (plus Series Display Codes below)
To get each series items as $series){echo $series->description; etc. See Below for More Codes"/>
Link to each series serieslink;"/>
Series Image image;"/>
Series Drop down box page->series;"/>
Main Series Page Image page->main;"/>
Footer Pagination Links page->pagelinks; echo $this->page->counter;"/>
Series Title series_text;"/>
Series Teacher Image teacherimage;"/>
Series Description description;"/>
Series Teacher Name teachername;"/>
Series Teacher Title teachertitle;"/>
Series Teacher Image teacherimage;"/>
Sample Code

Series Display Codes
Series Title page->series_text;"/>
Series Thumbnail page->image;"/>
Series Studies seriesstudies as $study){echo $study-> see Studies List for details;}"/>
Series Description page->description;"/>
Series Teacher Name page->teachername;"/>
Series Teacher Title page->teachertitle;"/>
Series Teacher Image page->teacherimage;"/>
Sample Code

Teacher List Codes (plus Teacher Display Codes below)
Each Teacher's Information items as $teacher){echo $teacher->teachername; See Teacher Display Codes"/>
Link to each teacher teacherlink;"/>
Teacher Image image;"/>
Sample Code

Teacher Display Codes
Teacher Thumbnail $item->image;"/>
Large Teacher Image item->largeimage;"/>
Teacher's Studies teacherstudies as $studies){echo $studies->studytitle;}"/>
Teacher Title item->title;"/>
Teacher Phone item->phone;"/>
Teacher Email item->email;"/>
Teacher Website item->website;"/>
Teacher Introduction item->short;"/>
Teacher Long Information item->information;"/>
Teacher Address item->address;"/>
Teacher Facebook URL item->facebooklink;"/>
Teacher Twitter URL item->twitterlink;"/>
Teacher Blog URL item->bloglink;"/>
Teacher Web Link1 URL item->link1;"/>
Teacher Web Link1 Label item->linklabel1;"/>
Teacher Web Link2 URL item->link2;"/>
Teacher Web Link2 Label item->linklabel2;"/>
Teacher Web Link3 URL item->link3;"/>
Teacher Web Link3 Label item->linklabel3;"/>
Module Codes (Plus any Studies Code from above)
Link to more studies
Sample Code