Questions tagged [joomla-4.x]
For questions regarding version 4.x of the Joomla! Content Management System.
18
questions
0
votes
1
answer
619
views
Joomla 4 - how to set namespace for custom field addfieldprefix
I have the editors-xtd\vimeo plugin with this structure
..\plugins\editors-xtd\vimeo\models\fields\(a bunch of custom fields)
..\plugins\editors-xtd\vimeo\forms\form.xml
..\plugins\editors-xtd\vimeo\...
1
vote
1
answer
669
views
Get Framework and template params in Joomla 4
Joomla 4 is coming soon and i need to know how to get the joomla framework and template params in php files outside of joomla.
This is the way in J3:
define( '_JEXEC', 1 );
define( '_VALID_MOS', 1 )...
4
votes
1
answer
557
views
Replacing JSubmenuHelper with JHtmlSidebar / Administrative menu in Joomla 4
I've been racking my brain how to add links to all the views of my component in the shiny new Joomla4 backend; I used to do it via JSubmenuHelper, but that, apparently being deprecated also before, ...
3
votes
1
answer
953
views
How to use HTMLHelper to add to the document head
In this post: How to add CSS/JS/an Image to a module backend @lodder shows me how to use HTMLHelper to add CSS and JavaScript.
Previously I had followed the Joomla! documentation https://docs.joomla....
2
votes
1
answer
597
views
Get the Article ID in J4.0
I am trying Joomla 4.
My biggest problem is to migrate the get article id functionality.
In Joomla 3.x, I used:
defined('_JEXEC') or die;
$id= JRequest::getInt('id');
but this is not longer ...
4
votes
2
answers
220
views
Is Joomla4 API/Web Service ready for production use?
I've read what little I can find about J4 Web Services, but cannot find a working example or get my code to work. The code below should work by all accounts, but I get forbidden on my local machine ...
4
votes
4
answers
3k
views
JFactory::getDbo() deprecated-- what's the replacement?
I'm running Joomla 3.9.5 and I'm attempting to update my JFactory::getDbo() calls (which are deprecated) to the newer format using the container. However, I'm getting the following error: Call to ...
3
votes
1
answer
588
views
Joomla4 plugin getBody
In Joomla 3.x versions I use JResponse to get and set the body.
function onAfterRender() {
$content = JResponse::getBody();
...
}
But in Joomla4 it returns Class 'JResponse' ...
2
votes
1
answer
525
views
Class not found in Joomla 4 when using JDate inside a function
In my last question I tried to modify mod_latest_articles module, and added myCustomFunction to ArticlesLatestHelper.php like this :
/**
* @package Joomla.Site
* @subpackage ...
2
votes
1
answer
291
views
Fatal Error: Class 'ArticlesLatestHelper' not found in Joomla 4 module while trying to add new function
I'm testing and playing with Joomla 4 alpha.
What I tried to do is to quick-edit / modify the module Latest Article (mod_articles_latest), adding a new function.
In joomla 3.x I usually adding a new ...
1
vote
1
answer
514
views
Joomla4: Load a custom stylesheet (admin.css.php) in administration
I want my custom modules & custom template to fetch the parameter values (colors) from my custom template's backend. This way I can see what colors I'm picking when when I'm configuring my website....
1
vote
1
answer
67
views
Change the default articles list ordering overriding the model
I need to change the default ordering of the articles list in the administrator Articles page. To do this I probably would have to edit the populateState() method in administrator/components/...
1
vote
1
answer
52
views
Is it possible to remove the "new article" button from all sections in a Joomla website?
A mate and I are doing an internship at university, and the project we are working on is a small Joomla 4.1 website. Our supervisors asked us to override the mechanics of content insertion so that an ...
1
vote
1
answer
137
views
How to set a root article as subpath url for children articles
How to set a root article as sub-path URL for children articles?
Meaning, I have a root page named article0, and article{1-100} under this root article.
I want to display the article0 under the URL ...
1
vote
1
answer
42
views
What is the best way to have pages displaying articles from our custom content table in Joomla 4.1?
Related: Is it possible to make it so that authors can edit their own published articles creating a new unpublished version of them?
The answer to that question is "In Joomla 4 it is, but authors ...
0
votes
1
answer
19
views
URL on three-image CSS carousel not changing with images and text
I have created a rotating carousel using a Joomla 4 blog alternative menu item. The blog shows the three latest articles as 'intro items' on a rotation of 24 seconds in total, i.e. 8 seconds each. The ...
0
votes
0
answers
139
views
Access namespaced custom field method from a plugin into another plugin
In one of my previous questions, I learned how to properly set up a namespaced custom form field, but it turns out that it's only available within its plugin scope for some reason.
I need the field ...
0
votes
1
answer
42
views
Is it possible to make it so that authors can edit their own published articles creating a new unpublished version of them?
Related: Is it possible to remove the "new article" button from all sections in a Joomla website?
Worflows in Joomla 4 are great, but there is a feature I'm not sure they have: letting ...