Jump to:

23483 Posts in 18965 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » menu item mailto

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 494 Views
  • servalman
    Community Member
    211 Posts

    menu item mailto Link to this post


    This must be a dumb question but I would like to set up a menu item so when I click on it just triggers a mailto
    <a href="mailto:name@adress.com">name</a>

    Any clue ?


  • martimiz
    Forum Moderator
    1086 Posts

    Re: menu item mailto Link to this post

    that's not so difficult - just add a fixed menu item into your templates dynamic menu structure. Something like this (very simplified):

       <% control Menu(1) %>
          <li><a href="$Link">$MenuTitle</a></li>
       <% end_control %>
       <li><a href="mailto:name@adress.com">name</a></li>

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.