CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> Archive -> GotoCode Archive

 Template

Print topic Send  topic

Author Message
infotba
Posted: 04/29/2002, 7:07 AM

How can I use my own template in cc -asp ?
I want to replace my field information into this template like webcrop's site.
I like webcrop's page.

Regards,
jjtoubia
Posted: 04/29/2002, 8:22 AM

To add your own template (other words, applying CC to your design) is really easy. First off, inside of CC, besure that no style is selected since you will be applying this to your own page and using that style.

Where ever you want the CC data displayed in your own HTML page, copy and paste the segments needed that CC generated. Also note to copy and paste all comments as they are need by the template engine.

Lets say you generated in CC a page called generated using PHP. CC will make to files called generated.php and generated.html. Lets also say that your new designed HTML page (template) that you want to use instead is called mydesign.html.

If I have a form called Details, I am going to copy:

<!--BeginFormDetails-->
And everything in between
<!--EndFormDetails-->

from generated.html and paste that into mydesign.html.

Copy and paste all the forms that you made for that page in CC over to your newly designed page being sure to include the <!--{header}--> and <!--{footer}--> if needed.

After that, you have to options. You can delete the CC generated HTML page (generated.html) and save your newly designed page (mydesign.html) as such. Basically making mydesign.html into generated.html.

OR,

You can modify generated.php and point the $template_filename variable to your page - mydesign.html

Ex:
$template_filename = "mydesign.html";

The cool thing about that is, you can store you template file(s) in a separate folder if you want like this:

$template_filename = "templates/mydesign.html";

Hope that helped! Have fun!
jjtoubia
Posted: 04/29/2002, 8:50 AM

I just now noticed you said ASP...sorry. As far as the HTML is concerned, it is still the same. As far as the code is concerned, the variable would be template_filename and not $template_filename.



   


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

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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