Catalog - access Data from two data table

Define multiple catalogs, each with their own custom field types

Moderators: thyon, xtra

Catalog - access Data from two data table

Postby saakshi » Thu Mar 04, 2010 10:21 am

I am trying to create a property listing using catalog ext module. I have two type of catalog first for residential and second for commercial. Now i want show monthly special property from both residential and commercial. How i manage this requirement of my project?
Last edited by saakshi on Thu Mar 04, 2010 10:52 am, edited 2 times in total.
saakshi
User
 
Posts: 24
Joined: Fri Dec 18, 2009 6:48 am

Re: Catalog - accss Data from two data table

Postby scare » Thu Mar 04, 2010 10:39 am

I believe the easiest solution would be to create mysql view using union to include properties from both tables and then use listing module to show the results.
S.C.A.R.E
User avatar
scare
User
 
Posts: 61
Joined: Fri Jun 19, 2009 7:19 pm
Location: Kosice, Slovakia

Re: Catalog - accss Data from two data table

Postby saakshi » Thu Mar 04, 2010 10:51 am

Any other solution ?
saakshi
User
 
Posts: 24
Joined: Fri Dec 18, 2009 6:48 am

Re: Catalog - access Data from two data table

Postby tosca » Thu Mar 04, 2010 11:39 am

I'd rather have created a unique catalog, with a property type field to display only one type (residential or commercial) on the "standard" pages, and keep the opportunity to display both wherever I want.
tosca
User
 
Posts: 46
Joined: Sat Jun 20, 2009 9:32 pm

Re: Catalog - access Data from two data table

Postby thyon » Mon Mar 29, 2010 10:56 am

You have done this correctly -- Create only 1 catalog but have a drop-down that chooses RESIDENTIAL or COMMERCIAL. Then you have a single catalog to run queries against. I prefer to have single catalogs than multiples.
User avatar
thyon
Developer
 
Posts: 722
Joined: Wed Jun 10, 2009 10:02 pm
Location: Cape Town, South Africa


Return to catalog

Who is online

Users browsing this forum: Yahoo [Bot]