Xuups
Get an account!     Login

Utilities

Main menu

Who's Online

5 user(s) are online (1 user(s) are browsing Hacks and Tips)

Members: 0
Guests: 5

more...

Get Xoops

Support Xuups Project

Modules :  Hide Read More link in smartsection spot block
Tags: hack   block   smartsection  
 
Hello,

Sometimes we need to display the summary of a smartsection article in a spot block without displaying the "Read More" link. This can be handy when the body section of the article is empty.

To remove the "Read more" link on articles without body we can do this:

Edit smartsection/templates/blocks/smartsection_itesm_spot.html
and replace:
<div style="text-align: left;"><a href="<{$item.itemurl}>">(<{$block.lang_readmore}>)</a></div>


With:
<{if $item.body != ''}>    
            <
div style="text-align: left;"><a href="<{$item.itemurl}>">(<{$block.lang_readmore}>)</a></div>
             <{/if}>


Now if you don't write anything inside body textarea, "read more" link will not appear.


www.arabxoops.com

Author
Mowaffaq
Author Mowaffaq
News by the same authorMore stories
Author rssAuthor rss
StatisticsStatistics
 
Story
Date 2008/12/5 18:59:47
Views 2520
Favorites 0
Send this Story to a FriendSend
Printer Friendly PagePrint
Create a PDF from the articleCreate a pdf
 
Bookmarks
         
         
         
         
         
     
Recents
jQuery's Quick Comment Hack for News Module
Hide Read More link in smartsection spot block
Random
jQuery's Quick Comment Hack for News Module
Hide Read More link in smartsection spot block
The comments are owned by the poster. We aren't responsible for their content.
Poster Thread
 

Login

Username:

Password:

Remember me



Lost Password?

Register now!

Ajax Search


Advanced Search

Sub menu

Last comments