CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> General/Other

 CCS5 - Designs - strange behavior

Print topic Send  topic

Author Message
solesz

Posts: 137
Posted: 04/02/2012, 6:54 AM

Hi,

I created an application and attached to the project 2 different design. I thought, I will apply the Design1 to the index page, and Design2 to all other page.

When I apply design to a specific page, using the ribbon menu, it will cause all other page will take that design too...
I am not successful to apply different designs to ccs pages during application building. Maybe it is not intended to be in this way... and the only way to change the design by session variable...

Any experience, or opinion hihgly appreciated!

solesz
View profile  Send private message
icp4all

Posts: 37
Posted: 04/02/2012, 7:08 AM

As the Mastertemplate is includet in the main code

//Master Page implementation @1-F687B864
include_once(RelativePath . "/Designs/air21/MasterPage.php");
//End Master Page implementation

you could try to change this mannually in the before intialize event...
or via parameter..... just an additional fild in your menu table and then add the parameter...
this are the ways i whould try

hans
View profile  Send private message
solesz

Posts: 137
Posted: 04/02/2012, 7:34 AM

Hi,

I think you miss the point.
The Masterpage (not template) not included in the main code.
The different designs are published into separate directories, and MasterPages accordingly resides in their own directory.

The problem - as far as I know - the masterpage (ccspathtomasterpage or similar) ccs variable, which is seems to be getting its value from common files, design variables.

Anyway. I keep trying. If you have additional idea share it.

solesz
View profile  Send private message
mor

Posts: 119
Posted: 04/02/2012, 8:22 AM

After "apply design" in page properties by default will used dynamic path to master page:
{CCS_PathToMasterPage}/MasterPage.ccp
Variable {CCS_PathToMasterPage} depends on default selected design (from menu in ribbon).
If you want to use specific design for current page - try relative path (select page with button [..] ), like:
Designs/my_design/MasterPage.ccp

_________________
Mor ve Ötesi
View profile  Send private message
solesz

Posts: 137
Posted: 04/02/2012, 8:36 AM

mor: yes, that's I saw only possible way now too. But, I was just wondering if the relevant php code why can not handle this situation. Why it is so strict that you can use only one desing automated mode.

Because on page properties tab there is a masterpage selection, where you specificate the very design, exactly from its directory. Then why is it changed to this ccspathtomasterpage variable... I can not imagine at all...

So I see this is more a flaw than an intention.
Even I give it a try to mention it to the support as a possible bug.

solesz
View profile  Send private message
solesz

Posts: 137
Posted: 04/02/2012, 8:45 AM

So I found:
On the page's properties tab you can freely change the masterpage reference, then it will change the ccspathtomasterpage variable into an absolute reference.

But, the generated page conains, the design which was lastly choosen to any page from the ribbon design button...

So my feeling is getting stronger: it's a bug.

solesz
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.