| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Show News Title instead of description on the Home Page | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
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!
__________________
Matt Allen Xcart Gold v4.2.2 LINUX - Apache PHP 5.2.9 / MySQL 5.0.81-community |
|||||||
#2
|
|||||||||
|
|||||||||
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
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
#3
|
|||||||
|
|||||||
Re: Show News Title instead of description on the Home Page
Thanks so much! That worked great!
__________________
Matt Allen Xcart Gold v4.2.2 LINUX - Apache PHP 5.2.9 / MySQL 5.0.81-community |
|||||||
#4
|
|||||||
|
|||||||
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.
__________________
XCart Gold Version 4.3.1 |
|||||||
#5
|
|||||||
|
|||||||
Re: Show News Title instead of description on the Home Page
Quote:
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:
__________________
Matt Allen Xcart Gold v4.2.2 LINUX - Apache PHP 5.2.9 / MySQL 5.0.81-community |
|||||||
|
|||
X-Cart forums © 2001-2020
|