> > It's all starting to make sense now. It seems that you are able to pull
> > in static pages so long as they are called from index.php  - What I
> > would like to know is what is the easiest way to change the to change
> > the layout of the index.php  - I looked at ./modules/layout/?  ( what
> > should'nt I touch ) -  how do I go about getting a fancy layout like
> > linuxyen.com and not break what I have already ?  
> Create a new layout module.  In the layout module, call any navigation
> modules that you wish.  Also, at some point, remember to include the
> screen module.  That's it.  

Best way to approach without hurting the existing files is to make a copy
of it.  Edit the copy.  For my website I made a new layout called
newyen_with_side_nav.  Update the file ./modules/include/ScreenInfo

<!-- Snippet of my ScreenInfo - START -->
        $ScreenInfo = array
        (
                /*
                ** top-level screen
                */
                "welcome"=>array
                (
                        SI_TITLE=>"Welcome to --== N E W Y E N ==--",
                        SI_DESCRIPTION=>$DefaultDescription,
                        SI_KEYWORDS=>"home",
                        SI_LAYOUT=>"newyen"
                ),

                /*
                ** newyen is a directory: ./modules/screen/newyen/
                **              
                */

                "newyen/products.html"=>array
                (
                        SI_TITLE=>"Welcome to --== N E W Y E N ==--",
                        SI_DESCRIPTION=>$DefaultDescription,
                        SI_KEYWORDS=>"home",
                        SI_LAYOUT=>"newyen_with_side_nav"
                ),

<!-- Snippet - END -->


This is how you do relative linking:
<a href="index.php3?SCREEN=newyen/products.html">Products</a>

Absolute linking:
<a
href="http://www.linuxyen.com/test/htdocs/index.php3?SCREEN=newyen/products.html">Products</a>





------------------------------------------------------------
To subscribe:    [EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Site:            http://www.working-dogs.com/freetrade/
Problems?:       [EMAIL PROTECTED]

Reply via email to