leftjoin inside select options (editor)

leftjoin inside select options (editor)

marat.s.11marat.s.11 Posts: 2Questions: 1Answers: 1
edited August 2020 in Free community support

Hello everyone!
Here is a code

Field::inst('library_4_topic.chapter_id', 'chapter_id')
->options( Options::inst()
->table( 'library_3_chapter' )
->value( 'id' )
->label( 'id' )
->order('id ASC')
),

the question is: is it possible to make a join list inside options? because this code shows dropdown list but only with number whereas the description for each option is in another table and depends on the translation. so the question how can do the leftjoin to grab text value for each label(id) because there is no text value inside library_3_chapter. Text values are inside another table.

Also how to use where clause at the same time.

Thank you in advance! Hope i didnt complicate the explanation.

This question has an accepted answers - jump to answer

Answers

This discussion has been closed.