Xuups
Get an account!     Login

Utilities

Main menu

Who's Online

6 user(s) are online (4 user(s) are browsing Forum)

Members: 0
Guests: 6

more...

Get Xoops

Support Xuups Project


Browsing this Thread:   1 Anonymous Users





Hide Read More link in smartsection spot block
Moderator
Joined:
2008/6/2 19:00
Group:
Webmasters
Registered Users
Posts: 48
Offline
Hello,

Sometimes you need to display summary of smartsection article in spot block without dispaly "Read More" link to the body of article which already is empty.

edit smartsection/templates/blocks/smartsection_itesm_spot.html
then 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 put anything inside body textarea, read more link will not appear.




Posted on: 2008/12/4 16:30
Transfer the post to other applications Transfer


Re: Hide Read More link in smartsection spot block
Moderator
Joined:
2008/4/7 0:30
From Portugal
Group:
Webmasters
Registered Users
Posts: 303
Offline
Good tip Mowaffak! Can you post it in the publisher module (Hacks and Tips)?
http://www.xuups.com/modules/publisher/submit.php


Posted on: 2008/12/4 18:57
_________________
TDM
Transfer the post to other applications Transfer


Re: Hide Read More link in smartsection spot block
Moderator
Joined:
2008/6/2 19:00
Group:
Webmasters
Registered Users
Posts: 48
Offline
thank you bro

I submit it as draft, please modify it with your good english

Posted on: 2008/12/4 20:16
_________________
www.arabxoops.com
Transfer the post to other applications Transfer


Re: Hide Read More link in smartsection spot block
Guest_
I know that you are familiar with htaccess rewriting. That's why i am seeking your help.

Posted on: 2014/1/8 9:23
Transfer the post to other applications Transfer






You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.

[Advanced Search]


 

Login

Username:

Password:

Remember me



Lost Password?

Register now!

Ajax Search


Advanced Search

Newest Posts