In this tutorial we guide you how to add frequent use values  as a drop down menu for Target MIME Type in Advanced Tab of Advanced Link .

drop-down_menu_for_Target_MIME_Type

File location: %joomla_root%\plugins\editors\jce\tiny_mce\plugins\advlink

File Name: advlink.php

Editor: in this tutorial we use notepad++ to edit advlink.php file.

From line 147 to 150 we can see the following code:

147 <tr>
148
<td><label
for="type" class="hastip" title="<?php echo JText::_('MIMETYPE DESC'); ?>">
<
?php echo JText::_('MIMETYPE'); ?></label></td>
149 <td><input type="text" id="type" value="" /></td>
150 </tr>

We modifiy advink.php as follow:

147 <tr>
148
<td><label for="type" class="hastip" title="<?php echo JText::_('MIMETYPE DESC'); ?>">
<?php
echo JText::_('MIMETYPE'); ?></label></td>
149 <td>
150 <select id="rel" class="mceEditableSelect">
151 <option value=""><?php echo JText::_('NOT SET');?></option>
152 <option value="text/html" style="color: #00F; font-weight: bold" title="text/html">Internal Site</option>
153 <option value="text/xml">text/xml</option>
154 <option value="ajax">ajax</option>
155 <option value="iframe" style="color: #00F; font-weight: bold" title="iframe">External Site</option>
155 <option value="flash" style="color: #00F; font-weight: bold" title="flash">Flash FLV Youtube</option>
157 <option value="application/x-shockwave-flash">application/x-shockwave-flash</option>
158 <option value="quicktime" style="color: #00F; font-weight: bold" title="quicktime">Quicktime</option>
159 <option value="video/quicktime">video/quicktime</option>
160 <option value="windowsmedia" style="color: #00F; font-weight: bold" title="windowsmedia">Window Media Player</option>
161 <option value="mplayer">mplayer</option>
162 <option value="application/x-mplayer2">application/x-mplayer2</option>
163 <option value="real" style="color: #00F; font-weight: bold" title="real">Real Audio/Video</option>
164 <option value="realaudio">realaudio</option>
165 <option value="audio/x-pn-realaudio-plugin">audio/x-pn-realaudio-plugin</option>
166 <option value="divx" style="color: #00F; font-weight: bold" title="divx">divx</option>
167 <option value="video/divx">video/divx</option>
168 <option value="director" style="color: #00F; font-weight: bold" title="director"> Shockwave/Director</option>
169 <option value="application/x-director">application/x-director</option>
170 </select>
171 </td>
Go to top