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

Menu links to other domains


Go to End


3 Posts   1555 Views

Avatar
Decisive Flow

Community Member, 73 Posts

9 July 2007 at 12:09pm

I have just converted out PlanHQ blog to Wordpress and would like to link to it from the main nav. The only solution we can see so far is to put a redirect link in, which is obviously not so good for SEO and a little unintuitive for users.

Is there a way I can put the link directly to the site? It is blog.planhq.com

Thanks!

Avatar
Andante

Community Member, 231 Posts

9 July 2007 at 12:30pm

You could create a new page type, and override the Link() function to return the link of the page. Eg:

class BlogRedirector extends Page {
   function Link() {
      return "http://blog.planhq.com";
   }
}

Sam, do you think it would be a good idea to override Link on RedirectorPage to link to the destination page?

Avatar
Sam

Administrator, 690 Posts

9 July 2007 at 1:05pm

Yes, overriding the Link() method in RedirectorPage would work.