CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Update default generated HTML code

Print topic Send  topic

Author Message
xbill
Posted: 04/02/2002, 10:19 AM

Is there an easy way to customize
the generated HTML code when using HTML templates?

The site design that I am working with
needs to have additional options on all the
tables- (border="0" cellspacing="0" cellpadding="0").

These options make the pages look OK on older
browsers even when using CSS style sheets.

Can the default table tags for the generated HTML
templates be modified?

I have been generating them once- and then clicking
the "regenerate html" off in the page properties-
but it would be save time editing each html file
if I could change the generated template once.

Any suggestions would be helpful..

thanks,
-bill
Nicole
Posted: 04/03/2002, 12:08 AM

Bill,
modify style settings under Site Style section or assign style for page or form and modify it on Page Properties or Form Properties.
xbill
Posted: 04/05/2002, 8:55 AM

I checked the overall site style plus
the individual style on the page item.

You can change some aspects - (eg custom
head tag, custom body style) - but
there is no option to set the parameters
for the CC generated HTML template code.

What I need is to be able to override the default
generated HTML code that displays tables to
include some additional tags (cellpadding, border, cellspacing)
so that the generated CC pages look good even in older
browsers.

The workaround for turning off HTML generation does work,
but it is an additional step.

This may be a nice feature to have in the
future- customizable HTML template generation
options.

-bill
Nicole
Posted: 04/06/2002, 1:24 AM

Bill,
probably you have looked at wrong place.
Go to Site->Style section. Select 'HTML' style type. Select 'FormTABLE' item from "item" list and put border, cellspacing and cellpadding attributes there.
To do the same for separate form go to form properties->Style tab, select 'Custom Style' flag and follow the steps described above.
Andrew B
Posted: 04/09/2002, 3:42 PM

Do you mean you need to set the style of the tables that CC generates, the ones that wrap around your tables and hold them in place? There are forms that CC generates ,and those you can apply a style to. There are also tables that CC generates to 'hold' your forms, and those come out with no settings (<table >).

I think you can fix that by setting default styles in a .CSS file and the <link>ing it in the header section.

TABLE { PADDING : 0px 0px 0px 0px; }

Check out topstyle lite (www.bradsoft.com, i think) for an easy and powerful way to make them.

This will only really work in IE5+/NS6/Mozilla/Opera 5+. If you need to support older browsers, then you are out of luck.

You are already editing the HTML, so trying out some CSS styles is really the only way to go about it.

   


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.