Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Time for a "What if": msg#00009

cms.phpslash.devel

Subject: Time for a "What if"


What if we used blocks to display pretty much everything.

Just throwing this out. Some thought has gone into this, but
nothing thorough and no testing.

What if we used blocks for:

header and footer - We could easily have section specific headers.
While this isn't a complete separate skin, it's what is needed for
many uses.

topicbar - Since this doesn't change often a block cache would keep
from querying the db. And if you don't use the topicbar, the class
wouldn't be loaded at all. However some skins don't really
have a place for it so we'd have to work around this.

navbar - We already have this. We could use the block to display the
top and bottom navbars also.

modules - If module output was diplayed with a block we could add
different titles easily or outline with a box for all module output,
rather than having to change each module's templates. For stories we
could move the location and number of stories on a page easily.

The index page only has to call the block object to get all data
needed. We might even be able to make use of a page type block.

We might also be able to use something like a template block type.
It's only task would be to parse the named template into a block.

Most of this can be done with minimal changes. The index templates
need a {TOP} and {BOTTOM} and the blocks assigned to these columns.

The Block_render classes should be pretty simple.

Just realized a downside. When you add new sections, they wouldn't
have all the page components automatically.

Joe


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
db.postgresql.b...    video.ffmpeg.us...    gis.qgis.devel/...    web.rdf.redland...    file-systems.oc...    recreation.rail...    systems.archos....    python.c++/2003...    lang.c--/2005-0...    multimedia.gpho...    network.unison....    editors.jedit.u...    hardware.pciids...    cms.tiki.cvs/20...    bug-tracking.ma...    java.hadoop.hba...    ietf.rsvp/2002-...    xfree86.devel/2...    qnx.openqnx.dev...    apache.labs.dev...    tex.pdftex/2008...    os.solaris.open...    user-groups.lin...    kde.koffice/200...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation