Guest
03 Dec 2015 17:52

Hi

i have 2 email field in the same types. The first for ask a question and the second to report an abuse. Each one with different settings. in article view i can see 2 buttons... but both of theme point at first one

if can click on the first button i get the first button popup. If i click on the second button i get the first button popup again.

here the code in my custom template. each button works like ID12

    <div class="dbottoni">  <?php echo $item->fields_by_id[12]->result; ?>   </div>
    <div class="dbottoni">  <?php echo $item->fields_by_id[7]->result; ?>    </div>

if i change the order in the template, each button works like ID7

    <div class="dbottoni">  <?php echo $item->fields_by_id[7]->result; ?>   </div>
    <div class="dbottoni">  <?php echo $item->fields_by_id[12]->result; ?>    </div>

how can i solve? thanks in advance marco

Last Modified: 07 Dec 2015


Jeff VIP
Total posts: 745
07 Dec 2015 06:43

Could you check if the output of both fields contain the same id or name?


Sergey
Total posts: 13,748
07 Dec 2015 10:46

I have fixed that. You can wait for new release or open components/com_cobalt/fields/email/tmpl/output/default.php and change $record->id to $this->id in lined 52 and 56.


directy VIP
Total posts: 51
07 Dec 2015 11:21

Ok! it works... thanks

marco


Jeff VIP
Total posts: 745
07 Dec 2015 22:25

Sergey I have fixed that. You can wait for new release or open components/com_cobalt/fields/email/tmpl/output/default.php and change $record-&gt;id to $this-&gt;id in lined 52 and 56.

That answered my question :-)

Powered by Cobalt