Re: PHPCMS
| From: | Roberto Berto | Date: | Wed, 20 Feb 2002 15:26:51 +0000 |
| Subject: | Re: PHPCMS | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-2778@lists.php.net to get a copy of this message | ||
----- Original Message -----
From: "Roberto Berto" <roberto@berto.net>
To: <webteam@epm.net.co>
Sent: Tuesday, February 19, 2002 10:51 PM
Subject: Re: [smarty] PHPCMS
> Jorge,
>
>
> The use of Smarty will give to the CMS a complete customize to pages.
>
> So, if you want to add a News System, a Pool, a Login System with the user
> customization of page colors you can.
>
> You know the power of Smarty...
>
> Here is a old example - without the permissions system - of a list of
news.
>
> news.html
> -------------
> {insert name="load" service="news"}
> {strip}<html>
>
> <head>
> <title>CMS news</title>
> </head>
>
> {* ui = 5 is an General ID *}
> {insert name="news_load" ui="5" assign="total"}
>
> {section name=news loop=$total start=$smarty.request.ns}
> {* 20 is the number of rows by page *}
> {if %news.iteration% <= 20}
> {insert name="news_get" ui="5" row=%news.index%
> assign="getted"}<br>
> {%news.iteration%|string_format:"%02.0f"} -
> <b>{$getted.title}</b> <br>
> Description: {$getted.description}. <a
> href="newsShow.html?n={%news.index%}">More about...</a><br>
> <br> <br>
> {/if}
> {/section}
>
> </html>{/strip}
> --------------
>
> Here is the newsShow.html
> --------------
> {insert name="load" service="news"}
> {strip}<html>
>
> <head>
> <title>CMS news</title>
> </head>
>
> {insert name="news_get" ui="5" assign="getted"
> row=$smarty.request.n}
> <b>{$getted.title}</b><br> <br>
> {$getted.content}<br>
>
> </html>{/strip}
>
> --------------
>
>
> Here is
> ----- Original Message -----
> From: "Jorge Restrepo - WebTeam" <webteam@epm.net.co>
> To: "Roberto Berto" <roberto@berto.net>
> Sent: Tuesday, February 19, 2002 10:58 AM
> Subject: RE: [smarty] PHPCMS
>
>
> > Great!
> >
> > I'd like to know more.
> >
> > :)
> >
> > Jorge
> >
> > > -----Original Message-----
> > > From: Roberto Berto [mailto:roberto@berto.net]
> > > Sent: Tuesday, February 19, 2002 8:32 AM
> > > To: smarty@lists.ispi.net
> > > Subject: [smarty] PHPCMS
> > >
> > >
> > > 1) What is it?
> > >
> > > PHPCMS is a Content Management System write in PHP with use of Smarty
> > > (www.phpinsider.com) template engine.
> > >
> > > 2) DB Port
> > > The start DB is mySQL, but, because the modular filesystem we can
easyly
> > > make a port to PGSQL or other PHP supported DB.
> > >
> > > 3) Permissions
> > > PHPCMS have a permission based in a General ID (GID). The GID is a
> serial
> > > number that all modules use. This way we can set permissions specific
> from
> > > some resource to anyother resource.
> > >
> > > 4) Use of Smarty
> > > PHPCMS can work altrough a script that call the templates, or with PHP
> > > files. The ideia is use of php.ini "auto_prepend_file" directive to
call
> a
> > > script in every PHP file that execute the template inside the PHP file
> > > according the APACHE's ENV "PATH_TRANSLATED" and, after all do a
> > > "exit;" to
> > > skip duplicated output.
> > >
> > > So, all commands will be processed inside the templates with Smarty
> > > "{insert}" directive and with its own programming language.
> > >
> > > 5) Conclusion
> > > The PHPCMS is more complex and have a lot of others concepts, but an
> > > introdution was wrote here.
> > >
> > > The Permission System use is simple but too complex to explain in some
> > > lines.
> > >
> > > There was 3 years thinking about the CMS.
> > >
> > >
> > > PHPCMS already exists and I'm working to make some usefull modules and
> to
> > > document the framework.
> > >
> > >
> > > In few weeks I'll show the source to Smarty list.
> > >
> > >
> > > Roberto Berto.
> >
> >
> >
>