Skip to main content Help Control Panel

Login   A+   A-

Community «   Discussion forum «   Bug tracker «  

/index.php how-to question

avatarMorison, Rodney -- on June 18 2007
What's the best way to customize /index.php display differently than /yacs/index.php
Problem has been recorded

Issue description

I see that the top level index.php is coded to look for /index.php was well as /yacs/index.php. What I would like to achieve is for /index.php to display the cover article and a gadget, while /yacs/index.php displays an article listing (slashdot flavor, probably.)

I tried an experiment/hack with something like
cd yacs
cp index.php ..
vi ../index.php
# edit code logic in index.php to always show cover article


But this didn't seem to work...I got the same markup generated at / and /yacs.

What is a good way to create a different page at / ?

Thanks,

Rod

Comments

Bernard
avatar
from nearby-an-airport
Associate, 6796 posts

on June 18 2007


Rod, you did the right thing, in my opinion. /index.php and /yacs/index.php are two different scripts, and could be changed separately. By default YACS attempts to maintain exact copies for these files, and you have to change the configuration panel for scripts to avoid the topmost file to be replaced on software update.
Rod
avatar
52 posts

on June 18 2007


Bernard:

Where in the control panel do make that configuration change for scripts? I'm looking and I don't see it (yet).

Thanks,

Rod
Bernard
avatar
from nearby-an-airport
Associate, 6796 posts

inspired from rod on June 19 2007


Rod: Select the configuration panel dedicated to upgrades ...

Rate this page
Posted by Rod on June 18 2007, commented by Bernard on June 19 2007, (popular)