[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Generated Category List
****** message to minivend-users from "Russ" <russ@khouse.org> ******
Hello,
Starting with this wonderful information
<!--snip-->
[loop arg="[search arg='sf=4/tf=4/rf=4/ra=yes/un=yes']"]
<UL>
<LI>[page href="category" arg='[loop-code]'][loop-code][/page]
</LI>
</UL>
[/loop]
<!--endsnip-->
I made up this:
<!--snip-->
[loop arg="[search arg='sf=13/tf=13/rf=13/ra=yes/un=yes']"]
<UL>
<LI>
[tag scan/ml=10/em=yes/sp=booksresults/sf=13][loop-code][/tag]
</LI>
</UL>
[/loop]
<!--endsnip-->
This works and sets up links to all products in these categories.
I have 4 Category fields however, with this kindof idea. Category 1 has
subcategories found in the Category 2 field, which has subcategories in 3
and again in 4.
<!--Visual Example-->
Category 1
|-----------Category2
|---------------------Category3
|-------------------------------Category4
|-------------------------------Category4
|---------------------Category3
|-------------------------------Category4
|-------------------------------Category4
|-------------------------------Category4
|---------------------Category3
|-----------Category2
|---------------------Category3
Category 1
|-----------Category2
|---------------------Category3
|-------------------------------Category4
|-------------------------------Category4
|---------------------Category3
|-----------Category2
<!--End Visual Example-->
One way to get a one click search that has both Category 1 and Category 2 in
mind is this.
[page
scan/ml=10/em=yes/sp=booksresults/co=yes/sf=13/se=Category1Value/sf=14/se=Ca
tegory2Value]SOME TEXT TO DESCRIBE IT[/page]
What I'd like to do is some sort of nested lookup to produce links to
categories and subcategories and sub-subcategories.
I've tried some of the nested loop ideas in the Helps but couldn't get
[loop-code] or [loop-code-a] to evaluate within an .../se=[loop-code]...
tag.
Any ideas?
Thanks,
Russ
Thomas,
I just recently installed minivend and am in the process of setting up a
store catalog. I also needed a list of categories (as links to a
subcategory page) After spending 8-10 hours trying everything including
reading the manual :) I came up with the following which works good for my
ASCII database of 1,500 products:
[loop arg="[search arg='sf=4/tf=4/rf=4/ra=yes/un=yes']"]
<UL>
<LI>[page href="category" arg='[loop-code]'][loop-code][/page]
</LI>
</UL>
[/loop]
The above code assumes that your catagory is column #4 (columns start with
0) you may need to change all of the 4's with your column number.
The above is searching field 4, sorting field 4, returning only field 4,
returning all results, and only giving me unique results.
You'll notice that in setting up the [page] link I had to use [loop-code]
to display the categories. That is because I told the search to only return
1 field and so that field is now the "code"
Hope this helps
Kyle
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list