Skip to main content Help Control Panel

Login   A+   A-

Community «   Discussion forum «   Post your requirements here «  

Want to copy the index.php to a second index page with another skin style.

Sent by Joe Young (actually, Young, Joe)

I want to have a second index page that has a stripped downed skin that shows only the blog entries. I have the skin that I want. I cp'd the index.php and I can not figure out where to refernce the alternate skin. Please help.
Bernard
avatar
from nearby-an-airport
Associate, 6734 posts

on Dec. 7 2004


In your script, just before loading the default skin change the parameter loaded by YACS.

Instead of

<?php
// load the skin, maybe with a variant
load_skin('home');
?>


put

<?php
// load the skin, maybe with a variant
$context['skin'] = 'another_skin';
load_skin('home');
?>

Rate this page
Posted by Joe Young on Dec. 6 2004, commented by Bernard on Dec. 6 2004, (popular)