Universal Module showing readmore for all articles

More
4 years 11 months ago #77901 by krae
Hello,

I have a universal module displaying one random article at a time for a specific category. Not all articles have a readmore in the Joomla core description field, but every article in the module is showing a readmore button.

Is it possible to only show the button for articles that actually have a readmore?

Thank you

Please Log in or Create an account to join the conversation.

More
4 years 10 months ago - 4 years 10 months ago #77905 by ggppdk
Hello


the module will only show a part of the article description,
thus not all article of article description is shown
-- the parameter "read more" is not related to read more break inside the article's text

that is why the parameter "read more" shows this link
so ... the parameter could have been called "Add link to article at bottom"

For your case can disable the article read more in the parameters
then users will click the item title (and/or item image if image is also set to be linked) to open the article

Furthermore you can duplicate the layout (see instructions inside module configuration of duplicating a layout) and customize it


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...
Last edit: 4 years 10 months ago by ggppdk.

Please Log in or Create an account to join the conversation.

More
4 years 10 months ago #77924 by krae
Thank you - I was able to hide the readmore and create a custom layout that would only show the readmore link when there was one within the article body.

In case it's useful to anyone in the future, this ios the code that was changed in the readmore section:

<?php if ($mod_readmore) : ?>

<?php
$temp_array = (array) $item;
$fulltext = $temp_array->fulltext;

$fulltextLength = strlen($fulltext);

if ($fulltextLength > 0) { ?>
<div class="fc_block">
<div class="fcitem_readon">
<a href="<?php echo $item->link; ?>" class="readon">
<span><?php echo JText::_('FLEXI_MOD_READ_MORE'); ?></span>
</a>
</div>
</div>
<?php
}else{
}
?>

<?php endif; ?>

<div class="clearfix"></div>

</div> <!-- EOF item's content -->
<?php endif; ?>

Please Log in or Create an account to join the conversation.

More
4 years 10 months ago #77925 by micker
oh cool thanks !

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.417 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline