HOME | DOWNLOAD | SUPPORT | INSTALLATION | FAQ | SUPPORT FORUM | DEMO
 ° Forums ° Statistics ° Registration ° Search ° Manual °
SkaLinks Forum / Technical Support / Create custom page with site design template.
Author Message
simx0r
Member

Posted: 17 Dec 2005 05:28:54


Does anyone know how to create a custom page with own contents, without any links or categories? Perhaps there's a default php code to put in the page and add your own content to it, so the headers, footers, etc are included in the right way.

Cheers.

skalinks
Admin

Posted: 20 Dec 2005 01:21:31


Hello simx0r
you can open any php file from package, for example index.php , which generate all nesessary content for the main page, configure this php file as you need, also, if you open index.php file (for example ), you'll se that any php files uses tpl files - the template file, and you can take the template file, and modify it as you wish for your custom page. Ofcourse, you need some knowledges about php and html.
Thank you!

Anonymous


Posted: 25 Mar 2006 04:30:38


But HOW ?

In the example.php :
<? include "templates/head.tpl";?>
<? include "templates/regu.tpl";?>
<? include "templates/footer.tpl";?>


???????

Anonymous


Posted: 25 Mar 2006 04:32:15


Sorry
<? include "templates/header.tpl";?>
<? include "templates/exemple.tpl";?>
<? include "templates/footer.tpl";?>


??

skalinks
Admin

Posted: 11 Apr 2006 22:49:47


If you want to create your custom page in skalinks. you need to do this:
1) Create custom php file( for exam: example.php )
2) Insert into this file next code:
<?php

require_once( 'headers.php' );


$smarty = new DirSmarty();
$_output['title'] = $SkaLinks->GetTitleChain( -1, $_skalinks_page['title'], $_skalinks_page['title_dirtree'] );

$ADMIN = $SkaLinks->IsAdmin();

$_output = array()

display( 'example.tpl' );
?>

3) Then, create new file example.tpl in templates folder. This will be your new template file for example.php module and you can design this template file as you wish
P.S. Use $_output array if you want to send data from php to tpl file.

Thank you very much for choise Skalinks!