| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Showing more than 1 News story on the Home page | ||||
|
|
Thread Tools | Search this Thread |
#11
|
|||||||
|
|||||||
Re: Showing more than 1 News story on the Home page
Thanks for your help, but I still don't understand this exactly. I'm not an expert in smarty.
__________________
www.ChiMassager.com X-cart Version 4.44 www.SEOMarketing30days.com --> Download FREE SEO marketing Ebook (valued $50) Attract more visitors and sales with top 5 most powerful SEO marketing strategies. Converting visitors into buyers, not just traffic! |
|||||||
#12
|
|||||||||
|
|||||||||
Re: Showing more than 1 News story on the Home page
Chi, you are going to need to do this in php to assign the variable to smarty, then you can access it in your tpl.
Look at news_manage.php, and see how the variable is being assigned to smarty, and the queries that are being used. Then do a recursive search of your X-cart to see where the current news_message variable is being assigned, and then insert your example logic there. After that is complete you will have passed the variable to smarty, and you can then work with it in templates like you would any other. You are probably going to need a {section} or {foreach} loop to go through your newly assigned array and display each message in the template. Definitely not for the faint of heart. I can do this for you if you like, that's what I do. -Mike
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey XcartGuru X-cart Tutorials | X-cart 5 Tutorials Check out the responsive template for X-cart. |
|||||||||
|
#13
|
|||||||
|
|||||||
Re: Showing more than 1 News story on the Home page
thanks. Will give it a try
__________________
www.ChiMassager.com X-cart Version 4.44 www.SEOMarketing30days.com --> Download FREE SEO marketing Ebook (valued $50) Attract more visitors and sales with top 5 most powerful SEO marketing strategies. Converting visitors into buyers, not just traffic! |
|||||||
|
|||
X-Cart forums © 2001-2020
|