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: User name in each entry  (Read 396 times)
0 Members and 1 Guest are viewing this topic.
neil40
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« on: April 06, 2006, 05:42:00 PM »

Is it possible to show who entered each calndar item in the item?

The thinking behind this. We'd like to have a shared calendar on our website that is private to staff.
We have an administrator and field engineers, and it would be useful that when the Engineer fills in his appointments, the administrator can see where each Engineer is.
At the moment they'd just see a couple of entries for 10:00 AM with some descriptions and not know who made the entry.
I will investigate the Colour coding Mod as that would help too I guess if 'Fred' had blue entries and 'Bob' had green

Thanks

Logged
musicvid
New Member
*

Karma: 1
Offline Offline

Posts: 8


WWW
« Reply #1 on: April 06, 2006, 09:23:00 PM »

This is pretty simple, just look in the "Documentation" section of this website:  
quote:
<%= EVENT FIELD(name) %>     Outputs the value of the 'name' field in the event currently defined in the $EVENT variable. For example, 'title', or any other field defined in the Customize Event Fields screen.
In other words, insert this code wherever you wish between the <% FOREACH EVENT %> tags in your default template:
<%= EVENT FIELD(author_name) %>
-- or --
<%= EVENT FIELD(author_id) %>

whichever one you prefer, and that should do it. I taught myself a lot about customizing my installation from those Documentation pages. Just save a backup of your original files in case gremlins sneak in.  

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

[This message has been edited by musicvid (edited April 06, 2006).]

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
« Reply #2 on: April 06, 2006, 09:26:00 PM »

** Is it possible to show who entered each calndar item in the item? **

For just on the Event Details display, use the Customize Event Fields administration choice and set the Display in details: option to "Yes" for the appropriate field.

For other calendar displays, see musicvid's suggestion.

Dan O.

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

Logged
musicvid
New Member
*

Karma: 1
Offline Offline

Posts: 8


WWW
« Reply #3 on: April 06, 2006, 09:41:00 PM »

 
quote:
For just on the Event Details display, use the Customize Event Fields administration choice and set the Display in details: option to "Yes" for the appropriate field.
Woops, I overthought it again, DanO.
Thanks for your quick reply.

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

Logged
neil40
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #4 on: April 07, 2006, 05:49:00 AM »

Thanks guys

Just to clarify, do I amend the lines that are like this:
<A HREF="<%=$CGI_URL_QUERYSTRING%>view=Event&event_id=<%= EVENT FIELD(id) %>" CLASS="gridtext"><%= EVENT FIELD(title) %></A><BR>

...or something else?

Neil

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

[This message has been edited by neil40 (edited April 07, 2006).]

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: April 07, 2006, 12:12:00 PM »

** do I amend the lines like...  **

If that's where you want the information printed. The <%= EVENT FIELD(title) %> tag prints the event title.

Dan O.

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

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