Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
6 + 7 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
   

Re: Different templates for different pages....
by Barthez on 2006/11/7 12:23:56

I think you can do it yourself easy.
You must developp such a module by adding a "template" collum in a DB table.

For example starting frow the "news" module you can
- contruct différentes templates based on the news_article.html template.
- add a "template" collum in the table stories.
- add in the \class\xoopsstory.php the "template" attribut
- add the html code to manage your template in news\include\storyform.inc.php
- in the modules\news\article.php file change
$xoopsOption['template_main'] = 'news_article.html';
by a
$xoopsOption['template_main'] = $article->getTemplate();

Hope that helps
Different templates for different pages....
by jimbofoxman on 2006/10/26 22:14:37

For a brief moment recently, when I thought XOOPS didn't have a solution for me, I started checking out MODx per one users recommendation on here.

Even though I was a bit overwhelmed with MODx, one thing I liked was the ability to setup each page to use a different template. So let's say you have 5 articles covering different areas, you could give each article its own template, each having a different look to it.

Not sure it would be easy the way XOOPS is setup, but I think it would be cool to see.

Just sharing a thought!

Who's Online

843 user(s) are online (754 user(s) are browsing Support Forums)


Members: 0


Guests: 843


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits