X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Show News Title instead of description on the Home Page (https://forum.x-cart.com/showthread.php?t=49674)

matallen 09-14-2009 08:58 AM

Show News Title instead of description on the Home Page
 
I'd like to only show the Title of a news item on the homepage rather than the description. If possible it might be nice to show a small snippet of of the description as well - Can anyone point me in the right direction on this? Thanks so much!

cflsystems 09-14-2009 09:40 AM

Re: Show News Title instead of description on the Home Page
 
Look at today_news.tpl - {$news_message.body|truncate:150} the number represents how many character to show from the news itself. Try {$news_message.subject} for title

matallen 09-15-2009 04:31 AM

Re: Show News Title instead of description on the Home Page
 
Thanks so much! That worked great! :D/

RSprinkel 03-10-2010 05:45 AM

Re: Show News Title instead of description on the Home Page
 
I have been trying to get this working on my site and this method is not working. Is there anything else I Can try?

Thanks much in advance.

matallen 03-11-2010 04:06 AM

Re: Show News Title instead of description on the Home Page
 
Quote:

Originally Posted by RSprinkel
I have been trying to get this working on my site and this method is not working. Is there anything else I Can try?

Thanks much in advance.


I see that you are using v 4.3.x . . . it appears they have changed the template employed on the home page to display news.

They are now using: skin1/customer/news.tpl

Edit line 25 to look like this:

Code:

{$news_message.body|truncate:150}<br /><br />


All times are GMT -8. The time now is 07:10 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.