SSEP - Adding extra content in template

richardwbb
Posts: 6

SSEP - Adding extra content in template

Dear Admin,

Would you be so kind to explain with words, on how to create a template for 'ssep/index.php' search script, please.

Richard.

Admin
Hello,
It is simple for you.
1. To add your content in template, open the "index.php" file, and create items in $tpl array with your content; at the end of the file, BEFORE the line with "echo template()".
- For example:

Code: Select all

//code after line 75

//adding extra content in template
$tpl['some_key'] ='Some <b>content from php</b> for html page..';
$tpl['other_key'] ='Another content for html page..';

echo template(file_get_contents(SSEP_TEMPL .'search.htm'), $tpl);

2. To put that content in html page, open the "search.htm" file (in "templ/" folder) and add the keys of your template items where you want to be displayed, using this syntax: "{$key_name}".
- For example:

Code: Select all

<body>
<h1>{$title}</h1>
<div>{$some_key}</div>
<section id="p_content">
<div>{$other_key}</div>
the rest of html code..
</section>

Adv. Posts: 01

Similar Topics