phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] old/wcm/doc/readme.txt, 1.1


From: nomail
Subject: [Phpgroupware-cvs] old/wcm/doc/readme.txt, 1.1
Date: Thu, 30 Dec 2004 09:13:57 +0100

Update of /old/wcm/doc
Added Files:
        Branch: 
          readme.txt

date: 2004/12/30 08:13:57;  author: skwashd;  state: Exp;

Log Message:
keep historic record for wcm
=====================================================================
/* $Id: readme.txt,v 1.1 2004/12/30 08:13:57 skwashd Exp $ */

<pre>
       site
         |
        / \
       /   \
      /     \
    page    page
    ||||    ||||
  elements elements

Site defines a collection of pages
pages defines the layout and include elements
elements are hooks from other pages or apps

pages are either static or dynamic
pages can provide elements, or not

html code can be defined for:

1. site header
2. site footer
3. page head
4. page foot

then elements determine how the code looks in their structure
</pre>

<?php
        $element_types = array(
                'html'  => 1,
                'image' => 2,
                'code'  => 3,
                'hook'  => 4
        );

        $elements = array(
                'menu' => array(
                        'type'     => 'html',
                        'provider' => 'menu.inc',
                        'cache'    => True,
                        'version'  => '1.1.0',
                        'hooks'    => array('left')
                ),
                'polls' => array(
                        'type'     => 'hook',
                        'provider' => 'polls',
                        'cache'    => False,
                        'version'  => '1.1.0',
                        'hooks'    => array('left')
                ),
                'gnulogo' => array(
                        'type'     => 'image',
                        'provider' => 'floating.jpg',
                        'cache'    => True,
                        'version'  => '1.1.0',
                        'hooks'    => array('left','middle','right')
                ),
                'license_plate' => array(
                        'type'     => 'image',
                        'provider' => 'plate_small.jpg',
                        'cache'    => False,
                        'version'  => '1.1.0',
                        'hooks'    => array('left','middle','right')
                ),
                'phpgw_news' => array(
                        'type'     => 'hook',
                        'provider' => 'news_admin',
                        'cache'    => False,
                        'version'  => '1.1.0',
                        'hooks'    => array('middle')
                ),
                'about' => array(
                        'type'     => 'html',
                        'provider' => 'about.inc',
                        'cache'    => True,
                        'version'  => '1.1.0',
                        'hooks'    => array('left')
                )
        );

        $site = array(
                'name'    => 'phpgroupware',
                'title'   => 'phpGroupWare',
                'header'  => 'header.inc.php',
                'menu'    => 'menu',
                'footer'  => 'footer.inc.php',
                'version' => '0.1.1',
                'pages' => array(
                        'main' => array(
                                'header'   => True,
                                'footer'   => True,
                                'cache'    => True,
                                'expire'   => 180,
                                'version'  => '0.1.2',
                                'elements' => array(
                                        'menu', 'polls', 'gnulogo', 
'license_plate', 'phpgw_news'
                                ),
                        ),
                        'about' => array(
                                'header'   => True,
                                'footer'   => True,
                                'cache'    => True,
                                'expire'   => 180,
                                'version'  => '0.1.2',
                                'elements' => array(
                                        'menu', 'polls', 'gnulogo', 
'license_plate', 'about'
                                ),
                        ),
                        'downloads' => array(
                                'header'   => True,
                                'footer'   => True,
                                'cache'    => True,
                                'expire'   => 180,
                                'version'  => '0.1.2',
                                'elements' => array(
                                        'menu', 'polls', 'gnulogo', 
'license_plate'
                                ),
                        ),
                        'support' => array(
                                'header'   => True,
                                'footer'   => True,
                                'cache'    => True,
                                'expire'   => 180,
                                'version'  => '0.1.2',
                                'elements' => array(
                                        'menu', 'polls', 'gnulogo', 
'license_plate'
                                ),
                        ),
                        'documentation' => array(
                                'header'   => True,
                                'footer'   => True,
                                'cache'    => True,
                                'expire'   => 180,
                                'version'  => '0.1.2',
                                'elements' => array(
                                        'menu', 'polls', 'gnulogo', 
'license_plate'
                                )
                        )
                )
        );
?>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]