Documentation

Overloading module views

PyroCMS is written intended to be styled mainly by CSS, but as designers you want full control over how your site looks. We understand that, so PyroCMS will let you replace any module view with a view inside your theme.

Let's say you want to replace the main news listing page. Simply copy:

application/modules/news/views/index.php

to:

third_party/themes/<theme_name>/views/modules/news/index.php

Then you can edit that theme however you like, and instead of PHP syntax you can replace it all with PyroCMS/Dwoo Syntax and use any of the functions & variables available throughout the system.

« Back to "Designers Guide"


Hosted by CloudIgniter
Click here to lend your support to: pyrocms and make a donation at www.pledgie.com !