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)Break apart event title and description
Pages: [1]   Go Down
Print
Author Topic: Break apart event title and description  (Read 482 times)
0 Members and 1 Guest are viewing this topic.
RichTexan
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« on: August 14, 2002, 11:29:00 AM »

Pardon my lameness, but the solution eludes me.

Is there a way to break apart the event title and event description in the details view? Right now it seems that they're joined at the hip. If I want to format the display of one, they BOTH get formatted (i.e., event title bold and event description normal).

The line of code in question is:

    <%=$EVENT->{details}->{$_}%>

..it seems that the "details" are BOTH event title and description. How do I call them separatley in order to treat them independently of each other?

Thanks for taking the time to read this post.

Brian

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: August 14, 2002, 01:05:00 PM »

In the 'event details' page, the fields are printed using a loop, looping through all fields one after another. You would have to put a conditional inside the loop to look for a particular field, then make it print the changes you want.

In the section of the default.html template file after <!-- EVENT VIEW --> look for:
<TD ALIGN="left" VALIGN="top"><SPAN CLASS="text"><%=$EVENT->{details}->{$_}%>
that prints the details of the record.

An example to make just the title bold, you can change that code to something like:

<TD ALIGN="left" VALIGN="top"><SPAN CLASS="text">
<% if ( $_ eq "title") { %>
<B><%=$EVENT->{details}->{$_}%></B>
<% } else { %>
<%=$EVENT->{details}->{$_}%>
<% } %>

Dan O.


[This message has been edited by DanO (edited April 25, 2004).]

Logged
RichTexan
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #2 on: August 15, 2002, 01:26:00 PM »

Hey, thanks Dan...that seemed to be just what the doctor ordered! I appreciate the tip.

Brian

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

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