• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

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