CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> Tips & Solutions

 Eliminating repetitive html edits...

Print topic Send  topic

Author Message
DonB
Posted: 09/02/2004, 1:22 PM

Peter will probably jump in here and give me a virtual wrist-slap for what
I'm about to suggest. You understand that it's at your own risk if you
follow my lead on this.

I finally quit using the "theme" approach to page layouts. Just too much
bother and too many classes to keep up or tweak for color schemes, etc.
Hate them, bad karma, bleahh!

So I routinely create things with no theme, so that all the "class="
attributes are omitted. I rely on a much simpler CSS page that has TABLE,
INPUT, H1..H5, INPUT, SELECT and only a few other HTML tags declared. I can
now also modularize the CSS into layout and (separately) visual attributes
(color, font, etc.)

I quickly migrated to putting <H1> for page headings and <h2> for grids and
records. This meant I did a lot of editing after creating them. Well, I
went into the \components\templates\HTML folder of my CodeCharge
installation and edited gridHTML, EditablegridHTML and RecordHTML.xml.

I like having the "caption" cells of my grid as <TH> instead of <TD> because
they naturally are centered and bolded. So, I edited the xml files (very
carefully!) to make them output the <H2> and <TH>. This saves me lots of
time and so far, has not been a problem. It will be, next time CCS gets
upgraded of course because all my changes will disappear.

I hope that someday Yes will provide a supported way to alter these template
xml files so that I can have any number of control layouts I care to create,
with wizard-generated headings that I choose.

CCS needs to differentiate between "theme" (meaning an overall scheme of
colors, fonts and graphics) and "styles" (meaning the choice of HTML
elements used to construct a page). I find <DIV> and <UL> blocks frequently
are more appropriate and less complex than lots of nested tables. It would
be very empowering if I could define and choose alternative styles.

So, appologies to Peter et. al, but I've hacked my templates and have, so
far, been glad I did. Almost all of my CSS aggravations are resolved and my
websites look better.

DonB

http://www.gotodon.net/ccbth


marcwolf


Posts: 361
Posted: 09/14/2004, 5:09 PM

One of the common difficulties I find is swapping between several clients for whom we have written applications.

Remember each time to change the Theme/Template location so that when we need to quickly generate a new page we don't get the wrong styles for that client can be a nusciance

Take Care

Dave
_________________
' Coding Coding Coding
Keep Those Keyboards Coding.
Raw Code!!!!!!!
View profile  Send private message
Karsten


Posts: 57
Posted: 10/09/2004, 1:55 PM

hi together,

i just tryed to use theme system of CCS as i begun with it, but very fast i recognised its very unusable and wierd, so i use CSS files made by dreamweaver(used as external editor for html) and i can say i am very happy with that solution.

Karsten
_________________
If one gives up, he told himself he failed.
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.