7
votes
Accepted
Can't edit article after Joomla 3.4.7 update
The were session storage changes in the Joomla 3.4.7 update.
To fix the issue, you simply need to logout and log back in before you can make any article changes.
Reference: https://docs.joomla.org/...
7
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 ...
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() {
...
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 ...
6
votes
Joomla 4 create article programmatically
This will work.
$newapp = JFactory::getApplication();
$mvcFactory = $newapp->bootComponent('com_content')->getMVCFactory();
$articleModel = $mvcFactory->createModel('Article', 'Administrator',...
5
votes
Accepted
Language tags in article content
You can use this language plugin:
http://extensions.joomla.org/extension/easy-language
Once installed in your article you can do:
{lang en}Monday{/lang}{lang es}Lunes{/lang}
It will display the ...
5
votes
Accepted
How to show a module inside com_content/article/default.php
Assuming with fails you mean it simply doesn't show on the article page and not that you are getting any other kind of errors.
The code you posted seems okay and should work.
So, I guess it might be ...
5
votes
Accepted
How to check if the user is authorized to view a particular article?
You can see an exemple of this check in this file
modules/mod_articles_latest/helper.php
https://github.com/joomlagovbr/joomla-3.x/blob/master/modules/mod_articles_latest/helper.php
$...
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 ...
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 ...
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 ...
4
votes
Accepted
Joomla 3-article is published but not showing
Articles in Joomla are usually displayed through Menu Items. Creating and publishing an article is only the first step, you also have to create a menu item:
These are some of the most popular menu ...
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 ...
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 ...
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: ...
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 ...
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) ...
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)...
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 ...
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 ...
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 ...
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 ...
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 ...
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'...
4
votes
Accepted
Remove 'There are no articles in this category.' Text
Got to;
content > articles > options > category tab > No Articles Message > hide / show
3
votes
Accepted
Why does my table look OK in the back-end but is not formatted correctly in the font-end?
The most likely cause that your table looks different in the front-end is table styling in your template.css file or similar.
As it is, much of the existing styling code is duplicated and hard to ...
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 ...
3
votes
Allow registered users post content or articles - Joomla 3
As far as I understand you want to give different access to different different menus. For this,in Joomla, we use ACL (Access Control List) and you don't need to use any plugin or extension. Refer the ...
3
votes
Accepted
How to add gravatar support to Joomla article
Take a look at the Gravatar PHP documentation. Basically, you want to generate a URL for the image to be displayed. This URL is based on the users email address, and will of course only work for ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
articles × 352joomla-3.x × 143
module × 27
php × 26
category × 26
plugin × 21
com-content × 21
custom-field × 18
article-manager × 18
images × 17
overrides × 15
template-override × 12
tags × 12
module-display × 12
user × 11
category-blog × 11
component × 10
menu × 10
joomla-4.x × 10
joomla-2.5 × 9
templates × 9
extensions × 9
css × 9
url × 9
layout × 9