Quote:
Originally Posted by itsblack
Another question, how can I make the attributes display like the old way, I mean this:
there are too many <tr> & <td> in the template, I cannot figure it out myself.
|
It's the "links_entitymarkupbit" template. The template actually contains several parts, each handling one type of attribute. These are contained in blocks <if condition="$entitytemplate==N"> ... </ if> Maybe I should break it up some more.
Here are what the blocks do:
N=1 - url/download attributes
2 - images
3 - not used
4 - text and hidden types
5 - yes/no types
6 - media types
So, you can get the layout name: contents for text attributes like this:
Code:
<if condition="$entitytemplate==4">
<table width="100%">
<tr>
<td>
<span class="smallfont">$entityname:
<if condition="$links_permissions['can_search_link']">
<a href="$SEARCH_SCRIPT.php?{$vbulletin->session->vars['sessionurl']}action=show&entity=$entityvalue" title="$vbphrase[ll_search]">$entitytext</a>
<else />
$entitytext
</if>
</span>
</td>
</tr>
</if>
<if condition="$entitydesc">
<tr>
<td>
<span class="smallfont">$entitydesc</span>
</td>
</tr>
</if>
</table>
</if>