Skip to main content
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.7k
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
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,329
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.7k
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
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 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.7k
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,236
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

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.8k
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

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.8k
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
3 votes

How to show previous/next buttons in my articles?

To display Next / Previous buttons at the bottom of articles pages, then first of all the content pagination plugin should be enabled. Then for each of the articles, the corresponding value of show ...
FFrewin's user avatar
  • 19.8k
3 votes

How to assign a different Joomla template style to subpages?

If your template is not in the list of the non-compatible templates/frameworks of this extension, I would suggest you to go with the Regular Labs Advanced Template Manager. Advanced Template Manager ...
FFrewin's user avatar
  • 19.8k
3 votes

How can I increase the maximum length of article titles?

After reading the comments under your question: You could modify the #__content.title column but bear in mind that this involves a potential risk of data lοss if a future Joomla update contains ...
FFrewin's user avatar
  • 19.8k
3 votes

Getting the source code of an older version of an article?

Revisions are stored in the #__ucm_content table. The version number is the core_version field. If you want, for example, to get the body of the 2nd reversion of the article with ID 123, you issue the ...
itoctopus's user avatar
  • 3,236
3 votes

Add html to Article Image captions

The issue with the answer given in that other question is that it requires edits to Joomla core files so site updates eventually will undo your changes. That'll create a maintenance issue for you (ie, ...
Drew G's user avatar
  • 890
3 votes
Accepted

Joomla page title is not article title for some articles

If there is a menu item pointing directly to an article, then the page title can be set at the menu item level. Additionally, there are some SEO tools (such as sh404SEF) that will allow you to set the ...
itoctopus's user avatar
  • 3,236

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