I am trying to assign a related product url to each product so-
I am trying to fetch a product url in the a href tag using a drop down in admin-
like below fetches a id
<?= Products::select('products_id', ['id' => 'fProduct'])->require() ?>
Can you pls help me figure out how to fetch the url using this type of select function?
I am trying to fetch a URL using the above in place of ENTRY ANSWER so it will automatically fetch the URL in each language
-
Code: Select all
<div class="form-group row">
<label for="fProduct" class="col-form-label col-sm-3 text-left text-sm-right"><?= ENTRY_PRODUCT ?></label>
<div class="col-sm-9"><?= Products::select('products_id', ['id' => 'fProduct'])->require() ?></div>
</div>
<div class="form-group row">
<label class="col-form-label col-sm-3 text-left text-sm-right"><?= ENTRY_QUESTION ?></label>
<div class="col-sm-9"><?= $question_input_string ?></div>
</div>
<div class="form-group row">
<label class="col-form-label col-sm-3 text-left text-sm-right"><?= ENTRY_ANSWER ?></label>
<div class="col-sm-9"><?= $answer_input_string ?></div>
</div>Thank you in advance;
Very Warm Regds./
radhavallabh
radhavallabh