A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

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
1answer
24 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
45 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
25 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
23 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
69 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
36 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
27 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
65 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
42 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
67 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
116 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
15 views

excel file import in article joomla [closed]

I use joomla article + field for manage branch information. now I want import(excel file) branch information (title-desc-field1-field2,...) in articles. how do it? please guide me.
1
vote
0answers
21 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
37 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 ...
0
votes
1answer
36 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
19 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
21 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
79 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
41 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 ...
0
votes
1answer
31 views

Difference between article meta description and Google result's presented text

I'm using Joomla 3.9 for posting my articles. I've recently noticed the meta description appearing for my articles on Google and the ones I've written in Joomla are different. It seems Google is just ...
3
votes
1answer
22 views

Insert Contacts Custom Field In Article

I have created a few custom fields for my contacts. I now want to display these contact details withinin some articles using the following format; {field 1} will display the field with the ID 1 {...
1
vote
1answer
77 views

How to add category name to url path for an article in Joomla 4?

How to display category name in the url path? Say I have a category named cat1, and an article1 under this category. I want to display website.wb/cat1/article1, but what I get is website.wb/article1. ...
3
votes
1answer
61 views

Content plugin doesn't add text to articles

I have the following plugin written: defined( '_JEXEC' ) or die( 'Restricted access' ); jimport( 'joomla.plugin.plugin' ); class plgContentModifyArticle extends JPlugin { function ...
0
votes
0answers
16 views

Avoid that text Line “Search Results” appears when switching to another language?

I can't post my URL, so to simplify it, let's say: you have a website in three languages. in your main menu (one defined for each language, that all works well), you have one menutab, whose type is ...
0
votes
1answer
33 views

Default value for repeatable custom field

I am trying to set a default value for the repeatable custom field. My subform has a number field, a media field and a text field. I am using the default value field in the repeatable field ...
2
votes
1answer
32 views

Define a default intro image on article submissions

I'm searching a way to define a default intro image in the Joomla article creator from the core (when a user create an article if he don't add an intro image there is one by default generated from a ...
0
votes
0answers
28 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 ...
0
votes
0answers
17 views

Article Settings Priority (again…)

Is there a way to make the individual article options settings take priority over the Menu or Global options settings? I have found that it makes no difference what the individual article options are ...
1
vote
1answer
20 views

Article Shows as white screen but plugins load

I have an article which shows as published in my back end. If I click on "preview" which I believe is Regular Labs "better preview" I see a screen saying the article is unpublished. I also have a ...
0
votes
0answers
32 views

Article links from Joomla article do not work for multi-language website

I have a Joomla article that contains links to other articles: https://www.dev.gonativeguide.com/de/ I add the links with the "+article" button of the editor. My site is bilingual: English and ...
0
votes
1answer
63 views

How to get the canonical SEF URL of an article in PHP?

Is there any way to get from the article it's SEF URL? <?php $id = JFactory::getApplication()->input->getInt('id'); $article = JTable::getInstance("content"); ?> searching ...
0
votes
1answer
164 views

Find Article SEF URL by ID

Is it possible to get SEF URL from Joomla article ID through some API? I'm moving data from old custom CMS to Joomla. Articles in old CMS contain links to each other. Old articles had their full URL ...
1
vote
1answer
44 views

Article Table of Content in the sidebar

I need to find an extension to generate the Article Table of Content or Outline in the sidebar like this page (right sidebar). The page will scroll to that heading/content when click to the sidebar ...
1
vote
1answer
87 views

Using Link A instead of the title link

I am using the module Articles - Newsflash to show a category of mine, which works just as intended. Now I can see all intro images of the selected articles and also some corresponding text. ...
1
vote
1answer
24 views

How to change appearance of “action items”, the button which reveals email and print actions on an article

I want to show a simple "email to friend" button on my Joomla articles (3.9.5) The Articles global options allows Email and Print actions to be added, but they are then "hidden" behind a blue cog icon....
0
votes
2answers
32 views

“Use Global” not available on menu entry

I have an installation where the article options are wonky. Global and article seems to be working, but on the menu (blog) the "Use Global" options is not available (as it is with a fresh install or ...
0
votes
3answers
802 views

Joomla 3.9.3 Articles: 500 Unknown column 'a.note' in 'field list'

I've updated to Joomla 3.9.3 and now when I open the articles pages, I get this error: 500 Unknown column 'a.note' in 'field list' I've tried to fix the database with the Joomla repair function, ...
1
vote
0answers
33 views

Suddenly URLs with “table/”

I'm running a simple site based on Joomla. The SEF URLs are defined by SH404SEF and look like https://[domain]/[category]/[sub category]/[article title alias].html. In some cases there is a 1-to-1 ...
0
votes
1answer
36 views

Add a message after saving an article

Based on this question:. https://joomla.stackexchange.com/a/24042/8968 I want to add the return code as a message after save to see if it was successful or not. Can someone tell how I can do this?...
1
vote
0answers
52 views

Joomla tag links in articles url problem

Having the latest Joomla 3.9.1, when I insert tags in articles, the url when I hover over the tags under the article from a category blog page is example.com/component/tags/tag/my-example-tag. I have ...
2
votes
2answers
84 views

How to automatically update CDN after saving an article?

I am looking for a solution and have no idea how to start. All my static joomla HTML sites are cached by Cloudflare. After updating an article on joomla, I update the Cloudflare cache manual with a ...
1
vote
2answers
248 views

Joomla.submitbutton is not a function at HTMLButtonElement.onclick

I have been facing a problem when I try to update the article from the frontend then it shows this error Joomla.submitbutton is not a function at HTMLButtonElement.onclick Here is my code &...
0
votes
1answer
36 views

Find out which menu an article is assigned to

Does anybody know a way to find out which menu item an article is attached to in Joomla 3.x ? When you open a menu item you can see which article is attached to that menu. But the opposite is not ...
2
votes
1answer
458 views

How to get rendered full page before returning to the browser?

Is there any way to get full rendered page before returning to the browser? I want to get full page (from <html> to </html>), replace some pseudo variables and retrun to user changed ...
1
vote
1answer
46 views

Responsive Height Columns in Article

I am trying to fix a formatting Error in a Joomla! Project I took over in my School. Currently they used a HTML Instructions (as far as I unterstand this) in the Article. [columns add_margins=true ...
1
vote
0answers
79 views

Joomla add article & extra field values from custom component

I have a custom component, from which I am taking my data & creating a new article with extra field values(from code). Below, is my code & attempt. JLoader::import('components.com_content....
0
votes
1answer
122 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
1answer
226 views

How can I add custom user field values to an article?

I have created a custom user field named "Gender". How can I show this field in an article? I can only manage to show: username, name, email and User Id Here is my current Sourcerer code to access ...
1
vote
1answer
52 views

Set featured article first in custom sort order

I am using a bespoke module (which has been inherited with the site) and the module sorts the articles shown based on the selected sort order from the XML params: <field name="sortopt" type="list" ...
0
votes
2answers
36 views

How do I make article images that can be enlarged on mobile devices?

I'm trying to enter lessons with images on my website, but the images are too tiny on mobile devices. Is there any way to make it so they can be enlarged by clicking on them rather than trying to ...