来源:http://trac.seagullproject.org/wiki/Tutorials/CreatingASimpleSite
遵循简单的最新安装操作说明
Seagull themes(主题)位于seaugll/www/themes目录下,并且是都是Flexy模板.基本分布提供了两个themes(主题):
对于初学者,让我们创建一个新的frontend theme(前端主题),像这样在themes目录中新建一个文件夹:
seagull/www/themes/your_theme
Themes使用了伪继承,因此所有的模板你就不需要重写或自定义,它将直接从default theme中取得.这意味着你需要自己定义的只有header,banner和footer模板.每个显示的页面都是由这些拼凑起来的.
创建属于你自己的外观,首先你需要将default目录下的images和CSS文件拷贝到你的theme中,从以下目录取得:
`-- www
|-- themes
| |-- default
| | |-- css
| | | |-- core.php
| | | |-- style.php
| | | |-- vars.php
| | `-- images
| | |-- *
并将它们拷贝到your_theme中.
`-- www
|-- themes
| |-- your_theme
接着,再从default theme文件夹中,至少拷贝三个模板到你自定义的theme中:
|-- modules | |-- default | | |-- templates | | | |-- banner.html | | | |-- footer.html | | | |-- header.html
自定义的theme:
`-- www | |-- themes | | |-- default | | | |-- banner.html | | | |-- footer.html | | | |-- header.html
激活新的theme:
创建如’about us’ 或 ‘our products’的页面,你需要执行下列各项:
接下来,你需要创建一些导航来吸引用户到你的文章中
以上是创建站点的全部,你现在已经建立了一个基本的站点.如果你想要更先进的特点,你可以挑选一些现成的功能性模块,如,FAQs,一个注册页面,留言本等,可以通过先前的步骤链接他们来创建导航.