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.

Archive /

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

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

Single Menu-Point


Reply


2 Posts   822 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, 787 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