If you want to create your own SLiMS Template. Please follow this step:
- Create your template directory inside /template/. E.g: my_template.
- Create new file named with index_template.inc.php
- Put this code into that file :
<?php
use SLiMS\Template\Skelton\Core as Template;
require __DIR__ . '/vendor/autoload.php';
// Initialization template instance
$template = new Template;
// set basic properties
$template->setProperty('notes', $notes??null);
$template->setProperty('subject', $subject??null);
$template->setProperty('metadata', $metadata??null);
$template->setProperty('maincontent', $main_content??'');
$template->setProperty('image_src', $image_src??'');
// Rendering opac to template
$template->render($opac??$this);
- Next you need composer to install this packages.
composer require drajathasan/slims-opac-template-skelton
- Login into admin area, and change template in theme menu.
- Choose "base" then open OPAC again.