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
366 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
100 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
1answer
184 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
156 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
44 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
19 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
30 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
73 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
105 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
642 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
59 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
217 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
57 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
41 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 ...
1
vote
3answers
2k 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
54 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
59 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
104 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
184 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
665 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
44 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
469 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
49 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
114 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
177 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
396 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
82 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
60 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 ...
1
vote
1answer
267 views

How to set the title and intro text as hyperlinks to the full article in blog layout?

When displaying articles in blog layout on my website, I want the respective article link on the title and the whole intro text. I looked at the code in components/com_content/views/category/tmpl/...
3
votes
3answers
60 views

How to create many pages with the same content except for one variable?

I have over 100 pages to create and they will have the same exact content except for one variable (dog breed). Examples: www.dog.com/husky-dog www.dog.com/rottweiler-dog www.dog.com/pitbull-dog and ...
1
vote
1answer
323 views

Delete row from custom made SQL when deleting article in Joomla

I´m still new to Joomla and to coding SQL. I was thinking about how I should manage a big system I made with information that is saved in a sql table, that contains some user input and the "id" of an ...
1
vote
2answers
37 views

Why doesn't an article appear when following some links?

When I try to access an article by following a link like thisindex.php?option=com_content&view=article&id=9, the post appears as expected. However, when I use the link index.php/2-...
0
votes
1answer
216 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 ...
3
votes
1answer
809 views

Get tags for an article

How can I query the db for all the tags associated with an article? I have been able to use JTable to query to *_tags table, but that doesn't return the tags that are associated with the article ...
1
vote
1answer
54 views

How to automatically append slash to article links?

I want to make sure that all my links from one article to another end in a '/'. Currently, there is a link on article "One" that contains a link to "Two" and it's generated like this: https://...
0
votes
1answer
68 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
1answer
189 views

How to display all articles on the website in Joomla! 3.8.7?

I have over 200 articles in this category but actually, on this page, it is displaying only the last 30 recent ones and also in a column format. https://www.kiagia.com/index.php/bollywood-mobile/...
2
votes
1answer
572 views

PHP: Check if a module is displayed on the current page

I'm having some issues with checking if a module is displayed on the current page. I tried out different approaches with JModuleHelper methods, eg isEnabled, but it only works with module types not ...
1
vote
0answers
79 views

Extended tag field joomla article custom field

I have some joomla custom fields in articles. But I need 3 custom fields that should behave like the joomla "tags" so that, besides selecting from the options available, the user can also insert a new ...
2
votes
1answer
22 views

Additional "Images And Links" fields - corect way

Just edited administrator/component/com_content/models/forms/article.xml to add more Images fields. The control is very user-friendly. Is there a way of doing it more right without changing core ...
1
vote
2answers
2k views

Canonical tag problem in Joomla articles

look at the URLs below: 1. /essays/technical-essays/180-technologies/247-megapixel 2. /essays/technical-essays/247-megapixel 3. /essays/technical-essays/technologies/247-megapixel 4. /essays/...
2
votes
1answer
85 views

SQL Query error when displaying article list

I am running a number of sites on the same server. All are updated to Joomla 3.8.2 Suddenly some of them but not all have the following problem. When I list the articles I get a list of the first 20 ...
2
votes
2answers
137 views

Article title and category not bolding

We upgraded to 3.8.1 and since the upgrade the article titles and categories are not bolding as they did in the past. We have an article-category module and I checked the tabs to see if there was ...
1
vote
1answer
196 views

Checking if category has an published article

I have this piece of code in my template <?php if ($showLeftColumn) : ?> <aside class="sppb-col-md-3 custom-style-left"> <jdoc:include type="modules" name="left-top" style="...
1
vote
1answer
2k views

How do I find out the URL for an article?

I created the following article: Which shows up in the list at http://localhost:81/fecms/administrator/index.php?option=com_content&view=articles I tried to navigate to http://localhost:81/...
2
votes
1answer
27 views

What type of extension processes non-HTML markup in an article?

I'd like to develop an extension that processes images and related data using article markup, such as is done by Articles Anywhere, for example: {article 999}{/article} In my case it would look ...
1
vote
1answer
166 views

How to get article id on BT CONTENT SLIDER?

I have a BT CONTENT SLIDER module on main page of my website to show a list of 3 articles from category called "News" on main page. I would like to read custom params of that articles shown on that ...
1
vote
2answers
67 views

Joomla page title is not article title for some articles

I am using version 3.6.5. After some SEO inspection, we realized that some article pages are using duplicate page titles (the site name being the page title). I compared the article whose page title ...
1
vote
3answers
1k views

Has there been a better solution for showing modules only on article list page(but not article page)?

A typical scenario I believe every Joomla users have encountered is: You have a module on the article list page(like Category Blog), but you don't want this module to also show on the article content ...
0
votes
1answer
259 views

Add html to Article Image captions

While adding the featured image of an article (Intro Image and Full Article Image), I need to add some simple HTML to the Caption field, since these captions contain scientific names, that must be ...

1
2
3 4 5
7