Hi All,
I've written a change to the joomla default module 'Aritcles Category' by editing the default.php file for it (/modules/mod_articles_category/tmpl/default.php) to get it to display the intro image for the article floating to the right of the text and it works very nicely.
This image is hidden for guests.
Please log in or register to see it.
However, as I have edited the file directly I know it will probably get overwriten in a future joomla update so I wanted to place it with in the template as an override but I don't know where to stick /mod_articles_category/tmpl/default.php within the template folder for it to work. Please can someone tell me where to 'stick it' (politely).
I'm using:
Joomla: 3.6.5
Template: RT Photon
Gantry: 5
Thanks in advance,
Aran
p.s if anyone else would like to make the change themselves I simply edited the show_introtext section of the file to look like this:
<?php if ($params->get('show_introtext')) : ?>
<p class="mod-articles-category-introtext">
<?php $images = json_decode($item->images); ?>
<?php $imgfloat = (empty($images->float_intro)) ? $params->get('float_intro') : $images->float_intro; ?>
<a href="<?php echo $item->link; ?>"><img width="200" height="41" src="<?php echo htmlspecialchars($images->image_intro); ?>" alt="<?php echo htmlspecialchars($images->image_intro_alt); ?>" class="pull-right item-image" /></a>
<?php echo $item->displayIntrotext; ?>
</p>
<?php endif; ?>