• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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