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)
-   -   Showing more than 1 News story on the Home page (https://forum.x-cart.com/showthread.php?t=57642)

chiactivate 12-20-2011 05:03 PM

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.

totaltec 12-20-2011 06:28 PM

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

chiactivate 12-22-2011 11:58 AM

Re: Showing more than 1 News story on the Home page
 
thanks. Will give it a try


All times are GMT -8. The time now is 12:36 PM.

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