Seeing as how no-one from FLEXIcontent seems bothered to actually help anyone with their problems I found a solution to this - at least for my purposes - which works.
I should point out before sharing that I knew/know the categories of my site in which people would be using the plugin. That was the foundation of my fix.
First step is to use some code in your Joomla template (just before the </head>) to ascertain the category to which the current page belongs:
Code:
<?php
$db = &JFactory::getDBO();
$option = JRequest::getCmd('option');
$view = JRequest::getCmd('view');
$temp = JRequest::getString('id');
$temp = explode(':', $temp);
$id = $temp[0];
$db->setQuery('SELECT cat.title FROM #__categories cat RIGHT JOIN #__content cont ON cat.id = cont.catid WHERE cont.id='.$id);
$category_title = $db->loadResult();
?>
Second step is copy out from your browser's View Source the code inserted by the minigallery plugin. In my case it looked like this, albeit wrapped in a script declaration:
Code:
window.addEvent('domready',function(){
var obj = {
wait: 4000,
effect: 'fade',
direction: 'right',
duration: 1000,
loop: true,
thumbnails: true,
backgroundSlider: true
}
show = new SlideShow('slideshowContainer','slideshowThumbnail',obj);
show.play();
});
Third step is to write an If/then in your Joomla template along the lines of "if the current category variable is a category in which the plugin is used, then write the necessary code". In my case:
Code:
<?php
if ($category_title == "YOUR_CATEGORY_NAME_HERE") { ?>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/plugins/flexicontent_fields/minigallery/minigallery.css" type="text/css" />
<script type="text/javascript" src="<?php echo $this->baseurl ?>/plugins/flexicontent_fields/minigallery/backgroundslider.js"></script>
<script type="text/javascript" src="<?php echo $this->baseurl ?>/plugins/flexicontent_fields/minigallery/slideshow.js"></script>
<script type="text/javascript">
window.addEvent('domready',function(){
var obj = {
wait: 4000,
effect: 'fade',
direction: 'right',
duration: 1000,
loop: true,
thumbnails: true,
backgroundSlider: true
}
show = new SlideShow('slideshowContainer','slideshowThumbnail',obj);
show.play();
});
</script>
<?php } ?>
Then, fourthly and finally, in the file minigallery.php (/plugins/flexicontent_fields/), comment out lines 253 to 276 inclusive - that's the part that writes the JavaScript to your Joomla template as long as there are
values - NOT as long as they are needed.
That part should start after "if ($values) {" and end with "$document->addScriptDeclaration($js);"
That ill-conceived logic played havoc with my category listings.
Hope that helps someone else and saves them the hair-pulling I had.