Skip to main content Help Control Panel

YACS CMS : Open source !

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
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
Problem has been recorded
Bernard
avatar
from nearby-an-airport
Associate, 6995 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, 6995 posts

inspired from rod on June 19 2007


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

 
Share
Information channels
Recent files