Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

Single Menu-Point


Go to End


2 Posts   1089 Views

Avatar
jbk

Community Member, 11 Posts

10 September 2008 at 2:42am

Hi,
i´ve got a new question. I´m sry! ;) I want to create a Link to a static Article. I don´t what to show the whole navigation. I only whats to show one Point.

Now my question is, how i can build this single menu link? I need a small Code like this :
<?php getLink(2); ?>

The 2 is the ID of my Article. Does anybody can help ;)

Avatar
Fuzz10

Community Member, 791 Posts

10 September 2008 at 3:57am

In a template , you can use :

<% control Page(URL) %>$Link<% end_control %>

See the following doc page for more info :
http://doc.silverstripe.com/doku.php?id=built-in-page-controls&s=page%20controls