• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

Top menu

W

Webbuilder

Guest
Hi,

Im working on a website for a customer. The template I made works perfect. I only have some problems with the TopMenu. It always shows it vertical, I tried some changes on the SeperatorTemplate and ItemTemplate. It also did not find any solution in the SDK. Some help would be really appreciated!


It Looks like this now:
Code:
<SiteBuilder:SiteMenu>
  <HeaderTemplate>
    <table width="132" height="62" border="0" cellspacing="0" cellpadding="0">
  </HeaderTemplate>
  <ItemTemplate>
  	<tr>
      <td width="132" height="40" style="text-align:center;"><a class="menuitem" href="$Url$" style="width: 100%;">$Title$</a></td>
  	</tr>
  </ItemTemplate>
    <SelectedItemTemplate>
    <tr>
      <td width="132" height="40" class="active" style="text-align:center;"><a class="menuitem" href="$Url$" style="width: 100%;">$Title$</a></td>
  	</tr>
  </SelectedItemTemplate>
<FooterTemplate>
    </table>
</FooterTemplate>
</SiteBuilder:SiteMenu>
 
Don't iterate <tr> tags, only <td>:


PHP:
<SiteBuilder:SiteMenu>
  <HeaderTemplate>
    <table width="132" height="62" border="0" cellspacing="0" cellpadding="0"><tr>
  </HeaderTemplate>
  <ItemTemplate>
      <td width="132" height="40" style="text-align:center;">
        <a class="menuitem" href="$Url$" style="width: 100%;">$Title$</a>
      </td>
  </ItemTemplate>
  <SelectedItemTemplate>
      <td width="132" height="40" class="active" style="text-align:center;">
        <a class="menuitem" href="$Url$" style="width: 100%;">$Title$</a>
      </td>
  </SelectedItemTemplate>
  <FooterTemplate>
     </tr></table>
  </FooterTemplate>
</SiteBuilder:SiteMenu>
 
Back
Top