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


Login with username, password and session length

Search

 
Advanced search

8001 Posts in 1848 Topics- by 2099 Members - Latest Member: roi
Pages: [1]   Go Down
Print
Author Topic: Embedding EVENT FEILD(xyz)  (Read 217 times)
0 Members and 1 Guest are viewing this topic.
Alvy
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« on: July 20, 2003, 05:42:00 PM »

Give a monkey a keyboard and enough time and he'll write code.... somehow I fixed it.
i will leave it here so other may need it as I did....

I needed to pass data from one field into a link if there was data, if not, just use an image.
                  <% my $string; %>
<% if (!$EVENT->{details}->{ticketwebid} ){ %>
<% $string = "<img src=\"notix.gif\">"; %>
<% } else { %>
<% $string = "<a href=\"http://www.someticketsite.com/user/?region=nc&query=detail&event=$EVENT->{details}->{ticketwebid}&interface=blaablaa\"><img src=\"yesticket.gif\"></a>"; %>
<% } %>
<% print $string; %>
                        

Basically I have a custom feild call ticketwebid.
If there is no entry for it, display the notix.gif.
If there is a entry, paste it in the string for the link and use the yesticket.gif.
This will be used in the Month view and the Event View.

[This message has been edited by Alvy (edited July 20, 2003).]

[This message has been edited by Alvy (edited July 20, 2003).]

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