Login Form  

   

Newsletter  

Subscribe

Receive
   
   

Layouts

Since Sermonspeaker 4.3, custom layouts are supported. This article will explain how you can create your own layout and share it with other users.

Some basics about Joomlas "MVC" system

Joomla uses a system named "MVC" (Model, View, Controller) for their code. In easy words that means that the script for a single page is divided into multiple small files of code. One of this file is the controller, which will be responsible for every possible task. Like uploading a file, or displaying a page. You can ignore the controller completely, SermonSpeaker takes care of this. In case the browser requests a page to display, the controller will call the view. In our case this views are located in /components/com_sermonspeaker/views/. If you have a look at the structure of SermonSpeaker you will notice the various subfolders there

Read more: Layouts

Advanced Layouts

When you created your first own layouts, you may have noticed some helper functions. I want to explain those a bit here:

SermonspeakerHelperPlayer

The most important helper function is the player helper. It will take care of the Flash player for you creating all the needed javascript and html calls. The code is located in

/components/com_sermonspeaker/helpers/player.php

The easiest call is to just use

$player = new SermonspeakerHelperPlayer($this->items);

This will create a "$player" object containing all the needed code.

Read more: Advanced Layouts

   
© Bakual