I had to move/copy a site onto a different TLD. The only thing I did not manage to get it to work was a module used on the homepage to display the latest news.
This is how the site should look: http://www.sednagroup.it/ ... and this is how it looks: http://www.sednagroup.ro/
That sidebar with the image and excerpt. I can't get it to work. Here's the module if it helps:
<?php // no direct access
defined('_JEXEC') or die('Restricted access'); ?>
<ul class="latestnews<?php echo $params->get('moduleclass_sfx'); ?>">
<?php foreach ($list as $item) : ?>
<li class="latestnews<?php echo $params->get('moduleclass_sfx'); ?>">
<a href="<?php echo $item->link; ?>" class="latestnews<?php echo $params->get('moduleclass_sfx'); ?>">
<?php echo $item->text; ?></a>
</li>
<?php endforeach; ?>
</ul>
How did you move or copy it?
The new site ( .ro
) is showing the expected output from the code, ie the title of the article wrapped in a link to the article — in fact in looks like the standard module that ships with Joomla! 1.5.x. (I'll assume 1.5 as you haven't specified your Joomla! version).
The original site ( .it
) is showing additional content, probably the content before the " Read More " (if one exists).
Which probably means that a template module override for the module has been created or someone has changed the core module files ( bad idea by the way ). I would start by:
template/yourtemplate/
directory mod_latestnews
compare the .it
modules/mod_latestnews/
with the same directory on .ro
Finally if you do find that core files have been hacked may I suggested that you actually duplicate the mod_latestnews
and rename it to something like mod_latestnews_extended
rather than hacking the core in your .ro
site.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.