Simple question about 2 linked editor

3 posts by 2 authors in: Forums > CMS Builder
Last Post: March 10, 2009   (RSS)

Hello, i have an editor for products
A product is define as below

- Name of the product
- Description text
- Category (this one is "linked" with another editor defined below)


I have a second editor for "Category product" define as below

- Category Name
- Category Logo


In my first editor for "category" i want to populate the list in order to show "categorie name" recorded in my second editor.
But i also need the field category logo to display in my page online.

I want to be able my product list display as this


Category Name (1)
+ Category Logo (1)

- Product 1
- Product 2
- Product 3....

--------------------

Category Name (2)
+ Category Logo (2)

- Product 4
- Product 5
- Product 6....


I know how to do this only with Category name my problem is to use another field in the table "category product)

I hope it's clear enough.
I see some SELECT num, CONCAT_WS but don't really understand how to use it my case.

Thanks a lot

Re: [Dave] Simple question about 2 linked editor

Hello Dave, i think i will have 20 categories max.
To use your method, may i have to configure my field category (list) with some get option from mysql query?

what should be the php header code in your case should i generate code for both listing category & product table?