13 votes

How to get the intro image of a joomla article

That code is looking in the article text you need to is in the images call. It is json encoded so you have to decoded it first. $images = json_decode($this->item->images); echo $images->...
user avatar
10 votes

How to modify article structure?

I believe I have your solution, but do NOT hack the core. We felt forced to do that over the years, and we're still paying the price even today, missing updates, revisiting hacks everytime we do ...
user avatar
  • 7,685
8 votes
Accepted

How can you hide the title from a featured article?

If you want to hide the Title for "Featured articles" you need to specify that you want Joomla to take the configuration set from those articles. To do that go to Menu -> Main Menu -> Select the Menu ...
user avatar
7 votes

Trouble finding particular page that exists in the menu

The link you're referencing is telling Joomla to use the Contacts component to display information about the contact in the database with id #1...so...you need to log into the administrator, and go to ...
user avatar
  • 7,685
7 votes
Accepted

com_content—get associated article in right language

You can use JLanguageAssociations::getAssociations. This function will return an array containing associated items. You can also check if if the language filter Items Associations parameter is enabled ...
user avatar
  • 13.3k
7 votes
Accepted

Determining if on a Category Blog page or Article page

You're going to want to use JInput for this. $jinput = JFactory::getApplication()->input; $option = $jinput->getCmd('option'); // This gets the component $view = $jinput->getCmd('view'); ...
user avatar
  • 26.5k
7 votes
Accepted

Can't override com_content controller

Ok. Solved it. The problem was I was putting the code/ folder in administrator/ root, instead I should have put it inside the template folder (administrator/templates/my_template/code/). Now it works....
user avatar
  • 315
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/...
user avatar
  • 26.5k
6 votes

Should I change the way I include javascript into Joomla? If yes, why and how?

Articles are for content, not source code. Rule of thumb, different content in different places. If I have to quickly include Javascript, I would recommend NoNumber Sourcerer: http://www.nonumber.nl/...
user avatar
  • 7,415
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() { ...
user avatar
  • 2,388
6 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 ...
user avatar
  • 8,491
5 votes

Multiple categories linked to menu item

You can link to a category which has two child category (red and blue in your example). Your Menu links to category A which contains category b (blue) and category C (red). You can put your slider ...
user avatar
5 votes
Accepted

Multiple categories linked to menu item

Instead of trying to do nested categories you might want to just make a single article and link to that. Then use loadposition (or NoNumber modules anywhere) and just embed some modules INTO the page (...
user avatar
  • 2,366
5 votes
Accepted

Is there a way to have the article edit box stretch the full width of the screen in Joomla 2.5?

You can just add a view override in the template: Understanding Output Overrides http://docs.joomla.org/Understanding_Output_Overrides Component Output Types and Layout Overrides http://docs.joomla....
user avatar
  • 7,415
5 votes

List articles by Category and Sub-Category

Option 1: Create a menu for your categories and articles. Everytime you add an article to your category, you also add it to your menu. Then you use the menu module to call in that information. It'll ...
user avatar
  • 1,328
5 votes
Accepted

How can I customize/design the View Article page

If you would like to change the structure/styling for an Article view, you need to create a Template Override, all of which is explained here: http://docs.joomla.org/...
user avatar
  • 26.5k
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 ...
user avatar
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 ...
user avatar
  • 19.5k
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 $...
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 ...
user avatar
  • 1,781
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 ...
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 ...
user avatar
  • 8,491
4 votes

"echo" title article before read more

If you have selected category blog view and you need to print the article just after the intro text, try to override the following template: /templates/yourtemplate/html/com_conetnt/category/blog_item....
user avatar
4 votes
Accepted

Only show articles by current user in category view using plugin

You do not need a plugin for that. Just override a category view and put your check there. For example for the Blog view override blog.php and around line 60 make your check: if ($item->...
user avatar
  • 4,045
4 votes
Accepted

Should I change the way I include javascript into Joomla? If yes, why and how?

If you're including the JavaScript as a user and customized to your article, then it's fine. Especially if it is different for each article. However if you happen to repeat the same JavaScript code ...
user avatar
  • 5,527
4 votes

How can you hide the title from a featured article?

You have to set Show Title to Hide in the menu item that displays your featured articles, not in the article settings. The article settings will only have effect is you set Show Title to Article ...
user avatar
  • 13.3k
4 votes

How can you hide the title from a featured article?

There are several places to set the title property. The menu item, the category, the article manager and the article itself. As the other answers have noted, the view and menu item are the most ...
user avatar
  • 1,079
4 votes
Accepted

Content Versioning customization

Well, Joomla is a mix of old and new. Contenthistory does not use classic events but the observer pattern. Take a look into JTableObserverContenthistory (libraries/joomla/table/observer/contenthistory....
user avatar
4 votes

Dynamic article filter

RokSprocket plugin in its Mosaic layout mode does exactly what you shown on screen clipping. I'm using that plugin and it works well. You can also check the demo of Mosaic layout mode. Choose the ...
user avatar
  • 1,109
4 votes
Accepted

Unpublished Articles - hide

From what I already know, this is a purposely built-in feature, which allows admins (only) to view and manage articles via the frontend. Example: The Social Media Executive writes a blog post and ...
user avatar
  • 26.5k

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