Sitecake is, by default, considering all files with supported extensions in site root dir as site pages. .scpages
should be used when you need to change that default behavior. So if there is page in site root dir that you don’t want to consider as page (eg. menu.php) you should add !menu.php
in .scpages
file. Also if there is file inside sub directory that should be considered as page (eg. contact/index.html) it should be added to .scpages
as contact/index.html
.
If there are more than one file inside sub directory that should be considered as page you don’t need to state each file separately, rather include whole dir like contact/
.
!
can also be used if you have for example 3 files in contact dir (index.html, departments.html and menu.php) and you need to exclude menu.php. In this case you would add contact/
to .scpages
and after that you would add !menu.php
.
On the other hand .scignore
file is used to tell sitecake that certain files/dirs shouldn’t be handled by sitecake at all (eg. contact/sendmail.php).