Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

8001 Posts in 1848 Topics- by 2099 Members - Latest Member: roi
Pages: [1]   Go Down
Print
Author Topic: Base Directory or html file used  (Read 205 times)
0 Members and 1 Guest are viewing this topic.
DickDastardly
Guest
« on: June 09, 2005, 11:39:00 AM »

I'm under the impression that the default html file to view my calendar is:
/cgi-bin/calendar/calendarscript/templates/calendar/default/default.html

I'm trying to embed the calendar into a web page that is located at:
index.htm (this is the file at the home folder just before the cgi-bin folder).

I'm having trouble setting up the .pl files to point to this folder and file.  Assuming that the default call is - $template_dir = $BASE_DIR . "templates/calendars/" - I tried something like - $template_dir = $BASE_DIR . "../../../" - But I couldn't get that to work either.

Please help.  How do I assign my own folder location and html file name, other than using "default?"

It would be great if this was somehow set up in the Admin section.  For the Admin to choose which html file the code resides.  Or even better, to automatically cut and paste the code into the html file of choice from the Admin area.

Thanks,
Dick

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 212

Please don't PM me. Post in the open forum.


WWW
« Reply #1 on: June 09, 2005, 12:41:00 PM »

** I'm under the impression that the default html file to view my calendar is:
/cgi-bin/calendar/calendarscript/templates/calendar/default/default.html **

That doesn't look like an absolute path on a web server.

** I'm trying to embed the calendar into a web page that is located at: index.htm **

The calendar will not work properly imbedded into a web page. It has to operate on its own but could be displayed in a frame or iframe tag.

It is possible to imbed the ssi.html's template's output into a web page though.

** I'm having trouble setting up the .pl files to point to this folder and file. **

The calendar.pl file knows where its templates are stored. When imbedding CalendarScript into another page, just the calendar.pl file is called (but see above).

You can find links to several discussions of using CalendarScript with SSI in the 'Links' section of the Unofficial CalendarScript - Mods and Plugins site.

Dan O.

------------------

Logged
Pages: [1]   Go Up
Print
Jump to: