• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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