![]() |
Re: $cat.category..........desc?
You are trying to list more then one category - currect_category is just what it says and applies to currect category you are in and is only one category. This {foreach from=$current_category item=cat} will list individual properties under currect category and nothing else. Not sure yet where are you trying all of this and what variable are available. Try this
{foreach from=$categories key=c item=i} $i.category : $i.description {/foreach} but looking at your debug file attached here you still don't have description included in categories arrays. You need to edit php file and include it |
Re: $cat.category..........desc?
1 Attachment(s)
Quote:
Oh sorry about that, it's on the home_list.tpl which loads up in the home page. Ashley has the code working on his website. The debug file attached is when you go into the category which is where the variable was original taken from and is working. But it doesn't work in home_list.tpl Very sorry about that confusion. --- Update --- I tried changing the code you mentioned. What php did you think I should edit and include. When I changed the code I realized it was also pulling up another variable and displaying it. Which was Category. So that's neat, it can display the ID and the Category as well. But not the description? How do we make the array begin from Current_Category? |
Re: $cat.category..........desc?
This is part of the debug window
Code:
{$categories} Array (14) I assume you are trying to get this code to work Code:
<div class="bot_cat" align="left"> |
Re: $cat.category..........desc?
Quote:
Thank you so much for bringing that up, I didn't even know that the webmaster mode was giving me ALL the variables for each thing, that's very helpful But when you mean editing the PHP file did you mean --> func.category.php categories.php or the index or home_list? |
Re: $cat.category..........desc?
See earlier posts. categories.php probably but just read through the thread
|
Re: $cat.category..........desc?
Quote:
Hey, Ashley, if there's no problem with it, could you attach your categories.php to me? I'm going to compare it to the one that I have. And since I know the one you have is working, it would really help. |
Re: $cat.category..........desc?
Quote:
DER SUCCESS! THANK YOU CFL and Ashley! Yeah, so I went into the categories.php I don't know if this was modified but you were absolutely right. I cross referenced with what Ashley said, and figured that it had nothing to do with the home_list page. These were the exact lines that needed to be changed. Code:
if ($short_list) { with Code:
if ($short_list) { I'm sorry if I wasn't listening clearly in the beginning. Thank you once again guys! |
Re: $cat.category..........desc?
DERRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR!!!!! glad you got it!!
|
Re: $cat.category..........desc?
derrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr rrrrrrrrr
|
Re: $cat.category..........desc?
Keep on reading, you will get a lot more :)
|
All times are GMT -8. The time now is 09:04 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.