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
Pages: [1]   Go Down
Print
Author Topic: Navigation Element  (Read 325 times)
0 Members and 1 Guest are viewing this topic.
Dennis
New Member
*

Karma: 0
Offline Offline

Posts: 0

Teacher


WWW
« on: March 15, 2004, 03:17:00 PM »

I am wondering if anyone knows how to turn off the navigation element so that only days of a month show up when the calendar is displayed. I want to be able to show only days and events for any month. I don't want anyone except designated users to be able to navigate, or otherwise interact with the calendar when it is being displayed on a public page.
Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
« Reply #1 on: March 15, 2004, 06:52:00 PM »

** how to turn off the navigation element **

Edit the default.html template file and remove or comment out (a better choice) any HTML code you don't want displayed.

** I don't want anyone except designated users to be able to navigate **

Than you'd have to design some sort of conditional in Perl to hide the afore mentioned code when necessary rather than removing or commenting it out.

Dan O.

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

Logged
Dennis
New Member
*

Karma: 0
Offline Offline

Posts: 0

Teacher


WWW
« Reply #2 on: March 16, 2004, 07:13:00 PM »

The element that I want to disable is the upper navigation bar that shows months and past and next year. That is all I want to accomplish. Can you be specific about lines I should comment out? Thanks.

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

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
« Reply #3 on: March 17, 2004, 01:20:00 PM »

** The element that I want to disable is the upper navigation bar that shows months and past and next year. Can you be specific about lines I should comment out?

If you just want to remove the month view navigation, in the line preceding <%-- MONTH NAVIGATION --%> change:

<% if ($VIEW eq "Month") { %>

to

<% if (0) { %>

(that's the number zero BTW, not the letter "O" or "o").

If you want to remove any of the other  top navigation, do the same to their leading conditional <% } elsif (... tags.

Dan O.


[This message has been edited by DanO (edited March 17, 2004).]

Logged
Dennis
New Member
*

Karma: 0
Offline Offline

Posts: 0

Teacher


WWW
« Reply #4 on: March 17, 2004, 01:49:00 PM »

Dan - Would the file you are talking about editing be "default.html" in the following path: calerdarscript>templates>calendars>default>default.html? And, by comment out, do you mean something like this: "# <%-- #/SEARCH NAVIGATION --%>"
-Dennis

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

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
« Reply #5 on: March 17, 2004, 08:53:00 PM »

** you are talking about editing be "default.html" in the following path: calerdarscript/templates/calendars/default/default.html? **

Yes.

** And, by comment out, do you mean something like this: "# **

It depends on what code you want to comment out. If it is Perl code like inside <% ... %> tags than yes a # sign can be used to negate processing of the code on the rest of that line. You can not however, comment out the <% ... %> tags themselves.

If you're commenting out HTML code, HTML comment tags ( <!-- ... --> ) would have to be used around what you didn't want displayed in the browser. That HTML code would still be visible in the page's source code just not displayed by the browser.

However, I found a simpler way to stop the printing on the code you don't want shown and that is by just adding the 0 like I showed above:

change:

<% if ($VIEW eq "Month") { %>

to

<% if (0) { %>

Dan O.

[This message has been edited by DanO (edited March 18, 2004).]

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