MemHT Portal is a Free PHP CMS and Blog
It permit the creation and the management online of websites with few and easy steps.
It's completely customizable, expandable and suitable for all needs.
Moderators: Moderators
Page 1/2 1 2 >
Forum RSS feedReply
Multi template
AuthorText
angel3m
Junior Member

Posts: 50
Contributes: 50

Gender: _MALE_
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?

Smile
Web + Graphic Designer
Profile
Delete Edit Quote
 
mem
MemHT's Dad
Admin & Developer

mem

Posts: 7300
Contributes: 4879

Gender: _MALE_
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
Follow me on twitter if you want to be updated on the MemHT 5 development.
Delete Edit Quote
 
angel3m
Junior Member

Posts: 50
Contributes: 50

Gender: _MALE_
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
Web + Graphic Designer
Profile
Delete Edit Quote
 
angel3m
Junior Member

Posts: 50
Contributes: 50

Gender: _MALE_
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?
Web + Graphic Designer
Profile
Delete Edit Quote
 
angel3m
Junior Member

Posts: 50
Contributes: 50

Gender: _MALE_
Online: No
Date: 31/05/2009 13:48
Re: Multi template
#post20298
oh just forgot to say that code is working perfectly

KOOOOOOOOOOOOOlllll!!!!!
Smile
Web + Graphic Designer
Profile
Delete Edit Quote
 
mem
MemHT's Dad
Admin & Developer

mem

Posts: 7300
Contributes: 4879

Gender: _MALE_
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
Follow me on twitter if you want to be updated on the MemHT 5 development.
Delete Edit Quote
 
rudykaka
Exalted Member

Posts: 574
Contributes: 679

Gender: _MALE_
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.
Delete Edit Quote
 
angel3m
Junior Member

Posts: 50
Contributes: 50

Gender: _MALE_
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
Smile
Web + Graphic Designer
Profile
Delete Edit Quote
 
rudykaka
Exalted Member

Posts: 574
Contributes: 679

Gender: _MALE_
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!
Delete Edit Quote
 
angel3m
Junior Member

Posts: 50
Contributes: 50

Gender: _MALE_
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.
Smile
Web + Graphic Designer
Profile
Delete Edit Quote
 
Reply
Page 1/2 1 2 >
Twitter updates...
MemHT Wiki
Help MemHT Portal
Navigator
Users Block
Hi Guest
IP: 38.107.179.231

Username
Password
Language
MemHT Portal is a free software released under the GNU/GPL License by Miltenovik Manojlo