15 votes
Accepted

How to deal with Duplicated Content / URLs in Joomla?

TOC of this answer: Content under same Item Id How Duplicate content is created / Dynamic Pages / URLs SEO perspective Dealing with Duplicate content in Joomla References and links ...
user avatar
  • 19.5k
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
11 votes

Custom Read More text

Yes is posible, go to each article, from here you can see a Tab called Optionsat the bottom you can see the field Read More Text, see the screenshot. Regards.
user avatar
10 votes
Accepted

How to create a category blog layout with all articles shown in full?

About Joomla Intro & Full Article Text Well, here is how this works: When creating an article, you have the option to insert a "Read More" in your article. What happens when you insert the Read ...
user avatar
  • 19.5k
9 votes
Accepted

Adding class to content 'Read More'

JLayoutHelper renders layouts originally from /layouts folder. First parameter is basically path to file. Just replace . with / in your mind :). So readmore.php is located at /layouts/joomla/...
user avatar
  • 3,208
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
6 votes
Accepted

Overriding Core Components Model Form XML

The more standard approach would probably be to use a plugin to catch the JForm object after the XML has been processed but before it has left the model to make your changes. An example of that ...
user avatar
5 votes
Accepted

How to move print/email to be inline with article title for blog view?

The way you did change the view for your article layout is half the way the appropriate. That's because you did a good job finding and editing the correct php file (the template file for the article ...
user avatar
  • 19.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
4 votes
Accepted

No way to make any changes on com_content category blog view - T3 Template

Okay - here it is. This site uses outdated Joomla and outdated T3v3 framework. T3v3 holds its overrides inside the T3 system plugin. I had long time to use a T3 template and I didn't see this right ...
user avatar
  • 19.5k
4 votes

Unable to hide subcategories in category blog layout

As @Sasi varna kumar showed with the screenshot in his answer, what you need to adjust is what articles should be shown in your blog layout. The settings you were adjusting are about showing ...
user avatar
  • 19.5k
4 votes

How to display user profile fields on an article?

You can't display dynamic data this way through an article by default, as the editors won't process php. However, to your rescue, there are plugins for this. You can install Regular Lab's Sourcerer ...
user avatar
  • 19.5k
4 votes

Adding Custom Fields to Article Component [Not in attribs field]

I've been using FieldsAttach for this sort of thing, for a few years, the the concepts are clean and eloquent. Brian Teeman explains it well from an integrator point of view in his talk at https://www....
user avatar
4 votes
Accepted

Article custom fields for one category

Right, been playing around and got it working. You're firstly going to need to add the parameter to select a category to your acf.xml file, like so: <config> <fields name="params"> ...
user avatar
  • 26.5k
3 votes
Accepted

Display Categories in Different Layouts

You can define a "smart" layout override. The new "smart" layout can choose the right layout according the current category. Understanding Output Overrides http://docs.joomla.org/...
user avatar
  • 7,415
3 votes
Accepted

Joomla! - Give Blog Categories Classes

To add a special "category" class to the articles of the featured articles menu item, you need to create a template override. Simply, copy the : default.php file, located in: components/com_content/...
user avatar
  • 19.5k
3 votes
Accepted

Unable to hide subcategories in category blog layout

Menu - Category Blog - Blog layout options Did you check this setting too ? in the menu options ?
user avatar
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 ...
user avatar
  • 13.3k
3 votes

Query database for articles, filtering by tag

You could Join the #__content table with the one of the #__contentitem_tag_map, which is the table that stores the many-to-many relationships among the various content items and the tags: $query->...
user avatar
  • 19.5k
3 votes

I need to change "Continue Reading " to "Read more" How to do?

You can override the "Read more" text in the admin section. In the "Extensions" menu, choose the Language menu item. Then choose "overrides" and click "new". You can search for the constant you ...
user avatar
  • 531
3 votes

Jmodel get articles of an attribute

In the most generic way, you can write a query to load the articles in a list. Or, you can work with the article model. You can check how it works in a content module or in content component: ...
user avatar
  • 7,415
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 ...
user avatar
  • 19.5k
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 ...
user avatar
  • 19.5k
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 ...
user avatar
  • 3,186
3 votes

Define a default intro image on article submissions

You would want to put this as a template override for com_content. Depending on whether you want it to appear on the category page or single article, the file would go /templates/TEMPLATE_NAME/html/...
user avatar
2 votes

Joomla! - Give Blog Categories Classes

There's a very easy way. In menu manager it's possible to assign custom css classes to a menu item. In Protostar this page class will be applied directly to the component container, in this case <...
user avatar
2 votes

Joomla! - Give Blog Categories Classes

You have a few options, you can duplicate your current template and rename it. Then you can alter the css and add extra classes as required, then assign this template to your desired category pages. ...
user avatar
  • 3,501
2 votes
Accepted

Crawler finding URLs with ids and catid

I would take a dump of the database, then use notepad++ or similar to search the sql file for "id=124:a-long-walk-to-freedom". If something was found it should be relatively easy to fix. This is ...
user avatar
  • 1,196
2 votes
Accepted

How can I turn off Front-End editing of articles without changing Content Permissions?

A Content Plugin can accomplish this. To prevent F/E editing for articles this works: public function onContentBeforeDisplay($context, &$article, $params, $page=0) { if( $context == '...
user avatar
  • 7,665

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