the get command works for articlelist and articles
the patch command works with changed articles
its possible to get articles over API, but embedded moduls via "loadmoduleid" are not sent. maybe the brackets {} are filtered and left as "". the html code does not contain the embedded command "loadmoduleid" and the modul-id s.
The base issue is most likely the fact that the getModuleList() method of the ModuleHelper, that is indirectly by the LoadModule plugin to fetch available modules, is using the client_id of the webservices app and not of client_id of the frontend app; as a result, the module IDs don't resolve to the correct module, and the placeholder tag is replaced with an empty string.
5.4
i want to get my complete article via API inclusiv Moduls (embedded via loadmoduleid), pictures, links etc.
i can get the article with pictures, links and text, without the embedde moduls
No response
No response
| Labels |
Added:
No Code Attached Yet
bug
|
||
| Title |
|
||||||
did you use special command or syntax with the get command?
no nothing special just
GET https://brian.teeman.net/api/index.php/v1/content/articles/1031
i add some screencopies of the paste command in postman, with 5.4.8 i did not get "loadmoduleid" back. API works only with su.
summary of the facts "api communication in my site"
get command works
post command works
patch command works
get/patch don“t send the string "{loadmoduleid}" from joomla to me, but everything else
post/patch create a string {loadmoduleid} in the joomla article which is visible in the editor
if i change the brackets from { to [ the transmission of [loadmoduleid] works
it may be different for some sites
perhaps there is a plugin that filters the HTML data, or I need a plugin that doesn't filter
or there is a bug
best regards Frank
if i deactivate the plugin "content - load module", the get command send the string "{loadmoduleid}" within the html code
but the modules won't be loaded for the frontend, of course
that makes no sense
i don't know why it is necessary to filter anything from html out.
regards Frank
last comment: the API should also be available to editors, not just superusers.
regards Frank
last comment: the API should also be available to editors, not just superusers.
it is. See https://magazine.joomla.org/issues/2023/march-2023/playing-with-the-joomla-api-part-1
I just tested and I have no problem retrieving an article that contains
{loadmoduleid 180}and posting an article that contains{loadmoduleid 181}- or were you expecting that the retrieved article would contain whatever is generated by{loadmoduleid 180}? If so then thats not possible - only the{loadmoduleid 180}is in the post