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


Login with username, password and session length

Search

 
Advanced search

8043 Posts in 1856 Topics- by 2099 Members - Latest Member: roi
Calendar Script CommunityCustomizationCustomizing CalendarScript (Moderators: scott, DanO, Marty)Displaying a customized message, seperate from the calendar grid.
Pages: [1]   Go Down
Print
Author Topic: Displaying a customized message, seperate from the calendar grid.  (Read 550 times)
0 Members and 1 Guest are viewing this topic.
JSartori21367
New Member
*

Karma: 0
Offline Offline

Posts: 0

Student


WWW
« on: December 04, 2003, 10:55:00 PM »

Is there a way to display a special message, not related to the calendar month (i.e. information needed to be announced, but not an event, like news or instructions).  I could put them in the footer, but I'm sort of looking for a different option.  One main reason is that I can't edit the footer easily, because I'm using the osdayspan template, which doesn't appear to have display options.  Thanks.

============================
Joe Sartori
cal@sheltoncma.org http://www.sheltoncma.org/

Logged

-------------------------
webmaster@sheltoncma.org
Joe Sartori
http://www.sheltoncma.org/
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
« Reply #1 on: December 05, 2003, 01:26:00 PM »

It is possible to include other static files into CalendarScript templates using a simple SSI tag. See the documentation's "Include Files" section. Maybe you can use that method?

Dan O.

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

Logged
JSartori21367
New Member
*

Karma: 0
Offline Offline

Posts: 0

Student


WWW
« Reply #2 on: December 09, 2003, 10:21:00 PM »

I don't know how.  Can you explain?  Thanks

============================
Joe Sartori
cal@sheltoncma.org http://www.sheltoncma.org/

Logged

-------------------------
webmaster@sheltoncma.org
Joe Sartori
http://www.sheltoncma.org/
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
« Reply #3 on: December 10, 2003, 12:22:00 PM »

** Can you explain? **

I linked to the exact page in the documentation where it is explained. If you have a specific question about its use, I'll try to answer it.

Dan O.

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

Logged
JSartori21367
New Member
*

Karma: 0
Offline Offline

Posts: 0

Student


WWW
« Reply #4 on: December 22, 2003, 08:03:00 PM »

That explained how to include an html file.  How do I get an option in the administration panel that allows me to easily edit the information stored in that html file?? Thanks!

============
Joe Sartori
webmaster@sheltoncma.org http://www.sheltoncma.org/  http://www.sheltoncma.org/cgi-bin/calendar/calendar.pl

Logged

-------------------------
webmaster@sheltoncma.org
Joe Sartori
http://www.sheltoncma.org/
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
« Reply #5 on: December 22, 2003, 08:53:00 PM »

** How do I get an option in the administration panel that allows me to easily edit the information **

The only way to do that would be to create a plug-in to store the data. You would then need to modify the template to display it.

** to easily edit the information stored in that html file?? **

It wouldn't do anything with an HTML file. What I was suggesting is you make (and manually edit when necessary) a separate HTML file and have CalendarScript automatically include that file into your calendar display.

Dan O.

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

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
« Reply #6 on: December 23, 2003, 08:00:00 PM »

** I can't edit the footer easily, because I'm using the osdayspan template **

* The only way to do that would be to create a plug-in to store the data. *

... although, you could add the tag responsible for printing out the footer (or header) value entered into the template administration section by duplicating the tag responsible for printing it (namely <%= $_FOOTER %> ) on the default template's default.html template file and adding it to the template you're using.

Dan O.

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

[This message has been edited by DanO (edited December 23, 2003).]

Logged
JSartori21367
New Member
*

Karma: 0
Offline Offline

Posts: 0

Student


WWW
« Reply #7 on: December 24, 2003, 01:45:00 AM »

The OSDaySpan doesn't have any template display preferences, so editing the footer value is not easy.
Logged

-------------------------
webmaster@sheltoncma.org
Joe Sartori
http://www.sheltoncma.org/
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
« Reply #8 on: December 24, 2003, 03:14:00 PM »

** The OSDaySpan doesn't have any template display preferences **

Create a file called preferences.txt and duplicate the appropriate items from the default template's preferences.txt file into it, then upload that file to the template's directory that you are using.

Dan O.

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

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
« Reply #9 on: January 01, 2004, 04:38:00 PM »

Did it solve your problem??

Dan O.

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

Logged
JSartori21367
New Member
*

Karma: 0
Offline Offline

Posts: 0

Student


WWW
« Reply #10 on: January 01, 2004, 05:02:00 PM »

Pretty close.  For some reason, the footer isn't working.  I saves it into the template preferences under osdayspan footer, and the osdayspan template has the 'include footer' code in the default template, but it doesn't show up.

------------------
-------------------------
webmaster@sheltoncma.org
Joe Sartori
http://www.sheltoncma.org/

Logged

-------------------------
webmaster@sheltoncma.org
Joe Sartori
http://www.sheltoncma.org/
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
« Reply #11 on: January 02, 2004, 03:46:00 PM »

** the osdayspan template has the 'include footer' code in the default template, but it doesn't show up. **

Ok, you'll also have to put a copy of the preferences.pl file in that directory and add the line:

<!--#include file="preferences.pl"-->

at the very top of the template file.

Dan O.

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

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
« Reply #12 on: January 04, 2004, 02:09:00 PM »

Did that work?

Dan O.

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

Logged
JSartori21367
New Member
*

Karma: 0
Offline Offline

Posts: 0

Student


WWW
« Reply #13 on: January 04, 2004, 05:58:00 PM »

Yeah.
Logged

-------------------------
webmaster@sheltoncma.org
Joe Sartori
http://www.sheltoncma.org/
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
« Reply #14 on: January 04, 2004, 06:37:00 PM »

Glad to hear it.

Just for your (and other's) information, replying whether a stated solution worked or not often helps others later on should they come to these support forums looking for solutions.

JMO

Have a Happy New Year!

Dan O.


[This message has been edited by DanO (edited January 05, 2004).]

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