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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

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   997 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