GeorgeS
Posts: 206
|
| Posted: 10/07/2005, 2:13 PM |
|
Sorry for this stupid question but I can't figure out how to set my project properties so the Common file will be generated with:
define("TemplatePath", "./");
instead of
define("TemplatePath", RelativePath);
An older PHP edition of CCS in the office does it correctly but the newly re-installed one (full edition) does not.
Thank you
_________________
GeorgeS |
 |
 |
DonB
|
| Posted: 10/09/2005, 2:57 PM |
|
I'm curious what you find this changes in your app? Do you have problems
with Included pages? Are your Links pointing to the wrong path? (Link in
Include pages, that is)
I ask because I just had an application (from version 2.3.2.24) fall apart
when I republished under 2.3.2.28, yet all the while I was making minor
changes to a couple pages and everything was fine (I forgot to do a complete
publish after installing .28 and making my first minor changes). Then, on
the day I did publish the entire project, almost every Link was screwed up.
I found the TemplatePath was the source of my problem, too. But only in
Include pages. Oh, and I organize stuff in multiple sub folders, by the
way, so RelativePath behavior is critical to me.
I just re-did the Links and that was that. There really isn't an
alternative other than editing your Common.php, and that's not a solution
because going forward you'll always have to 'fix' it in future versions.
--
DonB
http://www.gotodon.com/ccbth
"GeorgeS" <GeorgeS@forum.codecharge> wrote in message
news:54346e4f933584@news.codecharge.com...
> Sorry for this stupid question but I can't figure out how to set my
project
> properties so the Common file will be generated with:
> define("TemplatePath", "./");
> instead of
> define("TemplatePath", RelativePath);
>
> An older PHP edition of CCS in the office does it correctly but the newly
> re-installed one (full edition) does not.
>
> Thank you
>
> _________________
> GeorgeS
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
GeorgeS
Posts: 206
|
| Posted: 10/10/2005, 9:25 AM |
|
Don,
as you I'm using 2.3.2.24 (PHP) at work and it has define("TemplatePath", "./");
At home I Just re-installed the latest version 2.X.XX.. and re-generated the project.
On localhost it works fine but on the web server it does not display anything on any PHP page (HTML source veiw: <HTML><BODY></BODY></HTML>).
If I change define("TemplatePath", RelativePath); to define("TemplatePath", "./"); then it works OK.
No problems with Includes or links.
Do you know by any chance where this TemplatePath is set - tools / options / paths or somewhere else?
_________________
GeorgeS |
 |
 |
DonB
|
| Posted: 10/10/2005, 12:51 PM |
|
It's not set anywhere, it's a pre-determined thing that appears only in
Common.php. I don't know why the change in .28 vs .24, but it was changed
nonetheless.
Your only option is to edit Common.php I guess. But I'd run it past http://support.codecharge.com and ask their guidance.
The whole URL path vs. Include page thing has been a bit of a problem all
along for me, once I began breaking things up into folders. and using
Includes a lot. CCS can't seem to generate the correct relative path under
some circumstances. It's happiest when the Includes are always on the same
or lower folder as for the page including it.
Once, the support folks did give me a modified bit of template stuff to
replace their standard files but it solved one problem and created another,
so I've just managed the links myself - often by inserting BeforeShow event
code to fix them up the way I wanted them.
--
DonB
http://www.gotodon.com/ccbth
"GeorgeS" <GeorgeS@forum.codecharge> wrote in message
news:5434a961668602@news.codecharge.com...
> Don,
> as you I'm using 2.3.2.24 (PHP) at work and it has define("TemplatePath",
> "./");
> At home I Just re-installed the latest version 2.X.XX.. and re-generated
the
> project.
>
> On localhost it works fine but on the web server it does not display
anything
> on any PHP page (HTML source veiw: <HTML><BODY></BODY></HTML>).
> If I change define("TemplatePath", RelativePath); to
define("TemplatePath",
> "./"); then it works OK.
>
> No problems with Includes or links.
>
> Do you know by any chance where this TemplatePath is set - tools / options
/
> paths or somewhere else?
>
> _________________
> GeorgeS
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
GeorgeS
Posts: 206
|
| Posted: 10/10/2005, 1:48 PM |
|
Thanks Don,
it would be great to get at least some info from Yes regarding this TemplatePath/ RelativePath thing.
But I'll be stuck with v 2 for some time due to several reasons... at least with unfinished projects.
_________________
GeorgeS |
 |
 |
|