[prev in list] [next in list] [prev in thread] [next in thread] 

List:       quanta
Subject:    Re: [Quanta] Updates and chages on pages
From:       Brandon Sussman <Brandon () WebsterRidge ! com>
Date:       2005-10-27 23:24:51
Message-ID: 436161C3.402 () WebsterRidge ! com
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

fayer wrote on 10/27/2005 05:22 PM:
| Hi,
| Could anyone share with his way of designing webpages which are  easy to
| update? Do I really have to edit every page to make changes for e.g. in
| the menu section?

The first thing to realize is that splitting content from presentation is very
important - using CSS, php and the concept of one copy (for things like your
header, footer, etc) that is 'included' in where desired.

For very heavyweight solutions, content management is really a good way to do
it.  phpWebSite and Zaraya come to mind.

For something a little less 'industrial strength', look at php class that do
templating - my favorite is tbs ( http://www.tinybutstrong.com/ ).  The power
and flexibility is very good.  The competition is strong - Smarty and a host
of others are out there.  Did I mention that tbs is my favorite?

http://marywillsussman.com/gallery/pages/lectWs.php is a very simple example
of using tbs - the owner of the site keeps adding and deleting classes and the
page happily renders, including all the current ones.  The kind of thing you
want to do may be even simpler to do than this - the tbs page has many, many
examples.

Another example - www.spinnernet.com - uses SSI includes to do the link bar.

The html code:

<div class="linkbar">
<!--#include virtual="xxxxxxxxxxxx/hdrlinks.txt"-->
</div>

the contents of hdrlinks.txt:

<!-- begin header links -->
<a class="linkbar" href="/">Home</a>&nbsp;
<a class="linkbar" href="/gallery/pages/bio.shtml">Bio</a>&nbsp;
<a class="linkbar" href="/gallery/">Gallery</a>&nbsp;
<a class="linkbar" href="/gallery/pages/events.php">Events and
Exhibitions</a>&nbsp;
<a class="linkbar" href="/gallery/pages/commissions.shtml">Commissions</a>
<!--<a class="linkbar" href="/gallery/pages/community.shtml">Community</a>-->
<!-- end    header links -->

There are many ways to do it - I think the php dynamic page generation
available today is the best.

- - HTH, Brandon
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iQEVAwUBQ2Fhw9N2DJl/zagkAQK1iwf+Ox2SZQigW3RZ7rH5mRNA4LXJeiaDt9Um
6KumEri7jWNhxTgBY9qlq5vTtiUWyS0qQz3as54oz4yex4dFIQ9E6rOtd0G7BJl6
xSUETeuMHGcYOkRKx3HxbyyAJm+CB/bqewMYGL+6q17JksEYN+9BVJsJD2vulnWW
8UYN2FVuUUqGIZHBFeyP0yGm+7y74yMXw6lURCBCxNOpr2S6pP6oYjreRNYuPoP+
qoN9FeLVCoX7U6JqmiUY5ou4oBJNmiRiTerKH62I/AI+ORaidGFFFlwANqiscJxs
Y+iTEMEUVV/8BTtgIYcR+Lztec7qtbueQab3t3+ea2LeTY/5L56xpw==
=k63N
-----END PGP SIGNATURE-----
_______________________________________________
Quanta mailing list
Quanta@mail.kde.org
https://mail.kde.org/mailman/listinfo/quanta
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic