After installing the contextual deep links mod, we will now modify few admin template files to allow the preview/editing of contextual links from the admin panel.

Files to edit:
admin/dir_approve_links.php,
templates/Core/admin/link_details.tpl,
templates/Core/admin/dir_links_edit.tpl.

First in admin/dir_approve_links.php
FIND:

$columns = array ('TITLE' => _L('Title'),
'URL' => _L('URL'),
'DESCRIPTION' => _L('Description'),
'CATEGORY' => _L('Category'),
'RECPR_URL' => _L('Recpr. Link URL'),
'PAGERANK' => _L('Pagerank'),
'DATE_ADDED' => _L('Date Added'));

REPLACE BY:

$columns = array ('TITLE' => _L('Title') ,
'URL' => _L('URL'), 'TITLE1' => _L('Title1'),
'URL1' => _L('URL1') , 'TITLE2' => _L('Title2'),
'URL2' => _L('URL2') , 'TITLE3' => _L('Title3'),
'URL3' => _L('URL3') ,
'DESCRIPTION1' => _L('DESCRIPTION1'),
'DESCRIPTION2' => _L('DESCRIPTION2') ,
'DESCRIPTION3' => _L('DESCRIPTION3'),
'DESCRIPTION4' => _L('DESCRIPTION4'),
'DESCRIPTION' => _L('Description'),
'CATEGORY' => _L('Category'),
'RECPR_URL' => _L('Recpr. Link URL'),
'PAGERANK' => _L('Pagerank'),
'DATE_ADDED' => _L('Date Added'));

Second, in templates/admin/link_details.tpl
FIND, around line 34:

<tr class="{cycle values="odd,even"}">
<td class="label">Description:</td>
<td class="smallDesc">{$linkInfo.DESCRIPTION|escape|trim}</td>
</tr>

BELOW it, ADD:

<tr class="{cycle values="odd,even"}">
<td class="label">Title1:</td>
<td class="smallDesc">{$linkInfo.TITLE1|escape|trim}
</td>
</tr>

<tr class="{cycle values="odd,even"}">
<td class="label">URL1:</td>
<td class="smallDesc">{$linkInfo.URL1|escape|trim}
</td>
</tr>

<tr class="{cycle values="odd,even"}">
<td class="label">Title2:</td>
<td class="smallDesc">{$linkInfo.TITLE2|escape|trim}
</td>
</tr>

<tr class="{cycle values="odd,even"}">
<td class="label">URL2:</td>
<td class="smallDesc">{$linkInfo.URL2|escape|trim}
</td>
</tr>

<tr class="{cycle values="odd,even"}">
<td class="label">Title3:</td>
<td class="smallDesc">{$linkInfo.TITLE3|escape|trim}
</td>
</tr>

<tr class="{cycle values="odd,even"}">
<td class="label">URL3:</td>
<td class="smallDesc">{$linkInfo.URL3|escape|trim}
</td>
</tr>

<tr class="{cycle values="odd,even"}">
<td class="label">Description 1:</td>
<td class="smallDesc">{$linkInfo.DESCRIPTION1|escape|trim}
</td>
</tr>

<tr class="{cycle values="odd,even"}">
<td class="label">Description 2:</td>
<td class="smallDesc">{$linkInfo.DESCRIPTION2|escape|trim}
</td>
</tr>

<tr class="{cycle values="odd,even"}">
<td class="label">Description 3:</td>
<td class="smallDesc">{$linkInfo.DESCRIPTION3|escape|trim}
</td>
</tr>

<tr class="{cycle values="odd,even"}">
<td class="label">Description 4:</td>
<td class="smallDesc">{$linkInfo.DESCRIPTION4|escape|trim}
</td>
</tr>

FINALLY in templates/admin/dir_links_edit.tpl
FIND, around line 74

$smarty.const.DESCRIPTION_MAX_LENGTH}
         </td>
      </tr>

BELOW it , ADD

<tr>
<td class="label"><label for="TITLE1">
Title1:</label></td>
<td class="smallDesc">
<input type="text" id="TITLE1" name="TITLE1"
 value="{$TITLE1|escape|trim}" class="text" />           
</td>
</tr>
<tr>
<td class="label"><label for="URL1">
URL1:</label></td>
<td class="smallDesc">
<input type="text" id="URL1" name="URL1"
 value="{$URL1|escape|trim}" class="text"/>
</td>
</tr>
      
<tr>
<td class="label"><label for="TITLE2">
Title2:</label></td>
<td class="smallDesc">
<input type="text" id="TITLE2" name="TITLE2"
 value="{$TITLE2|escape|trim}" class="text" />           
</td>
</tr>
<tr>
<td class="label"><label for="URL2">
URL2:</label></td>
<td class="smallDesc">
<input type="text" id="URL2" name="URL2"
 value="{$URL2|escape|trim}" class="text"/>
</td>
</tr>
      
<tr>
<td class="label"><label for="TITLE3">
Title3:</label></td>
<td class="smallDesc">
<input type="text" id="TITLE3" name="TITLE3"
 value="{$TITLE3|escape|trim}" class="text" />           
</td>
</tr>
<tr>
<td class="label"><label for="URL">
URL3:</label></td>
<td class="smallDesc">
<input type="text" id="URL3" name="URL3"
 value="{$URL3|escape|trim}" class="text"/>
</td>
</tr>
      
<tr>
<td class="label"><label for="DESCRIPTION1">
Description 1:</label></td>
<td class="smallDesc">
<input type="text" id="DESCRIPTION1" name="DESCRIPTION1"
 value="{$DESCRIPTION1|escape|trim}" class="text" />           
</td>
</tr>
<tr>
<td class="label"><label for="DESCRIPTION2">
Description 2:</label></td>
<td class="smallDesc">
<input type="text" id="DESCRIPTION2" name="DESCRIPTION2"
 value="{$DESCRIPTION2|escape|trim}" class="text"/>
</td>
</tr>
      
<tr>
<td class="label"><label for="DESCRIPTION3">
Description 3:</label></td>
<td class="smallDesc">
<input type="text" id="DESCRIPTION3" name="DESCRIPTION3"
 value="{$DESCRIPTION3|escape|trim}" class="text" />           
</td>
</tr>
<tr>
<td class="label"><label for="DESCRIPTION4">
Description 4:</label></td>
<td class="smallDesc">
<input type="text" id="DESCRIPTION4" name="DESCRIPTION4"
 value="{$DESCRIPTION4|escape|trim}" class="text"/>
</td>
</tr>

You are done!
If you liked this MOD, and want to show your appreciation, you can link back to
rakCha : http://www.rakcha.com
or
enQuira : http://www.enquira.com