| Multi template |
| Author | Text |
angel3m Junior Member
Posts: 50

Gender:  Online: No |
Date: 31/05/2009 11:46 Multi template | #post20294 | Hi
can anyone tell that
is there anyway to use different template on different pages?
Like Joomla have this option.
Or is there a way to use different headers on different pages?
 |
|
 |
| |
mem MemHT's Dad Admin & Developer

Posts: 7300

Gender:  Online: No
Languages: English, Italiano, Македонски, Српски |
Date: 31/05/2009 12:42 Re: Multi template | #post20295 | Open index.php
Find | code | include_once("inc/tpl/RainTPL.class.php"); |
Add before
| code | $pp = @$_GET['page'];
switch ($pp) {
case "news":
$siteConfig['template'] = "memht";
break;
case "blog":
$siteConfig['template'] = "moling";
break;
case "forum":
$siteConfig['template'] = "fresh";
break;
} |
It's an example that gives you the possibility to set which template should be used on the selected page |
|
 |
| |
angel3m Junior Member
Posts: 50

Gender:  Online: No |
Date: 31/05/2009 13:17 Re: Multi template | #post20296 | all rite!!!!!
i ll give a try an ll come back
Thnx for the great n Quick Help |
|
 |
| |
angel3m Junior Member
Posts: 50

Gender:  Online: No |
Date: 31/05/2009 13:41 Re: Multi template | #post20297 | but if i make some pages in
My Pages
Then
How i should do?
or let say if i want different template for different page
then what to do? |
|
 |
| |
angel3m Junior Member
Posts: 50

Gender:  Online: No |
Date: 31/05/2009 13:48 Re: Multi template | #post20298 | oh just forgot to say that code is working perfectly
KOOOOOOOOOOOOOlllll!!!!!
 |
|
 |
| |
mem MemHT's Dad Admin & Developer

Posts: 7300

Gender:  Online: No
Languages: English, Italiano, Македонски, Српски |
Date: 31/05/2009 16:35 Re: Multi template | #post20299 | MyPages is one page, changing template for every entry is possible, but you should check the database and the code becomes a bit complicated |
|
 |
| |
rudykaka Exalted Member
Posts: 574

Gender:  Online: No
Country: Espaņa Languages: English, Espaņol Version: waiting for 5 |
Date: 31/05/2009 18:26 Re: Multi template | #post20302 | What da hell, u change each page, i dont think ur site will look relevant this way. |
|
 |
| |
angel3m Junior Member
Posts: 50

Gender:  Online: No |
Date: 31/05/2009 23:15 Re: Multi template | #post20308 | No offense bub
but i know how the other pages shud look and how much the site will look relevant to each other
 |
|
 |
| |
rudykaka Exalted Member
Posts: 574

Gender:  Online: No
Country: Espaņa Languages: English, Espaņol Version: waiting for 5 |
Date: 01/06/2009 06:50 Re: Multi template | #post20311 | My respect 4 all,but it's nt professional 2 chane ur style each page! |
|
 |
| |
angel3m Junior Member
Posts: 50

Gender:  Online: No |
Date: 01/06/2009 22:07 Re: Multi template | #post20314 | well, just trying to check the flexibility of this CMS with my own way for my design.
And i really like it so far.
|
|
 |
| |