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


Login with username, password and session length

Search

 
Advanced search

8022 Posts in 1850 Topics- by 2099 Members - Latest Member: roi
Calendar Script CommunityCustomizationCustomizing CalendarScript (Moderators: scott, DanO, Marty)Adding field to 'Edit Events' screen
Pages: [1]   Go Down
Print
Author Topic: Adding field to 'Edit Events' screen  (Read 195 times)
0 Members and 1 Guest are viewing this topic.
jmiani
New Member
*

Karma: 0
Offline Offline

Posts: 0

Systems Engineer Manager


WWW
« on: March 04, 2005, 02:07:00 PM »

Hello,
I need to add one more column to display a custom field to help in identifying the events to edit/delete.  I know I need to modify the edit_delete_events.html, just need some pointers on how to add this column.  The custom field name is 'resource'.

thx!

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 220

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


WWW
« Reply #1 on: March 04, 2005, 04:20:00 PM »

** just need some pointers **

Add the column heading in the template area where the other column headings are defined:

code:
<TR>
   <TH>Action</TH>
   <% if ($search) { %>
   <TH>ID</TH>
   <TH>Next Occurrence</TH>
   <% } else { %>
   <TH>Start Date - Time</TH>
   <% } %>
   <TH>Event Title</TH>
</TR>


Add the extra column TD before the </TR>
code:
   <TD><FONT SIZE="-1"><%if($recurrence_id| |$recurrence_type){%><FONT COLOR="red">*</FONT><%}%><%= $title %> </FONT></TD>
</TR>


Make sure any other references to that table's column width are updated with the new width value. Eg
code:
<TD COLSPAN="4" ALIGN="center">No Events</TD>

Dan O.

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

Logged
jmiani
New Member
*

Karma: 0
Offline Offline

Posts: 0

Systems Engineer Manager


WWW
« Reply #2 on: March 05, 2005, 04:22:00 PM »

Awesome DanO.  Worked like a charm..  I was a little lost figuring out how to get my custom field variable in there but it worked first try!  thx again..

JM

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

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