Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [articles]

This tag is for questions related to Joomla articles and the com_content component.

Filter by
Sorted by
Tagged with
1 vote
1 answer
27 views

How can I block articles referenced by article id?

I have discovered that someone is systematically searching my Joomla 3.10.9 site using article id, e.g. https://domain_name/10 This obviously only works for articles with Public access, but means that ...
user avatar
0 votes
1 answer
37 views

Joomla 4: Error when I use getArticleRoute

In Joomla 4, when I use "RouteHelper::getArticleRoute", I get the next error: "Attempted to load class RouteHelper from namespace Joomla\Component\Content\Site\Helper. I want to use ...
user avatar
  • 1
0 votes
1 answer
38 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 ...
user avatar
1 vote
1 answer
49 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 ...
user avatar
0 votes
0 answers
12 views

Can I batch copy menu together with linked articles?

Copying a menu using batch processing is great for adding a new translation to Joomla. Is it also possible to copy the linked articles? The English menu is pointing to English content, and when ...
user avatar
0 votes
1 answer
34 views

Use Joomla article title as a variable inside a paragraph

I'm looking to set up a bunch of pages that have the same paragraph except one bit of text that will be the same as whatever the article's title is. Is there a way to pull in the article's title as a ...
user avatar
0 votes
2 answers
39 views

How to show 'Register New User' for all guests and something else for registered users?

I want to build a simple site with Joomla 4. The webpage should only handle these few things: For guests (not logged in users): Display an article with some text and the 'login mask' inside the ...
user avatar
  • 101
2 votes
1 answer
71 views

How to get Joomla article association?

How can I get the associated articles programmatically in my custom component function? I have my custom component and I am creating a new article for a multilingual site, so I need to associate ...
user avatar
1 vote
1 answer
63 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/...
user avatar
1 vote
0 answers
13 views

Article layout override in J!4

I'm starting to worry about updating my Joomla! 3 to Joomla! 4 (4.0.6 at the time of posting this). In Joomla!, 3 I used a lot the functionality that allows to create article layout overrides by ...
user avatar
1 vote
1 answer
20 views

Omit previously imported articles by comparing existing articles aliases with generated aliases

I am needing to compare the generated articles aliases of items imported from an external news API against those that are already stored in the com_content database to ensure that duplicates are ...
user avatar
1 vote
0 answers
27 views

getting first image of article for open graph

I've been a PHP developer for long time, but I am new to Joomla. On a Joomla 2.5 project, I need to make open graph meta tags. As a part of open graph meta tags, I need to find first image of article. ...
user avatar
  • 121
1 vote
3 answers
151 views

Execute Joomla CLI script to bulk import JSON data to articles

I have the following PHP code working to bulk add array items from JSON to com_content. The code is executed by directly accessing the file in the web browser. For example, http://examples.com/json-...
user avatar
0 votes
1 answer
32 views

Can't get article to expand full width of page

I am using Joomla 3.10.4 and I have made a drop down menu that displays submenu's that display a single article when clicked on. However when it pulls up the article it doesn't take up width of the ...
user avatar
1 vote
0 answers
47 views

In standard Joomla 3 how to decide the length and perhps parts of a text of an article in Archive listing

I am a beginner and should like to have certain length of archived articles to appear in search result. Currently ~ 110 characters appear at the user screen. I looked over the different menus in this ...
user avatar
  • 11
0 votes
0 answers
31 views

Dynamic page filled with content depending on the previous page

I am kinda new as a developer and I want to achieve the following in Joomla. The idea is that I have a category->sub category->products. The category and subcategory will be added in joomla and ...
user avatar
  • 1
1 vote
1 answer
76 views

Get last modification date of most recently modified article

As a way of presenting the "freshness" of my website's content, I want to present the date of the most recently created/modified article. I need to display the last change date across all ...
user avatar
  • 1,371
1 vote
0 answers
58 views

J4.x - How to echo content from a specific article into error.php

In Joomla 3 I had a really simple error.php file which pulled in the content from an article with the title '404'. I created an article named 404 and assigned it to a menu item of type 'single article'...
user avatar
  • 161
1 vote
0 answers
27 views

"404 Component not found" when trying to set an image for a category

I'm experiencing a really weird error in the backend of my site - Whenever I try to set an image for a category or article, the modal that pops up just shows me the Joomla dashboard. When I'm editing ...
user avatar
  • 11
1 vote
0 answers
41 views

Adding custom fields on the fly in JOOMLA 3.9

I am trying to develop a hobby project based on https://www.themealdb.com/ api. I am trying to create an article programmatically for https://www.themealdb.com/api/json/v1/1/search.php?s=Arrabiata and ...
user avatar
0 votes
1 answer
36 views

Front end editing, publishing and images tab have disappeared

I'm using Joomla! front end editing but the only tab available is "content". The publishing and images tabs have disappeared. They were working so I must have changed something but I can't ...
user avatar
  • 1,829
1 vote
0 answers
47 views

How to get product id in the article text (j2store)

I want to somehow get the product id from j2store and display the main image of each product in the article section each product. In /templates/namira/html/com_content/article/default.php there are ...
user avatar
  • 11
0 votes
2 answers
35 views

Bring featured articles to the front of the articles retrieved by ArticlesModel

How can I bring the featured articles to the front of the articles array retrieved by the ArticlesModel? I know I can change the ordering via this line: $model->setState('list.ordering', $ordering);...
user avatar
  • 325
0 votes
1 answer
30 views

Add fields to the articles retrieved by ArticlesModel

In my module i get the articles via this way: $model = JModelLegacy::getInstance('Articles', 'ContentModel', array('ignore_request' => true)); $model->setState('params', JFactory::getApplication(...
user avatar
  • 325
1 vote
1 answer
170 views

Get article list based on custom field value (com_fields)

I'm trying to get all the articles from a specific category with a specific value in one of the custom fields (com_fields) I have created. I have this code: $model = JModelLegacy::getInstance('...
user avatar
  • 325
0 votes
0 answers
95 views

An error has occurred. 1062 Duplicate entry '0' for key 'PRIMARY' Return to Control Panel?

I have been trying to add a new post from few days using the EasyBlog component in my Joomla 3.9.24 site, but I am getting anerror after clicking the add new button from the Joolma backend. I can't ...
user avatar
0 votes
2 answers
62 views

How do I carry a Joomla article title and its link across from an article layout into a module's helper?

I have a module that appears on an article page. The module has a form and I would like to send the article's title and page URL as part of the information sent through the form. Using $this->item-&...
user avatar
2 votes
1 answer
533 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 ...
user avatar
  • 344
1 vote
0 answers
113 views

Managing authors of Joomla articles

We have a Joomla site with a few people managing it, adding articles written by numerous other authors. I would like to set the author name for each article and show it in the front end in the article ...
user avatar
  • 123
0 votes
0 answers
181 views

Error 500 when drag & drop an image via tinymce

I have two domains pointing to the same joomla 3 : example1.com (main domain) and example2.com. When I edit an article in front via the main domain, the drag & drop of an image works well with ...
user avatar
2 votes
1 answer
51 views

Can article be automatically unlocked after a certain amount of time in joomla 3?

referring to this issue in 2014: Can content items be automatically unlocked after a certain amount of time? is there a good solution for unlocking items after a certain period of time with Joomla 3 ?
user avatar
2 votes
0 answers
90 views

Access Joomla article content from PHP-script with "file_get_contents"

I'm using php-script to export Joomla article to PDF-file with mPDF. The script is shortly the following: define('_JEXEC', 1); define('JPATH_BASE', realpath(dirname(__FILE__) . '/..')); ...
user avatar
0 votes
1 answer
1k views

403 Error: Forbidden You don't have permission to access this resource

I have been contracted to manage a website built with Joomla, I have to update articles but anytime I try to save changes this is the error I get. Forbidden You don't have permission to access this ...
user avatar
1 vote
2 answers
115 views

Custom fields with Articles Anywhere

I'm using articles anywhere to load in certain articles on certain positions in my template, but the problem is is that my custom fields are not loaded in. Does anyone know how to achieve this?
user avatar
  • 325
1 vote
1 answer
64 views

Save/load a custom form inside a new tab in the article edit view

I have a plugin which loads a custom form in a new tab inside the article edit view. So far, no problem with this part: public function onContentPrepareForm(Form $form, $data) { // Check we are ...
user avatar
1 vote
3 answers
65 views

How to show dynamic article to non-registered users?

I have a dynamic article in Joomla. The article information is extracted from fabrik when the user is logged in. But when the user is not logged.. I can not see the information. The idea is to create ...
user avatar
0 votes
0 answers
85 views

Set article attribs on-the-fly via JTable

I am using a CCK (Seblod) that extends com_content and allows adding complex fields, like PHP code to be run on onBeforeRender event. I need to change the values of some attribs of an article in the ...
user avatar
  • 1
0 votes
1 answer
33 views

Find Menu Item through Article Item?

I'm wondering if there's a way to see which Menu Item is associated with an Article. I know this is easy from the Menu Item -> Article view, since Articles are assigned in Menu Items. If I'm in an ...
user avatar
  • 1
1 vote
1 answer
97 views

Error JLIB_APPLICATION_ERROR_INVALID_CONTROLLER from CLI on Joomla 3.7

I have an issue with a cli php script that I'm trying to execute. I want to add an article with custom fields. The part where I add articles is working well, but when I add the code to load the ...
user avatar
0 votes
2 answers
93 views

How to disable all category pages?

I have a Joomla site and I would like to hide the category pages. Google is indexing some of them with a number before. For example, I have a product category and the mydomain.com/2-products page is ...
user avatar
0 votes
0 answers
241 views

A slash is being automatically added after the hashtag in urls

I just wanted to implement a scroll to an element for two anchor tags. The problem is that Joomla is adding a forward slash between the hash mark and the named anchor. When I have something like <a ...
user avatar
0 votes
1 answer
179 views

How to set article options and associations programmatically?

I work on a custom Joomla 3 module that creates articles programmatically based on user input. I can create the articles, but I could not find a way to set the article options and associations when ...
user avatar
0 votes
1 answer
217 views

Changing how Fabrik extension lists are displayed

I created a list using Fabrik and used elements to create fields for the list. The result was a form for my Joomla registered users to use to input data such as in fields I created like in the below ...
user avatar
  • 31
0 votes
1 answer
65 views

How to implement language-specific tags in select tags list from editing?

I have observed in Joomla (v3.9.16 and in older version too) a strange behavior (maybe it is right, but I don't understand it). When we have fully installed and configured a multi-language site, if ...
user avatar
0 votes
0 answers
36 views

Load banner in Joomla article

Is there any plugin that can load banner "id x" from banner component? Or is there any other way, but not with {loadmoduleid x}? Thanks in advance
user avatar
  • 99
0 votes
1 answer
23 views

Joomla 3 Article Gallery View stopped displaying articles

I have a website with some menu items using the Article / Gallery View option to display a list of articles in blog style. It has been working perfectly for a few years now, but it stopped working in ...
user avatar
1 vote
0 answers
34 views

I have some missing articles in a category on the front end. Joomla 3

Any reason why some articles may be missing on the front end of my Joomla 3 site when most of them are there? 2 articles are missing out of 63. All but 2 are listed in the category on the front end. ...
user avatar
1 vote
2 answers
410 views

Remove 'There are no articles in this category.' Text

Joomla 3.9.14 I have a category with no articles, although the sub categories do contain articles. - colours (no articles) -- red (1 article) -- blue (2 articles) I have a menu type Category ...
user avatar
  • 3,491
1 vote
1 answer
31 views

Building a new module that loads articles not adding slashes in front of images

i am currently building a new module that loads joomla articles via ajax. During the final tests I noticed that image links are (relative links) not handled correctly. If an image is added to an ...
user avatar
  • 483
0 votes
1 answer
111 views

Ajax Call: Problem with filter in Article & Articles Model in Module Context

I currently have a problem with an ajax call in my new module. the filters are not used. Here is an extract of the relevant lines: $articleid = $data_decoded->articleid; // Get an instance of ...
user avatar
  • 483

1
2 3 4 5
7