Skip to main content
Share Your Experience: Take the 2024 Developer Survey
8 votes
Accepted

Get tags for an article

Use TagsHelper::getItemTags(): use Joomla\CMS\Helper\TagsHelper; $tags = new TagsHelper; $tags->getItemTags('com_content.article', $articleId); Where $articleId is article ID. Tags will be ...
Sharky's user avatar
  • 11.4k
6 votes
Accepted

Different templates for viewing and editing articles

It's actually possible by overriding it via 3rd party plugin. You can create a simple system plugin calling setTemplate() method when the onAfterRoute event occurs : public function onAfterRoute() { ...
webchun's user avatar
  • 2,418
6 votes
Accepted

Joomla 4 create article programmatically

I rewrote the "Content Uploader" for Joomla 4 because I couldn't reach the developer. I had exactly the same problem as you described in the first example. The reason is that the Workflow ...
Gratia-Mira's user avatar
6 votes

Joomla 4 create article programmatically

This will work. $newapp = JFactory::getApplication(); $mvcFactory = $newapp->bootComponent('com_content')->getMVCFactory(); $articleModel = $mvcFactory->createModel('Article', 'Administrator',...
Na Nguyễn's user avatar
5 votes
Accepted

What is Joomla article options stored table?

The data you are looking for is available in same table (#__content) and you will find all the options in attribs column. Note that in MySQL the table will have the db table prefix that you have ...
Joomler's user avatar
  • 1,811
5 votes
Accepted

How to fetch joomla article custom fields in another component?

You can use the following code to fetch custom field values by article id <?php JLoader::register('FieldsHelper', JPATH_ADMINISTRATOR . '/components/com_fields/helpers/fields.php'); //load ...
Mayank Sahu's user avatar
5 votes

Content plugin doesn't add text to articles

Your plugin appears to be written for a very old version of Joomla! The event in current versions is onContentBeforeSave. You are also missing $context argument. It's a good idea to check for context ...
Sharky's user avatar
  • 11.4k
5 votes
Accepted

Remove 'There are no articles in this category.' Text

Got to; content > articles > options > category tab > No Articles Message > hide / show
TheOrdinaryGeek's user avatar
4 votes

Edit multiple images at once

An alternative way to do this is to apply the margins via a suitable CSS selector in a custom CSS file. You can limit the styling to a single page if you want by using a page class and including this ...
Neil Robertson's user avatar
4 votes

Random image in an article

You have to use a more specific CSS selector in order to target only the main image, and not all images added to an article. The main article image (added through the "Images and links" tab in the ...
johanpw's user avatar
  • 13.3k
4 votes

I can't get changes to a published article to show

In this case the article is loaded by the menu item home, check the correct article here. Are you using some cache extension for your site?, check for possible extensions and clear the cache. Note: ...
AlejandroVega's user avatar
4 votes
Accepted

List articles by author

There is another solution that you can use which doesn't require any installs or modifications. First create a new module of type: "Articles - Category". This type of module allows you to filter ...
cyberp's user avatar
  • 56
4 votes

Administrators cannot edit articles after Joomla update

Well then... I would try ACL Manager's famous Fixing Assets command... ACL Manager | Diagnostics tab, then (Fix Orphan Assets / Add Missing Assets / Fix Assets Issues / Fix Admin Access Conflicts) ...
Mikan's user avatar
  • 3,007
4 votes
Accepted

Cannot remove article info

If you are created a menu item for the article (Single Article menu item) then the article options are overriden by the menu options. You should hide those article infos (Publish date, Hits, and so on)...
webchun's user avatar
  • 2,418
4 votes

How to find the joomla page from url

You can find any url/Alias by searching it in the search box. First go to the Menu manager and enter resource-downloads in the search box. And if you didnt find it then you can go to the article ...
Joomler's user avatar
  • 1,811
4 votes

How to fetch joomla article custom fields in another component?

This function will allow display of JCFields anywhere in any extension desired, including templates. The first parameter is the only requirement and will dump the JCF data, based on the item ID ...
Nadal's user avatar
  • 188
4 votes

How can I create a page that links to all articles with fake long titles?

You can achieve this with the built in functionality of Joomla. Create a Category Blog Menu Item and deactivate title under the options tab. While creating an article, write first your fake title ...
Dennis Heiden's user avatar
4 votes
Accepted

How does the Finish publishing feature for articles work?

Nothing needs to be changed or updated in the background when the Start Publishing or Finish Publishing dates are crossed. Let me explain how it works; I'll try not to be too technical. When you ...
Drew G's user avatar
  • 890
4 votes
Accepted

How do I find out the URL for an article?

The structure of a Joomla site is driven by the menu. So while you could access that article at http://localhost:81/fecms/index.php?option=com_content&view=article&id=33 By creating a menu ...
jamesgarrett's user avatar
  • 3,299
4 votes
Accepted

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

To edit entire HTML output directly, create a system plugin with onAfterRender event. Use application's getBody() method to get the content and setBody() to save the modified content. defined('_JEXEC'...
Sharky's user avatar
  • 11.4k
3 votes
Accepted

How to display tag on top of article and author at the bottom

Set position of info above to keep tags in that position and make an override of com_content/views/article/tmpl/default.php with this changes: Line 76 - remove or comment this statement: echo ...
Kitase88's user avatar
  • 977
3 votes
Accepted

How to fix missing article separator (Joomla 3.4.8)?

From the link you provided it is obvious that in your template there IS NO article-separator HTML element. From the name of your template, 'favourite' I guess it is one of free templates from ...
Mikan's user avatar
  • 3,007
3 votes

J3.3 Assigning An Article Multiple Access Levels

The right way of handling ACL is to create user groups, in tyo Solutions, Authorized, Retail, Distributors And after that create access level for each combination you need. For example you create ...
Adam M.'s user avatar
  • 447
3 votes

Dynamic article filter

I used Minitek Wall. Seems to work really well - I am not technically well versed so I stand to be corrected on that part. Very quick. Only frustrating thing is the lack of pagination in the free ...
tithij's user avatar
  • 31
3 votes

List articles by author

This is not provided by default from Joomla. You could either use a module, create your own model-view with a custom menu item, or use 3rd party content component or CCKs like k2. Joomla Content - ...
FFrewin's user avatar
  • 19.7k
3 votes
Accepted

How to create bulk articles by using php script?

I also faced the similar issue once and I modified the code as following which worked for me. You also need to pass the access and metadata in the article parameters. $article_data = array( 'id' =...
Liz.'s user avatar
  • 1,385
3 votes

Administrators cannot edit articles after Joomla update

We have encountered the exact same issue, and it turned out to be indeed, a corruption in the #__categories and in the #__assets table where the entries for certain categories pointed to the wrong ...
itoctopus's user avatar
  • 3,226
3 votes

Structure of content and assets table of joomla

1. Adding Joomla Content via the API Not sure how you are using the API to create articles and why it doesn't create the assets entries for you - assuming you have already tried to do so - as, adding ...
FFrewin's user avatar
  • 19.7k
3 votes
Accepted

How to prevent Article images width being stretched to 100%

Normally you won't find good answers that are specific to the template you use. All templates are different. I visited your page and in your case you have this in your template CSS (line 3891 in http:...
Insider Pro's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible