Help: Photos of a listing

Questions and answers about change of functions, design, hosting etc.

Moderators: Koduc, Xpycm

Forum rules
Pay attention! Forum is not a means for guaranteed support of clients and users. An answer as well as a quick answer is not supposed on the forum. We post messages as soon as possible.

The message limit on the forum is 3 messages per day.
If you want to say "thank you" then use the function "Give good reputation point", which is a green icon "plus" under the nickname of the person, who answered the message.

Help: Photos of a listing

Postby abrahannunez » 02 Nov 2017, 23:22

Hi guys,

Does anybody can help me, I need to query all the photos of a listing to make a second gallery on my property view page.

Thanks in advance.
abrahannunez
Stranger
 
Posts: 3
Joined: 02 Nov 2017, 23:14
Reputation point: 0

Re: Help: Photos of a listing

Postby Xpycm » 03 Nov 2017, 08:59

Hello.

Code: Select all
SELECT idfile_namefile_name_modified FROM {{images}} WHERE id_object MY_ID_OBJECT ORDER BY sorter


or in model:
Code: Select all
foreach($model->images as $image) {
... do 
something
Dropbox
Open Real Estate CMS: FAQ | FAQ 2 | FAQ 3
Image
Xpycm
Web Developer
Web Developer
 
Posts: 278
Joined: 30 Dec 2011, 11:06
Reputation point: 2

Re: Help: Photos of a listing

Postby abrahannunez » 03 Nov 2017, 22:28

Thanks for your help, it's works.
abrahannunez
Stranger
 
Posts: 3
Joined: 02 Nov 2017, 23:14
Reputation point: 0


Return to Questions and help for changes

Who is online

Users browsing this forum: No registered users and 4 guests

cron