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.
Box Styles | |
---|---|
Box Styles are the optical connection between your sites design and it's content. What we do here is give every module a place, where it can "live" in. It's like parcelling land, if you'd think about your columns as land. Most modules need to visually interact with the user. That's, where the box comes in -- it prepares a space on the screen for a module and optionally allows to define a title for it as well. |
box styles
|
Where to find them | |
---|---|
Every theme needs a boxstyles/ directory. For each boxstyle you have, you have a .tpl file for it as well. There are two special Boxstyles: default_box.tpl and default_pop.tpl. While I don't know exactly, what good the default_pop.tpl is, default_box.tpl is the default boxstyle for every box. I add a void.tpl and a minimal.tpl to all my themes. void.tpl is a empty file; if I don't want to display some content in a certain theme, I'll give it the void boxstyle. If I just want to see the plain content, without any additional formatting, I'll give it the minimal style. You can select different boxstyles for content via the layout manager in the control panel. |
Why separate boxes from the rest? | |
---|---|
Because it gives us even more flexibility. Think about, for example, a boxstyle called "optional". It would only display on big computer screens but not on handhelds. Things like the "popular article" list come to mind. Then, boxes can be moved around in the layout manager. You have three columns and three vertical subdivisions, where you can freely move your boxes around in. |
What to put in a boxstyle | |
---|---|
A perfectly valid boxstyle, in fact that's the way I do most: <h2>{TITLE}</h2> You might want to add a style-class, where you put around a border. By the way, I usually use h2 for the main content box and h3 for the side boxes. h1 I reserve for the site heading |
Comments - Make a comment |
The comments are owned by the poster. We are not responsible for its content.
|
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