Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.

  • 21/11/2023 BLACK FRIDAY 23 is coming

    BIG SALE, 35% discount for all our extensions. Use BF23 coupon code. Hurry up the discount is valid till 27 November.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

Send two variables in Request
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: Send two variables in Request
#47858
Send two variables in Request 10 Years, 4 Months ago Karma: 0
How do I send two variables in the REQUEST that gets sent to display the detail page? So let's say I have 2 columns, "First name" and "Last name" and I want a user to be able to click on the first name or last name to get a detail page.

It's returning more than one value right now since there's more than one person with the same first name. I want to be able to send both the first name and last name as variables.
The administrator has disabled public write access.
 
#47874
Re:Send two variables in Request 10 Years, 4 Months ago Karma: 748
If you create a link to a page using "Columns settings -> Format" parameter, value of any column from the same records can be added using the following code:

{$columns:COL_NAME}

Where COL_NAME is a name of column.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#47879
Re:Send two variables in Request 10 Years, 4 Months ago Karma: 0
Sorry, I'm confused: does that {$columns:COL_NAME} go in the SQl statmenet below?

So if I have two columns I want to send, do I comma delineate that?

{$columns: COLUMN1, COLUMN2}
or do I put {$columns: NAME} in each format parameter?
The administrator has disabled public write access.
 
#47881
Re:Send two variables in Request 10 Years, 4 Months ago Karma: 748
We wrote about "Columns settings -> Format" parameter in module settings.

Describe in more details what do you try to implement.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#47907
Re:Send two variables in Request 10 Years, 4 Months ago Karma: 0
(sorry, duplicate post)
Last Edit: 2014/02/14 16:32 By veemix.
The administrator has disabled public write access.
 
#47908
Re:Send two variables in Request 10 Years, 4 Months ago Karma: 0
I understand how to send one variable to a detail page using <a href="index.php?option=com_content&view=article&id=22&firstname={$value}">{$value}</a> in the format column.

The problem is that the link variable being sent has duplicates, so I want to be able to send a second variable as well: such as if one column was first name AND the second column was last name when the detail link is clicked.


so the URL REQUEST ends up being mysite.com/myfriends?id=24&firstname=John&lastname=Smith

thanks
The administrator has disabled public write access.
 
Go to topPage: 12