อยากแก้เมนู ใน webform report

By boymaker

พอดี ทำระบบลงทะเบียน ด้วย webform แล้วกะจะใช้ webform report ทำระบบ admin แต่พอดีอยากทำส่วน view link กดลิงค์แล้ว เปิดหน้าใหม่ หรือ target =_blank ใครทำได้ช่วยหน่อยนะ

1 ความคิดเห็น

รูปภาพของ boymaker
By boymaker
4 weeks 18 hours ago

แก้เองได้ละ โดยแก้จาก  

แก้เองได้ละ โดยแก้จาก

 
          if (array_key_exists(-6, $fields)) {
            $data[-6] = array(l(t('view'), 'node/'. $row->nid . '/submission/' . $row->sid));
          }

มาเป็น
 
          if (array_key_exists(-6, $fields)) {
	    $options['attributes'] = array( 'class' => 'see-more', 'target' => '_blank' );
            $data[-6] = array(l(t('view'), 'node/'. $row->nid . '/submission/' . $row->sid , $options));
          }