Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- The following teaches how to make a page via a module instead of the admin center so the URL will look like www.yourwebsite.com/index.php/about instead of www.yourwebsite.com/index.php/pages/about.
- Note: EVERYTHING is CASE Sensitive
- 1. Navigate to your Module folder /public_html/core/modules
- 2. Create a folder called About
- a. Inside the About folder create a file called About.php
- b. Insert the code in line C in your About.php page
- c. <?php
- class About extends CodonModule {
- function index() {
- $this->show('about');
- }
- }
- 3. Navigate to your Active Skin Folder /public_html/lib/skins/yourskin
- a. Create a file called about.tpl
- The content that is displayed on your page will be edited in about.tpl the same way it would be in the admin center page manager.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement