0

I just came through a scenario regarding joomla website.

The scenario is:

Data in URL is passed to Joomla website and from the URL Joomla must store the data into the database.

Is this possible in Joomla?

4
  • provide a sample of url in your question for better understanding
    – Liz.
    Jan 17, 2017 at 9:33
  • 1
    Of course it is, but it will require some custom code. What have you tried so far?
    – Lodder
    Jan 17, 2017 at 11:27
  • the redirect plugin already does that... depending on your requirements it could do Jan 18, 2017 at 7:54
  • Please progress this old question toward a resolution. This question risks being Too Broad, but if you narrow it down and add some context as well as what you tried, then those that wish to volunteer their support can write something direct and clear. Sep 10, 2018 at 10:32

2 Answers 2

2

You can get the value of a URL parameter with:

$value = JFactory::getApplication()->input->get('parameter');

Then you can use JDatabaseQuery to insert data into the database.

1

You will need to develop a system plugin for that. The system plugin will grab the URL, parses the data that you need, and then store it in a table of your choice.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.