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)access to URL parameters in templates?
Pages: [1]   Go Down
Print
Author Topic: access to URL parameters in templates?  (Read 311 times)
0 Members and 1 Guest are viewing this topic.
mraj
New Member
*

Karma: 0
Offline Offline

Posts: 0

Software Engineer


« on: March 19, 2005, 06:05:00 PM »

I'm adding some additional capability to template approve.html and I need to pass it a URL parameter:

calendar_admin.pl?template=approve.html&id=147

In the example above, I want to highlight event id 147.

How do I get access to the parameter in approve.html?
I tried $in{id}, but that doesn't work.

Any help appreciated.

[This message has been edited by mraj (edited March 19, 2005).]

Logged

See some of my modifications to CalendarScript at
http://www.prayforoneanother.org/cgi-bin/cal/calendar.pl
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 227

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


WWW
« Reply #1 on: March 19, 2005, 06:24:00 PM »

** $in{id}, but that doesn't work. **

try:

$main::in{id}

Dan O.


[This message has been edited by DanO (edited March 19, 2005).]

Logged
mraj
New Member
*

Karma: 0
Offline Offline

Posts: 0

Software Engineer


« Reply #2 on: March 19, 2005, 06:29:00 PM »

Thanks Dan!

A few weeks ago when I was looking around the web for a calendar program for my church's web site, one of the reasons I picked CalendarScript was because the support forum seemed pretty active.  You have once again validated my choice.

------------------
See some of my modifications to CalendarScript at
http://www.prayforoneanother.org/cgi-bin/cal/calendar.pl

Logged

See some of my modifications to CalendarScript at
http://www.prayforoneanother.org/cgi-bin/cal/calendar.pl
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 227

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


WWW
« Reply #3 on: March 20, 2005, 03:38:00 PM »

** You have once again validated my choice. **

Glad to hear it but... you never said whether what I posted worked for you.

Others might like to know if they come to the forums searching for a similar answer and happen upon this message.

JFYI

Dan O.

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

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