Login | Forgot password | Register

X

What is OpenID?

OpenID is an Internet-wide identity system that allows you to sign in to many websites with a single account.

With OpenID, your ID becomes a URL (e.g. http://username.myopenid.com/). You can get a free OpenID for example from myopenid.com.

For more information visit the official OpenID site.

Jump to:

17478 Posts in 4473 Topics by 1972 members

Archive

SilverStripe Forums » Archive » overwrite or remove Menu(2) item

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

Page: 1
Go to End
Author Topic: overwrite or remove Menu(2) item 158 Views
  • Anatol
    avatar
    102 posts

    overwrite or remove Menu(2) item Link to this post

    Hi,

    I would like to overwrite a Menu(2) item in a Page_Controller method.

    Here is the scenario: I added a search form as described in http://doc.silverstripe.com/doku.php?id=tutorial:4-site-search&s=search%20form and added the search results template to /my_template/templates/Layout/Page_results.ss

    As usual all works well, but my second level navigation Menu(2) now displays a link to "Page Not Found", probably because the results page is a function but not part of the site tree so Silverstripe thinks the page does not exist.

    I hope this makes sense.

    I thought the best way to avoid this incorrect second level link is to either completely remove the link or replace it - preferably in the function that gets the search results.

    Maybe there is another easy way that does not require to changes to the template. Any hint is highly appreciated.

    Cheers!
    Anatol

    158 Views
Page: 1
Go to Top

Currently Online: cardinale, ikhwanb, spierala, RichardWGP, steeeo

Welcome to our latest member: RichardWGP

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

Comments on this website? Please give feedback.