Questions tagged [articles]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
11 views

Tag page with blog layout

I want to create a menu item for a tag that shows the articles as in category blog layout. After, I would like to insert tags in the article info block. Is it possible in joomla 4 and 5? If yes, how ...
0 votes
1 answer
61 views

Upgrade Joomla CLi script to handle bulk import of items into articles

I am upgrading a client's CLi script that is used to automatically bulk import news items into Joomla articles. The code was originally programmed for Joomla 3 and now needs to support Joomla 4. I ...
0 votes
1 answer
189 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 ...
0 votes
1 answer
21 views

Article options overridden by global settings

I would like to control the display of fields like author, modified date, etc. on a per-article basis in addition to the global options. However, even when I set the options in the article, they do ...
0 votes
1 answer
77 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 ...
1 vote
3 answers
2k views

Joomla 3: import rss feed

I could not find any plugin, which could help me with importing rss feed (like this: http://www.verzekeringsnieuws.nl/rss/algemeen.xml) I found feedGator, but it didn't work in joomla 3... maybe ...
0 votes
1 answer
298 views

How to dynamically filter blog/list layout by today's date?

I've created a Joomla article category 'Events' with three list views: all events past events future events All three views refer to the same "Events" category. The past and future events layout use ...
2 votes
1 answer
319 views

Add "show all" button to BT Content Slider module

I am using Joomla 3.X. I have a module which displays three news and events at a time to see next set of news and events user has to press the next button. The name of the module is "BT Content Slider"...
1 vote
2 answers
206 views

How redirect the button new of frontend to open a seblod form in Joomla 3?

when I enter in frontend as super-user appear a button to create new articles, but this button open the Joomla predeterminate editor and I want that open the seblod from that I designed to create ...
1 vote
1 answer
102 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
1 answer
87 views

Send values from article to article

I have two articles in my Joomla site. One article has various links to the same article. The other article display, with code of java script, the HTML content of a file depending on what link was ...
0 votes
0 answers
46 views

Media Resize plugin not working on article images

I have a Joomla 4 site and have enabled the 'Media Action - Resize' plugin, I have set the max width and max height in the plugin params to be 500 When I upload an image via Content > Media, it ...
0 votes
1 answer
238 views

Content History Component Not Found

I have a Joomla installation which is on 3.6.5 and working on upgrading to 3.7. While carrying out a test upgrade on a dev version of the site, I got presented with an error about the contenthistory ...
0 votes
2 answers
77 views

Number of articles in multiples sub-categories

I use mod_articles_category to display a list of categories with their articles. I need to display the total of articles next to each category title. I've tried with <?php echo $item->numitems; ?...
0 votes
1 answer
31 views

Article fields layout

I am using Joomla 4 with casseiopa template. I have created a load of custom fields where the layout ends up like this: <ul class="fields-container"> <li class="field-entry ...
1 vote
1 answer
278 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/...
3 votes
2 answers
315 views

Tag Item programmatically

I am trying to tag some items (com_content.article) programmatically, and I have an issue while trying to use the TagsHelper class' tagItem method. I am not an expert in Joomla and I am a bit lost. I ...
0 votes
1 answer
117 views

How do you change category blog article titles to H2?

I'm trying to change the Category Blog article titles from H1 to H2. I've already tried creating a template override for com_content > tmpl > article > default.php. I found this line: <div ...
1 vote
2 answers
319 views

Joomla plugin - replace placeholders with dynamic content in article text

Based on the this tutorial https://docs.joomla.org/J3.x:Creating_a_content_plugin, I managed to write my first content plugin with this helper.php code: $regex_cat = '/{reillorama:(.*?)}/i'; ...
0 votes
1 answer
105 views

komento comments count at article

I'm trying to add komento comments count add to article at below file templates/name-template/html/com_content/article/default.php code $query->select(' COUNT(jc.id) AS ...
3 votes
2 answers
1k views

Joomla 4 create article programmatically

I have tried a few ways to create articles programmatically in Joomla 4, but none of my attempts are working. First is to insert data by mysql using $db->getQuery(true) -- the article shows in the ...
0 votes
1 answer
394 views

Joomla 4 Get a list of site articles in the module settings

My code use Joomla\CMS\Language\Text; use Joomla\CMS\Access\Access; use Joomla\CMS\Component\ComponentHelper; use Joomla\CMS\Factory; use Joomla\CMS\Router\Route; use Joomla\Component\Content\...
5 votes
3 answers
2k views

Unpublished Articles - hide

I've noticed that when an article is unpublished in the back end, it's still viewable when an admin is logged into the front end. This has causes some confusion with some (easily confused) clients. ...
0 votes
1 answer
12 views

Automate IIT Newsletter Creation

I am looking for assistance in creating a newsletter. Tool that will create a newsletter 5-10 articles will generate in diff categories and sorts out based on category Eventually we need a user ...
1 vote
1 answer
2k views

Structure of content and assets table of joomla

Can anyone explain structure of content and assets table. I m adding articles by API so how i can insert data into that two tables. In which table i have to add first. Please guide.
0 votes
0 answers
19 views

Newly published article does not load

I have published a new article, which is in a published category and menu that contain other published articles. The article, which is public, goes to a 404 error page. The url of the article is: ...
3 votes
1 answer
77 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. ...
1 vote
1 answer
71 views

Show images in Joomla 3.10 search results (com_search)

I want to show the intro image of articles in Joomla 3.10 search results (com_search). In previous Joomla 3 versions, I know that you could do this: Create template override: /templa tes/...
1 vote
1 answer
2k views

Run External PHP File From Joomla Article

I have a PHP file that will echo results in the end of the file. I want to fire some Javascript from an onclick event that will call this PHP file and print the results on screen. My Javascript ...
2 votes
1 answer
128 views

Joomla 4 Plugin to overwrite value of a custom field

I need a Joomla 4 Plugin to overwrite a marker in Custom Fields of type text or textarea with the article's title. I added a onPrepareContent() method where I have access to the articles title as well ...
1 vote
1 answer
134 views

How to add Table of Content using HTML or other options?

I'm looking for an answer to how to create a Table of content while publishing the article in Joomla. I know "page break" option but the default option design does not look on the blog page. ...
1 vote
1 answer
36 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 ...
0 votes
1 answer
821 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 ...
0 votes
1 answer
115 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 ...
1 vote
1 answer
100 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 ...
0 votes
1 answer
99 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 ...
0 votes
2 answers
77 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 ...
2 votes
1 answer
296 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 ...
1 vote
0 answers
93 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 ...
1 vote
1 answer
23 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 ...
1 vote
3 answers
360 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-...
1 vote
0 answers
154 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. ...
0 votes
1 answer
192 views

Tracing source of this error: Call to a member function reorder() on boolean

Is there a way to trace this error: Call to a member function reorder() on boolean I'm checking my PHP Logs but this particular error isn't showing up there. It happens when I'm trying to create ...
1 vote
0 answers
52 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 ...
1 vote
1 answer
222 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 ...
0 votes
0 answers
39 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 ...
0 votes
2 answers
147 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
0 answers
123 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
0 answers
80 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 ...
2 votes
1 answer
2k 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
2 3 4 5
8