3445 Posts in 1031 Topics by 872 members
Page: 1 2
|Go to End|
9 March 2012 at 1:08am
I could not use a function in the page controller because the Link is in a control block ( <% control Menu(1) %>), unless of course that I pass the link through a parameter to this function.
Of all the ways, Junitou's solution has worked for me.
9 March 2012 at 1:11am
I'm always happy when somone gets a solution with or without my advice
The reason I sugest a function is to make the template more readable and it is easier to debug. And I disagree anything you can do it a template
you can do in a function and call that instead.
9 March 2012 at 2:42am
IMHO, you should follow Barry advice. By the way, it would be more interesting as you would better understand the inner workings of SilverStripe.
9 March 2012 at 3:33am
I am happy to have teachers like you.
You are awesome.
I will follow all your advices.
Page: 1 2
|Go to Top|