Hallo,
i have a question to the http://doc.silverstripe.org/recipes:customising-content-in-your-templates
This way i can use only one introduction, right? How can i use several introdutions?
for examlpe 2:
$Paypal for paypal.ss and $Pictures for pictures.ss
function Content() {
$replace = "";
$replace .= str_replace('$Paypal', $this->PaypalButton(), $this->Content);
$replace .= str_replace('$Pictures, $this->Pictures(), $this->Content);
return $replace;
}
function PaypalButton() {
return $this->renderWith("paypal");
}
function Pictures() {
return $this->renderWith("pictures");
}
By this way the content of every page is shown twice. How can i do that right way?
Thanks a lot!