How to generate a link to a specific camping

More
6 years 4 months ago #107481 by ayman
I want to generate a link to each campaign, so I can add it to any external button e.g if I wanna lead the user to donate to the camping x which has the id: 8 then the link, for example, is www.mydomainname.com/jdonation/?view=donation&Itemid=8

What the general formula for such a link.


Thank you

Please Log in or Create an account to join the conversation.

More
6 years 4 months ago #107482 by Mr. Dam
Replied by Mr. Dam on topic How to generate a link to a specific camping
Hi Ayman,
ItemID is ID number of Joomla Menu Item, you can setup menu to layout: Joom Donation - Donation, then, the ItemID will be the ID number of that Menu Item
Thanks
Dam

Please Log in or Create an account to join the conversation.

More
6 years 4 months ago #107497 by ayman
I didn't mean the item ID. What I'm trying to do is to lead the customer to the donation form with a pre-selected camping when he/she click on that link.
One way to to do that is to create Donation Campaign Module then the Donate button on that module will lead the donor to the specified camping donation form.

But What if I wanna create a button or link on the Joomla outside that module let's say link similar to

www.mydomainname.com/jdonation/?view=donation&campingID=8&XXXX

once the donor click it it will lead him to the donation form with a pre-selected camping what should the link looks like

Thank you

Please Log in or Create an account to join the conversation.

More
6 years 4 months ago #107504 by Mr. Dam
Replied by Mr. Dam on topic How to generate a link to a specific camping
Hi,
In that case, you just need to put the link in this format
http://yourdomain/index.php?option=com_jdonation&view=donation&id=Campaign_ID
You can add &Itemid=ID of menu that you want to show Donation form
Thanks
Dam

Please Log in or Create an account to join the conversation.

Moderators: Mr. DamDũng Nguyễn Việt