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 -> PHP

 Writing page content using PHP (RESOLVED)

Print topic Send  topic

Author Message
amc

Posts: 22
Posted: 11/13/2012, 4:18 PM

Hi,

I have a page with a design. It has two blocks, one "Header" and one "Content".

The Content block only has an include to another page. I want to write this page from scratch, coding it using PHP. Where have I to write this code? All output is shown outside the Content block, at the begining of the page, before any HTML tag...

Thank you very much...
View profile  Send private message
bannedone


Posts: 273
Posted: 11/14/2012, 6:46 AM

Hi

In your include page, create a label.

Then put the PHP generated content into that label in the OnBeforeShow event Custom Code.

Does that make sense and help??


_________________
John Real
CodeCharge Studio Support, Training, Consulting, Development, Web based solutions
http://realsites.biz
http://ccselite.com
Other Banned IDs on this Forum. jjrjr1, jjrjr2
View profile  Send private message
amc

Posts: 22
Posted: 11/14/2012, 6:53 AM

Quote :
Does that make sense and help??

I'll try it... I hope that a full page fits in a label...

Thanks
View profile  Send private message
Rick

Posts: 52
Posted: 11/14/2012, 6:39 PM

If I understand your question, you could use a template variable.

Search help for "template variable", Tpl Variable (PHP)

I created a homegrown, database driven, content management system that allowed me to use a flexible page design based on database design variables that along with page variable content, managed by the user, stuffs all page design and content dynamically into a template variable. Each site has 4 different page designs (one, two, three, or four columns). The user choses one of the 4 designs for each page they create and they put in their text and image content into the areas that match the design they chose for the page. If a user is a power, user can also override the design to start with the basic design but change one or more design elements for that particular page only. Or, I can create a page with design alterations of the 4 column designs and let the user put in the content - for ex. different column widths, font characteristics, background colors, etc.

With this content management system I can create new sites quickly, modifying the design of the new site based on a form with all the design features - site width, column widths, design colors, font type, size and color, and many more.

Flexibility also applies to existing sites if you want to change the font size, etc. of the site.

Anyway, it works very well and this shows a single template variable can contain a lot of html.
View profile  Send private message
bannedone


Posts: 273
Posted: 11/14/2012, 6:59 PM

Hi

BTW a Label in actuality is a Template variable. (All controls are really template variables as CCS employs the MVC framework) A label just has several advantages over a plain Template variable, such as event processing etc.

However, just a plain Template variable ($Tpl Type) will also work as well.

But I think Template variables have problems working in include pages.. I cannot remember. They certainly do require special coding if used in Artisteer include pages.

A label will, however, work in all cases..

8-)

_________________
John Real
CodeCharge Studio Support, Training, Consulting, Development, Web based solutions
http://realsites.biz
http://ccselite.com
Other Banned IDs on this Forum. jjrjr1, jjrjr2
View profile  Send private message
amc

Posts: 22
Posted: 11/15/2012, 3:28 AM

The Label solution works great ...

Thank you very much for both aproaches...
View profile  Send private message
DataDoIT
Posted: 11/15/2012, 5:20 AM

The entire page presented by CCS is a variable... $main_block is it? :)

What Rick just described is the way of the world now. Web.com, Weebly,
etc. If you're not providing this level of service for your customers,
you may get left in the dust.

CCS and Artisteer give the ability to allow your customers advanced, yet
simple site design control. Program your CMS to allow your customers to
manage changing Artisteer-created themes on the fly, same as WordPress,
Drupal, etc. This is how our www.codechargecms.com works.
bannedone


Posts: 273
Posted: 11/15/2012, 5:44 AM

Yup

The entire CCS page is in fact a variable $main_block LOL

Here is a demo of our CMS that actually shows user set Artisteer design changes on the fly. All designs ar settable in the CMS by an Admin.

http://realsites.biz/ccsCMS5.php

You could allow users the ability to "Skin" their own design when they login.

Our CMS also supports SEO Friendly URLs and also allows the creation of pages using CCS for application creation, also managed within this CMS.

Most of my clients are not programmers so they would never code design elements into their content. They are more likely to want point and click design change for their application on the web.

Every one is different...

Have Fun
8-)

_________________
John Real
CodeCharge Studio Support, Training, Consulting, Development, Web based solutions
http://realsites.biz
http://ccselite.com
Other Banned IDs on this Forum. jjrjr1, jjrjr2
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.

Web Database

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.