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.
Right now, module templates in phpWebSite are kind of a two sided sword. On the one hand, the idea is catchy. Control, wether you want to see meta info. Change the way, your content-classes are ordered.
Then reality struck us. The module template concept of phpws is bug ridden, module templates from the theme are only loaded the second time they are used. This renders the whole theme-based concept useless. And all the hacking you do in the module template directory will be void, as soon as you update your module to a newer version
Too bad, appstate doesn't think this problem to be important enough to be fixed. Then again, it seems to be rather hidden -- I've been trying to find it myself but couldn't. What I want to say: Take this page with a grain of salt and don't depend on it. Thank you.
Where to find them | |
---|---|
The templates of a certain module are found in mod/modulename/templates, where modulename is replaced with the name of your module. If you want to change a template for a certain theme (which doesn't work properly as the time of this writing), you'd put the same files in theme/themename/templates/modname, where you replace themename and modname with the corresponding. Oh, and if you change them. Please get rid of all the presentational markup and tables in them. You don't want to put bold, italics, table, font tags, inline style and similar in here. Your themes' flexibility is at stake. Use logical markup, like em, h and p. If you really need special formatting (think a bit about it), you can introduce your own div- and/or span-classes, which you of course define in the master css. By the way: The currently used templates are, as far as I can tell, mostly useful as examples, on how not to do it. Most of phpWebSites layout problems (look at the phpWebSite homepage on a pda. With NetFront, for example. You can't use it. It's impossible. It won't accept any clicking on links, everything overlaps, etc. etc.) are in fact template problems. I've been working on that for weeks and still do. To remain fair: Appstate currently focuses developement on templates as well. Let's wait and see how they turn out. |
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