Dear Jochen.
Gruess aus Wien! We chose the latter approach for
http://portal1.24on.cc
which uses Midgard for most of the static layout, but uses PHPlib
and our own customized Articles database for handling all of the
news stories, which required some special storage (e.g., categories.)
We also use Perl for XML parsing to bring in news stories to
store them in the articles database, although we wrote an
editorial management system entirely in PHP.
This allows us to get the best of both worlds. We use Midgard to keep
all the styles, layout and content separate, and just use different PHP
functions to bring in the content, rather than the standard Midgard
functions. If we were smarter, maybe we could have abstracted
from the Midgard classes and expanded the database, but I
found it much easier just to roll our own. Midgard is still a big
win in this circumstance.
I recommend this approach, and there's no need to keep anything
in files -- just use Midgard for all your PHP code. The only
thing I miss is decent version control -- which is why one of my
(inactive) projects is to integrate RCS into the 1.4 admin interface,
when it is released.
Cheers
Paul Gillingwater
Lanifex Partners, Vienna, Austria
http://www.lanifex.com
Jochen Lillich wrote:
> Hi,
>
> using Midgard for a news and forum portal that manages a huge amount of
> articles (for example: http://www.linuxde.org) has become a no-brainer
> here. No arguments needed any more. :-)
>
> But now, we have a project whose data model doesn't fit well with the
> article paradigm Midgard is based on. We'll have to manage product
> data, contact addresses etc. Of course, this could be done in plain
> PHP, using .php files, FastTemplates, PHPlib and so on.
>
> But I fell in love with the content/layout separation Midgard enables
> me to do. My thought: What about using Midgard for that purpose and
> administration only and doing all the data management the normal PHP
> way?
>
> Would this be a wise step, giving us comfortable administration but
> keeping data flexibility? Or would it be overkill, making an easy task
> much too complicated?
>
> Any recommendations welcome!
>
> Regards,
> Jochen
>
> --
> Jochen Lillich | http://www.teamlinux.de
> TeamLinux - J. Lillich und B. Schmidt GbR | Tel. 07255/76784-12
> Linux-Loesungen fuer Internet und Intranet | Fax 07255/76784-50
>
--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org
To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]