My answer there was something like this:
1. create a custom FLEXIcontent template in template manager
2. edit category_items.php file of this new template to do load in an iframe the URL of item view of an item when read more link is clicked
e.g.
the read more link for blog template (to find and change) in the code
is like this:
Code:
<a href="<?php echo JRoute::_(FlexicontentHelperRoute::getItemRoute($items[$i]->slug, $items[$i]->categoryslug)); ?>" class="readon">
<?php
if ($items[$i]->params->get('readmore')) :
echo ' ' . $items[$i]->params->get('readmore');
else :
echo ' ' . JText::sprintf('FLEXI_READ_MORE', $items[$i]->title);
endif;
?>
this must be changed to (please add width,height etc to the iframe HTML TAG):
Code:
<iframe id="fcitem_frame_<?php echo $items[$i]->id;?>"></iframe>
<a src="#"
onclick="document.getElementById('fcitem_frame_<?php echo $items[$i]->id;?>').src="<?php echo JRoute::_(FlexicontentHelperRoute::getItemRoute($items[$i]->slug, $items[$i]->categoryslug).'&tmpl=component'); ?>" class="readon">
<?php
if ($items[$i]->params->get('readmore')) :
echo ' ' . $items[$i]->params->get('readmore');
else :
echo ' ' . JText::sprintf('FLEXI_READ_MORE', $items[$i]->title);
endif;
?>
-- As you can see the url must be slightly changed to load only the component area (thus you need to append variable '&tmpl=component')
-- Please make any corrections needed yourself i mean read online documentation about iframe, javascript, etc, also if you want the click to also hide the item you need a little more JS code above
-- NOTE that blog template ALSO includes code to open items in modal popup !! you can un-comment this code if you want (a future version will enable it via a new category parameter)
CODE to uncomment is:
Code:
/*$uniqueid = "read_more_fc_item_".$items[$i]->id;
$itemlnk = JRoute::_(FlexicontentHelperRoute::getItemRoute($items[$i]->slug, $items[$i]->categoryslug).'&tmpl=component');
echo '<script>document.write(\'<a href="'.$itemlnk.'" id="mb'.$uniqueid.'" class="mb" rel="width:\'+((MooTools.version>='1.2.4' ? window.getSize().x : window.getSize().size.x)-150)+\',height:\'+((MooTools.version>='1.2.4' ? window.getSize().y : window.getSize().size.y)-150)+\'">\')</script>';
*/
and :
Code:
<?php //echo '<script>document.write(\' <div class="multiBoxDesc mbox_img_url mb'.$uniqueid.'">'.$items[$i]->title.'</div>\')</script>'; ?>
Regards