A
A
aydaravezov2021-08-23 10:04:05
Joomla
aydaravezov, 2021-08-23 10:04:05

Link joomla site to app?

There is a site on joomla. I want to create a mobile application based on this site.
therefore, I chose the apache cordova framework, but cordova does not support php,
I found out that you can link the site using the rest api, exchange data in json format ,
but I didn’t find normal examples of how to implement this, there
is information about how to exchange individual elements and components, but so that the entire site, I can’t find it,
well, in general, help in any way you can, how to implement it,
and by the way, the site-catalog of paid files

Answer the question

In order to leave comments, you need to log in

3 answer(s)
Z
Zettabyte, 2021-08-23
@Zettabyte

there is a site on joomla

I may not know some of the latest news, but the plug may already be here.
I have never heard anything like this about Joomla before.
I do not rule out that to save the concept you will need to change the CMS.
Whatever you want can be done on Drupal and Cockpit CMS. They both support headless operation.
If we talk about Drupal, then here is an example of a food delivery service that interacts with the site through a mobile application on React Native: https://eldumrett.is/

D
Dmitry Rekun, 2021-08-23
@b2z

What version of Joomla? In the four, native REST was brought up.
https://docs.joomla.org/J4.x:Joomla_Core_APIs

S
Sergei Tolkachev, 2021-08-25
@sergeytolkachyov

The Joomla Extensions Directory has solutions for implementing REST. And so. if you can do it yourself - write an ajax or system group plugin and do whatever you want there.
Documentation for creating Joomla 3 ajax plugin
Next:

use Joomla\CMS\Factory;
$app = Factory::getApplication();
$action = $app->input->get('action');
if($action == 'any_action'){
// Делаем что-нибудь
} elseif ($action == 'another_action'){
// Делаем ещё что-то
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question