Jump to content

[Solved] CMS Sub Directories.


Nout - Zon Executive

Recommended Posts

Is it possible to implement pages sub directories. Such as

index.php/pages/training/b747 will show core/pages/b747.htm

index.php/pages/operations/fleet will show core/pages/fleet.htm

I am getting a lot, a lot and a lot of custom content, and being able to pop it all in sub directories would be very useful.

Regards,

Nout

Link to comment
Share on other sites

  • Administrators

I would build a module to accomplish what you are trying to do, then you can just drop your tpl files into your skin folder.

something like

file -> root/core/modules/Mycontent/Mycontent.php

<?php

class Mycontent extends CodonModule  {

   function b747()  {
       $this->render('b747.tpl');
   }

   function b737()  {
       $this->render('b737.tpl');
   }

}

then build your pages and name them b747.tpl and b737.tpl and drop them in your skin folder

You can then reach the pages simply by linking to

www.mysite.com/index.php/Mycontent/b747
and
www.mysite.com/index.php/Mycontent/b737

you can add as many functions (read pages) as you would like

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...