barbara
05-19-2011, 12:38 PM
Hi,
I am trying to configure the demo version before going ahead to buy the software. It's all looking pretty good except for a navigation glitch that I can't fix.
I am integrating the calendar into Wordpress so I have a wordpress page "villagecalendar" that has php code embedded.
require ("/home/lochwinn/public_html/mysite/calendar/calendar.php");
$LIST=1; $listDays = 9; $DF = "D - M d"; $template="monthly.php"; require ("/home/mydomain/public_html/mysite/calendar/calendar.php");
I had to use the absolute path to get the calendar and the events list to display but they are displaying fine now. Problem is the navigation buttons. They link to a level up
http://www.mydomain.net/mysite/index.php?mo=6&yr=2011
instead of
http://www.mydomain.net/mysite/calendar/index?mo=6&yr=2011.
At the moment my document root is "/home/mydomain/public_html but I will change that to /home/mydomain/public_html/mysite when I go live and switch over the domain.
$serverPath="/home/mydomain/public_html/mysite/calendar/"
$urlPath="/mysite/calendar/"
Can someone point out the error of my ways? Is there a way to use relative paths instead of absolute? Is that the problem?
Thanks
I am trying to configure the demo version before going ahead to buy the software. It's all looking pretty good except for a navigation glitch that I can't fix.
I am integrating the calendar into Wordpress so I have a wordpress page "villagecalendar" that has php code embedded.
require ("/home/lochwinn/public_html/mysite/calendar/calendar.php");
$LIST=1; $listDays = 9; $DF = "D - M d"; $template="monthly.php"; require ("/home/mydomain/public_html/mysite/calendar/calendar.php");
I had to use the absolute path to get the calendar and the events list to display but they are displaying fine now. Problem is the navigation buttons. They link to a level up
http://www.mydomain.net/mysite/index.php?mo=6&yr=2011
instead of
http://www.mydomain.net/mysite/calendar/index?mo=6&yr=2011.
At the moment my document root is "/home/mydomain/public_html but I will change that to /home/mydomain/public_html/mysite when I go live and switch over the domain.
$serverPath="/home/mydomain/public_html/mysite/calendar/"
$urlPath="/mysite/calendar/"
Can someone point out the error of my ways? Is there a way to use relative paths instead of absolute? Is that the problem?
Thanks