Advertisement
cloudcoderz

Untitled

May 26th, 2014
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. 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.
  2.  
  3. Note: EVERYTHING is CASE Sensitive
  4.  
  5. 1. Navigate to your Module folder /public_html/core/modules
  6. 2. Create a folder called About
  7. a. Inside the About folder create a file called About.php
  8. b. Insert the code in line C in your About.php page
  9. c. <?php
  10. class About extends CodonModule {
  11. function index() {
  12. $this->show('about');
  13. }
  14. }
  15.  
  16. 3. Navigate to your Active Skin Folder /public_html/lib/skins/yourskin
  17. a. Create a file called about.tpl
  18.  
  19. 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