dirksamson
Posts: 32
|
| Posted: 10/14/2004, 1:01 PM |
|
I include an includable page containing a grid; on each row of this grid I placed several labels (no problem) and a link to nextpage.php?id=rowID (this causes the problem)
Notice: Undefined property: TemplatePath in D:\Users\Dirk\CCS Projecten\ressmit\CodeCharge\Person\inc_person_summary.php
this notice is the result of the following lines of code:
class clsGridinc_person_summaryperson
........
function Show() {
......
$this->person_ID->Page = $this->TemplatePath . "../person/person_detail.php";
.... }
Anyone?
_________________
Dirk |
 |
 |
greg
|
| Posted: 10/14/2004, 8:24 PM |
|
I have the same problem with an includable page... maybe it's a clue.
Anyway I don't see why a picture link would need to refer to template
path more than any other object.
Greg
|
|
|
 |
klwillis
Posts: 428
|
| Posted: 10/15/2004, 1:36 PM |
|
Have you tried setting the link URL to just "nextpage.php"?
If that works, then it has something to do with "id==rowID" parameter.
Quote dirksamson:
I include an includable page containing a grid; on each row of this grid I placed several labels (no problem) and a link to nextpage.php?id=rowID (this causes the problem)
Notice: Undefined property: TemplatePath in D:\Users\Dirk\CCS Projecten\ressmit\CodeCharge\Person\inc_person_summary.php
this notice is the result of the following lines of code:
class clsGridinc_person_summaryperson
........
function Show() {
......
$this->person_ID->Page = $this->TemplatePath . "../person/person_detail.php";
.... }
Anyone?
_________________
Kevin Willis, VP/CIO
HealthCare Information Technology Specialist
http://www.nexushealthcare.com
"Fast - Convenient - Quality-Care"
Medical Software Consulting Services
Email : klwillis@nexushealthcare.com
Skype : klwillis2006 |
 |
 |
dirksamson
Posts: 32
|
| Posted: 10/17/2004, 4:01 AM |
|
Removing
" $this->TemplatePath "
from the line does indeed 'solve' the problem; however, CCS won't update my code anymore, since I changed the code myself..
The workaround I decided to use is to add
var $TemplatePath = "";
at the beginning of the class.
Does anyone agree that this is a ccs-bug ?
_________________
Dirk |
 |
 |
Baelder
|
| Posted: 10/21/2004, 4:12 PM |
|
Did you try to set the "Convert URL To" property of your links to "Absolute" and set a valid "Server URL" in your Publishing Project settings ?
|
|
|
 |
Ronald van den Berg
|
| Posted: 11/17/2004, 2:33 AM |
|
The link has to be set as 'absolute', because the included file can be included from any file in any directory.
Therefore, this is not a bug in CodeCharge.
|
|
|
 |
dirksamson
Posts: 32
|
| Posted: 11/17/2004, 9:13 AM |
|
OK, not a bug. But I wouldn't call it a feature either...
I suppose a feature request is in place here? Do not allow relative links if a page is includable?
Thanks for the help!
_________________
Dirk |
 |
 |