![]() |
Need help pulling subcategory descriptions into loop
Hi everyone, I am a newbie to these forums. Hope I follow etiquette correctly.
My issue: When I'm pulling in data from the database, the data for "Description" doesn't show up. Here is my code: Code:
{capture name=dialog} The "{$subcat.description|escape}" isn't working, though the database is populated in that field. Is there a special way to pull in that data that isn't obvious? The other ones ({$subcat.categoryid}, etc) pull data fine. I also tried a mod found here (http://forum.x-cart.com/showthread.php?t=3848), changing it a bit to make it a <ul>, not changing the data structure though. It doesn't pull any data at all. Here's the code to that mod: Code:
{capture name=dialog} Any ideas would be, of course, appreciated. Thanks |
Re: Need help pulling subcategory descriptions into loop
Moving to Template Editing as the Completed Custom Mods forum is for posting Completed Code Only.
|
Re: Need help pulling subcategory descriptions into loop
Thanks. Sorry about the miscategorization.
|
Re: Need help pulling subcategory descriptions into loop
Did you ever get anywhere with this?
|
Re: Need help pulling subcategory descriptions into loop
Just realized we need this as well - why is there a description for the sub categories if they don't show up??
|
Re: Need help pulling subcategory descriptions into loop
you probably have to add the description field to the query in the corresponding php file.
the data might be in the database, but if it's not selected it won't be in the array sent to the template. check the php file that calls this template, and look at the query that selects the subcategories, hth |
All times are GMT -8. The time now is 02:18 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.