Tips

Share some classes in your Stylesheet among different news pages if you can.

You can use the same technique for overview pages.

Make sure you don't break the PHP code in the subtemplates.

If you have several news pages, you can use a different (sub)template for each page. For example, let's say you have a blog page and a news page. In your news page, you want to have title and time only. In your blog page, you want to have title, time and teaser.

To use a different (sub)template for each page, do the following in RiteCMS 1.0.0+.

  • Create a new page, and type in your address as usual.
  • Choose Properties→News page. In the input area, type in a name.
  • Login to your website with your ftp software, and then go to /templates/subtemplates. Copy and paste news.default.inc.tpl and rename it as news.name.inc.tpl. (match name with the last step).
  • Customize news.default.inc.tpl as you want—you can change the class ID or re-arrange all the components in this file.
  • Define all the corresponding class IDs in your style sheet.

You just defined a new template for your second news page!

Tips:

  • Share some classes among different news pages if you can.
  • You can use the same technique for overview pages.
  • Make sure you don't break the PHP code in the subtemplates.

Comments

No comments yet.




(optional)


CAPTCHA Image

change image

RiteCMS is an open source CMS (Content Management System) software released under GNU/GPL license. Securimage & TinyMCE are copyrighted of their respective developers. The project began in 2009 as a fork of PhpSqliteCMS.net. The project has been maintained by Lucas Zhuang. Version 3.X is a new released with new features and compatible with Php 7. It has been tested on Apache and NGINX.

While we try our best to make it run as smooth as possbile, we offer no explicit guarantee or warranty. Use at your risk.

The RiteCMS project is now maintained by Lucas Zhuang. We now accept service requests, such as server administration, RiteCMS installation, customization, etc. All reqeusts should be directed to ZoriaMedia.com.

RiteCMS website is designed in Rhode Island, USA with love.

© 2021 Lucas Zhuang & the RiteCMS project.