Re: Module vs Plugin and target _blank

Home \ forums/reply \ Re: Module vs Plugin and target _blank
#1006
jondiego
Participant

Yes you can make the files open in a new window. Look in the file “helper.php” around line 246 and line 193.

Change

$html .= '<a href="'.JURI::base().$folder.'/'.$rows[$i]['name'].'.'.$rows[$i]['ext'].'">';

to

$html .= '<a target="_blank" href="'.JURI::base().$folder.'/'.$rows[$i]['name'].'.'.$rows[$i]['ext'].'">';

Look for anything with “href” in the text. This tells you it’s a link. Then just add the “target=”_blank”

Hope this helps!