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
0answers
34 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'...
1
vote
0answers
13 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 ...
1
vote
0answers
26 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 ...
0
votes
1answer
27 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 ...
1
vote
0answers
27 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 ...
0
votes
2answers
32 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);...
0
votes
1answer
24 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(...
1
vote
1answer
93 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('...
0
votes
0answers
17 views

Stop display custom fields in edit article in frontend

I’m having some trouble with custom fields and tags when creating/editing an article from frontend. I’m using tags and several custom fields (grouped into five groups). By standard, the custom fields ...
0
votes
0answers
56 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 ...
0
votes
2answers
57 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-&...
1
vote
1answer
198 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 ...
1
vote
0answers
92 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 ...
0
votes
0answers
142 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 ...
2
votes
1answer
48 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 ?
2
votes
0answers
64 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__) . '/..')); ...
0
votes
1answer
840 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 ...
1
vote
2answers
92 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?
1
vote
1answer
55 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 ...
1
vote
3answers
62 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 ...
0
votes
0answers
81 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 ...
0
votes
1answer
28 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 ...
1
vote
1answer
89 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 ...
0
votes
2answers
63 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 ...
0
votes
0answers
164 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 ...
0
votes
1answer
122 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 ...
0
votes
1answer
132 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 ...
0
votes
1answer
57 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 ...
0
votes
0answers
33 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
0
votes
1answer
22 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 ...
1
vote
0answers
27 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. ...
1
vote
2answers
324 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 ...
1
vote
1answer
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 ...
0
votes
1answer
102 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 ...
0
votes
1answer
30 views

Share article dropdown

I'm looking for a plugin that will allow to have a dropdown social share menu, like the ShutterStock has I need next sharing options: Facebook Instagram Copy Link Email probably, few more items ...
0
votes
1answer
32 views

How to keep count of how many times an article has been seen as fulltext or introtext-alone?

Joomla core articles hits counter only works when the full article is shown (fulltext). But if only the introtext is displayed, like in a Category Blog view or in a Featured Articles Blog view, the ...
1
vote
1answer
235 views

How to programmatically write Joomla article customs field values?

I added some custom fields to the articles of my Joomla website: I work on a custom Joomla module that creates new articles programmatically using the below code: static function createArticle(...
3
votes
0answers
53 views

Joomla 3.9 + Gantry 5.4.31 mismatch layout issue on localhost

I am trying to build a regional blog/magazine. The home page layout which came as almost default with Gantry is satisfying. I am using XAMPP on Ubuntu 18.04.3 and Joomla 3.9.13 and Gantry 5.4.31. ...
0
votes
0answers
28 views

How to get back the ID of programmatically created Joomla Article? [duplicate]

I work on a custom Joomla module that creates articles programmatically. I use the below code to create the article. It all works fine. Now I would need to get back the ID of the newly create article ...
2
votes
1answer
431 views

Get the list of article and related specific custom field value

I need to compose a list for a RSFormPro form field which contains options that display article titles and their respective date from a custom field. In front something like this : Select your ...
1
vote
2answers
63 views

Unable to Find a Page/Article in Joomla Admin

I have two pages (articles) on my Joomla site that are publicly accessible but I'm unable to find them in the Joomla admin. They were discovered by searching the website using the built-in search ...
2
votes
2answers
96 views

Latest articles structured data markup

I have added microdata into every article manually and it works fine. Now I want to insert them into the latest articles module. To override the module in my template and I added: <li itemscope ...
2
votes
2answers
400 views

How do you assign jQuery scripts to an article?

I'm working on adding a simple feature to a single Joomla article. Editing the article itself is necessary in this case, I can't modify the template files (or add the JS to the entire site). In the ...
1
vote
0answers
30 views

Is there any way to put subcategories in a Joomla menu?

I've been trying to change the way my website works. Currently, I have a menu that displays categories, but now I want to also display subcategories in it. I know that I can display articles of that ...
2
votes
2answers
259 views

How can I display the first name of the currently logged in user in content

Matthew Murphy asks the following on the Joomla Facebook Group: Anyone know of an extension for content that replaces the name with the person who's logged in? For example I have been working on a ...
2
votes
1answer
189 views

How to extend the article search to take into account the values of custom fields?

In articles I have added a series of custom fields, now I need to be able to filter through these fields, while being in the article manager view. I have searched about it but without success, I just ...
0
votes
2answers
55 views

Change the 'New Article' message sent to admins

I have a site where registered users can add content in the frontend and when added administrators are sent an email, notifying them of a new article. This is driven by languages constants: ...
2
votes
0answers
32 views

Tagged articles not being shown in Smart Search results

I have an issue with tagged articles not being shown in smart search results. I have a test article: Title = "This is a test article" Content = "descriptiontest" Tag = "taggedtest" I have then ...
3
votes
1answer
172 views

Programmatically set article image

I generate/update several articles through a PHP script (in the cli folder) that parses an external data source (custom tables). This works well. Now, if an article has not yet an image, the script ...
1
vote
0answers
83 views

How can I use first image in article as featured image?

I have searched all over the internet but nothing got useful. I have only hope on this forum. Please tell me how can I use the first image of the article in Joomla as featured image. I don't want to ...

1
2 3 4 5
7