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


Login with username, password and session length

Search

 
Advanced search

8039 Posts in 1852 Topics- by 2099 Members - Latest Member: roi
Calendar Script CommunityCustomizationCustomizing CalendarScript (Moderators: scott, DanO, Marty)Prevent Unpopulated event fields from being shown
Pages: [1]   Go Down
Print
Author Topic: Prevent Unpopulated event fields from being shown  (Read 283 times)
0 Members and 1 Guest are viewing this topic.
JJones
New Member
*

Karma: 0
Offline Offline

Posts: 0

Information Services


« on: December 20, 2004, 04:58:00 PM »

I attemted to use the instructions for preventing unpopulated event fields from being show but it crashed my calendar. These are the instruction that I found;

You should be able to just not display fields on the 'Event View' page if there's nothing filled out for them, by adding one line in the appropriate place in the default.html template file.
In the section after

<!-- EVENT VIEW -->

Right after the line:

next unless ($db->{'properties'}->{$_}->{'display_details'});

add the line

next unless ( $EVENT->{details}->{$_} );

That way, if you don't fill them out, they won't be shown.

Huh? Does the new line go on the same line as the other as in
next unless ($db->{'properties'}->{$_}->{'display_details'}); next unless ( $EVENT->{details}->{$_} );

or does it go on a seperate line as in

next unless ($db->{'properties'}->{$_}->{'display_details'});

next unless ( $EVENT->{details}->{$_} );

Thanks for all of the help with other issues.


Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 227

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


WWW
« Reply #1 on: December 22, 2004, 01:36:00 PM »

On a separate line.

Dan O.

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

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