skip to main content

kiesler.at
You are NOT logged in. ( login | New Account Signup | Forgot Your Password? ) Why log in?

Understanding the Display Engine
updated by rck, 2004-11-15

Actually, one of the more powerful things in phpWebSite is the Display engine. A content management like phpWS does just that: It manages your content. I'll show you, how.

1 | 2 | 3 | 4 | 5 | 6

Colours and Formatting

Defining all the sites
colours and formatting

Um, what to write about that? Well, we're talking about colours -- or lack there of. You wouldn't want to use 5 different colours (or even more) for content on your site. Neither more than 3 different font/size/attribute combinations. Both don't look very professional. If you got used to formatting everything all the time with word (bold here, arial 12pt there), well: get rid of that habit.

Your benefit will be a professional looking site, that can be easily modified and tweaked to your hearts desire.

Where to find it

In your theme.tpl, add a link to a css file. Call it colours.css for example and put in all the colours and formating for h1, h2, p, em, strong, a, etc, etc. I also like to do a second file which I usually call standard.css to include all the phpwebsite propritary stuff like .header, .smalltext, etc.

While developing templates, I can for example make those legacy-formatting have a red border so I can find them and get rid of them easily. No presentation code in content, neither invent your own codes ("heading"), where there already are html-standard codes ("h1", "h2", etc.) or they simply aren't useful ("smalltext").

Why separate colours and formatting from the rest?

Why the heck do I separate layout from colours and formatting? Am I being pedantic or what?

Not exactly. In fact, it's a time saver. Just copy the colours and formating of a theme to a new directory, add a new layout and off you go, basically. While defining textsizes is very important for a consistent look, it's pretty much the same steps all the time.

Your colours will stay the same for a certain theme as well, no matter what platform you are on or what device is used. They should at least, you wouldn't want to endager your corporate identity.

1 | 2 | 3 | 4 | 5 | 6



RSSComments - Make a comment
The comments are owned by the poster. We are not responsible for its content.
RSSAll Articles
2008, 2007, 2006, 2005, 2004

What's Related

Article Manager

Tutorials

Latest Updates

AdministrativeTexts
updated by freddiemac1993, 2013-06-14
wiki

Re: adventures
created by brittdavis10, 2012-02-23 (1 rply, 3 views)
thread

Re: how to run phpwebsite...
created by alexander, 2011-08-25 (2 rpls, 3607 views)
thread

Re: Forum tags
created by HaroldFaragher, 2011-08-22 (3 rpls, 8488 views)
thread


Zu den KO2100 Foren