maxhugen
Posts: 272
|
| Posted: 08/28/2008, 6:37 PM |
|
Following discussions on dynamically including php-only pages at http://forums.codecharge.com/posts.php?post_id=97665, I'm wondering if anyone has any ideas on dynamically including a CCS Include Page?
I'm using "PHP with Templates" to keep html layout separated from php code.
Any thoughts?
_________________
Max
www.gardenloco.com | www.eipdna.com | www.chrisarminson.com |
 |
 |
mentecky
Posts: 321
|
| Posted: 08/28/2008, 7:15 PM |
|
Hey Max,
Most times you can use CodeCharge's "Include Page" component for CCS include pages. The problem with other includes is when they output HTML using echo or print. That's when you have to resort to the "ob_start()" method. In cases where the script sends output it messes up the CCS template strategy, so we catch it using the method described in that thread and set a label's value to the output so it shows up on the page in the right place.
Rick
_________________
http://www.ccselite.com |
 |
 |
wkempees
Posts: 1679
|
| Posted: 08/29/2008, 1:37 AM |
|
Rick, this topic is meant to discover 'the other way around', as the other topic covers including straight PhP code.
The objective is to find and describe a way to 'dynamically' include CCS include pages.
Walter
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)
if you liked this info PAYPAL me: http://donate.consultair.eu
|
 |
 |
datadoit
|
| Posted: 08/29/2008, 6:34 AM |
|
Are you asking for this?
Page BeforeShow:
global $include1, $include2;
if (this that and the other) {
$include1->Visible = false;
$include2->Visible = true;
}
else {
$include1->Visible = true;
$include2->Visible = false;
}
|
|
|
 |
maxhugen
Posts: 272
|
| Posted: 08/30/2008, 6:36 PM |
|
@datadoit, no, not really... I already use panels if I want to conditionally hide or show sections.
I was thinking along the lines of being able to change the actual include page, or add in extra Include pages, as required.
Maybe this is not possible/practical in the CCS IDE environment... just thought someone might have found a neat way to do it.
_________________
Max
www.gardenloco.com | www.eipdna.com | www.chrisarminson.com |
 |
 |
|