How to create a seperate news template

If you have several news page,you can use a different (sub)template for each page. For example, 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 new page, 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, 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 corresponding class ids in your style sheet.

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

Tips:

  • Share some classes if you can among different news pages.
  • 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)

Website designed and maintained by ZoriaMEDIA.com

© 2010-2020 the RiteCMS Project

RiteCMS is a free software released under GNU/GPL license. PhpSqliteCMS is under GNU/GPL license. TinyMCE is under GNU/LGPL license.
EazyMobile™ is a trademark of ZoriaMedia.com. RiteCMS & Logos, all contents of this website are © of the RiteCMS project.

Powered by RiteCMS