Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Showing more than 1 News story on the Home page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 12-20-2011, 05:03 PM
 
chiactivate chiactivate is offline
 

Senior Member
  
Join Date: Feb 2007
Location: Canada
Posts: 148
 

Default 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!
Reply With Quote
  #12  
Old 12-20-2011, 06:28 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default 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.
Reply With Quote

The following user thanks totaltec for this useful post:
chiactivate (12-22-2011)
  #13  
Old 12-22-2011, 11:58 AM
 
chiactivate chiactivate is offline
 

Senior Member
  
Join Date: Feb 2007
Location: Canada
Posts: 148
 

Default 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!
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 04:40 AM.

   

 
X-Cart forums © 2001-2020