From: Frits J. <FJ...@uv...> - 2001-03-29 18:12:16
|
> -----Oprindelig meddelelse----- > Fra: Karsten Dambekalns [mailto:k.d...@fi...] > Sendt: 29. marts 2001 18:27 > Til: php...@li... > Emne: Re: [Phpwebsite-developers] Template system (Smarty) > > > On Thu, Mar 29, 2001 at 05:04:43PM +0200, Alain Fontaine wrote: > > > Using a browser-based interface to change the styles is > indeed a cool idea. > > Oh wait, wasn't it me who initially suggested that ? hehe > :)). Seriously, > > it wouldn't be too hard to integrate it. A little > brainstorming if you > > permit: > > Sure :-) That's what we are all doing all the time... Brainstorming cool, but browser-based interface to change the styles don't appear as being smart in reality; This project never will be static, and therefore version number of themes, php, editor and level of edit will always be an issue. What good is one, if not compatible with another? You agree that not all will be possible to edit through this editor, but the options with CSS are virtually endless, so this will be an ongoing issue. PhpWebsite should not be a CSS editor, nor include one (or an attempt). If anyone wants to write CSS, they should use one of the many fine editors around. This, for the only reason that it is way better to have a complete and working PhpWebsite than an incomplete try on a somewhat complete package; If anyone wants to change the code in the tarball, PhpWebsite should not also come with a custom built php-editor, if you know what I mean ;) A project that is supposed to give defined workspace to the end user can only have a certain level of fleksability. Does the user want more, the user must code, only this way the project can work - by setting limits of capability. Dont forget that you are coding for the people, so that the people do not have to code. Having said this, it would only be great if someone coded a plugin to be *working with a custom build theme*, creating a DIYS theme package this way, but this should be an option like the weather plugin, functioning and coded independently within the given frames of a plugin.. > > > 1. Ideally, all styles would need to be stored in one > single .css file. That > > makes management and automation easier. Let's call it > theme.css. The real > > filename would actually be theme.css.php because the styles > would be defined > > dynamically through PHP and database calls. I totally disagree, as having your themes this way would make using good third-party tools for editing CSS very complex, and the whole structure more complex from a designers point of view. One directory containing one theme makes sense for the user, increases ease of use, and is open for the future expansions. Pardon my tone =) > > I would like to have it as a template: Just write a "normal" > stylesheet, and > afterwards replace all values which should be adjustable through the > webinterface by placeholders. > > > 2. Every style (ID, tag overload, or class) that is used in > phpWebSite would > > need to be defined in that file. > > Yes. We should try to define the style to be usd before > writing any new > template or stylesheet. What is tagged and what is classes and ID's, and where these are used, should be stated clearly, so that anyone not satisfied with the available styles could have easy access to make his/her own in an editor. Btw; If I where to decide, way more of the coding should have classes attached, making CSS'ing more versatile. Also there should be a referrer to print and aural versus monitor in the coding - I would like my pages to print nicely. A theme should consist of at least both one for monitor, and one for print, to be a complete theme. > > > 3. The admin interface should have a "preview style" > feature so that one can > > check the result immediately. > > Would be good. Using a third party CSS editor, this option already exists - don't invent the wheel again :) > > > 4. One should be able to define more than one theme. This > means that we'd > > need a "themes" table, and a "themesdetail" table that > defines the values > > for the individual styles, per theme. > > Eh? One will be able to have as many themes as he/she wants, > right? Ah, I > should think a minute longer, before starting to write... If > we have dynamic > CSS, we nedd to have the values in the database, and in that > database we > would need an entry for each value/theme pair. Did I get you right? > > Hmm, let's see. We could define some standard themes (with > templates and > stylesheet template), for which such entries in the database > would come > shrink-wrapped. Now there would be two possibilities for future theme > contributors: Create a customizable theme, in that case they > would have to > follow some basic rules, and would have to provide a SQL snippet to > introduce their template to the database (like plugins do). > Or they could > decide to write a fixed theme, this would not be customizable > through the > webinterface, but would'nt need the database either. > > We probably need some more thinking on that subject. The amount of themes should be read by the number of directories in the 'Themes' directory. The only dynamic thing in selecting a theme would be selecting to where the themes-variable should point (To which directory). This way themes can expand endless - I mean, one could include soundeffects if for an obscure reason this was a wish in the future :) The structure would be ready, you see. In the code _Everything_ possible needs to be tagged (have a class / ID)- No exeptions, then it is up to the theme creators to use all the possibilities or not, in a given theme. There should be a certain logic to the tagging, so that we do not end up using 5 trillion individually named tags, one for each plugin, option and 'little thing i just coded'. Limit is the keyword. Without having thought it all the way through, I would say that it would be plenty with 5 areas of tagging. It could be something like: leftbox.h1 =... rightbox.h1 =... article.h1 =... special_big.h1 =... special_small.h1 =... top_bar.h1 =... leftbox.h2 =... rightbox.h2 =... article.h2 =... special_big.h2 =... special_small.h2 =... top_bar.h2 =... and so on... leftbox_menu_padding.left =... leftbox_menu_padding.right =... leftbox_menu_padding.bottom =... leftbox_menu_padding.top =... leftbox_menu_padding.left =... rightbox_menu_padding.left =... rightbox_menu_padding.right =... and so on... This way coders knew what they could (should) use when tagging, and there would be plenty to play with for the designers, though ensuring a homonognius (English is my second language, ok:) )look and ease of design. If I make any sense to anyone, I would take on the task of creating a _complete_ set of such names, so that that part of the project was finito and done with. Then, when coding and making themes from now on and forever, you knew what you had to work with... > > > 5. It would be nice if the advanced user would not be > limited to using the > > admin interface. The advanced user should be able to > manually apply his > > hand-crafted .css file. > > This would be possible through the stylesheet template > approach mentioned > above: Just edit the CSS template, and you're set. > > > 6. How do we go about defining a style's values? The > problem is that you can > > [...] > > We should limit the customizable things to some set of > options we define. > Full Stop. If needed, the user/admin can edit the stylesheet template > directly. This is where I go for the plugin-idea mentioned above.. > > 7. If we are going to make it as dynamic: how about > performance? We'd need > > to investigate caching/compiling options. > > If we take the stylesheet template approach I layed out > above, and we decide > for using Smarty the cacheing/compiling would be done through > those. Nothing > to worry about :-) > > > 8. Also, having that degree of "dynamicity" (?) would allow > us to make a > > very customizable phpWebSite in which the site visitor > could create his own > > style sheet definitions ! > > The abilty to choose a theme is enough, I would say. No nedd > to give every > user the ability to customize the freely selectable theme > even more, right? > And I would suspect this to introduce (some) performance issues. Totally agree! "This tarball works. U want more? Code!" > > > 9. For every style definition, the editor should show where > a particular > > style is used, so that the user immediately sees at what > places his changes > > are going to have an effect. It's a PITA to edit a style > for one place just > > to find out that the very same style is used on 5 other > pages, and messes > > everything up on those. > > This would be nice, but we should lay that responsibility > into the hands of > theme authors. A simple static HTML table showing where which > style is used, > should be sufficient. > > > Okay, enough for now. Waiting for comments/suggestions/ideas :) > > Satisfied? :-) > > Regards, > Karsten > -- > fishfarm - Karsten Dambekalns > Echternstr. 73 - 38100 Braunschweig > > Tel. +49 531 1232902 mailto:k.d...@fi... > Fax. +49 531 1232906 http://www.fishfarm.de/ > ----------------------------------------------------- > > Hope I made sense, humble greetings earthlings, Frits |
From: Frits J. <FJ...@uv...> - 2001-03-29 18:54:01
|
Sorry if I seemed offensive in my previous posting, and sorry to = everyone, if this gets to narrow for a mailinglist :) > -----Oprindelig meddelelse----- > Fra: Alain Fontaine [mailto:al...@va...] > Sendt: 29. marts 2001 20:39 > Til: php...@li... > Emne: RE: [Phpwebsite-developers] Template system (Smarty) >=20 >=20 > Hi there, >=20 > > -----Message d'origine----- > > De : php...@li... > >=20 > [mailto:php...@li...]De=20 > la part de > > Frits Jensen > > Envoy=E9 : jeudi 29 mars 2001 20:12 > > =C0 : 'php...@li...' > > Objet : SV: [Phpwebsite-developers] Template system (Smarty) > > > [cut] >=20 > [quote] > Totally agree! "This tarball works. U want more? Code!" > [/quote] >=20 > Okay, if we follow this direction, and that is what the main=20 > part of your > mail expresses, we will just hand out a text editor, the PHP=20 > source, the > mySQL source and a Linux distribution to the guy and say: This is > phpWebSite. Want more? Code!. Sorry - u couldnt get me more wrong. My concern was to make a finished product that came with upgrades, opposed to beta on beta with potential = for expansion. This would mean somewhat limited versions, but versions = where the user did not have to code. _Only_ if this wasn't enough for the user, = my staement was; Code! I want a complete and working system that can be = build on, not an ongoing beta - that's what I was trying to express. > Or even better, send them an E-mail with the URL's to php and=20 > mysql, and > tell them that this is all they need to have their portal=20 > site :). I agree > that this is ridiculus, but where I want get to is this: >=20 > It's all about finding the "right middle-way". >=20 > As far as I know, our target audience are people who don't really = feel > comfortable fiddling around in style sheets, HTML, let alone=20 > PHP code. I > guess, unless I am really mistaken, that we want phpWebSite=20 > to be a Portal > Application in the "Windows" sense, e.g. "point&click, setup.exe, > click-click" and there you have your own customized portal site. >=20 > In that sense, I definitely feel that a "theme editor" would be very > welcome. Don't forget that there will be many phpWebSite=20 > users that don't > even know HTML. Actually, the guy I am currently setting up=20 > phpWebSite for > is one of them. >=20 > Anyway, even if we don't include an editor, going the=20 > "templatized themes > definition" direction will probably prove to be much less of=20 > a hassle to > manage. Which of the following is better: >=20 > * 10 themes equals 10 directories, each having 15 files > or: > * 10 themes equals ONE directory, having 15 slightly more=20 > complex files >=20 Karsten just expressed MHO :) > The first possibility means 150 entities to manage, the=20 > second means 15 > entities. It's clear that both from a developer's point of=20 > view, AND from > the user's point of view, the second possibility is the way=20 > to go. In any > way, we will end up with an "easier to manage" factor equalling > approximately the number of themes. The more themes we have,=20 > the more the > second solution will become easier to manage/update. >=20 > I can somehow understand the points you make about including the = theme > editor (although I don't agree with all of them). However, I=20 > cannot agree > with you on the fact that it would be better to have the "10=20 > themes =3D=3D 10 > directories" structure. That is not dynamic, not manageable, and not > challenging. The last point is something we shouldn't forget:=20 > Most of us are > doing this because it is fun, and because we want to learn.=20 > If it weren't > for that, we could simply start creating static portal sites=20 > and keep our > lives busy updating them using Frontpage 2000. >=20 > No offense taken, and these are just my personal views on the=20 > matter :) >=20 > Alain :) >=20 >=20 >=20 > _______________________________________________ > Phpwebsite-developers mailing list > Php...@li... > http://lists.sourceforge.net/lists/listinfo/phpwebsite-developers >=20 |
From: Frits J. <FJ...@uv...> - 2001-03-29 18:58:13
|
U may :) > -----Oprindelig meddelelse----- > Fra: Mike Windsor [mailto:wi...@ce...] > Sendt: 29. marts 2001 20:54 > Til: php...@li... > Emne: Re: [Phpwebsite-developers] Template system (Smarty) > > > If I may, > > > In that sense, I definitely feel that a "theme editor" would be very > > welcome. Don't forget that there will be many phpWebSite > users that don't > > even know HTML. Actually, the guy I am currently setting up > phpWebSite for > > is one of them. > > > > Anyway, even if we don't include an editor, going the > "templatized themes > > definition" direction will probably prove to be much less > of a hassle to > > manage. Which of the following is better: > > Could a theme editor be made a "plugin" as well? > > winzor > I was trying to propose this earlier. Only - It should come with a custom theme, made specially to be compatible with this plugin, to avoid complications (to keep it short) Frits > > _______________________________________________ > Phpwebsite-developers mailing list > Php...@li... > http://lists.sourceforge.net/lists/listinfo/phpwebsite-developers > |
From: Frits J. <FJ...@uv...> - 2001-03-29 19:37:38
|
Karsten (and onyone with interest); > -----Oprindelig meddelelse----- > Fra: Karsten Dambekalns [mailto:k.d...@fi...] > Sendt: 29. marts 2001 20:39 > Til: php...@li... > Emne: Re: [Phpwebsite-developers] Template system (Smarty) > > > On Thu, Mar 29, 2001 at 08:11:52PM +0200, Frits Jensen wrote: > > > I totally disagree, as having your themes this way would > make using good > > third-party tools for editing CSS very complex, and the > whole structure more > > complex from a designers point of view. One directory > containing one theme > > makes sense for the user, increases ease of use, and is > open for the future > > expansions. Pardon my tone =) > > You are making a point here. Third-Party CSS editors would > get disturbed by > placeholders in the CSS tenplate file. Hmmm.... I admit I do not code, but it just seems straight ahead for me to have "real" CSS in its own file, and then whatever extra files a theme unfortunetely have to have along in the same directory - messy, perhaps, but sloppy, I should say no, as this is just playing by the given realities of different systems interacting, and being prepered for whatever comes at the same time. > > > CSS'ing more versatile. Also there should be a referrer to > print and aural > > versus monitor in the coding - I would like my pages to > print nicely. A > > theme should consist of at least both one for monitor, and > one for print, to > > be a complete theme. > > That got my attention: Is there _any_ browser available, that _really_ > supports _any_ of the possibilities to format for printing? > Last time I > looked at that issue, I was all too disappointed! > > Or are you referring to this with a look in the future? I suppose IE 5.5/Win is 100% print/monitor, but in general, I should think one exciting thing of this project is 'doing it right' - so if for nothing else, just for the sake - its only one line pr CSS-call, and does the printing-CSS not exist, well no harm done, it'll get ignored, or alternative, one could place an empty CSS for printing if one could not bother. > > But of course you are right. Maybe we should just do it > anyway, and see the > browser makers implement it, just to satisfy the gazillion phpWebSite > users... :-) Jep =) > > > There should be a certain logic to the tagging, so that we > do not end up > > using 5 trillion individually named tags, one for each > plugin, option and > > 'little thing i just coded'. Limit is the keyword. Without > having thought it > > all the way through, I would say that it would be plenty > with 5 areas of > > tagging. It could be something like: > > > > leftbox.h1 =... > > rightbox.h1 =... > > article.h1 =... > > special_big.h1 =... > > special_small.h1 =... > > top_bar.h1 =... > > [...] > > and so on... > > Ok, I got that... Though you probably mean leftbox.h1 {...} > > > leftbox_menu_padding.left =... > > leftbox_menu_padding.right =... > > leftbox_menu_padding.bottom =... > > leftbox_menu_padding.top =... > > leftbox_menu_padding.left =... > > > > rightbox_menu_padding.left =... > > rightbox_menu_padding.right =... > > > > and so on... > > What are those for? Or do you mean leftbox_menu { padding-left: ... > padding-right:... } ?!? lol - I was dumb enough to try and describe the mathematics, using imaginary syntax.. Sorry, I can see it makes no sense. Perhaps this will: (no syntax now, just describing how many 'tags' needed) We have 5 areas: leftbox rightbox main special_big special_small Theese will each need all the usual stuff as 'h1 font size' for each 5, 'h2 font size' for each 5 and so on. Second, I was trying to describe how some need padding, border, etc for all four sides (Not just h1, but left padding, right padding, etc), marked individually, and so on. The main thing in my nonsense was that all there is to work with is one of those 5 'subsets'; When coding, you could chose if your object belonged to leftbox, rightbox, main, special_big, or special_small, and within this you then could choose say 'h1'. I cannot remember the syntax but I will create a complete set if u agree and understand.. When creating the CSS, u could then have individual looks for each of the 5 subsets. Typically all would be more or less the same, but as I tried to explain; the system would be closed standard hereafter, but any needed versatility would not be lost. One extra subset for the top-bar would be needed. > > > If I make any sense to anyone, I would take on the task of > creating a > > _complete_ set of such names, so that that part of the > project was finito > > and done with. > > Go ahead! Write something up and submit it to the list for > discussion. Any > help is good help :-) Thanks for the backup - I'll get to it - Only I am kinda new to all this hacking, so please confirm that I am on solid ground here - I make the above rules in a CSS where all is just black & white & Arial, and submit it on this channel? Have u understood what I am trying to do, and would it be of any use? Thanks, Frits > > Regards, > Karsten > -- > fishfarm - Karsten Dambekalns > Echternstr. 73 - 38100 Braunschweig > > Tel. +49 531 1232902 mailto:k.d...@fi... > Fax. +49 531 1232906 http://www.fishfarm.de/ > ----------------------------------------------------- > |
From: Karsten D. <k.d...@tu...> - 2001-03-30 12:00:52
|
On Thu, Mar 29, 2001 at 09:37:08PM +0200, Frits Jensen wrote: > I suppose IE 5.5/Win is 100% print/monitor, but in general, I should think > one exciting thing of this project is 'doing it right' - so if for nothing Yep! Doing it right, just for the sake of it! Though it can be hard sometimes :-) > > What are those for? Or do you mean leftbox_menu { padding-left: ... > > padding-right:... } ?!? >=20 > lol - I was dumb enough to try and describe the mathematics, using imagin= ary > syntax.. Sorry, I can see it makes no sense. Perhaps this will: (no syntax > now, just describing how many 'tags' needed) >=20 > We have 5 areas: >=20 > leftbox > rightbox > main > special_big > special_small Are that enough? Everyone: Think about that, and submit ideas! What comnes to my mind immediately is: what about Weblinks, Articles, et al. Do we need seperate defintions for those, or are they just "main"? And if they will be rewritten as plugins or modules seperate from the core system, what happens then? Styles for plugins? > Theese will each need all the usual stuff as 'h1 font size' for each 5, '= h2 > font size' for each 5 and so on. >=20 > Second, I was trying to describe how some need padding, border, etc for a= ll > four sides (Not just h1, but left padding, right padding, etc), marked > individually, and so on. Right. > The main thing in my nonsense was that all there is to work with is one of > those 5 'subsets'; When coding, you could chose if your object belonged to > leftbox, rightbox, main, special_big, or special_small, and within this y= ou > then could choose say 'h1'. I cannot remember the syntax but I will creat= e a > complete set if u agree and understand.. Yes do that. Maybe you don't need to write a full stylesheet at first, but rather refine the proposed structure (waiting for input to my above mentioned call...) and make a "real" stylesheet afterwards. > One extra subset for the top-bar would be needed. Ack. > Thanks for the backup - I'll get to it - Only I am kinda new to all this > hacking, so please confirm that I am on solid ground here - I make the ab= ove > rules in a CSS where all is just black & white & Arial, and submit it on > this channel? Have u understood what I am trying to do, and would it be of > any use? See above, maybe you should refine the structure first. But in general, that is the way you should proceed. Regards, Karsten --=20 Why do we have to hide from the police, daddy? Because we use emacs, son. They use vi. ----------------------------- mailto:k.d...@tu... w=B3: http://www.k-fish.de/ gpg: http://www.k-fish.de/mykeys.gpg |
From: Todd O. <to...@da...> - 2001-03-30 12:58:26
|
> leftbox > rightbox > main I think we're selling the project short if we have leftbox and rightbox, etc. The themes need to be more generic and flexible. Such as the following: --Objects on a certain page nav_bar, weather, articles, poll1, poll2 (second instance), job_posts, header, footer --Theme/template <html><body> <style sheet here> {header}<br /> <table> <tr><td>{nav_bar}</ td><td>{articles}</ td> <td>{poll1}</ td><td>{poll2}</ td></ tr> <hr /> <tr><td>{weather}</ td><td>{job_posts}</ td></ tr> </ table> <br />{footer} </ body></ html> Oops, did I have four columns instead of three on top, then just two on the bottom? You see my point. We need to have each of the page objects separate, then allow the theme/template to arrange them independant of left, main and top. --Todd |
From: clayton c. <cc...@ca...> - 2001-03-30 13:15:35
|
RE more flexible page layout Todd, i completely agree ! dont you just hate it when you go to the net and find 50million sites that look exactly like yours ? aside from showing appreciation to the developers, i may not broadcast what software is driving sites i may do for customers. <plug>the good thing about Smarty is that you can define your own "parameterized" tags (they remind me slightly of ColdFusion), so you can accomodate situations like this in a customized way </plug> |
From: Karsten D. <k.d...@tu...> - 2001-03-30 13:40:40
|
On Fri, Mar 30, 2001 at 07:56:17AM -0500, Todd Owen wrote: > > leftbox > > rightbox > > main >=20 > I think we're selling the project short if we have leftbox and rightbox, > etc. The themes need to be more generic and flexible. Such as the > following: >=20 > --Objects on a certain page > nav_bar, weather, articles, poll1, poll2 (second instance), job_posts, > header, footer Right. But will these be "blocks" or not? That is, do we need special styles for those? I think we should stick with something like left,right,main, for the sake of simplicity. If we jave something like {leftblocks}, we have the opportunity to let the system reorder the single blocks within that. > --Theme/template > <html><body> > <style sheet here> > {header}<br /> > <table> > <tr><td>{nav_bar}</ td><td>{articles}</ td> > <td>{poll1}</ td><td>{poll2}</ td></ tr> <hr /> > <tr><td>{weather}</ td><td>{job_posts}</ td></ tr> > </ table> > <br />{footer} > </ body></ html> How would the system know that those placeholders exist? And what about a plugin? Is this was to go into the {plugin} part of the template, all would be well. But if that plugin neede something like {my_blah_plugin}, you wouldn't be able to use that plugin with some other theme... > You see my point. We need to have each of the page objects separate, then > allow the theme/template to arrange them independant of left, main and to= p. Yes, seperatley, but following some rules. If I may lay out some ideas... (we might have something like this as documentataion on "how to write themes"): -------------------------- - A theme has to provide at least one page template, one block template and exactly one stylesheet. - The stylesheet *must* define the following classes and tags in that class= es: (insert with what Frits and/or others come up) [1] - The stylesheet *may* define additional styles for classes or tags used solely in the corresponding template. The must not interfer with the standard PHPWS style/class names. [1] - The page template *must* provide placeholders for: - blocks1, blocks2, blocks3, blocks4 [2] - plugins1, plugins2 [2] - header [3] - footer [3] - main [4] - menu - The block template *must* define a standard block for use with the format_block($title,$content) function (or whatever function there may be). - The theme *may* define more block templates, which can be assigned to individual blocks through the admin interface. -------------------------- This is mainly a proposal, although I would consider it thought through, at least in a basic way :-) [1] By setting up rules for the stylesheet, we achieve a minimum level of compatibility between templates. By allowing additional rules in them, we give designers some more freedom. [2] The page must define 4 block and 2 plugin placeholders, because we could give the possibility to assign a plugin or block to one of the block or plugin "places". I do not name them blocks_left, blocks_top, et al, because that would imply a position. Having them numbered, gives a theme author the possibility to place blocks1 and blocks2 directly above each other, for example. - Question: shall we seperate blocks and plugins, or shall plugins be plced like blocks? - Question: Are 4 (6) blocks/block positions enough? [3] These would be for placing some smallprint (like at the bottom of the page and what is $titlebar in config.php now) [4] Here would go anything else that is produced dynamically (except the menu, of course). REMEMBER: These rules are for standard themes (and their authors), they make sure that a theme is fully compatible with an out-of-the-box install of PHPWS. If one wants to develop a theme for personal use, he/she could easily omit blocks3 and blocks4, as well as the header. He wouldn't be able to complain about being able to assign plugin x to blocks3, though :-) And such a template wouldn't pass QA at Appstate and therefore wouldn't be offered on the download page. That's it, sorry for the much too long post (again!) :o) Regards, Karsten --=20 Why do we have to hide from the police, daddy? Because we use emacs, son. They use vi. ----------------------------- mailto:k.d...@tu... w=B3: http://www.k-fish.de/ gpg: http://www.k-fish.de/mykeys.gpg |
From: clayton c. <cc...@ca...> - 2001-03-30 14:05:23
|
Karsten, > - The page template *must* provide placeholders for: > - blocks1, blocks2, blocks3, blocks4 [2] > - plugins1, plugins2 [2] > - header [3] > - footer [3] > - main [4] i hate to harp on Smarty again, but one nicety it has is that you (the developer) can define custom tags which can take parameters which can come from PHP variables or a config file. So you can have something like : {block number=$block_number position=$block_position theme=$site_theme} to implement this you would then define a function in an addon file which takes the parameters passed to it and return an html fragment. if needed, you can put the tag in a template block which generates the required parameters. btw for some reason, all your messages appear as attachments in LookOut Express ----- Original Message ----- From: "Karsten Dambekalns" <k.d...@tu...> To: <php...@li...> Sent: Friday, 30. March 2001 8:40 Subject: Re: [Phpwebsite-developers] Template system: Proposal |
From: Todd O. <to...@da...> - 2001-03-30 14:36:59
|
Karsten, you're correct; we should make the themes use block1, block2, etc. to make them more generic, in lieu of the specific names I gave them. We should have an agreed upon set of style sheet parameters that is used throughout the PHP code on the site including plug-in modules. If a plug-in developer wants to use a new CSS parameter, that's OK, but it must fall back to one of the standards if not included in a default theme--this would keep things from breaking (i.e. looking strange). --Todd TRANSLATE[[ As a loyal vi user, I continue to take offense to Karsten's signature block. Unless it stops, all Big Brother vi users will be forced to retaliate ;) ]] |
From: Karsten D. <k.d...@tu...> - 2001-03-30 16:25:07
|
On Fri, Mar 30, 2001 at 09:35:38AM -0500, Todd Owen wrote: > TRANSLATE[[ As a loyal vi user, I continue to take offense to Karsten's > signature block. Unless it stops, all Big Brother vi users will be forced > to retaliate ;) ]] ROTFLOL :-)) Karsten --=20 Why do we have to hide from the police, daddy? Because we use emacs^H^H^H^H^Hvi, son. They use vi^H^Hemacs. ----------------------------- mailto:k.d...@tu... w=B3: http://www.k-fish.de/ gpg: http://www.k-fish.de/mykeys.gpg |
From: Mike W. <wi...@ce...> - 2001-03-30 17:46:00
|
Here is a fork off nuke and he has already done a great deal with the block issue. Read more here. http://www.kodewulf.za.net/article.php?sid=76&mode=thread&order=0 winzor ----- Original Message ----- From: "Karsten Dambekalns" <k.d...@tu...> To: <php...@li...> Sent: Friday, March 30, 2001 10:22 AM Subject: Re: [Phpwebsite-developers] Template system: Proposal |
From: Alain F. <al...@va...> - 2001-03-29 18:38:56
|
Hi there, > -----Message d'origine----- > De : php...@li... > [mailto:php...@li...]De la part de > Frits Jensen > Envoyé : jeudi 29 mars 2001 20:12 > À : 'php...@li...' > Objet : SV: [Phpwebsite-developers] Template system (Smarty) > [cut] [quote] Totally agree! "This tarball works. U want more? Code!" [/quote] Okay, if we follow this direction, and that is what the main part of your mail expresses, we will just hand out a text editor, the PHP source, the mySQL source and a Linux distribution to the guy and say: This is phpWebSite. Want more? Code!. Or even better, send them an E-mail with the URL's to php and mysql, and tell them that this is all they need to have their portal site :). I agree that this is ridiculus, but where I want get to is this: It's all about finding the "right middle-way". As far as I know, our target audience are people who don't really feel comfortable fiddling around in style sheets, HTML, let alone PHP code. I guess, unless I am really mistaken, that we want phpWebSite to be a Portal Application in the "Windows" sense, e.g. "point&click, setup.exe, click-click" and there you have your own customized portal site. In that sense, I definitely feel that a "theme editor" would be very welcome. Don't forget that there will be many phpWebSite users that don't even know HTML. Actually, the guy I am currently setting up phpWebSite for is one of them. Anyway, even if we don't include an editor, going the "templatized themes definition" direction will probably prove to be much less of a hassle to manage. Which of the following is better: * 10 themes equals 10 directories, each having 15 files or: * 10 themes equals ONE directory, having 15 slightly more complex files The first possibility means 150 entities to manage, the second means 15 entities. It's clear that both from a developer's point of view, AND from the user's point of view, the second possibility is the way to go. In any way, we will end up with an "easier to manage" factor equalling approximately the number of themes. The more themes we have, the more the second solution will become easier to manage/update. I can somehow understand the points you make about including the theme editor (although I don't agree with all of them). However, I cannot agree with you on the fact that it would be better to have the "10 themes == 10 directories" structure. That is not dynamic, not manageable, and not challenging. The last point is something we shouldn't forget: Most of us are doing this because it is fun, and because we want to learn. If it weren't for that, we could simply start creating static portal sites and keep our lives busy updating them using Frontpage 2000. No offense taken, and these are just my personal views on the matter :) Alain |
From: Karsten D. <k.d...@fi...> - 2001-03-29 18:49:05
|
On Thu, Mar 29, 2001 at 08:38:48PM +0200, Alain Fontaine wrote: > * 10 themes equals 10 directories, each having 15 files > or: > * 10 themes equals ONE directory, having 15 slightly more complex files I would say: The FIRST! > The first possibility means 150 entities to manage, the second means 15 > entities. It's clear that both from a developer's point of view, AND from > the user's point of view, the second possibility is the way to go. In any > way, we will end up with an "easier to manage" factor equalling > approximately the number of themes. The more themes we have, the more the > second solution will become easier to manage/update. Well, basically a theme is a theme because it defines it's own layout, colours, whatever. What if I created a theme with a new template for left blocks. This template needed some images. And the corresponding stylesheet doesn't need borders around the blocks. If I were to put my files into THE theme directory, there sure would something get messed up. And what about theme_xyz.tar.gz? How would you know that you can safely unpack this? You wouldn't... So I would say: Dynamic stylesheets are a must, even it it is only for setting the font-size depending on the user agent (one could probably use some regex to put a placeholder in a stylesheet produced by some third party CSS editor automatically). One directory per theme is a must. To keep things simple ("Hey, these files belong to the xyz theme. Cool") and manageable. You wouldn't want to change the colors for all themes anyway, eh? How would they be different afterwards? Just MHO, Karsten --=20 fishfarm - Karsten Dambekalns Echternstr. 73 - 38100 Braunschweig Tel. +49 531 1232902 mailto:k.d...@fi... Fax. +49 531 1232906 http://www.fishfarm.de/ ----------------------------------------------------- |
From: Mike W. <wi...@ce...> - 2001-03-29 18:54:04
|
If I may, > In that sense, I definitely feel that a "theme editor" would be very > welcome. Don't forget that there will be many phpWebSite users that don't > even know HTML. Actually, the guy I am currently setting up phpWebSite for > is one of them. > > Anyway, even if we don't include an editor, going the "templatized themes > definition" direction will probably prove to be much less of a hassle to > manage. Which of the following is better: Could a theme editor be made a "plugin" as well? winzor |
From: Karsten D. <k.d...@fi...> - 2001-03-29 18:39:50
|
On Thu, Mar 29, 2001 at 08:11:52PM +0200, Frits Jensen wrote: > I totally disagree, as having your themes this way would make using good > third-party tools for editing CSS very complex, and the whole structure m= ore > complex from a designers point of view. One directory containing one theme > makes sense for the user, increases ease of use, and is open for the futu= re > expansions. Pardon my tone =3D) You are making a point here. Third-Party CSS editors would get disturbed by placeholders in the CSS tenplate file. Hmmm.... > CSS'ing more versatile. Also there should be a referrer to print and aural > versus monitor in the coding - I would like my pages to print nicely. A > theme should consist of at least both one for monitor, and one for print,= to > be a complete theme. That got my attention: Is there _any_ browser available, that _really_ supports _any_ of the possibilities to format for printing? Last time I looked at that issue, I was all too disappointed! Or are you referring to this with a look in the future? But of course you are right. Maybe we should just do it anyway, and see the browser makers implement it, just to satisfy the gazillion phpWebSite users... :-) > There should be a certain logic to the tagging, so that we do not end up > using 5 trillion individually named tags, one for each plugin, option and > 'little thing i just coded'. Limit is the keyword. Without having thought= it > all the way through, I would say that it would be plenty with 5 areas of > tagging. It could be something like: >=20 > leftbox.h1 =3D... > rightbox.h1 =3D... > article.h1 =3D... > special_big.h1 =3D... > special_small.h1 =3D... > top_bar.h1 =3D... > [...] > and so on... Ok, I got that... Though you probably mean leftbox.h1 {...} > leftbox_menu_padding.left =3D... > leftbox_menu_padding.right =3D... > leftbox_menu_padding.bottom =3D... > leftbox_menu_padding.top =3D... > leftbox_menu_padding.left =3D... >=20 > rightbox_menu_padding.left =3D... > rightbox_menu_padding.right =3D... >=20 > and so on... What are those for? Or do you mean leftbox_menu { padding-left: ... padding-right:... } ?!? > If I make any sense to anyone, I would take on the task of creating a > _complete_ set of such names, so that that part of the project was finito > and done with.=20 Go ahead! Write something up and submit it to the list for discussion. Any help is good help :-) Regards, Karsten --=20 fishfarm - Karsten Dambekalns Echternstr. 73 - 38100 Braunschweig Tel. +49 531 1232902 mailto:k.d...@fi... Fax. +49 531 1232906 http://www.fishfarm.de/ ----------------------------------------------------- |