Skip to main content
4 votes

Ajax error when attempting component updates

I recently encountered this XMLHttpRequest error myself. The root of the problem caused 3 different issues. SOLUTION: In my case, the problem was caused by an incorrect setting for the public $...
TryHarder's user avatar
  • 2,340
4 votes
Accepted

Can't insert intro/full article image

You have either some files corrupted on update, or some outdated server software. Overwrite your web-site with Joomla 3.6.0 full package to be sure it's no a file corruption (extract the Joomla full ...
AHeavyObject's user avatar
4 votes
Accepted

get intro-image from article?

When developing, error reporting should be enabled. You'll see this: Notice: Undefined property: Joomla\CMS\Table\Content::$item Access the images like this: $images = $article->images;
Sharky's user avatar
  • 11.7k
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/...
YellowWebMonkey's user avatar
3 votes
Accepted

Latest articles structured data markup

I would have preferred to just suggest some touch ups to your snippet, but there is too much for me to address in your answer as a comment and I'd rather explain fully. Instead, I'll post this new ...
mickmackusa's user avatar
  • 4,826
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

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 version assets/images on the entire CMS?

In Joomla 3 for js and css assets you can add 'version'=>'auto' to the attributes of addStyleSheet and addScript: $document->addStyleSheet("...demo.css", array('version'=>'auto')); ...
Robbie Jackson's user avatar
2 votes

Get Category intro image in the index.php

Knowing a tiny bit about the joomla request-reponse lifecycle will help here. Joomla runs in the following order: 1. bootstrap the application 2. router 3. component (including your own layout ...
jamesgarrett's user avatar
  • 3,329
2 votes
Accepted

Enable 'Title' attribute for images with TinyMCE Editor

The current version of TinyMCE (v4.4.3) now seems to have this option enabled (see below).
Neil Robertson's user avatar
2 votes

Images appear in backend but not in frontend

Two possibilities I can think of: Installing the extension has changed the base tag. View the source and make sure this is still pointing to the site root, so that relative links to images/ are ...
RichardB's user avatar
  • 3,092
2 votes

Why is there no way to show intro image in single article page?

I don't agree. I never use the same image as intro- and full-text image. If you want to do that, it's very simple to copy/paste from intro- to full-text image, when have picked the into. And if you ...
KlintWeb's user avatar
  • 101
2 votes

Ajax error when attempting component updates

Typically this happens when you have an .htaccess rule (possibly originally inserted for additional security) blocking access to the restore.php file. We have written about this here. Having said ...
itoctopus's user avatar
  • 3,236
2 votes

Ajax error when attempting component updates

Update I had the issue again today, renaming the htaccess only without disabling Admin Tools and then updating worked for me. So it seems to have to do with the rules, set in the htaccess by Admin ...
Dennis Heiden's user avatar
2 votes
Accepted

Additional "Images And Links" fields - corect way

I would suggest using Joomla custom fields instead. The media field should work: https://docs.joomla.org/J3.x:Adding_custom_fields/Media_Field
YellowWebMonkey's user avatar
2 votes
Accepted

Programmatically set article image

I don't see set() in the JTable docs. You also need to remember to re-encode the full column value before storing. The following is an untested snippet. $db = JFactory::getDbo(); $query = $db->...
mickmackusa's user avatar
  • 4,826
2 votes
Accepted

Mod_Feed removing the strip image function what do the True & False do?

The arguments for JHtmlString::truncate() are: string $text The text to truncate. integer $length The maximum length of the text. boolean $noSplit Don't split a word if that is where ...
Sharky's user avatar
  • 11.7k
2 votes

Photo size validation

I think I have a good idea where the error is. You are using $this->getFileName() to get the files original name, then you mutate the filename using normalize(). At this point you have a new file ...
mickmackusa's user avatar
  • 4,826
2 votes
Accepted

How can I add height and width attributes to an image in a menu?

Your attributes are added only when image class is set. If you want dimensions on all images, move the code outside of $item->menu_image_css check: if ($item->menu_image) { $image_attributes[...
Sharky's user avatar
  • 11.7k
2 votes
Accepted

Is there a way to use an SVG image in Cassiopeia

I don't know if you figure it out yet. Hopefully you did, But just in case for other to want the answer. In Joomla 4 you have tod, in the media manager add "svg" to supported file extensions ...
mralexandrelise's user avatar
2 votes

override for /layouts/joomla/content/full_image.php // alt attributes for images in Joomla 4

I found a way to solve it: if(empty($images->image_fulltext_alt) && empty($images->image_fulltext_alt_empty)) { $alt = $item->title; } else { $alt = $images->image_fulltext_alt; } ...
mib1980's user avatar
  • 81
2 votes

Add intro or full image to a component/module Joomla 4

You can get the equivalent of what you had in Joomla 3 by going into System / Templates then clicking on Cassiopeia (or whatever site template you're using) Details and Files, and then creating a ...
Robbie Jackson's user avatar
2 votes

Add title to image tag

It's not clear what the screenshot is supposed to show and what is the context. Where do you add those images? When editing a Joomla article, you can add images through the Images tab, and there you ...
FFrewin's user avatar
  • 19.8k
1 vote

Latest articles structured data markup

The solution to my question. I think is valid: <?php $images = json_decode($item->images); ?> <span itemprop="image" itemscope itemtype="https://schema.org/ImageObject"> <link ...
johnl's user avatar
  • 85
1 vote

Listening for a "image upload" event

Does such an event exist? Core com_media component uses the same events as other core components: onContentBeforeSave, onContentAfterSave, onContentBeforeDelete and onContentAfterDelete. You'll need ...
Sharky's user avatar
  • 11.7k
1 vote

Front-end custom Joomla module to upload an image and save it in the Joomla images folder

After some more googling and debugging, I figured it out. The trick was that I'm using a JForm and the file field can be accessed slightly differently. First you need to access the fields tag and then ...
wanderlusted's user avatar
1 vote

Create a new folder in 'images' when installing module

Thank you to @Lodder for providing a solution, very much appreciated. @Lodder suggested my class name may be incorrect and said to try 'replacing class mod_CarouselInstallerScript with class ...
JJBW's user avatar
  • 43
1 vote

Why is there no way to show intro image in single article page?

Intro-Image can be a Part of Full-Image: as there is a smaller Size for Intro-Image in for Example a Blog-View i prefer to show a Part of used Full-Image.
franz.wohlkoenig's user avatar
1 vote

Adding a title attribute on the image tag - How to customize article's full image layout?

The file you are looking for is located in: [ROOT_DIRECTORY]/layouts/joomla/content/full_image.php To create an override for it, copy it and place it inside: [ROOT_DIRECTORY]/templates/...
FFrewin's user avatar
  • 19.8k
1 vote

Adding pictures to virtuemart product

Add external hosted images to product: products -> product images -> "used url" & "used thumb url" For importing images from Imgur to your Virtuemart webspace you need to write an extension ...
Dennis Heiden's user avatar

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