When trying to speed things up I hard coded a drop down list of sub-categories below catid 32. However, as I am continually adding sub-cats here I have just put in the toplist to produce it again. It is exactly the one I used before v.5.0.21 and it worked perfectly before, however, now it doesn't generate the link correctly, merely putting in 0 for each sub-cat and thus throw a no page here error.
<form action="redirecttourl.php" > <select name="catid" onChange="form.submit();" > <option value="0">Search by Store</option> <!-- BEGIN TOPLIST 21 --> <CONFIG>categories,name;id,200,ascending,parent='13' ,,,0,0,0,0,0,0,,0</CONFIG> <option value="{CATID}">{CATNAME}</option> <!-- END TOPLIST 21 --> </select> </form>
[edit] I just noticed a semi-colon after name in the config. I regenerated a toplist code which produced the config: <CONFIG>categories,name,200,ascending,parent='13',,, 0,0,0,0,0,0,,0</CONFIG> but that still doesn't work.
It seems that {CATID} just returns 0 I have tried without the filter and without a link - so just displaying all the catid and catname and all it returns for the catid is 0
Comments on category toplist
Expert
Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 391
Total Comments: 1303
When trying to speed things up I hard coded a drop down list of sub-categories below catid 32. However, as I am continually adding sub-cats here I have just put in the toplist to produce it again. It is exactly the one I used before v.5.0.21 and it worked perfectly before, however, now it doesn't generate the link correctly, merely putting in 0 for each sub-cat and thus throw a no page here error.
<form action="redirecttourl.php" >
<select name="catid" onChange="form.submit();" >
<option value="0">Search by Store</option>
<!-- BEGIN TOPLIST 21 -->
<CONFIG>categories,name;id,200,ascending,parent='13' ,,,0,0,0,0,0,0,,0</CONFIG>
<option value="{CATID}">{CATNAME}</option>
<!-- END TOPLIST 21 -->
</select>
</form>
[edit] I just noticed a semi-colon after name in the config. I regenerated a toplist code which produced the config: <CONFIG>categories,name,200,ascending,parent='13',,, 0,0,0,0,0,0,,0</CONFIG>
but that still doesn't work.
Forum Regular
Usergroup: Customer
Joined: Apr 03, 2007
Location: NY & PA
Total Topics: 94
Total Comments: 339
Hey babrees,
Try this -
<CONFIG>categories,name,200,ascending,parent=13, ,,0,0,0,0,0,0,,0</CONFIG>
Expert
Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 391
Total Comments: 1303
Thanks Hai, but that didn't work either!!
It seems that {CATID} just returns 0 I have tried without the filter and without a link - so just displaying all the catid and catname and all it returns for the catid is 0
Forum Regular
Usergroup: Customer
Joined: Apr 03, 2007
Location: NY & PA
Total Topics: 94
Total Comments: 339
I was just coming back to post the exact same thing. I am getting the same as you are - a list of subcategories, but all return a catid value of 0.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
I see. Upload this.
Attached Files:
Expert
Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 391
Total Comments: 1303
That did it - thanks Paul