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
19 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 ...
j00m's user avatar
  • 171
0 votes
1 answer
34 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 ...
Mike Hermary's user avatar
0 votes
1 answer
48 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 ...
Kris Hunt's user avatar
  • 144
2 votes
2 answers
235 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 ...
Etienne Delcambre's user avatar
0 votes
2 answers
64 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; ?...
Mint's user avatar
  • 1
0 votes
0 answers
24 views

SP Page builder integrations :invalid url error

When I want to integrate SP page builder with Joomla articles, I receive 'invalid url" error. It's my first time working with Joomla. Can you help me with that?
Elham Zamani's user avatar
0 votes
1 answer
233 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\...
antarey's user avatar
  • 35
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: ...
J-Newbie's user avatar
1 vote
1 answer
68 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/...
bolando's user avatar
  • 11
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 ...
JRGrant's user avatar
2 votes
1 answer
92 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 ...
cappu's user avatar
  • 115
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 ...
Na Nguyễn's user avatar
1 vote
1 answer
96 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. ...
Manmeet Royace's user avatar
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 ...
Dionysus's user avatar
0 votes
1 answer
588 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 ...
Jon's user avatar
  • 1
0 votes
1 answer
88 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 ...
Vincenzo Oliva's user avatar
1 vote
1 answer
99 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 ...
Vincenzo Oliva's user avatar
0 votes
1 answer
83 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 ...
aglasier's user avatar
0 votes
2 answers
74 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 ...
testo's user avatar
  • 101
2 votes
1 answer
258 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 ...
Sagar Shah's user avatar
1 vote
1 answer
201 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/...
Nintendomi's user avatar
1 vote
0 answers
51 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 ...
Simon D.'s user avatar
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 ...
Mike Hermary's user avatar
1 vote
0 answers
128 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. ...
shekoufeh's user avatar
  • 121
1 vote
3 answers
310 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-...
Mike Hermary's user avatar
0 votes
1 answer
149 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 ...
isaiahstanke's user avatar
1 vote
0 answers
51 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 ...
Nyék's user avatar
  • 11
0 votes
0 answers
38 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 ...
Anthi's user avatar
  • 1
1 vote
1 answer
177 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 ...
web-tiki's user avatar
  • 1,373
1 vote
0 answers
111 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'...
Gillian's user avatar
  • 411
1 vote
0 answers
72 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 ...
D Shaw's user avatar
  • 11
1 vote
0 answers
55 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 ...
Alaksandar Jesus Gene's user avatar
0 votes
1 answer
93 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 ...
Eoin's user avatar
  • 1,889
1 vote
1 answer
90 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 ...
Sirick's user avatar
  • 11
0 votes
2 answers
38 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);...
Kuubs's user avatar
  • 345
0 votes
1 answer
38 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(...
Kuubs's user avatar
  • 345
1 vote
1 answer
364 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('...
Kuubs's user avatar
  • 345
0 votes
0 answers
225 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 ...
manikanta gowda's user avatar
0 votes
2 answers
129 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-&...
ziyalogy's user avatar
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 ...
Lovntola's user avatar
  • 344
1 vote
0 answers
230 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 ...
Matej's user avatar
  • 123
0 votes
0 answers
288 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 ...
Lecraver's user avatar
2 votes
1 answer
53 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 ?
Lecraver's user avatar
2 votes
0 answers
116 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__) . '/..')); ...
user3112031's user avatar
0 votes
1 answer
3k 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 ...
NanaOSS Sarfo Sekyere's user avatar
1 vote
2 answers
166 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?
Kuubs's user avatar
  • 345
1 vote
1 answer
94 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 ...
Carlitorweb's user avatar
1 vote
3 answers
84 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 ...
javier94's user avatar
0 votes
0 answers
94 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 ...
Nene's user avatar
  • 1
0 votes
1 answer
48 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 ...
lianal's user avatar
  • 1

1
2 3 4 5
8